using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsOpReceipt { [JsonObject] public class MsOpReceiptEntity : ModelObjectBillBody { #region Public Properties private string _gid = ""; /// /// 惟一编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _gid; } set { _gid = value; } } private string _bsno = ""; /// /// 关联编号/业务编号BSNO /// [ModelDB] public string BSNO { get { return _bsno; } set { _bsno = value; } } private string _receiptno = ""; /// /// 单据编号 /// [ModelDB] public string RECEIPTNO { get { return _receiptno; } set { _receiptno = value; } } private string _receipttype = ""; /// /// 单据类型 /// [ModelDB] public string RECEIPTTYPE { get { return _receipttype; } set { _receipttype = value; } } private int _DOCNUM =0; /// /// 单据数量 /// [ModelDB] public int DOCNUM { get { return _DOCNUM; } set { _DOCNUM = value; } } private string _receive_man = ""; /// /// 接单人 /// [ModelDB] public string RECEIVE_MAN { get { return _receive_man; } set { _receive_man = value; } } private string _receive_date = ""; /// /// 接单日期 /// [ModelDB] public string RECEIVE_DATE { get { return _receive_date; } set { _receive_date = value; } } private string _send_man = ""; /// /// 送单人 /// [ModelDB] public string SEND_MAN { get { return _send_man; } set { _send_man = value; } } private string _send_date = ""; /// /// 送单日期 /// [ModelDB] public string SEND_DATE { get { return _send_date; } set { _send_date = value; } } private string _trancer = ""; /// /// 送单的快递公司 /// [ModelDB] public string TRANCER { get { return _trancer; } set { _trancer = value; } } private string _trancno = ""; /// /// 送单的快递单号 /// [ModelDB] public string TRANCNO { get { return _trancno; } set { _trancno = value; } } private bool _isrepeat = false; /// /// 是否回单 /// [ModelDB] public bool ISREPEAT { get { return _isrepeat; } set { _isrepeat = value; } } private string _repeat_man = ""; /// /// 回单人 /// [ModelDB] public string REPEAT_MAN { get { return _repeat_man; } set { _repeat_man = value; } } private string _repeat_date = ""; /// /// 回单日期 /// [ModelDB] public string REPEAT_DATE { get { return _repeat_date; } set { _repeat_date = value; } } private bool _isreceive = false; /// /// 是否还单 /// [ModelDB] public bool ISRECEIVE { get { return _isreceive; } set { _isreceive = value; } } private string _return_man = ""; /// /// 还单人 /// [ModelDB] public string RETURN_MAN { get { return _return_man; } set { _return_man = value; } } private string _return_date = ""; /// /// 还单日期 /// [ModelDB] public string RETURN_DATE { get { return _return_date; } set { _return_date = value; } } private string _return_trancer = ""; /// /// 还单的快递公司 /// [ModelDB] public string RETURN_TRANCER { get { return _return_trancer; } set { _return_trancer = value; } } private string _return_trancno = ""; /// /// 还单的快递单号 /// [ModelDB] public string RETURN_TRANCNO { get { return _return_trancno; } set { _return_trancno = value; } } private string _remark = ""; /// /// 备注 /// [ModelDB] public string REMARK { get { return _remark; } set { _remark = value; } } private string _corpid = ""; /// /// 分公司代码 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get { return _corpid; } set { _corpid = value; } } private string _createuser = ""; /// /// 创建人gid /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATEUSER { get { return _createuser; } set { _createuser = value; } } private string _createtime = DateTime.Now.ToString(); /// /// 创建时间 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATETIME { get { return _createtime; } set { _createtime = value; } } private string _modifieduser = ""; /// /// 更改操作人gid /// [ModelDB] public string MODIFIEDUSER { get { return _modifieduser; } set { _modifieduser = value; } } private string _modifiedtime = DateTime.Now.ToString(); /// /// 更改操作时间 /// [ModelDB] public string MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } private string _receive_trancno = ""; /// /// 接单快递单号 /// [ModelDB] public string RECEIVE_TRANCNO { get { return _receive_trancno; } set { _receive_trancno = value; } } private string _repeat_trancno = ""; /// /// 接单快递单号 /// [ModelDB] public string REPEAT_TRANCNO { get { return _repeat_trancno; } set { _repeat_trancno = value; } } #endregion public MsOpReceiptEntity() { TableName = "op_receipt"; } override public string GetBillNoFieldName() { return "BSNO"; } } [JsonObject] public class MsOpReceipt : MsOpReceiptEntity { /// /// 会计期间 /// public string ACCDATE { get; set; } public string OPLB { get; set; } public string OPLBNAME { get; set; } public string OPTYPE { get; set; } /// /// 主提单号 /// public string MBLNO { get; set; } /// /// 分提单号 /// public string HBLNO { get; set; } /// /// 委托编号 /// public string CUSTNO { get; set; } public string CUSTOMNO { get; set; } public string APPLYNO { get; set; } public string CARGOID { get; set; } public string FORWARDER { get; set; } /// /// 委托单位 /// public string CUSTOMERNAME { get; set; } /// /// 船名 /// public string VESSEL { get; set; } /// /// 航次 /// public string VOYNO { get; set; } /// /// 开船日期 /// public string ETD { get; set; } /// /// 卸货港代码 /// public string PORTLOAD { get; set; } /// /// 卸货港 /// public string PORTDISCHARGE { get; set; } public string DESTINATION { get; set; } /// /// 录入人 /// public string INPUTBY { get; set; } /// /// 操作员 /// public string OP { get; set; } /// /// 客服 /// public string CUSTSERVICE { get; set; } /// /// 单证 /// public string DOC { get; set; } /// /// 揽货人 /// public string SALE { get; set; } /// /// 业务来源 /// public string BSSOURCE { get; set; } /// /// 来源明细 /// public string BSSOURCEDETAIL { get; set; } public MsOpReceipt() { TableName = "op_receipt"; } } [JsonObject] public class MsReceiptUnit : ModelObjectBillBody { private string _unit = String.Empty; private string _sunit = String.Empty; private decimal _quantity = 0; public string UNIT { get { return _unit; } set { _unit = value; } } public string SUNIT { get { return _sunit; } set { _sunit = value; } } public decimal QUANTITY { get { return _quantity; } set { _quantity = value; } } } [JsonObject] public class MsReceiptCurr : ModelObjectBillBody { private string _Curr = String.Empty; private decimal _defrate = 0; #region Public Properties public string CURR { get { return _Curr; } set { _Curr = value; } } public decimal DEFRATE { get { return _defrate; } set { _defrate = value; } } #endregion } [JsonObject] public class OPCODE : ModelObjectBillBody { private string _opcode = String.Empty; #region Public Properties public string OPID { get { return _opcode; } set { _opcode = value; } } #endregion } [JsonObject] public class ReceiptTypeRefModel { public string ReceiptCode { get; set; } public string Name { get; set; } public string DefaultCurr { get; set; } public string Description { get; set; } public string CodeAndName { get; set; } public string DefaultDebit{get; set;} public string DefaultCredit { get; set; } } //单据文档地址表 [JsonObject] public class ReceiptDocmb : ModelObjectBillBody { #region private Fields private string _GID = string.Empty; private string _RECEIPTTYPE = string.Empty; private string _R_GID = string.Empty; private string _BSNO = string.Empty; private string _URL = string.Empty; private string _Driect_URL = string.Empty; private string _MODIFIEDUSER = string.Empty; private string _MODIFIEDUSERef = string.Empty; private string _MODIFIEDTIME = string.Empty; #endregion #region public Fields [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB] public string R_GID { get { return _R_GID; } set { _R_GID = value; } } [ModelDB] public string RECEIPTTYPE { get { return _RECEIPTTYPE; } set { _RECEIPTTYPE = value; } } [ModelDB] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } [ModelDB] public string URL { get { return _URL; } set { _URL = value; } } [ModelDB] public string Driect_URL { get { return _Driect_URL; } set { _Driect_URL = value; } } [ModelDB] public string MODIFIEDUSER { get { return _MODIFIEDUSER; } set { _MODIFIEDUSER = value; } } public string MODIFIEDUSERRef { get { return _MODIFIEDUSERef; } set { _MODIFIEDUSERef = value; } } [ModelDB] public string MODIFIEDTIME { get { return _MODIFIEDTIME; } set { _MODIFIEDTIME = value; } } private string _documentattachedcode = ""; /// /// 易航线_随附单证代码//需求编号:SR2017081100003 /// [ModelDB] public string DOCUMENTATTACHEDCODE { get { return _documentattachedcode; } set { _documentattachedcode = value; } } private string _documentattachedno = ""; /// /// 易航线_随附单证编号//需求编号:SR2017081100003 /// [ModelDB] public string DOCUMENTATTACHEDNO { get { return _documentattachedno; } set { _documentattachedno = value; } } private bool _ISPUBLIC = false; /// /// /// [ModelDB] public bool ISPUBLIC { get { return _ISPUBLIC; } set { _ISPUBLIC = value; } } #endregion public ReceiptDocmb() { // TableName = "tMsWlPcHead"; TableName = "Receipt_Doc"; } public override string GetBillNoFieldName() { return "BSNO"; } } }