using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WMS.Entitys.Basic { [Table("tn_wm_b_stock_qty")] public class TN_WM_B_STOCK_QTYEntity { [Column("CN_GUID")] public string CN_GUID { get; set; } [Column("CN_S_OWNER")] public string CN_S_OWNER { get; set; } [Column("CN_S_ITEM_CODE")] public string CN_S_ITEM_CODE { get; set; } [Column("CN_S_ITEM_NAME")] public string CN_S_ITEM_NAME { get; set; } [Column("CN_S_ITEM_STATE")] public string CN_S_ITEM_STATE { get; set; } [Column("CN_S_LOT_NO")] public string CN_S_LOT_NO { get; set; } [Column("CN_S_STOCK_CODE")] public string CN_S_STOCK_CODE { get; set; } [Column("CN_F_QUANTITY")] public decimal CN_F_QUANTITY { get; set; } [Column("CN_F_PLANNED_QTY")] public decimal CN_F_PLANNED_QTY { get; set; } [Column("CN_F_ALLOC_QTY")] //统一改成decimal类型 modify 20181126 by zh public decimal CN_F_ALLOC_QTY { get; set; } [Column("CN_S_NOTE")] public string CN_S_NOTE { get; set; } [Column("CN_F_PRELOCK_QTY")] public decimal? CN_F_PRELOCK_QTY { get; set; } [Column("CN_S_MODEL")] public string CN_S_MODEL { get; set; } [Column("CN_S_MEASURE_UNIT")] public string CN_S_MEASURE_UNIT { get; set; } [Column("CN_S_FIGURE_NO")] public string CN_S_FIGURE_NO { get; set; } private string _cn_s_timestamp; [Column("CN_S_TIMESTAMP")] public string CN_S_TIMESTAMP { set { this._cn_s_timestamp = value; } get { if (!string.IsNullOrEmpty(this._cn_s_timestamp)) { return _cn_s_timestamp.Trim(); } return _cn_s_timestamp; } } [Column("CN_F_EDITING_QTY")] public decimal CN_F_EDITING_QTY { get; set; } [Column("CN_S_PRODUCTION_BATCH")] public string CN_S_PRODUCTION_BATCH { get; set; } /// /// 条件 /// public string SqlWhere { get; set; } /// /// 判断移入仓库 是否存在 条件 /// public string SqlWhere1 { get; set; } /// /// 起始库区暂存 /// public string startArea { get; set; } /// /// 目的货位暂存 /// public string endArea { get; set; } /// /// 目的货位暂存 /// public string endBit{ get; set; } /// /// 目的货位暂存 /// public string CN_S_STOCK_AREA { get; set; } public static void CheckNullValue(TN_WM_B_STOCK_QTYEntity stockQty) { if (stockQty.CN_S_ITEM_STATE == null) stockQty.CN_S_ITEM_STATE = ""; if (stockQty.CN_S_LOT_NO == null) stockQty.CN_S_LOT_NO = ""; if (stockQty.CN_S_OWNER == null) stockQty.CN_S_OWNER = ""; if (stockQty.CN_S_PRODUCTION_BATCH == null) stockQty.CN_S_PRODUCTION_BATCH = ""; } public bool Update { get; set; } } }