|
@@ -0,0 +1,237 @@
|
|
|
+using Newtonsoft.Json;
|
|
|
+using SCADA.CommonLib;
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Text;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace SCADA_DAQ.Customer.Models
|
|
|
+{
|
|
|
+ public class MesModel : ObservableObject
|
|
|
+ {
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 条码
|
|
|
+ /// </summary>
|
|
|
+ public string barCode
|
|
|
+ {
|
|
|
+ get { return _barCode; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _barCode)
|
|
|
+ {
|
|
|
+ _barCode = value;
|
|
|
+ OnPropertyChanged(nameof(barCode));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _barCode;
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 设备编号
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("设备编号",Icon = "SlotMachine")]
|
|
|
+ public string station
|
|
|
+ {
|
|
|
+ get { return _station; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _station)
|
|
|
+ {
|
|
|
+ _station = value;
|
|
|
+ OnPropertyChanged(nameof(station));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _station;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 公司ID
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("公司ID", Icon = "Domain")]
|
|
|
+
|
|
|
+ public string companyId
|
|
|
+ {
|
|
|
+ get { return _companyId; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _companyId)
|
|
|
+ {
|
|
|
+ _companyId = value;
|
|
|
+ OnPropertyChanged(nameof(companyId));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _companyId;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 明细作业
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("明细作业", Icon = "Opera")]
|
|
|
+
|
|
|
+ public string detailOperation
|
|
|
+ {
|
|
|
+ get { return _detailOperation; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _detailOperation)
|
|
|
+ {
|
|
|
+ _detailOperation = value;
|
|
|
+ OnPropertyChanged(nameof(detailOperation));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _detailOperation;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 车间号
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("车间号", Icon = "Warehouse")]
|
|
|
+
|
|
|
+ public string workShopId
|
|
|
+ {
|
|
|
+ get { return _workShopId; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _workShopId)
|
|
|
+ {
|
|
|
+ _workShopId = value;
|
|
|
+ OnPropertyChanged(nameof(workShopId));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _workShopId;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 结束时间
|
|
|
+ /// </summary>
|
|
|
+ public DateTime finishTime
|
|
|
+ {
|
|
|
+ get { return _finishTime; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _finishTime)
|
|
|
+ {
|
|
|
+ _finishTime = value;
|
|
|
+ OnPropertyChanged(nameof(finishTime));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private DateTime _finishTime;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 开始时间
|
|
|
+ /// </summary>
|
|
|
+ public DateTime startTime
|
|
|
+ {
|
|
|
+ get { return _startTime; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _startTime)
|
|
|
+ {
|
|
|
+ _startTime = value;
|
|
|
+ OnPropertyChanged(nameof(startTime));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private DateTime _startTime;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 工单号
|
|
|
+ /// </summary>
|
|
|
+ public string workId
|
|
|
+ {
|
|
|
+ get { return _workId; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _workId)
|
|
|
+ {
|
|
|
+ _workId = value;
|
|
|
+ OnPropertyChanged(nameof(workId));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _workId;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 报工接口返回
|
|
|
+ /// </summary>
|
|
|
+ public class ResultMesModel : ObservableObject
|
|
|
+ {
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 状态码
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [JsonProperty("code")]
|
|
|
+ public int code
|
|
|
+ {
|
|
|
+ get { return _code; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _code)
|
|
|
+ {
|
|
|
+ _code = value;
|
|
|
+ OnPropertyChanged(nameof(code));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int _code;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 返回结果
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [JsonProperty("result")]
|
|
|
+
|
|
|
+ public bool result
|
|
|
+ {
|
|
|
+ get { return _result; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _result)
|
|
|
+ {
|
|
|
+ _result = value;
|
|
|
+ OnPropertyChanged(nameof(result));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private bool _result;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 返回消息
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [JsonProperty("message")]
|
|
|
+
|
|
|
+ public string message
|
|
|
+ {
|
|
|
+ get { return _message; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _message)
|
|
|
+ {
|
|
|
+ _message = value;
|
|
|
+ OnPropertyChanged(nameof(message));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _message;
|
|
|
+
|
|
|
+ }
|
|
|
+}
|