using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.Areas.TruckMng.Models.MsKfLy { [JsonObject] public class MsKfLyHead : ModelObjectBillHead { #region private Fields private string _billNo = "*"; private DateTime? _lrDate = null; private DateTime? _jzDate = null; private string _userCode = String.Empty; private string _userCode_Ref = String.Empty; private string _userName = String.Empty; private decimal _timeMark = 0; private string _billType = "0"; private string _billType_Ref = "0"; private string _orgCode = String.Empty; private string _orgCode_Ref = String.Empty; private string _orgName = String.Empty; private string _ckCode = "*"; private string _ckCode_Ref = "*"; private string _ckName = String.Empty; private string _lyDate = String.Empty; private string _lyrCode = String.Empty; private string _lyrCode_Ref = String.Empty; private string _lyrName = String.Empty; private decimal _lyCount = 0; private string _truckNo = String.Empty; private string _truckNo_Ref = String.Empty; private string _remark = String.Empty; private string _pluType = "0"; private string _pluType_Ref = "0"; private string _WxBillNo = ""; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BillNo { get { return _billNo; } set { _billNo = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public DateTime? LrDate { get { return _lrDate; } set { _lrDate = value; } } [ModelDB] public DateTime? JzDate { get { return _jzDate; } set { _jzDate = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string UserCode { get { return _userCode; } set { _userCode = value; } } public string UserCode_Ref { get { return _userCode_Ref; } set { _userCode_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string UserName { get { return _userName; } set { _userName = value; } } public decimal TimeMark { get { return _timeMark; } set { _timeMark = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string BillType { get { return _billType; } set { _billType = value; } } public string BillType_Ref { get { return _billType_Ref; } set { _billType_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string OrgCode { get { return _orgCode; } set { _orgCode = value; } } public string OrgCode_Ref { get { return _orgCode_Ref; } set { _orgCode_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string OrgName { get { return _orgName; } set { _orgName = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CkCode { get { return _ckCode; } set { _ckCode = value; } } public string CkCode_Ref { get { return _ckCode_Ref; } set { _ckCode_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CkName { get { return _ckName; } set { _ckName = value; } } [ModelDB] public string LyDate { get { return _lyDate; } set { _lyDate = value; } } [ModelDB] public string LyrCode { get { return _lyrCode; } set { _lyrCode = value; } } public string LyrCode_Ref { get { return _lyrCode_Ref; } set { _lyrCode_Ref = value; } } [ModelDB] public string LyrName { get { return _lyrName; } set { _lyrName = value; } } [ModelDB] public decimal LyCount { get { return _lyCount; } set { _lyCount = value; } } [ModelDB] public string TruckNo { get { return _truckNo; } set { _truckNo = value; } } public string TruckNo_Ref { get { return _truckNo_Ref; } set { _truckNo_Ref = value; } } [ModelDB] public string Remark { get { return _remark; } set { _remark = value; } } [ModelDB] public string PluType { get { return _pluType; } set { _pluType = value; } } public string PluType_Ref { get { return _pluType_Ref; } set { _pluType_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string WxBillNo { get { return _WxBillNo; } set { _WxBillNo = value; } } #endregion public MsKfLyHead() { TableName = "tMsKfLyHead"; } } #region 参照部分 public class MsKfLyHeadRefMsTruckOrg { public string OrgCode { get; set; } public string OrgName { get; set; } public string CodeAndName { get; set; } } public class MsKfLyHeadRefMsWlTruck { public string TruckNo { get; set; } public string TruckSpec { get; set; } public string CodeAndName { get; set; } } public class MsKfLyPriceJxCount { public string PluCode { get; set; } public decimal Price { get; set; } public decimal JxCount { get; set; } public string PriceAndJxCount { get; set; } } #endregion }