using System; using System.Collections.Generic; using Aspose.Words.Lists; using DSWeb.MvcShipping.Models.MsOpLetter; using DSWeb.Areas.Import.Models.ImportTrade; using HcUtility.Core; using Newtonsoft.Json; using DSWeb.Common.DB; namespace DSWeb.Areas.TruckMng.Models.MsWlBs { [JsonObject] public class MsWlPcHead : ModelObjectBillHead { #region private Fields private string _billNo = "*"; private DateTime? _lrDate = null; private DateTime? _jzDate = null; private string _userCode = String.Empty; private string _userName = String.Empty; private string _orgCode = String.Empty; private string _orgName = String.Empty; private string _truckNo = String.Empty; private string _truckNo_Ref = String.Empty; private string _drvCode = String.Empty; private string _drvCode_Ref = String.Empty; private string _drvName = String.Empty; private string _mobile = String.Empty; private string _expDate = String.Empty; private string _containerType = String.Empty; private string _containerType_Ref = String.Empty; private decimal _containerQty = 0; private string _voyVeg = String.Empty; private string _voyVeg_Ref = String.Empty; private string _etDate = String.Empty; private string _endPortDate = String.Empty; private string _mblNo = String.Empty; private string _yardCode = String.Empty; private string _yardCode_Ref = String.Empty; private string _yardName = String.Empty; private string _dstArea = String.Empty; private string _detiNation = String.Empty; private string _factoryAddr = String.Empty; private string _linkTel = String.Empty; private string _linkMan = String.Empty; private decimal _ratedMil = 0; private decimal _ratedFuel = 0; private decimal _fuelQty = 0; private decimal _realMil = 0; private decimal _realFuel = 0; private decimal _noLoadMil = 0; private decimal _overLoadMil = 0; private decimal _ton = 0; private decimal _actualWeight = 0; private decimal _aroundTon = 0; private decimal _loadCount = 0; private string _arriveDate = String.Empty; private string _ddCode = String.Empty; private string _ddCode_Ref = String.Empty; private string _ddName = String.Empty; private string _returnDate = String.Empty; private string _refBillNo = String.Empty; private string _remark = String.Empty; private string _isDouble = "0"; private string _refBillNoSe = String.Empty; private string _containerTypeSe = String.Empty; private string _containerTypeSe_Ref = String.Empty; private decimal _containerQtySe = 0; private string _mblNoSe = String.Empty; private string _voyVegSe = String.Empty; private string _voyVegSe_Ref = String.Empty; private string _etDateSe = String.Empty; private string _endPortDateSe = String.Empty; private string _yardCodeSe = String.Empty; private string _yardCodeSe_Ref = String.Empty; private string _yardNameSe = String.Empty; private string _dstAreaSe = String.Empty; private string _factoryAddrSe = String.Empty; private string _detiNationSe = String.Empty; private string _linkManSe = String.Empty; private string _linkTelSe = String.Empty; private string _rtnYardCode = String.Empty; private string _rtnYardCode_Ref = String.Empty; private string _rtnYardName = String.Empty; private string _RtnYardCodeSe = String.Empty; private string _RtnYardCodeSe_Ref = String.Empty; private string _RtnYardNameSe = String.Empty; private string _billStatus = "0"; private string _billStatus_Ref = "0"; private string _feeStatus = "0"; private string _feeStatus_Ref = "0"; private string _gId = String.Empty; private string _refCustomerName = string.Empty; private string _RefCustName = string.Empty; private decimal _totalMil = 0; private decimal _timeMark = 0; private string _loadPlace = string.Empty; private decimal _loadFuel = 0; private decimal _noLoadFuel = 0; private string _bsType = "0"; private string _bsType_Ref = String.Empty; private string _custLikeManCode = string.Empty; private string _feeOpStatus = "0"; private string _feeOpStatus_Ref = "未提交"; private decimal _runTimes = 1; private string _containerNo = string.Empty; private string _sealNo = string.Empty; private string _containerNoSe = string.Empty; private string _sealNoSe = string.Empty; private string _CustCode = string.Empty; private string _CustName = string.Empty; private string _ZSLQF = string.Empty; private string _KSLQF = string.Empty; private string _LQF = string.Empty; //private string _neadLoadDate = string.Empty; //[ModelDB] //public string NeadLoadDate //{ // get { return _neadLoadDate; } // set { _neadLoadDate = value; } //} //private string _needArriveDate = string.Empty; //[ModelDB] //public string NeedArriveDate //{ // get { return _needArriveDate; } // set { _needArriveDate = value; } //} private string _arriveTime = string.Empty; private string _returnTime = string.Empty; private string _ACCDATE = string.Empty; private string _billRises1 = string.Empty; private decimal _changedMil = 0; private decimal _changedFuel = 0; private string _changedReson = string.Empty; private string _ywType = "0111"; private string _CustomerName = String.Empty; private string _CustomerNameFull = String.Empty; private string _F_CustomerName = String.Empty; private string _CutoffTime = String.Empty; private string _isEnd = String.Empty; private string _fuelPrice = "0"; private string _roadFee = "0"; private string _FuelPrice = string.Empty; private string _FuelAmount = string.Empty; private string _RoadFee = string.Empty; private string _DRFEESTATUS = string.Empty; private string _CRFEESTATUS = string.Empty; private string _GoodsName = string.Empty; #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; } } public DateTime? JzDate { get { return _jzDate; } set { _jzDate = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string UserCode { get { return _userCode; } set { _userCode = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string UserName { get { return _userName; } set { _userName = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string OrgCode { get { return _orgCode; } set { _orgCode = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string OrgName { get { return _orgName; } set { _orgName = 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 DrvCode { get { return _drvCode; } set { _drvCode = value; } } [ModelDB] public string DrvName { get { return _drvName; } set { _drvName = value; } } public string DrvCode_Ref { get { return _drvCode_Ref; } set { _drvCode_Ref = value; } } [ModelDB] public string Mobile { get { return _mobile; } set { _mobile = value; } } [ModelDB] public string ExpDate { get { return _expDate; } set { _expDate = value; } } [ModelDB] public string ContainerType { get { return _containerType; } set { _containerType = value; } } public string ContainerType_Ref { get { return _containerType_Ref; } set { _containerType_Ref = value; } } [ModelDB] public decimal ContainerQty { get { return _containerQty; } set { _containerQty = value; } } [ModelDB] public string VoyVeg { get { return _voyVeg; } set { _voyVeg = value; } } public string VoyVeg_Ref { get { return _voyVeg_Ref; } set { _voyVeg_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string EtDate { get { return _etDate; } set { _etDate = value; } } [ModelDB] public string EndPortDate { get { return _endPortDate; } set { _endPortDate = value; } } [ModelDB] public string MblNo { get { return _mblNo; } set { _mblNo = value; } } [ModelDB] public string YardCode { get { return _yardCode; } set { _yardCode = value; } } [ModelDB] public string GoodsName { get { return _GoodsName; } set { _GoodsName = value; } } public string YardCode_Ref { get { return _yardCode_Ref; } set { _yardCode_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string YardName { get { return _yardName; } set { _yardName = value; } } [ModelDB] public string DstArea { get { return _dstArea; } set { _dstArea = value; } } [ModelDB] public string DetiNation { get { return _detiNation; } set { _detiNation = value; } } [ModelDB] public string FactoryAddr { get { return _factoryAddr; } set { _factoryAddr = value; } } [ModelDB] public string LinkTel { get { return _linkTel; } set { _linkTel = value; } } [ModelDB] public string LinkMan { get { return _linkMan; } set { _linkMan = value; } } [ModelDB] public decimal RatedMil { get { return _ratedMil; } set { _ratedMil = value; } } [ModelDB] public decimal RatedFuel { get { return _ratedFuel; } set { _ratedFuel = value; } } public decimal FuelQty { get { return _fuelQty; } set { _fuelQty = value; } } [ModelDB] public decimal RealMil { get { return _realMil; } set { _realMil = value; } } [ModelDB] public decimal RealFuel { get { return _realFuel; } set { _realFuel = value; } } [ModelDB] public decimal NoLoadMil { get { return _noLoadMil; } set { _noLoadMil = value; } } [ModelDB] public decimal OverLoadMil { get { return _overLoadMil; } set { _overLoadMil = value; } } [ModelDB] public decimal Ton { get { return _ton; } set { _ton = value; } } [ModelDB] public decimal ActualWeight { get { return _actualWeight; } set { _actualWeight = value; } } [ModelDB] public decimal AroundTon { get { return _aroundTon; } set { _aroundTon = value; } } [ModelDB] public decimal LoadCount { get { return _loadCount; } set { _loadCount = value; } } [ModelDB] public string ArriveDate { get { return _arriveDate; } set { _arriveDate = value; } } [ModelDB] public string DdCode { get { return _ddCode; } set { _ddCode = value; } } public string DdCode_Ref { get { return _ddCode_Ref; } set { _ddCode_Ref = value; } } public string DdName { get { return _ddName; } set { _ddName = value; } } [ModelDB] public string ReturnDate { get { return _returnDate; } set { _returnDate = value; } } [ModelDB] public string RefBillNo { get { return _refBillNo; } set { _refBillNo = value; } } [ModelDB] public string Remark { get { return _remark; } set { _remark = value; } } [ModelDB] public string IsDouble { get { return _isDouble; } set { _isDouble = value; } } [ModelDB] public string RefBillNoSe { get { return _refBillNoSe; } set { _refBillNoSe = value; } } [ModelDB] public string ContainerTypeSe { get { return _containerTypeSe; } set { _containerTypeSe = value; } } public string ContainerTypeSe_Ref { get { return _containerTypeSe_Ref; } set { _containerTypeSe_Ref = value; } } [ModelDB] public decimal ContainerQtySe { get { return _containerQtySe; } set { _containerQtySe = value; } } [ModelDB] public string MblNoSe { get { return _mblNoSe; } set { _mblNoSe = value; } } [ModelDB] public string VoyVegSe { get { return _voyVegSe; } set { _voyVegSe = value; } } public string VoyVegSe_Ref { get { return _voyVegSe_Ref; } set { _voyVegSe_Ref = value; } } [ModelDB] public string EtDateSe { get { return _etDateSe; } set { _etDateSe = value; } } [ModelDB] public string EndPortDateSe { get { return _endPortDateSe; } set { _endPortDateSe = value; } } [ModelDB] public string YardCodeSe { get { return _yardCodeSe; } set { _yardCodeSe = value; } } public string YardCodeSe_Ref { get { return _yardCodeSe_Ref; } set { _yardCodeSe_Ref = value; } } [ModelDB] public string YardNameSe { get { return _yardNameSe; } set { _yardNameSe = value; } } [ModelDB] public string DstAreaSe { get { return _dstAreaSe; } set { _dstAreaSe = value; } } [ModelDB] public string FactoryAddrSe { get { return _factoryAddrSe; } set { _factoryAddrSe = value; } } [ModelDB] public string DetiNationSe { get { return _detiNationSe; } set { _detiNationSe = value; } } [ModelDB] public string LinkManSe { get { return _linkManSe; } set { _linkManSe = value; } } [ModelDB] public string LinkTelSe { get { return _linkTelSe; } set { _linkTelSe = value; } } [ModelDB] public string RtnYardCode { get { return _rtnYardCode; } set { _rtnYardCode = value; } } public string RtnYardCode_Ref { get { return _rtnYardCode_Ref; } set { _rtnYardCode_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string RtnYardName { get { return _rtnYardName; } set { _rtnYardName = value; } } [ModelDB] public string RtnYardCodeSe { get { return _RtnYardCodeSe; } set { _RtnYardCodeSe = value; } } public string RtnYardCodeSe_Ref { get { return _RtnYardCodeSe_Ref; } set { _RtnYardCodeSe_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string RtnYardNameSe { get { return _RtnYardNameSe; } set { _RtnYardNameSe = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string BillStatus { get { return _billStatus; } set { _billStatus = value; } } public string BillStatus_Ref { get { return _billStatus_Ref; } set { _billStatus_Ref = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string FeeStatus { get { return _feeStatus; } set { _feeStatus = value; } } public string FEESTATUS { get { return _feeStatus; } set { _feeStatus = value; } } public string FeeStatus_Ref { get { return _feeStatus_Ref; } set { _feeStatus_Ref = value; } } [ModelDB] public string GId { get { return _gId; } set { _gId = value; } } public string RefCustomerName { get { return _refCustomerName; } set { _refCustomerName = value; } } public string RefCustName { get { return _RefCustName; } set { _RefCustName = value; } } [ModelDB] public decimal TotalMil { get { return _totalMil; } set { _totalMil = value; } } public decimal TimeMark { get { return _timeMark; } set { _timeMark = value; } } [ModelDB] public string LoadPlace { get { return _loadPlace; } set { _loadPlace = value; } } [ModelDB] public decimal LoadFuel { get { return _loadFuel; } set { _loadFuel = value; } } [ModelDB] public decimal NoLoadFuel { get { return _noLoadFuel; } set { _noLoadFuel = value; } } [ModelDB] public string BsType { get { return _bsType; } set { _bsType = value; } } public string BsType_Ref { get { return _bsType_Ref; } set { _bsType_Ref = value; } } [ModelDB] public string BillRises1 { get { return this._billRises1; } set { this._billRises1 = value; } } [ModelDB] public decimal ChangedMil { get { return this._changedMil; } set { this._changedMil = value; } } [ModelDB] public decimal ChangedFuel { get { return this._changedFuel; } set { this._changedFuel = value; } } [ModelDB] public string ChangedReson { get { return this._changedReson; } set { this._changedReson = value; } } public string YwType { get { return this._ywType; } set { this._ywType = value; } } public string FeeOpStatus { get { return _feeOpStatus; } set { _feeOpStatus = value; } } public string FeeOpStatus_Ref { get { return _feeOpStatus_Ref; } set { _feeOpStatus_Ref = value; } } [ModelDB] public decimal RunTimes { get { return this._runTimes; } set { this._runTimes = value; } } [ModelDB] public string CustLikeManCode { get { return _custLikeManCode; } set { _custLikeManCode = value; } } private string _custLikeManName = string.Empty; [ModelDB] public string CustLikeManName { get { return _custLikeManName; } set { _custLikeManName = value; } } private string _custTel = string.Empty; [ModelDB] public string CustTel { get { return _custTel; } set { _custTel = value; } } [ModelDB] public string ArriveTime { get { return _arriveTime; } set { _arriveTime = value; } } [ModelDB] public string ReturnTime { get { return _returnTime; } set { _returnTime = value; } } [ModelDB] public string ACCDATE { get { return _ACCDATE; } set { _ACCDATE = value; } } [ModelDB] public string ContainerNo { get { return _containerNo; } set { _containerNo = value; } } [ModelDB] public string SealNo { get { return _sealNo; } set { _sealNo = value; } } [ModelDB] public string ContainerNoSe { get { return _containerNoSe; } set { _containerNoSe = value; } } [ModelDB] public string SealNoSe { get { return _sealNoSe; } set { _sealNoSe = value; } } [ModelDB] public string CustCode { get { return _CustCode; } set { _CustCode = value; } } [ModelDB] public string CustName { get { return _CustName; } set { _CustName = value; } } [ModelDB] public string CustomerName { get { return _CustomerName; } set { _CustomerName = value; } } public string CustomerNameFull { get { return _CustomerNameFull; } set { _CustomerNameFull = value; } } [ModelDB] public string F_CustomerName { get { return _F_CustomerName; } set { _F_CustomerName = value; } } [ModelDB] public string CutoffTime { get { return _CutoffTime; } set { _CutoffTime = value; } } [ModelDB] public string isEnd { get { return _isEnd; } set { _isEnd = value; } } [ModelDB] public string FuelPrice { get{return this._fuelPrice;} set{this._fuelPrice = value;} } [ModelDB] public string RoadFee { get{return this._roadFee;} set{this._roadFee = value;} } public string FuelAmount { get { return _FuelAmount; } set { _FuelAmount = value; } } //20150302 为应对海尔代管业务 此三列为计算得出 不写入 public string ZSLQF { get { return _ZSLQF; } set { _ZSLQF = value; } } public string KSLQF { get { return _KSLQF; } set { _KSLQF = value; } } public string LQF { get { return _LQF; } set { _LQF = value; } } public string DRFEESTATUS { get { return _DRFEESTATUS; } set { _DRFEESTATUS = value; } } public string CRFEESTATUS { get { return _CRFEESTATUS; } set { _CRFEESTATUS = value; } } #endregion public MsWlPcHead() { TableName = "tMsWlPcHead"; GId = "TMSPC" + Guid.NewGuid().ToString("N").ToUpper(); } override public string GetBillNoFieldName() { return "GId"; } } [JsonObject] public class MsWlPcHead_ADL : MsWlPcHead { #region private Fields private string _pgid = ""; private string _ywType = "0121"; private string _PCSTATUSREF; private string _RefBillNo = ""; //托单编号 private string _DGTYPE = ""; private string _DGTYPECODE = ""; private string _SECOND_DRV = ""; private string _DRFEESTATUS = string.Empty; private string _CRFEESTATUS = string.Empty; private string _GOODSCOUNT = string.Empty; private string _CBM = string.Empty; private decimal _ISHW = 0; private string _TruckSpec = string.Empty; private string _PINMING = string.Empty; #endregion #region Public Properties public string YwType { get { return this._ywType; } set { this._ywType = value; } } public string PCSTATUSREF { get { return this._PCSTATUSREF; } set { this._PCSTATUSREF = value; } } [ModelDB] public string PINMING { get { return _PINMING; } set { _PINMING = value; } } [ModelDB] public string PGID { get { return _pgid; } set { _pgid = value; } } [ModelDB] public string RefBillNo { get { return _RefBillNo; } set { _RefBillNo = value; } } [ModelDB] public string DGTYPE { get { return _DGTYPE; } set { _DGTYPE = value; } } [ModelDB] public string DGTYPECODE { get { return _DGTYPECODE; } set { _DGTYPECODE = value; } } [ModelDB] public string SECOND_DRV { get { return _SECOND_DRV; } set { _SECOND_DRV = value; } } public string DRFEESTATUS { get { return _DRFEESTATUS; } set { _DRFEESTATUS = value; } } public string CRFEESTATUS { get { return _CRFEESTATUS; } set { _CRFEESTATUS = value; } } [ModelDB] public string GOODSCOUNT { get { return _GOODSCOUNT; } set { _GOODSCOUNT = value; } } [ModelDB] public string CBM { get { return _CBM; } set { _CBM = value; } } [ModelDB] public decimal ISHW { get { return _ISHW; } set { _ISHW = value; } } [ModelDB] public string TruckSpec { get { return _TruckSpec; } set { _TruckSpec = value; } } #endregion } [JsonObject] public class MsWlPcHead_ADLEdit : ModelObjectBillHead { #region private Fields private string _ywType = "0121"; private decimal _timeMark = 0; private string _gId = String.Empty; private string _pgId = String.Empty; private string _RowNumber = String.Empty; private string _PCSTATUSREF = string.Empty; private string _BillNo = "*"; private string _ExpDate = string.Empty; private string _GroupDate = string.Empty; private string _CustomerName = string.Empty; private string _CustomerNameFull = string.Empty; private string _F_CustomerName = string.Empty; private string _DstArea = string.Empty; private string _DetiNation = string.Empty; private string _ContainerType = string.Empty; private string _ContainerType_Ref = string.Empty; private string _ContainerQty = string.Empty; private string _TruckSpec = string.Empty; private string _TruckNo = string.Empty; private string _MblNo = string.Empty; private string _EndPortDate = string.Empty; private string _DrvCode = string.Empty; private string _DrvName = string.Empty; private string _Mobile = string.Empty; private string _YardCode = string.Empty; private string _YardCode_Ref = string.Empty; private string _RtnYardCode = string.Empty; private string _RtnYardCode_Ref = string.Empty; private string _VoyVeg = string.Empty; private string _OrgCode = string.Empty; private string _DDCode = string.Empty; private string _PropertyRef = string.Empty; private string _LoadPlace = string.Empty; private string _bsType = "0"; private string _RefBillNo = string.Empty; private string _RefBillNoSe = string.Empty; private string _DGTYPE = string.Empty; private string _DGTYPECODE = string.Empty; private string _SECOND_DRV = string.Empty; private string _DRFEESTATUS = string.Empty; private string _CRFEESTATUS = string.Empty; private string _GOODSCOUNT = string.Empty; private string _CBM = string.Empty; private decimal _ISHW = 0; private string _FactoryAddr = string.Empty; private string _Remark = string.Empty; private string _GoodsName = string.Empty; //货重吨 private string _Ton = string.Empty; //录入时间 private string _CreateTime = string.Empty; public string CreateTime { get { return _CreateTime; } set { _CreateTime = value; } } [ModelDB] public string Ton { get { return _Ton; } set { _Ton = value; } } #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BillNo { get { return _BillNo; } set { _BillNo = value; } } public string YwType { get{return this._ywType;} set{this._ywType = value;} } public decimal TimeMark { get { return _timeMark; } set { _timeMark = value; } } [ModelDB] public string GId { get { return _gId; } set { _gId = value; } } [ModelDB] public string PGId { get { return _pgId; } set { _pgId = value; } } public string RowNumber { get { return _RowNumber; } set { _RowNumber = value; } } public string PCSTATUSREF { get { return _PCSTATUSREF; } set { _PCSTATUSREF = value; } } [ModelDB] public string ExpDate { get { return _ExpDate; } set { _ExpDate = value; } } public string GroupDate { get { return _GroupDate; } set { _GroupDate = value; } } [ModelDB] public string CustomerName { get { return _CustomerName; } set { _CustomerName = value; } } public string CustomerNameFull { get { return _CustomerNameFull; } set { _CustomerNameFull = value; } } [ModelDB] public string F_CustomerName { get { return _F_CustomerName; } set { _F_CustomerName = value; } } [ModelDB] public string DstArea { get { return _DstArea; } set { _DstArea = value; } } [ModelDB] public string FactoryAddr { get { return _FactoryAddr; } set { _FactoryAddr = value; } } [ModelDB] public string DetiNation { get { return _DetiNation; } set { _DetiNation = value; } } [ModelDB] public string ContainerType { get { return _ContainerType; } set { _ContainerType = value; } } public string ContainerType_Ref { get { return _ContainerType_Ref; } set { _ContainerType_Ref = value; } } private string _ContainerTypeSe; public string ContainerTypeSe { get { return _ContainerTypeSe; } set { _ContainerTypeSe = value; } } [ModelDB] public string ContainerQty { get { return _ContainerQty; } set { _ContainerQty = value; } } [ModelDB] public string TruckSpec { get { return _TruckSpec; } set { _TruckSpec = value; } } [ModelDB] public string TruckNo { get { return _TruckNo; } set { _TruckNo = value; } } [ModelDB] public string MblNo { get { return _MblNo; } set { _MblNo = value; } } [ModelDB] public string EndPortDate { get { return _EndPortDate; } set { _EndPortDate = value; } } [ModelDB] public string DrvCode { get { return _DrvCode; } set { _DrvCode = value; } } [ModelDB] public string DrvName { get { return _DrvName; } set { _DrvName = value; } } [ModelDB] public string Mobile { get { return _Mobile; } set { _Mobile = value; } } [ModelDB] public string YardCode { get { return _YardCode; } set { _YardCode = value; } } public string YardCode_Ref { get { return _YardCode_Ref; } set { _YardCode_Ref = value; } } [ModelDB] public string RtnYardCode { get { return _RtnYardCode; } set { _RtnYardCode = value; } } public string RtnYardCode_Ref { get { return _RtnYardCode_Ref; } set { _RtnYardCode_Ref = value; } } [ModelDB] public string VoyVeg { get { return _VoyVeg; } set { _VoyVeg = value; } } [ModelDB] public string OrgCode { get { return _OrgCode; } set { _OrgCode = value; } } [ModelDB] public string DDCode { get { return _DDCode; } set { _DDCode = value; } } public string PropertyRef { get { return _PropertyRef; } set { _PropertyRef = value; } } [ModelDB] public string LoadPlace { get { return _LoadPlace; } set { _LoadPlace = value; } } [ModelDB] public string BsType { get { return _bsType; } set { _bsType = value; } } [ModelDB] public string RefBillNo { get { return _RefBillNo; } set { _RefBillNo = value; } } [ModelDB] public string RefBillNoSe { get { return _RefBillNoSe; } set { _RefBillNoSe = value; } } [ModelDB] public string DGTYPE { get { return _DGTYPE; } set { _DGTYPE = value; } } [ModelDB] public string DGTYPECODE { get { return _DGTYPECODE; } set { _DGTYPECODE = value; } } [ModelDB] public string SECOND_DRV { get { return _SECOND_DRV; } set { _SECOND_DRV = value; } } private string _ArriveDate = string.Empty; private string _ArriveTime = string.Empty; [ModelDB] public string ArriveDate { get { return _ArriveDate; } set { _ArriveDate = value; } } [ModelDB] public string ArriveTime { get { return _ArriveTime; } set { _ArriveTime = value; } } public string DRFEESTATUS { get { return _DRFEESTATUS; } set { _DRFEESTATUS = value; } } public string CRFEESTATUS { get { return _CRFEESTATUS; } set { _CRFEESTATUS = value; } } [ModelDB] public string GOODSCOUNT { get { return _GOODSCOUNT; } set { _GOODSCOUNT = value; } } [ModelDB] public string CBM { get { return _CBM; } set { _CBM = value; } } [ModelDB] public decimal ISHW { get { return _ISHW; } set { _ISHW = value; } } [ModelDB] public string Remark { get { return _Remark; } set { _Remark = value; } } [ModelDB] public string GoodsName { get { return _GoodsName; } set { _GoodsName = value; } } #endregion #region 东来国际 private string _containerNo = string.Empty; private string _sealNo = string.Empty; private string _containerNoSe = string.Empty; private string _sealNoSe = string.Empty; [ModelDB] public string ContainerNo { get { return _containerNo; } set { _containerNo = value; } } [ModelDB] public string SealNo { get { return _sealNo; } set { _sealNo = value; } } [ModelDB] public string ContainerNoSe { get { return _containerNoSe; } set { _containerNoSe = value; } } [ModelDB] public string SealNoSe { get { return _sealNoSe; } set { _sealNoSe = value; } } #endregion public MsWlPcHead_ADLEdit ( ) { TableName = "tMsWlPcHead"; GId = "TMSPC" + Guid.NewGuid().ToString("N").ToUpper(); } override public string GetBillNoFieldName ( ) { return "GId"; } } [JsonObject] public class MsWlHaier : ModelObjectBillHead { #region private Fields private string _GID = string.Empty; private string _ACCDATE = string.Empty; private string _TruckNo = string.Empty; private string _DrvCode = string.Empty; private string _TotalMil = string.Empty; private string _FuelAmount = string.Empty; private string _XXF = string.Empty; private string _EBF = string.Empty; private string _DZXF = string.Empty; private string _LTSH = string.Empty; private string _LQF = string.Empty; private string _RGF = string.Empty; private string _YLS = string.Empty; private string _LCJL = string.Empty; private string _Amount_1 = string.Empty; private string _Tax = string.Empty; private string _ZFJL = string.Empty; private string _ZCGL = string.Empty; private string _YXCB = string.Empty; private string _YSSR = string.Empty; private string _CLBX = string.Empty; private string _CLZJ = string.Empty; private string _Amount_2 = string.Empty; private string _CLJL = string.Empty; private string _CLSJ = string.Empty; private string _AQKH = string.Empty; private string _Amount_3 = string.Empty; private string _LTKF = string.Empty; private string _FuelPrice = string.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB] public string ACCDATE { get { return _ACCDATE; } set { _ACCDATE = value; } } [ModelDB] public string TruckNo { get { return _TruckNo; } set { _TruckNo = value; } } [ModelDB] public string DrvCode { get { return _DrvCode; } set { _DrvCode = value; } } [ModelDB] public string TotalMil { get { return _TotalMil; } set { _TotalMil = value; } } [ModelDB] public string FuelAmount { get { return _FuelAmount; } set { _FuelAmount = value; } } [ModelDB] public string XXF { get { return _XXF; } set { _XXF = value; } } [ModelDB] public string EBF { get { return _EBF; } set { _EBF = value; } } [ModelDB] public string DZXF { get { return _DZXF; } set { _DZXF = value; } } [ModelDB] public string LTSH { get { return _LTSH; } set { _LTSH = value; } } [ModelDB] public string LQF { get { return _LQF; } set { _LQF = value; } } [ModelDB] public string RGF { get { return _RGF; } set { _RGF = value; } } [ModelDB] public string YLS { get { return _YLS; } set { _YLS = value; } } [ModelDB] public string LCJL { get { return _LCJL; } set { _LCJL = value; } } [ModelDB] public string Amount_1 { get { return _Amount_1; } set { _Amount_1 = value; } } [ModelDB] public string Tax { get { return _Tax; } set { _Tax = value; } } [ModelDB] public string ZFJL { get { return _ZFJL; } set { _ZFJL = value; } } [ModelDB] public string ZCGL { get { return _ZCGL; } set { _ZCGL = value; } } [ModelDB] public string YXCB { get { return _YXCB; } set { _YXCB = value; } } [ModelDB] public string YSSR { get { return _YSSR; } set { _YSSR = value; } } [ModelDB] public string CLBX { get { return _CLBX; } set { _CLBX = value; } } [ModelDB] public string CLZJ { get { return _CLZJ; } set { _CLZJ = value; } } [ModelDB] public string Amount_2 { get { return _Amount_2; } set { _Amount_2 = value; } } [ModelDB] public string CLJL { get { return _CLJL; } set { _CLJL = value; } } [ModelDB] public string CLSJ { get { return _CLSJ; } set { _CLSJ = value; } } [ModelDB] public string AQKH { get { return _AQKH; } set { _AQKH = value; } } [ModelDB] public string Amount_3 { get { return _Amount_3; } set { _Amount_3 = value; } } [ModelDB] public string LTKF { get { return _LTKF; } set { _LTKF = value; } } [ModelDB] public string FuelPrice { get { return _FuelPrice; } set { _FuelPrice = value; } } #endregion public MsWlHaier() { TableName = "tMsWl_HaierMain"; //GId = "TMSPC" + Guid.NewGuid().ToString("N").ToUpper(); } override public string GetBillNoFieldName() { return "GID"; } } [JsonObject] public class MsWlPcHead_WFSDEdit : ModelObjectBillHead { #region private Fields private string _ywType = "0121"; private decimal _timeMark = 0; private string _gId = String.Empty; private string _PGid = String.Empty; private string _BLTYPE = ""; private string _TRANSSTATUS = ""; private string _RowNumber = String.Empty; private string _OrgCode = ""; private string _BillNo = "*"; //路单号 private string _PcBillType = "3"; //派车类型 private string _PcBillTypeREF = string.Empty; //派车类型Ref private string _ExpDate = string.Empty;//派车日期 private string _GroupDate = string.Empty;//派车日 private string _ArriveDate = string.Empty;//装货日期 private string _ReturnDate = string.Empty;//卸货日期 private string _CustomerName = string.Empty;//客户名称(公司名称) private string _LinkMan = string.Empty;//客户名称 联系人 private string _F_CustomerName = string.Empty;//客户名称 发货人 private string _DrvName = string.Empty;//车队 private string _TruckNo = string.Empty;//车号 private string _MblNo = string.Empty;//Marstar业务号 private string _DstArea = string.Empty;// private string _DetiNation = string.Empty; private string _ContainerQty ="0"; private string _Ton = "0"; private string _GOODSCOUNT = "0"; private string _CBM = "0"; private string _LoadCount = "0"; private string _LoadPlace = string.Empty; private string _TruckSpec = string.Empty; private string _IsDouble = string.Empty; private string _Property = string.Empty; private string _YUNFEI = string.Empty; private string _HCHJ = string.Empty; private string _ZXF = string.Empty; private string _DDF = string.Empty; private string _QTFee = string.Empty; private string _TotalFee = string.Empty; private string _Remark = string.Empty; private string _FeeStatus = string.Empty; private string _UserCode = string.Empty; private string _UserName = string.Empty; private string _OrgName = string.Empty; private string _LrDate = string.Empty; private string _ddCode = ""; private string _PCSTATUSREF = string.Empty; private string _RefBillNo = string.Empty; //父业务bsno private string _RefBillNose = string.Empty; //派车单ID private string _voyVeg = String.Empty; private string _voyVeg_Ref = String.Empty; private string _etDate = String.Empty; private string _endPortDate = String.Empty; private string _MblNoSe = string.Empty; //父业务OPLBNAME private string _DispatchName = string.Empty; //父业务OPLBNAME private decimal _RoadFee =0; //父业务OPLBNAME private string _SalesName = string.Empty; private string _DRFEESTATUS = string.Empty; private string _CRFEESTATUS = string.Empty; private string _EndPortDate = string.Empty; private string _GoodsName = ""; private string _PORTLOAD = ""; private string _DESTINATION = ""; private string _CargoID = ""; private string _LoadFactory = ""; private string _ContainerNo = ""; private string _SealNo = ""; public List CtnList { get; set; } public List DocList { get; set; } public List FeeList { get; set; } public string[] FeeNameList { get; set; } #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BillNo { get { return _BillNo; } set { _BillNo = value; } } public string ywType { get { return _ywType; } set { _ywType = value; } } [ModelDB] public string PcBillType { get { return _PcBillType; } set { _PcBillType = value; } } public string PcBillTypeREF { get { return _PcBillTypeREF; } set { _PcBillTypeREF = value; } } public decimal timeMark { get { return _timeMark; } set { _timeMark = value; } } [ModelDB] public string gId { get { return _gId; } set { _gId = value; } } [ModelDB] public string PGid { get { return _PGid; } set { _PGid = value; } } [ModelDB] public string BLTYPE { get { return _BLTYPE; } set { _BLTYPE = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string TRANSSTATUS { get { return _TRANSSTATUS; } set { _TRANSSTATUS = value; } } public string RowNumber { get { return _RowNumber; } set { _RowNumber = value; } } [ModelDB] public string ExpDate { get { return _ExpDate; } set { _ExpDate = value; } } public string GroupDate { get { return _GroupDate; } set { _GroupDate = value; } } [ModelDB] public string ArriveDate { get { return _ArriveDate; } set { _ArriveDate = value; } } [ModelDB] public string ReturnDate { get { return _ReturnDate; } set { _ReturnDate = value; } } [ModelDB] public string CustomerName { get { return _CustomerName; } set { _CustomerName = value; } } [ModelDB] public string F_CustomerName { get { return _F_CustomerName; } set { _F_CustomerName = value; } } [ModelDB] public string DrvName { get { return _DrvName; } set { _DrvName = value; } } [ModelDB] public string DrvCode { get; set; } [ModelDB] public string TruckNo { get { return _TruckNo; } set { _TruckNo = value; } } [ModelDB] public string MblNo { get { return _MblNo; } set { _MblNo = value; } } [ModelDB] public string LinkMan { get { return _LinkMan; } set { _LinkMan = value; } } [ModelDB] public string DstArea { get { return _DstArea; } set { _DstArea = value; } } [ModelDB] public string DetiNation { get { return _DetiNation; } set { _DetiNation = value; } } [ModelDB] public string ContainerQty { get { return _ContainerQty; } set { _ContainerQty = value; } } [ModelDB] public string Ton { get { return _Ton; } set { _Ton = value; } } [ModelDB] public string GOODSCOUNT { get { return _GOODSCOUNT; } set { _GOODSCOUNT = value; } } [ModelDB] public string CBM { get { return _CBM; } set { _CBM = value; } } [ModelDB] public string LoadCount { get { return _LoadCount; } set { _LoadCount = value; } } [ModelDB] public string LoadPlace { get { return _LoadPlace; } set { _LoadPlace = value; } } [ModelDB] public string TruckSpec { get { return _TruckSpec; } set { _TruckSpec = value; } } [ModelDB] public string IsDouble { get { return _IsDouble; } set { _IsDouble = value; } } [ModelDB] public string Property { get { return _Property; } set { _Property = value; } } [ModelDB] public string ContainerNo { get { return _ContainerNo; } set { _ContainerNo = value; } } [ModelDB] public string SealNo { get { return _SealNo; } set { _SealNo = value; } } private string _SALECORPID = ""; [ModelDB] public string SALECORPID { get { return _SALECORPID; } set { _SALECORPID = value; } } public string SALECORP { set; get; } public string YUNFEI { get { return _YUNFEI; } set { _YUNFEI = value; } } public string HCHJ { get { return _HCHJ; } set { _HCHJ = value; } } public string ZXF { get { return _ZXF; } set { _ZXF = value; } } public string DDF { get { return _DDF; } set { _DDF = value; } } public string QTFee { get { return _QTFee; } set { _QTFee = value; } } public string TotalFee { get { return _TotalFee; } set { _TotalFee = value; } } [ModelDB] public string Remark { get { return _Remark; } set { _Remark = value; } } public string FEESTATUS { get { return _FeeStatus; } set { _FeeStatus = value; } } private string _FeeStatusref = String.Empty; public string FEESTATUSREF { get { return _FeeStatusref; } set { _FeeStatusref = value; } } [ModelDB] public string UserCode { get { return _UserCode; } set { _UserCode = value; } } [ModelDB] public string UserName { get { return _UserName; } set { _UserName = value; } } [ModelDB] public string OrgCode { get { return _OrgCode; } set { _OrgCode = value; } } [ModelDB] public string OrgName { get { return _OrgName; } set { _OrgName = value; } } [ModelDB] public string LrDate { get { return _LrDate; } set { _LrDate = value; } } [ModelDB] public string Ddcode { get { return _ddCode; } set { _ddCode = value; } } public string PCSTATUSREF { get { return _PCSTATUSREF; } set { _PCSTATUSREF = value; } } [ModelDB] public string RefBillNo { get { return _RefBillNo; } set { _RefBillNo = value; } } [ModelDB] public string RefBillNose { get { return _RefBillNose; } set { _RefBillNose = value; } } [ModelDB] public string MblNoSe { get { return _MblNoSe; } set { _MblNoSe = value; } } [ModelDB] public string VoyVeg { get { return _voyVeg; } set { _voyVeg = value; } } [ModelDB] public string EtDate { get { return _etDate; } set { _etDate = value; } } private string _containerType = String.Empty; [ModelDB] public string ContainerType { get { return _containerType; } set { _containerType = value; } } private string _containerTypeSe = String.Empty; [ModelDB] public string ContainerTypeSe { get { return _containerTypeSe; } set { _containerTypeSe = value; } } private string _linkTel = String.Empty; [ModelDB] public string LinkTel { get { return _linkTel; } set { _linkTel = value; } } private string _yardName = String.Empty; [ModelDB] public string YardName { get { return _yardName; } set { _yardName = value; } } private string _linkManSe = String.Empty; private string _linkTelSe = String.Empty; [ModelDB] public string LinkManSe { get { return _linkManSe; } set { _linkManSe = value; } } [ModelDB] public string LinkTelSe { get { return _linkTelSe; } set { _linkTelSe = value; } } private string _rtnYardName = String.Empty; [ModelDB(MDBType = ModelDBOprationType.Insert)] public string RtnYardName { get { return _rtnYardName; } set { _rtnYardName = value; } } private string _bsType = "0"; [ModelDB] public string BsType { get { return _bsType; } set { _bsType = value; } } private string _changedReson = string.Empty; [ModelDB] public string ChangedReson { get { return this._changedReson; } set { this._changedReson = value; } } private string _CustName = string.Empty; [ModelDB] public string CustName { get { return _CustName; } set { _CustName = value; } } private string _custLikeManName = string.Empty; [ModelDB] public string CustLikeManName { get { return _custLikeManName; } set { _custLikeManName = value; } } private string _custTel = string.Empty; [ModelDB] public string CustTel { get { return _custTel; } set { _custTel = value; } } [ModelDB] public decimal RoadFee { get { return _RoadFee; } set { _RoadFee = value; } } private string _factoryAddr = String.Empty; [ModelDB] public string FactoryAddr { get { return _factoryAddr; } set { _factoryAddr = value; } } [ModelDB] public string DispatchName { get { return _DispatchName; } set { _DispatchName = value; } } private string _INVOICENO = string.Empty; [ModelDB] public string INVOICENO { get { return _INVOICENO; } set { _INVOICENO = value; } } private string _KINDPKGS = string.Empty; [ModelDB] public string KINDPKGS { get { return _KINDPKGS; } set { _KINDPKGS = value; } } private string _CUSTNO = string.Empty; [ModelDB] public string CUSTNO { get { return _CUSTNO; } set { _CUSTNO = value; } } [ModelDB] public string SalesName { get { return _SalesName; } set { _SalesName = value; } } public string DRFEESTATUS { get { return _DRFEESTATUS; } set { _DRFEESTATUS = value; } } public string CRFEESTATUS { get { return _CRFEESTATUS; } set { _CRFEESTATUS = value; } } [ModelDB] public string EndPortDate { get { return _EndPortDate; } set { _EndPortDate = value; } } [ModelDB] public string GoodsName { get { return _GoodsName; } set { _GoodsName = value; } } [ModelDB] public string PORTLOAD { get { return _PORTLOAD; } set { _PORTLOAD = value; } } [ModelDB] public string DESTINATION { get { return _DESTINATION; } set { _DESTINATION = value; } } [ModelDB] public string CargoID { get { return _CargoID; } set { _CargoID = value; } } [ModelDB] public string LoadFactory { get { return _LoadFactory; } set { _LoadFactory = value; } } string _RtnDocStatus = ""; //[ModelDB] public string RtnDocStatus { get { return _RtnDocStatus; } set { _RtnDocStatus = value; } } string _RtnDocTime = ""; //[ModelDB] public string RtnDocTime { get { return _RtnDocTime; } set { _RtnDocTime = value; } } string _accdate = ""; [ModelDB] public string ACCDATE { get { return _accdate; } set { _accdate = value; } } [ModelDB] public string DCLASS { get; set; } [ModelDB] public string DUNNO { get; set; } public string OPSTATUS { get; set; } public string COLOR { get; set; } public string FuelPrice { get; set; } public decimal FuelQty { get; set; } = 0; public decimal RealMil { get; set; } = 0; public string TASKSTATUS { get; set; } = "未提交"; public string isEnd { get; set; } = "0"; #endregion public MsWlPcHead_WFSDEdit ( ) { TableName = "tMsWlPcHead"; gId = "SDPC" + Guid.NewGuid().ToString("N").ToUpper(); } override public string GetBillNoFieldName ( ) { return "GId"; } } public class MsWlPcHead_FH: MsWlPcHead_WFSDEdit { [ModelDB] new public string FuelPrice { get; set; } [ModelDB] new public decimal FuelQty { get; set; } = 0; [ModelDB] new public decimal RealMil { get; set; } = 0; //data.isEnd = Convert.ToString(reader["isEnd"]); } [JsonObject] public class MsWlPcHead_LTJYEdit : MsWlPcHead_WFSDEdit { #region private Fields private string _BillDate = string.Empty;//单据日期 private decimal _RealMil = 0;//单据日期 private string _ContainerNoSe = string.Empty; private string _IsLock = string.Empty; private string _GoodsName = string.Empty; #endregion #region Public Properties [ModelDB] public string BillDate { get { return _BillDate; } set { _BillDate = value; } } [ModelDB] public decimal RealMil { get { return _RealMil; } set { _RealMil = value; } } public string ContainerNoSe { get { return _ContainerNoSe; } set { _ContainerNoSe = value; } } public string IsLock { get { return _IsLock; } set { _IsLock = value; } } [ModelDB] public string GoodsName { get { return _GoodsName; } set { _GoodsName = value; } } #endregion } #region 参照部分 public class MsWlPcHeadRefMsWlTruck { public string TruckNo { get; set; } public string DrvCode { get; set; } public string DrvName { get; set; } public string Mobile { get; set; } public string WORKNOTruckNo { get; set; } public string COMPANYNAME { get; set; } public string TEAMNAME { get; set; } public string OWNER { get; set; } } public class MsWlPcHeadRefMsWlDriver { public string DrvCode { get; set; } public string DrvName { get; set; } public string CodeAndName { get; set; } public string Mobile { get; set; } } public class MsWlBsHeadRefMsContainers { public string ContainerNo { get; set; } } public class MsWlBsHeadRefMsSeals { public string ContainerNo { get; set; } public string SealNo { get; set; } } #endregion [JsonObject] public class MsWlMudidi { public string mudidi { get; set; } } [JsonObject] public class MsWlShiFaDi { public string shifadi { get; set; } } }