|
@@ -0,0 +1,505 @@
|
|
|
+using DBNames;
|
|
|
+using SCADA.CommonLib;
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Security.Permissions;
|
|
|
+using System.Text;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace SCADA_DAQ.Customer.Models
|
|
|
+{
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ [Table(nameof( DBModel.App_Hold_BoardInfo))]
|
|
|
+ public class BoardTaskModel:ObservableObject
|
|
|
+ {
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 订单号
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("订单号")]
|
|
|
+ [CsvLabel("订单号")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.OrderNo_Str)]
|
|
|
+ public string OrderNo
|
|
|
+ {
|
|
|
+ get { return _OrderNo; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _OrderNo)
|
|
|
+ {
|
|
|
+ _OrderNo = value;
|
|
|
+ OnPropertyChanged(nameof(OrderNo));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _OrderNo;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 订单名称
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("订单名称")]
|
|
|
+
|
|
|
+ [CsvLabel("订单名称")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.OrderName_Str)]
|
|
|
+ public string OrderName
|
|
|
+ {
|
|
|
+ get { return _OrderName; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _OrderName)
|
|
|
+ {
|
|
|
+ _OrderName = value;
|
|
|
+ OnPropertyChanged(nameof(OrderName));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _OrderName;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 房间名称
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("房间名称")]
|
|
|
+ [CsvLabel("房间名称")]
|
|
|
+ public string RoomName
|
|
|
+ {
|
|
|
+ get { return _RoomName; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _RoomName)
|
|
|
+ {
|
|
|
+ _RoomName = value;
|
|
|
+ OnPropertyChanged(nameof(RoomName));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _RoomName;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 客户名称
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("客户名称")]
|
|
|
+ [CsvLabel("客户名称")]
|
|
|
+ public string CustomerName
|
|
|
+ {
|
|
|
+ get { return _CustomerName; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _CustomerName)
|
|
|
+ {
|
|
|
+ _CustomerName = value;
|
|
|
+ OnPropertyChanged(nameof(CustomerName));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _CustomerName;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 板件ID
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("板件ID")]
|
|
|
+ [CsvLabel("编码")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.BoardID_Str)]
|
|
|
+
|
|
|
+ public string BoardID
|
|
|
+ {
|
|
|
+ get { return _BoardId; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _BoardId)
|
|
|
+ {
|
|
|
+ _BoardId = value;
|
|
|
+ OnPropertyChanged(nameof(BoardID));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _BoardId;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 板件名称
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("板件名称")]
|
|
|
+ [CsvLabel("板件名称")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.BoardName_Str)]
|
|
|
+
|
|
|
+ public string BoardName
|
|
|
+ {
|
|
|
+ get { return _BoardName; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _BoardName)
|
|
|
+ {
|
|
|
+ _BoardName = value;
|
|
|
+ OnPropertyChanged(nameof(BoardName));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _BoardName;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 长
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("长")]
|
|
|
+ [CsvLabel("长")]
|
|
|
+
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.Height_Dec)]
|
|
|
+
|
|
|
+ public decimal Height
|
|
|
+ {
|
|
|
+ get { return _Length; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _Length)
|
|
|
+ {
|
|
|
+ _Length = value;
|
|
|
+ OnPropertyChanged(nameof(Height));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private decimal _Length;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 宽
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("宽")]
|
|
|
+ [CsvLabel("宽")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.Width_Dec)]
|
|
|
+
|
|
|
+
|
|
|
+ public decimal Width
|
|
|
+ {
|
|
|
+ get { return _Width; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _Width)
|
|
|
+ {
|
|
|
+ _Width = value;
|
|
|
+ OnPropertyChanged(nameof(Width));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private decimal _Width;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 厚度
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("厚度")]
|
|
|
+ [CsvLabel("厚度")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.Thickness_Dec)]
|
|
|
+
|
|
|
+ public decimal Thickness
|
|
|
+ {
|
|
|
+ get { return _Thickness; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _Thickness)
|
|
|
+ {
|
|
|
+ _Thickness = value;
|
|
|
+ OnPropertyChanged(nameof(Thickness));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private decimal _Thickness;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 数量
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("数量")]
|
|
|
+ [CsvLabel("数量")]
|
|
|
+
|
|
|
+ public int Qty
|
|
|
+ {
|
|
|
+ get { return _Qty; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _Qty)
|
|
|
+ {
|
|
|
+ _Qty = value;
|
|
|
+ OnPropertyChanged(nameof(Qty));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private int _Qty;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 材质
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("材质")]
|
|
|
+ [CsvLabel("材质")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.Material_Str)]
|
|
|
+
|
|
|
+ public string Material
|
|
|
+ {
|
|
|
+ get { return _Material; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _Material)
|
|
|
+ {
|
|
|
+ _Material = value;
|
|
|
+ OnPropertyChanged(nameof(Material));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _Material;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 纹理
|
|
|
+ /// </summary>
|
|
|
+ [AutoViewProperty("纹理")]
|
|
|
+ [CsvLabel("纹理")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.Texture_Str)]
|
|
|
+
|
|
|
+ public string Texture
|
|
|
+ {
|
|
|
+ get { return _Texture; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _Texture)
|
|
|
+ {
|
|
|
+ _Texture = value;
|
|
|
+ OnPropertyChanged(nameof(Texture));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _Texture;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("异型")]
|
|
|
+ [CsvLabel("是否异型")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.IsAbnormalShape_Bit)]
|
|
|
+
|
|
|
+ public bool IsAbnormalShape
|
|
|
+ {
|
|
|
+ get { return _AbnormalShape; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _AbnormalShape)
|
|
|
+ {
|
|
|
+ _AbnormalShape = value;
|
|
|
+ OnPropertyChanged(nameof(IsAbnormalShape));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private bool _AbnormalShape;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 是否余料
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("余料")]
|
|
|
+ [CsvLabel("是否余料")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.IsLeftovers_Bit)]
|
|
|
+ public bool IsLeftovers
|
|
|
+ {
|
|
|
+ get { return _IsLeftovers; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _IsLeftovers)
|
|
|
+ {
|
|
|
+ _IsLeftovers = value;
|
|
|
+ OnPropertyChanged(nameof(IsLeftovers));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private bool _IsLeftovers;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 宽1花色
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("宽1花色")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.WidthEdgeColor1_Str)]
|
|
|
+ public string WidthEdgeColor1
|
|
|
+ {
|
|
|
+ get { return _WidthEdgeColor1; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _WidthEdgeColor1)
|
|
|
+ {
|
|
|
+ _WidthEdgeColor1 = value;
|
|
|
+ OnPropertyChanged(nameof(WidthEdgeColor1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _WidthEdgeColor1;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 宽2花色
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("宽2花色")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.WidthEdgeColor2_Str)]
|
|
|
+ public string WidthEdgeColor2
|
|
|
+ {
|
|
|
+ get { return _WidthEdgeColor2; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _WidthEdgeColor2)
|
|
|
+ {
|
|
|
+ _WidthEdgeColor2 = value;
|
|
|
+ OnPropertyChanged(nameof(WidthEdgeColor2));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _WidthEdgeColor2;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 高1花色
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("高1花色")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.HeightEdgeColor1_Str)]
|
|
|
+ public string HeightEdgeColor1
|
|
|
+ {
|
|
|
+ get { return _HeightEdgeColor1; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _HeightEdgeColor1)
|
|
|
+ {
|
|
|
+ _HeightEdgeColor1 = value;
|
|
|
+ OnPropertyChanged(nameof(HeightEdgeColor1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _HeightEdgeColor1;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 高2花色
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("高2花色")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.HeightEdgeColor2_Str)]
|
|
|
+ public string HeightEdgeColor2
|
|
|
+ {
|
|
|
+ get { return _HeightEdgeColor2; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _HeightEdgeColor2)
|
|
|
+ {
|
|
|
+ _HeightEdgeColor2 = value;
|
|
|
+ OnPropertyChanged(nameof(HeightEdgeColor2));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private string _HeightEdgeColor2;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 宽1封边条厚度
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("宽1封边条厚度")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.WidthEdgeThickness1_Dec)]
|
|
|
+ public decimal WidthEdgeThickness1
|
|
|
+ {
|
|
|
+ get { return _WidthEdgeThickness1; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _WidthEdgeThickness1)
|
|
|
+ {
|
|
|
+ _WidthEdgeThickness1 = value;
|
|
|
+ OnPropertyChanged(nameof(WidthEdgeThickness1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private decimal _WidthEdgeThickness1;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 宽2封边条厚度
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("宽2封边条厚度")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.WidthEdgeThickness2_Dec)]
|
|
|
+ public decimal WidthEdgeThickness2
|
|
|
+ {
|
|
|
+ get { return _WidthEdgeThickness2; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _WidthEdgeThickness2)
|
|
|
+ {
|
|
|
+ _WidthEdgeThickness2 = value;
|
|
|
+ OnPropertyChanged(nameof(WidthEdgeThickness2));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private decimal _WidthEdgeThickness2;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 高1封边条厚度
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("高1封边条厚度")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.HeightEdgeThickness1_Dec)]
|
|
|
+ public decimal HeightEdgeThickness1
|
|
|
+ {
|
|
|
+ get { return _HeightEdgeThickness1; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _HeightEdgeThickness1)
|
|
|
+ {
|
|
|
+ _HeightEdgeThickness1 = value;
|
|
|
+ OnPropertyChanged(nameof(HeightEdgeThickness1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private decimal _HeightEdgeThickness1;
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 高2封边条厚度
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ [AutoViewProperty("高2封边条厚度")]
|
|
|
+ [Column(T_Col_Name.App_Hold_BoardInfo.HeightEdgeThickness2_Dec)]
|
|
|
+ public decimal HeightEdgeThickness2
|
|
|
+ {
|
|
|
+ get { return _HeightEdgeThickness2; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ if (value != _HeightEdgeThickness2)
|
|
|
+ {
|
|
|
+ _HeightEdgeThickness2 = value;
|
|
|
+ OnPropertyChanged(nameof(HeightEdgeThickness2));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private decimal _HeightEdgeThickness2;
|
|
|
+
|
|
|
+ }
|
|
|
+}
|