using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsOpRailway { [JsonObject] public class MsOpRailway : ModelObjectBillHead { #region 读写属性 private string _bsno = "railway" + Guid.NewGuid().ToString(); /// /// 业务编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get{ return _bsno; } set{ _bsno = value; } } //private string _ordertype = "操作录入"; ///// ///// 委托方式 ///// //[ModelDB(MDBType = ModelDBOprationType.Insert)] //public string ORDERTYPE //{ // get{ return _ordertype; } // set{ _ordertype = value; } //} private string _masterno = ""; /// /// 主编号 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string MASTERNO { get{ return _masterno; } set{ _masterno = value; } } private string _custno = ""; /// /// 委托编号 /// [ModelDB] public string CUSTNO { get{ return _custno; } set{ _custno = value; } } private string _mblno = ""; /// /// 主提单号 /// [ModelDB] public string MBLNO { get{ return _mblno; } set{ _mblno = value; } } private string _hblno = ""; /// /// 分提单号 /// [ModelDB] public string HBLNO { get{ return _hblno; } set{ _hblno = value; } } private bool _bsstatus = false; /// /// 业务状态 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public bool BSSTATUS { get{ return _bsstatus; } set{ _bsstatus = value; } } private string _BSSTATUSREF="未锁定"; /// /// 业务锁定_中文 /// public string BSSTATUSREF { get { return _BSSTATUSREF; } set { _BSSTATUSREF = value; } } private string _OPSTATUS = "接受委托"; /// /// 业务状态_中文 /// public string OPSTATUS { get { return _OPSTATUS; } set { _OPSTATUS = value; } } private bool _feestatus = false; /// /// 费用状态 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public bool FEESTATUS { get{ return _feestatus; } set{ _feestatus = value; } } private string _FEESTATUSREF = "未锁定"; /// /// 费用状态_中文 /// public string FEESTATUSREF { get { return _FEESTATUSREF; } set { _FEESTATUSREF = value; } } private string _FENPIAO = ""; /// /// 分票 /// public string FENPIAO { get { return _FENPIAO; } set { _FENPIAO = value; } } private string _bsdate = DateTime.Now.ToString("yyyy-MM-dd"); /// /// 接单日期 /// [ModelDB] public string BSDATE { get{ return _bsdate; } set{ _bsdate = value; } } private DateTime _createtime = DateTime.Now; /// /// 创建时间 /// [ModelDB] public DateTime CREATETIME { get { return _createtime; } set { _createtime = value; } } private string _accdate = DateTime.Now.ToString("yyyy-MM"); /// /// 会计期间 /// [ModelDB] public string ACCDATE { get{ return _accdate; } set{ _accdate = value; } } private string _customername = ""; /// /// 委托单位 /// [ModelDB] public string CUSTOMERNAME { get{ return _customername; } set{ _customername = value; } } private string _bssource = ""; /// /// 业务来源 /// [ModelDB] public string BSSOURCE { get{ return _bssource; } set{ _bssource = value; } } private string _bssourcedetail = ""; /// /// 来源明细 /// [ModelDB] public string BSSOURCEDETAIL { get{ return _bssourcedetail; } set{ _bssourcedetail = value; } } private string _inputby = ""; /// /// 录入人 /// [ModelDB] public string INPUTBY { get{ return _inputby; } set{ _inputby = value; } } private string _op = ""; /// /// 操作员 /// [ModelDB] public string OP { get{ return _op; } set{ _op = value; } } private string _custservice = ""; /// /// 客服员 /// [ModelDB] public string CUSTSERVICE { get{ return _custservice; } set{ _custservice = value; } } private string _sale = ""; /// /// 揽货人 /// [ModelDB] public string SALE { get{ return _sale; } set{ _sale = value; } } private string _corpid = ""; /// /// 分公司代码 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get{ return _corpid; } set{ _corpid = value; } } private string _saledept = ""; /// /// 所属部门 /// [ModelDB] public string SALEDEPT { get{ return _saledept; } set{ _saledept = value; } } private string _transno = ""; /// /// 运单号 /// [ModelDB] public string TRANSNO { get { return _transno; } set { _transno = value; } } private string _trainno = ""; /// /// 车板号 /// [ModelDB] public string TRAINNO { get{ return _trainno; } set{ _trainno = value; } } private string _transtype = "过境"; /// /// 发运形式 /// [ModelDB] public string TRANSTYPE { get { return _transtype; } set { _transtype = value; } } private string _bltype = "铁路单票"; /// /// 装运方式 /// [ModelDB] public string BLTYPE { get { return _bltype; } set { _bltype = value; } } private string _transdirect = ""; /// /// 发车方向 /// [ModelDB] public string TRANSDIRECT { get { return _transdirect; } set { _transdirect = value; } } private string _carrier = ""; /// /// 承运人 /// [ModelDB] public string CARRIER { get { return _carrier; } set { _carrier = value; } } private string _placeloadid = ""; /// /// 发货地代码 /// [ModelDB] public string PLACELOADID { get { return _placeloadid; } set { _placeloadid = value; } } private string _PlACERECEIPT = ""; /// /// 收货地 /// [ModelDB] public string PlACERECEIPT { get { return _PlACERECEIPT; } set { _PlACERECEIPT = value; } } private string _placeload = ""; /// /// 发货地 /// [ModelDB] public string PLACELOAD { get { return _placeload; } set { _placeload = value; } } private string _placeloadename = ""; /// /// 发货地英文 /// [ModelDB] public string PLACELOADENAME { get { return _placeloadename; } set { _placeloadename = value; } } private string _destinationid = ""; /// /// 目的地代码 /// [ModelDB] public string DESTINATIONID { get { return _destinationid; } set { _destinationid = value; } } private string _destination = ""; /// /// 目的地 /// [ModelDB] public string DESTINATION { get { return _destination; } set { _destination = value; } } private string _destinationename = ""; /// /// 目的地英文 /// [ModelDB] public string DESTINATIONENAME { get { return _destinationename; } set { _destinationename = value; } } private string _destinationdetail = ""; /// /// 目的地 /// [ModelDB] public string DESTINATIONDETAIL { get { return _destinationdetail; } set { _destinationdetail = value; } } private string _placetransitid = ""; /// /// 山口代码 /// [ModelDB] public string PLACETRANSITID { get { return _placetransitid; } set { _placetransitid = value; } } private string _placetransit = ""; /// /// 山口 /// [ModelDB] public string PLACETRANSIT { get { return _placetransit; } set { _placetransit = value; } } private string _placetransitename = ""; /// /// 山口英文 /// [ModelDB] public string PLACETRANSITENAME { get { return _placetransitename; } set { _placetransitename = value; } } private string _setoutdate; /// /// 发车日期 /// [ModelDB] public string SETOUTDATE { get { return _setoutdate; } set { _setoutdate = value; } } private string _trainreportdate; /// /// 报单日期 /// [ModelDB] public string TRAINREPORTDATE { get { return _trainreportdate; } set { _trainreportdate = value; } } private int _trainday = 0; /// /// 发车天数 /// [ModelDB] public int TRAINDAY { get { return _trainday; } set { _trainday = value; } } private string _stationtime; /// /// 进站日期 /// [ModelDB] public string STATIONTIME { get { return _stationtime; } set { _stationtime = value; } } private string _eta; /// /// 到港日期 /// [ModelDB] public string ETA { get { return _eta; } set { _eta = value; } } private string _prevessel = ""; /// /// 签出船名 /// [ModelDB] public string PREVESSEL { get { return _prevessel; } set { _prevessel = value; } } private string _prevoy = ""; /// /// 前程航次 /// [ModelDB] public string PREVOY { get { return _prevoy; } set { _prevoy = value; } } private int _vesselday = 0; /// /// 过驳天数 /// [ModelDB] public int VESSELDAY { get { return _vesselday; } set { _vesselday = value; } } private string _customdate; /// /// 报关日期 /// [ModelDB] public string CUSTOMDATE { get { return _customdate; } set { _customdate = value; } } private string _customcleardate; /// /// 通关日期 /// [ModelDB] public string CUSTOMCLEARDATE { get { return _customcleardate; } set { _customcleardate = value; } } private string _customtransitcorp; /// /// 转关行 /// [ModelDB] public string CUSTOMTRANSITCORP { get { return _customtransitcorp; } set { _customtransitcorp = value; } } private string _replacedate; /// /// 换单日期 /// [ModelDB] public string REPLACEDOCDATE { get { return _replacedate; } set { _replacedate = value; } } private string _shencode = ""; /// /// 申请代码 /// [ModelDB] public string SHENCODE { get { return _shencode; } set { _shencode = value; } } private string _codestatus = ""; /// /// 申请代码状态 /// [ModelDB] public string CODESTATUS { get { return _codestatus; } set { _codestatus = value; } } private string _shencodetime; /// /// 申请代码时间 /// [ModelDB] public string SHENCODETIME { get { return _shencodetime; } set { _shencodetime = value; } } private string _givecodetime; /// /// 提供代码时间 /// [ModelDB] public string GIVECODETIME { get { return _givecodetime; } set { _givecodetime = value; } } private string _arriveplacetransit; /// /// 到达山口时间 /// [ModelDB] public string ARRIVEPLACETRANSIT { get { return _arriveplacetransit; } set { _arriveplacetransit = value; } } private string _setoutplacetransit; /// /// 离开山口时间 /// [ModelDB] public string SETOUTPLACETRANSIT { get { return _setoutplacetransit; } set { _setoutplacetransit = value; } } private int _transitday = 0; /// /// 滞留山口天数 /// [ModelDB] public int TRANSITDAY { get { return _transitday; } set { _transitday = value; } } private string _retrainno = ""; /// /// 换装车号 /// [ModelDB] public string RETRAINNO { get { return _retrainno; } set { _retrainno = value; } } private string _retraindate = ""; /// /// 换装日期 /// [ModelDB] public string RETRAINDATE { get { return _retraindate; } set { _retraindate = value; } } private string _frplacetransitid = ""; /// /// 国外中转地代码 /// [ModelDB] public string FRPLACETRANSITID { get { return _frplacetransitid; } set { _frplacetransitid = value; } } private string _frplacetransit = ""; /// /// 国外中转地 /// [ModelDB] public string FRPLACETRANSIT { get { return _frplacetransit; } set { _frplacetransit = value; } } private string _arrivefrplacetransit = ""; /// /// 到达中转地 /// [ModelDB] public string ARRIVEFRPLACETRANSIT { get { return _arrivefrplacetransit; } set { _arrivefrplacetransit = value; } } private string _arrivaldate = ""; /// /// 抵达日期 /// [ModelDB] public string ARRIVALDATE { get { return _arrivaldate; } set { _arrivaldate = value; } } private string _rectntype = ""; /// /// 箱到目的地处理方式 /// [ModelDB] public string RECTNTYPE { get { return _rectntype; } set { _rectntype = value; } } private string _rectndate = ""; /// /// 还箱日期 /// [ModelDB] public string RECTNDATE { get { return _rectndate; } set { _rectndate = value; } } private string _onroaddate = ""; /// /// 在途日期 /// [ModelDB] public string ONROADDATE { get { return _onroaddate; } set { _onroaddate = value; } } private string _onroadplace = ""; /// /// 在途运踪 /// [ModelDB] public string ONROADPLACE { get { return _onroadplace; } set { _onroadplace = value; } } private string _returnctncorp = ""; /// /// 返箱公司 /// [ModelDB] public string RETURNCTNCORP { get { return _returnctncorp; } set { _returnctncorp = value; } } private string _returndate = ""; /// /// 返程日期 /// [ModelDB] public string RETURNDATE { get { return _returndate; } set { _returndate = value; } } private string _receivectndate = ""; /// /// 接受箱日期 /// [ModelDB] public string RECEIVECTNDATE { get { return _receivectndate; } set { _receivectndate = value; } } private string _receiveyard = ""; /// /// 收箱场站 /// [ModelDB] public string RECEIVEYARD { get { return _receiveyard; } set { _receiveyard = value; } } private string _ctnsource = ""; [ModelDB] public string CTNSOURCE { get { return _ctnsource; } set { _ctnsource = value; } } private string _ctnall = ""; /// /// 表现形式 /// [ModelDB] public string CTNALL { get { return _ctnall; } set { _ctnall = value; } } private int _ctnnum = 1; /// /// 箱量 /// [ModelDB] public int CTNNUM { get { return _ctnnum; } set { _ctnnum = value; } } private string _cntrno = ""; /// /// 箱号 /// [ModelDB] public string CNTRNO { get { return _cntrno; } set { _cntrno = value; } } private string _sealno = ""; /// /// 封号 /// [ModelDB] public string SEALNO { get { return _sealno; } set { _sealno = value; } } private string _frsealno = ""; /// /// 封号 /// [ModelDB] public string FRSEALNO { get { return _frsealno; } set { _frsealno = value; } } private int _pkgs = 0; /// /// 件数 /// [ModelDB] public int PKGS { get{ return _pkgs; } set{ _pkgs = value; } } private string _kindpkgs = ""; /// /// 件数包装 /// [ModelDB] public string KINDPKGS { get{ return _kindpkgs; } set{ _kindpkgs = value; } } private decimal _cbm = 0; /// /// 立方数/尺码 /// [ModelDB] public decimal CBM { get{ return _cbm; } set{ _cbm = value; } } private string _goodsname = ""; /// /// 品名 /// [ModelDB] public string GOODSNAME { get { return _goodsname; } set { _goodsname = value; } } private decimal _kgs = 0; /// /// 毛重 /// [ModelDB] public decimal KGS { get { return _kgs; } set { _kgs = value; } } private decimal _ctnweight = 0; /// /// 箱皮重 /// [ModelDB] public decimal CTNWEIGHT { get { return _ctnweight; } set { _ctnweight = value; } } [ModelDB] private string _orderno = ""; /// /// 订舱编号 /// [ModelDB] public string ORDERNO { get{ return _orderno; } set{ _orderno = value; } } private bool _isvou = false; /// /// 是否生成凭证 /// [ModelDB] public bool ISVOU { get{ return _isvou; } set{ _isvou = value; } } private string _vouno = ""; /// /// 凭证号 /// [ModelDB] public string VOUNO { get{ return _vouno; } set{ _vouno = value; } } private string _remark = ""; /// /// 备注 /// [ModelDB] public string REMARK { get{ return _remark; } set{ _remark = value; } } private string _doc = ""; /// /// 单证 /// [ModelDB] public string DOC { get{ return _doc; } set{ _doc = value; } } private string _stlname = ""; /// /// 结算方式 /// [ModelDB] public string STLNAME { get{ return _stlname; } set{ _stlname = value; } } private string _stldate; /// /// 结算时间 /// [ModelDB] public string STLDATE { get{ return _stldate; } set{ _stldate = value; } } private string _operatorcode = ""; /// /// 客户操作代码 /// [ModelDB] public string OPERATORCODE { get{ return _operatorcode; } set{ _operatorcode = value; } } private string _operator = ""; /// /// 客户操作名称 /// [ModelDB] public string OPERATOR { get{ return _operator; } set{ _operator = value; } } private string _operatoremail = ""; /// /// 操作电子邮箱 /// [ModelDB] public string OPERATOREMAIL { get{ return _operatoremail; } set{ _operatoremail = value; } } private string _operatortel = ""; /// /// 操作电话 /// [ModelDB] public string OPERATORTEL { get{ return _operatortel; } set{ _operatortel = value; } } private string _operatorfax = ""; /// /// 操作传真 /// [ModelDB] public string OPERATORFAX { get{ return _operatorfax; } set{ _operatorfax = value; } } private string _financialstaffcode = ""; /// /// 客户财务代码 /// [ModelDB] public string FINANCIALSTAFFCODE { get{ return _financialstaffcode; } set{ _financialstaffcode = value; } } private string _financialstaff = ""; /// /// 客户财务名称 /// [ModelDB] public string FINANCIALSTAFF { get{ return _financialstaff; } set{ _financialstaff = value; } } private string _financialstaffemail = ""; /// /// 财务电子邮箱 /// [ModelDB] public string FINANCIALSTAFFEMAIL { get{ return _financialstaffemail; } set{ _financialstaffemail = value; } } private string _financialstafftel = ""; /// /// 财务电话 /// [ModelDB] public string FINANCIALSTAFFTEL { get{ return _financialstafftel; } set{ _financialstafftel = value; } } private string _financialstafffax = ""; /// /// 财务传真 /// [ModelDB] public string FINANCIALSTAFFFAX { get{ return _financialstafffax; } set{ _financialstafffax = value; } } private string _ISPRINTPR = ""; public string ISPRINTPR { get { return _ISPRINTPR; } set { _ISPRINTPR = value; } } #endregion public MsOpRailway() { TableName = "op_railway"; } override public string GetBillNoFieldName() { return "BSNO"; } } [JsonObject] public class MsOpRailwayTracking : ModelObjectBillBody { #region 读写属性 private string _gid = ""; /// /// 编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string TK_ID { get { return _gid; } set { _gid = value; } } private string _BSNO = ""; /// /// 业务编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } private string _sortno = ""; /// /// 序号 /// [ModelDB] public string SORTNO { get { return _sortno; } set { _sortno = value; } } private string _inputby = ""; /// /// 录入人 /// [ModelDB] public string INPUTBY { get { return _inputby; } set { _inputby = value; } } private string _inputdate = ""; /// /// 录入日期 /// [ModelDB] public string INPUTDATE { get { return _inputdate; } set { _inputdate = value; } } private string _trackdate = ""; /// /// 动态日期 /// [ModelDB] public string TRACKDATE { get { return _trackdate; } set { _trackdate = value; } } private string _cntrno = ""; /// /// 箱号 /// [ModelDB] public string CNTRNO { get { return _cntrno; } set { _cntrno = value; } } private string _sealno = ""; /// /// 封号 /// [ModelDB] public string SEALNO { get { return _sealno; } set { _sealno = value; } } private string _efcntr = ""; /// /// 空重箱 /// [ModelDB] public string EFCNTR { get { return _efcntr; } set { _efcntr = value; } } private string _trainno = ""; /// /// 车板号 /// [ModelDB] public string TRAINNO { get { return _trainno; } set { _trainno = value; } } private string _frtrainno = ""; /// /// 国外车号 /// [ModelDB] public string FRTRAINNO { get { return _frtrainno; } set { _frtrainno = value; } } private string _activity = ""; /// /// 动态 /// [ModelDB] public string ACTIVITY { get { return _activity; } set { _activity = value; } } private string _location = ""; /// /// 动态地点 /// [ModelDB] public string LOCATION { get { return _location; } set { _location = value; } } private string _locationid = ""; /// /// 动态地点代码 /// [ModelDB] public string LOCATIONID { get { return _locationid; } set { _locationid = value; } } private decimal _distance = 0; /// /// 距离 /// [ModelDB] public decimal DISTANCE { get { return _distance; } set { _distance = value; } } private decimal _DISTANCEDEST = 0; /// /// 距离 /// [ModelDB] public decimal DISTANCEDEST { get { return _DISTANCEDEST; } set { _DISTANCEDEST = value; } } private string _remark = ""; /// ///备注 /// [ModelDB] public string REMARK { get { return _remark; } set { _remark = value; } } #endregion public MsOpRailwayTracking() { TableName = "op_railway_tracking"; } } [JsonObject] public class CodeRailWayTracking : ModelObjectBillBody { #region private Fields private string _GID = String.Empty; private string _TRACKINGCODE = String.Empty; private string _REMARK = String.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB] public string TRACKINGCODE { get { return _TRACKINGCODE; } set { _TRACKINGCODE = value; } } [ModelDB] public string REMARK { get { return _REMARK; } set { _REMARK = value; } } #endregion public CodeRailWayTracking() { TableName = "code_railwaytracking"; } } // }