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 SaleOutStoreInfo { public DateTime? Date { get; set; } public string DeliverGoodsLine_Name { get; set; } public string Customer_Name { get; set; } public long BillID { get; set; } public long DetailID { 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; } [DbColumn(DefaultValue = 0)] public bool StandardPic { get; set; } public bool Finishd { get { if (StandardPic) return (UnitNum ?? 0) <= (SUnitNum ?? 0); return (SecondNumber ?? 0) <= (SSecondNumber ?? 0); } } } [KeyField("ID", KeyGenType.identity)] [MapToTable("Butcher_SegmentStockUp")] public class SegmentStockUp { public long ID { get; set; } public bool Sync { get; set; } public DateTime Date { get; set; } public long DetailID { get; set; } public string BarCode { get; set; } public decimal? SecondNumber { get; set; } public decimal? UnitNumber { get; set; } [DbColumn(DefaultValue = 0)] public bool StandardPic { get; set; } [NonDmoProperty] public string ShortCode { get { if (string.IsNullOrEmpty(BarCode)) return null; if (BarCode.Contains("260912011")) return BarCode.Replace("260912011", ""); return BarCode; } } [NonDmoProperty] public string Goods_Name { get; set; } [NonDmoProperty] public string DeliverGoodsLine_Name { get; set; } [NonDmoProperty] public long BillID { get; set; } } }