using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Utils.Attributes; using WeighBusiness.Utils; namespace WeighBusiness.BO { public class Weigh : Bill { public override string TableName { get { return TableNames.称重表; } } private DateTime _CreateDateTime = DateTime.Now; public DateTime? CreateDateTime { get { return _CreateDateTime; } set { _CreateDateTime = value.HasValue ? value.Value : DateTime.Now; } } public long Car_ID { get; set; } [DataReference("Car_ID", typeof(Car), "Car_ID", "Car_Name")] public string Car_Name { get; set; } public int? CarNumber { get; set; }//车次 public int? Number { get; set; }//只数 public decimal? HeadWeight { get; set; }//重量 public long? Remote_Weigh_ID { get; set; }//为空或0时表示没有同步 private List mDetails = new List(); [DetailInfo(typeof(Weigh_Detail))] public List Details { get { return mDetails; } } public static readonly short BillTypeID = BillType.Weigh; } }