|
@@ -14,7 +14,6 @@ namespace SCADA_DAQ.Customer.Models.TaskManagement
|
|
|
public class TaskManagementModel : ObservableObject
|
|
|
{
|
|
|
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// ID
|
|
|
/// </summary>
|
|
@@ -33,49 +32,30 @@ namespace SCADA_DAQ.Customer.Models.TaskManagement
|
|
|
}
|
|
|
private int _ID;
|
|
|
|
|
|
-
|
|
|
/// <summary>
|
|
|
- /// 车间号
|
|
|
+ /// 工单日期
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("车间号", Icon = "")]
|
|
|
- [Column(T_Col_Name.APP_TaiLing_TaskManagement.WorkShopId_Str)]
|
|
|
- public string WorkShopId
|
|
|
+ [AutoViewProperty("工单日期", Icon = "", IsReadOnly =true)]
|
|
|
+ [Column(T_Col_Name.APP_TaiLing_TaskManagement.OrderDatetime_Dt)]
|
|
|
+ public DateTime OrderDatetime
|
|
|
{
|
|
|
- get { return _WorkShopId; }
|
|
|
+ get { return _OrderDatetime; }
|
|
|
set
|
|
|
{
|
|
|
- if (value != _WorkShopId)
|
|
|
+ if (value != _OrderDatetime)
|
|
|
{
|
|
|
- _WorkShopId = value;
|
|
|
- OnPropertyChanged(nameof(WorkShopId));
|
|
|
+ _OrderDatetime = value;
|
|
|
+ OnPropertyChanged(nameof(OrderDatetime));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- private string _WorkShopId;
|
|
|
+ private DateTime _OrderDatetime;
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 产线号
|
|
|
- /// </summary>
|
|
|
- [AutoViewProperty("产线号", Icon = "")]
|
|
|
- [Column(T_Col_Name.APP_TaiLing_TaskManagement.ProductionLineId_Str)]
|
|
|
- public string ProductionLineId
|
|
|
- {
|
|
|
- get { return _ProductionLineId; }
|
|
|
- set
|
|
|
- {
|
|
|
- if (value != _ProductionLineId)
|
|
|
- {
|
|
|
- _ProductionLineId = value;
|
|
|
- OnPropertyChanged(nameof(ProductionLineId));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- private string _ProductionLineId;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 批次号
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("批次号", Icon = "")]
|
|
|
+ [AutoViewProperty("批次号", Icon = "" ,IsReadOnly = true)]
|
|
|
[Column(T_Col_Name.APP_TaiLing_TaskManagement.OrderId_Str)]
|
|
|
public string OrderId
|
|
|
{
|
|
@@ -91,48 +71,50 @@ namespace SCADA_DAQ.Customer.Models.TaskManagement
|
|
|
}
|
|
|
private string _OrderId;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
/// <summary>
|
|
|
- /// 工单日期
|
|
|
+ /// 工单顺序
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("工单日期", Icon = "")]
|
|
|
- [Column(T_Col_Name.APP_TaiLing_TaskManagement.OrderDatetime_Dt)]
|
|
|
- public DateTime OrderDatetime
|
|
|
+ [AutoViewProperty("工单顺序", Icon = "", IsReadOnly = true)]
|
|
|
+ [Column(T_Col_Name.APP_TaiLing_TaskManagement.OrderSequence_Int)]
|
|
|
+ public int OrderSequence
|
|
|
{
|
|
|
- get { return _OrderDatetime; }
|
|
|
+ get { return _OrderSequence; }
|
|
|
set
|
|
|
{
|
|
|
- if (value != _OrderDatetime)
|
|
|
+ if (value != _OrderSequence)
|
|
|
{
|
|
|
- _OrderDatetime = value;
|
|
|
- OnPropertyChanged(nameof(OrderDatetime));
|
|
|
+ _OrderSequence = value;
|
|
|
+ OnPropertyChanged(nameof(OrderSequence));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- private DateTime _OrderDatetime;
|
|
|
+ private int _OrderSequence;
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 工单顺序
|
|
|
+ /// 车型名称
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("工单顺序", Icon = "")]
|
|
|
- [Column(T_Col_Name.APP_TaiLing_TaskManagement.OrderSequence_Int)]
|
|
|
- public int OrderSequence
|
|
|
+ [AutoViewProperty("车型名称", Icon = "", IsReadOnly = true)]
|
|
|
+ [Column(T_Col_Name.APP_TaiLing_TaskManagement.MotorcycleTypeName_Str)]
|
|
|
+ public string MotorcycleTypeName
|
|
|
{
|
|
|
- get { return _OrderSequence; }
|
|
|
+ get { return _MotorcycleTypeName; }
|
|
|
set
|
|
|
{
|
|
|
- if (value != _OrderSequence)
|
|
|
+ if (value != _MotorcycleTypeName)
|
|
|
{
|
|
|
- _OrderSequence = value;
|
|
|
- OnPropertyChanged(nameof(OrderSequence));
|
|
|
+ _MotorcycleTypeName = value;
|
|
|
+ OnPropertyChanged(nameof(MotorcycleTypeName));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- private int _OrderSequence;
|
|
|
+ private string _MotorcycleTypeName;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 计划产量
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("计划产量", Icon = "")]
|
|
|
+ [AutoViewProperty("计划产量", Icon = "", IsReadOnly =false)]
|
|
|
[Column(T_Col_Name.APP_TaiLing_TaskManagement.ScheduledProduction_Int)]
|
|
|
public int ScheduledProduction
|
|
|
{
|
|
@@ -167,10 +149,29 @@ namespace SCADA_DAQ.Customer.Models.TaskManagement
|
|
|
}
|
|
|
private int _CurrentProduction;
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 工单状态
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("工单状态", Icon = "", IsReadOnly = false)]
|
|
|
+ [Column(T_Col_Name.APP_TaiLing_TaskManagement.OrderState_Str)]
|
|
|
+ public string OrderState
|
|
|
+ {
|
|
|
+ get { return _OrderState; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _OrderState)
|
|
|
+ {
|
|
|
+ _OrderState = value;
|
|
|
+ OnPropertyChanged(nameof(OrderState));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _OrderState;
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 开始生产时间
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("开始生产时间", Icon = "")]
|
|
|
+ [AutoViewProperty("开始生产时间", Icon = "", IsReadOnly = true)]
|
|
|
[Column(T_Col_Name.APP_TaiLing_TaskManagement.WorkStartTime_Dt)]
|
|
|
public DateTime WorkStartTime
|
|
|
{
|
|
@@ -189,7 +190,7 @@ namespace SCADA_DAQ.Customer.Models.TaskManagement
|
|
|
/// <summary>
|
|
|
/// 结束生产时间
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("结束生产时间", Icon = "")]
|
|
|
+ [AutoViewProperty("结束生产时间", Icon = "", IsReadOnly = true)]
|
|
|
[Column(T_Col_Name.APP_TaiLing_TaskManagement.WorkEndTime_Dt)]
|
|
|
public DateTime WorkEndTime
|
|
|
{
|
|
@@ -206,63 +207,61 @@ namespace SCADA_DAQ.Customer.Models.TaskManagement
|
|
|
private DateTime _WorkEndTime;
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 工单状态
|
|
|
+ /// 生产总时长
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("工单状态", Icon = "")]
|
|
|
- [Column(T_Col_Name.APP_TaiLing_TaskManagement.OrderState_Str)]
|
|
|
- public string OrderState
|
|
|
+ [AutoViewProperty("生产总时长", Icon = "", IsReadOnly = true)]
|
|
|
+ [Column(T_Col_Name.APP_TaiLing_TaskManagement.DurationSec_Int)]
|
|
|
+ public int DurationSec
|
|
|
{
|
|
|
- get { return _OrderState; }
|
|
|
+ get { return _DurationSec; }
|
|
|
set
|
|
|
{
|
|
|
- if (value != _OrderState)
|
|
|
+ if (value != _DurationSec)
|
|
|
{
|
|
|
- _OrderState = value;
|
|
|
- OnPropertyChanged(nameof(OrderState));
|
|
|
+ _DurationSec = value;
|
|
|
+ OnPropertyChanged(nameof(DurationSec));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- private string _OrderState;
|
|
|
+ private int _DurationSec;
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 车型名称
|
|
|
+ /// 车间号
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("车型名称", Icon = "")]
|
|
|
- [Column(T_Col_Name.APP_TaiLing_TaskManagement.MotorcycleTypeName_Str)]
|
|
|
- public string MotorcycleTypeName
|
|
|
+ [AutoViewProperty("车间号", Icon = "", IsReadOnly = true)]
|
|
|
+ [Column(T_Col_Name.APP_TaiLing_TaskManagement.WorkShopId_Str)]
|
|
|
+ public string WorkShopId
|
|
|
{
|
|
|
- get { return _MotorcycleTypeName; }
|
|
|
+ get { return _WorkShopId; }
|
|
|
set
|
|
|
{
|
|
|
- if (value != _MotorcycleTypeName)
|
|
|
+ if (value != _WorkShopId)
|
|
|
{
|
|
|
- _MotorcycleTypeName = value;
|
|
|
- OnPropertyChanged(nameof(MotorcycleTypeName));
|
|
|
+ _WorkShopId = value;
|
|
|
+ OnPropertyChanged(nameof(WorkShopId));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- private string _MotorcycleTypeName;
|
|
|
+ private string _WorkShopId;
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 生产总时长
|
|
|
+ /// 产线号
|
|
|
/// </summary>
|
|
|
- [AutoViewProperty("生产总时长", Icon = "")]
|
|
|
- [Column(T_Col_Name.APP_TaiLing_TaskManagement.DurationSec_Int)]
|
|
|
- public int DurationSec
|
|
|
+ [AutoViewProperty("产线号", Icon = "", IsReadOnly = true)]
|
|
|
+ [Column(T_Col_Name.APP_TaiLing_TaskManagement.ProductionLineId_Str)]
|
|
|
+ public string ProductionLineId
|
|
|
{
|
|
|
- get { return _DurationSec; }
|
|
|
+ get { return _ProductionLineId; }
|
|
|
set
|
|
|
{
|
|
|
- if (value != _DurationSec)
|
|
|
+ if (value != _ProductionLineId)
|
|
|
{
|
|
|
- _DurationSec = value;
|
|
|
- OnPropertyChanged(nameof(DurationSec));
|
|
|
+ _ProductionLineId = value;
|
|
|
+ OnPropertyChanged(nameof(ProductionLineId));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- private int _DurationSec;
|
|
|
-
|
|
|
-
|
|
|
+ private string _ProductionLineId;
|
|
|
|
|
|
|
|
|
}
|