using Forks.EnterpriseServices.DomainObjects2; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ButcherFactory.BO { public class StockUpEntity { public DateTime Date { get; set; } public long DeliverGoodsLine_ID { get; set; } public string DeliverGoodsLine_Name { get; set; } public long? SequenceNumber { get; set; } public long Goods_ID { get; set; } public string Goods_Name { get; set; } public string Goods_Spec { get; set; } public string Goods_Code { get; set; } public decimal? SecondNumber { get; set; } public decimal? UnitNum { get; set; } public decimal? SSecondNumber { get; set; } public decimal? SUnitNum { get; set; } public decimal? Rate { get; set; } public bool Finishd { get { return (UnitNum ?? 0) <= (SUnitNum ?? 0); } } } public class StockUpDetail { public long ID { get; set; } public DateTime Date { get; set; } public long DeliverGoodsLine_ID { get; set; } public string DeliverGoodsLine_Name { get; set; } public string BarCode { get; set; } [NonDmoProperty] public string ShortCode { get { if (string.IsNullOrEmpty(BarCode)) return null; if (BarCode.Contains("260912011")) return BarCode.Replace("260912011", ""); return BarCode; } } public long Goods_ID { get; set; } public string Goods_Code { get; set; } public string Goods_Spec { get; set; } public string Goods_Name { get; set; } public long SaleOutStoreID { get; set; } public decimal? SecondNumber { get; set; } public decimal? UnitNumber { get; set; } } }