using System;
using HcUtility.Core;
using Newtonsoft.Json;
using NPOI.OpenXmlFormats.Dml;
namespace DSWeb.MvcShipping.Models.MsOpExpress
{
[JsonObject]
public class MsOpExpress : ModelObjectBillHead
{
#region 读写属性
private string _gid ="*";
///
/// 业务编号
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _EXNO = "";
///
/// 委托编号
///
[ModelDB]
public string EXNO
{
get { return _EXNO; }
set { _EXNO = value; }
}
private string _BILLDATE = DateTime.Now.ToString("yyyy-MM-dd");
///
/// 创建时间
///
[ModelDB]
public string BILLDATE
{
get { return _BILLDATE; }
set { _BILLDATE = value; }
}
private string _BILLSTATUS = "新建";
[ModelDB]
public string BILLSTATUS
{
get { return _BILLSTATUS; }
set { _BILLSTATUS = value; }
}
private string _BILLTYPE = "";
[ModelDB]
public string BILLTYPE
{
get { return _BILLTYPE; }
set { _BILLTYPE = value; }
}
private string _EXPRESSCORP = "";
///
///
[ModelDB]
public string EXPRESSCORP
{
get { return _EXPRESSCORP; }
set { _EXPRESSCORP = value; }
}
private string _SENDERCUST = "";
///
///
[ModelDB]
public string SENDERCUST
{
get { return _SENDERCUST; }
set { _SENDERCUST = value; }
}
private string _SENDERATTN = "";
///
///
[ModelDB]
public string SENDERATTN
{
get { return _SENDERATTN; }
set { _SENDERATTN = value; }
}
private string _SENDERPROVINCE = "";
///
///
[ModelDB]
public string SENDERPROVINCE
{
get { return _SENDERPROVINCE; }
set { _SENDERPROVINCE = value; }
}
private string _SENDERCITY = "";
///
///
[ModelDB]
public string SENDERCITY
{
get { return _SENDERCITY; }
set { _SENDERCITY = value; }
}
private string _SENDER = "";
///
///
[ModelDB]
public string SENDER
{
get { return _SENDER; }
set { _SENDER = value; }
}
private string _SENDERADDR = "";
///
///
[ModelDB]
public string SENDERADDR
{
get { return _SENDERADDR; }
set { _SENDERADDR = value; }
}
private string _SENDERPOST = "";
///
///
[ModelDB]
public string SENDERPOST
{
get { return _SENDERPOST; }
set { _SENDERPOST = value; }
}
private string _SENDERTEL = "";
///
///
[ModelDB]
public string SENDERTEL
{
get { return _SENDERTEL; }
set { _SENDERTEL = value; }
}
private string _RECEIVECUST = "";
///
///
[ModelDB]
public string RECEIVECUST
{
get { return _RECEIVECUST; }
set { _RECEIVECUST = value; }
}
private string _RECEIVEATTN = "";
///
///
[ModelDB]
public string RECEIVEATTN
{
get { return _RECEIVEATTN; }
set { _RECEIVEATTN = value; }
}
private string _RECEIVEPROVINCE = "";
///
///
[ModelDB]
public string RECEIVEPROVINCE
{
get { return _RECEIVEPROVINCE; }
set { _RECEIVEPROVINCE = value; }
}
private string _RECEIVECITY = "";
///
///
[ModelDB]
public string RECEIVECITY
{
get { return _RECEIVECITY; }
set { _RECEIVECITY = value; }
}
private string _RECEIVE= "";
///
///
[ModelDB]
public string RECEIVE
{
get { return _RECEIVE; }
set { _RECEIVE = value; }
}
private string _RECEIVEADDR = "";
///
///
[ModelDB]
public string RECEIVEADDR
{
get { return _RECEIVEADDR; }
set { _RECEIVEADDR = value; }
}
private string _RECEIVEPOST = "";
///
///
[ModelDB]
public string RECEIVEPOST
{
get { return _RECEIVEPOST; }
set { _RECEIVEPOST = value; }
}
private string _RECEIVETEL = "";
///
///
[ModelDB]
public string RECEIVETEL
{
get { return _RECEIVETEL; }
set { _RECEIVETEL = value; }
}
private string _GOODSNAME = "";
///
///
[ModelDB]
public string GOODSNAME
{
get { return _GOODSNAME; }
set { _GOODSNAME = value; }
}
private string _REMARKS = "";
///
///
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = 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 _createuserref = "";
public string CREATEUSERREF
{
get { return _createuserref; }
set { _createuserref = value; }
}
private string _createtime = DateTime.Now.ToString();
///
/// 创建时间
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CREATETIME
{
get { return _createtime; }
set { _createtime = value; }
}
private string _BILLFEE = "0";
///
/// 快递费
///
[ModelDB]
public string BILLFEE
{
get { return _BILLFEE; }
set { _BILLFEE = value; }
}
private decimal _EXCOUNT = 0;
///
/// 快递费
///
[ModelDB]
public decimal EXCOUNT
{
get { return _EXCOUNT; }
set { _EXCOUNT = value; }
}
#endregion
public MsOpExpress()
{
TableName = "op_express";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
[JsonObject]
public class MsOpReceiptEntity : ModelObjectBillBody
{
#region Public Properties
private string _gid = "";
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _expid = "";
public string EXPID
{
get { return _expid; }
set { _expid = value; }
}
private string _docid = "";
public string DOCID
{
get { return _docid; }
set { _docid = value; }
}
private string _doctype = "";
public string DOCTYPE
{
get { return _doctype; }
set { _doctype = value; }
}
private string _mblno = "";
public string MBLNO
{
get { return _mblno; }
set { _mblno = value; }
}
private string _custno = "";
public string CUSTNO
{
get { return _custno; }
set { _custno = value; }
}
private string _customername = "";
public string CUSTOMERNAME
{
get { return _customername; }
set { _customername = value; }
}
private string _oplbname = "";
public string OPLBNAME
{
get { return _oplbname; }
set { _oplbname = value; }
}
private string _sale = "";
public string SALE
{
get { return _sale; }
set { _sale = value; }
}
private string _op = "";
public string OP
{
get { return _op; }
set { _op = value; }
}
private string _bsno = "";
public string BSNO
{
get { return _bsno; }
set { _bsno = value; }
}
private string _receiptno = "";
public string RECEIPTNO
{
get { return _receiptno; }
set { _receiptno = value; }
}
private string _receipttype = "";
public string RECEIPTTYPE
{
get { return _receipttype; }
set { _receipttype = value; }
}
private string _receipttypeno = "";
public string RECEIPTTYPENO
{
get { return _receipttypeno; }
set { _receipttypeno = value; }
}
private string _receive_man = "";
public string RECEIVE_MAN
{
get { return _receive_man; }
set { _receive_man = value; }
}
private string _receive_date = "";
public string RECEIVE_DATE
{
get { return _receive_date; }
set { _receive_date = value; }
}
private string _send_man = "";
public string SEND_MAN
{
get { return _send_man; }
set { _send_man = value; }
}
private string _send_date = "";
public string SEND_DATE
{
get { return _send_date; }
set { _send_date = value; }
}
private string _trancer = "";
public string TRANCER
{
get { return _trancer; }
set { _trancer = value; }
}
private string _trancno = "";
public string TRANCNO
{
get { return _trancno; }
set { _trancno = value; }
}
private string _isrepeat = "0";
public string ISREPEAT
{
get { return _isrepeat; }
set { _isrepeat = value; }
}
private string _repeat_man = "";
public string REPEAT_MAN
{
get { return _repeat_man; }
set { _repeat_man = value; }
}
private string _repeat_date = "";
public string REPEAT_DATE
{
get { return _repeat_date; }
set { _repeat_date = value; }
}
private string _isreceive = "0";
public string ISRECEIVE
{
get { return _isreceive; }
set { _isreceive = value; }
}
private string _return_man = "";
public string RETURN_MAN
{
get { return _return_man; }
set { _return_man = value; }
}
private string _return_date = "";
public string RETURN_DATE
{
get { return _return_date; }
set { _return_date = value; }
}
private string _return_trancer = "";
public string RETURN_TRANCER
{
get { return _return_trancer; }
set { _return_trancer = value; }
}
private string _return_trancno = "";
public string RETURN_TRANCNO
{
get { return _return_trancno; }
set { _return_trancno = value; }
}
private string _remark = "";
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
private string _corpid = "";
public string CORPID
{
get { return _corpid; }
set { _corpid = value; }
}
private string _createuser = "";
public string CREATEUSER
{
get { return _createuser; }
set { _createuser = value; }
}
private string _createtime = DateTime.Now.ToString();
public string CREATETIME
{
get { return _createtime; }
set { _createtime = value; }
}
private string _modifieduser = "";
public string MODIFIEDUSER
{
get { return _modifieduser; }
set { _modifieduser = value; }
}
private string _modifiedtime = DateTime.Now.ToString();
public string MODIFIEDTIME
{
get { return _modifiedtime; }
set { _modifiedtime = value; }
}
private string _receive_trancno = "";
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 MsOpAddress : ModelObjectBillHead
{
#region Public Properties
private string _gid = "";
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
//收件人
private string _name = "";
[ModelDB]
public string NAME
{
get { return _name; }
set { _name = value; }
}
//收件公司
private string _corpname = "";
[ModelDB]
public string CORPNAME
{
get { return _corpname; }
set { _corpname = value; }
}
//实际收件公司名称
private string _corpnamerv = "";
[ModelDB]
public string CORPNAMERV
{
get { return _corpnamerv; }
set { _corpnamerv = value; }
}
//省份
private string _province = "";
[ModelDB]
public string PROVINCE
{
get { return _province; }
set { _province = value; }
}
//目的城市
private string _desti = "";
[ModelDB]
public string DESTI
{
get { return _desti; }
set { _desti = value; }
}
//地址
private string _address = "";
[ModelDB]
public string ADDRESS
{
get { return _address; }
set { _address = value; }
}
//收件电话
private string _tel = "";
[ModelDB]
public string TEL
{
get { return _tel; }
set { _tel = value; }
}
//邮编
private string _postcode = "";
[ModelDB]
public string POSTCODE
{
get { return _postcode; }
set { _postcode = value; }
}
#endregion
public MsOpAddress()
{
TableName = "op_express_address";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
[JsonObject]
public class MsOpSFPrint : ModelObjectBillHead
{
#region Public Properties
private string _gid = "";
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
//顺丰单号
private string _mailno = "";
[ModelDB]
public string mailno
{
get { return _mailno; }
set { _mailno = value; }
}
//订单号
private string _orderid = "";
[ModelDB]
public string orderid
{
get { return _orderid; }
set { _orderid = value; }
}
//出发地
private string _origincode = "";
[ModelDB]
public string origincode
{
get { return _origincode; }
set { _origincode = value; }
}
//目的地
private string _destcode = "";
[ModelDB]
public string destcode
{
get { return _destcode; }
set { _destcode = value; }
}
//时效类型
private string _proCode = "";
[ModelDB]
public string proCode
{
get { return _proCode; }
set { _proCode = value; }
}
//目的地
private string _destRouteLabel = "";
[ModelDB]
public string destRouteLabel
{
get { return _destRouteLabel; }
set { _destRouteLabel = value; }
}
//单元区域编码
private string _destTeamCode = "";
[ModelDB]
public string destTeamCode
{
get { return _destTeamCode; }
set { _destTeamCode = value; }
}
//进港映射码
private string _codingMapping = "";
[ModelDB]
public string codingMapping
{
get { return _codingMapping; }
set { _codingMapping = value; }
}
//二维码
private string _twoDimensionCode = "";
[ModelDB]
public string twoDimensionCode
{
get { return _twoDimensionCode; }
set { _twoDimensionCode = value; }
}
//a标
private string _abFlag = "";
[ModelDB]
public string abFlag
{
get { return _abFlag; }
set { _abFlag = value; }
}
//出港映射码
private string _codingMappingOut = "";
[ModelDB]
public string codingMappingOut
{
get { return _codingMappingOut; }
set { _codingMappingOut = value; }
}
//rls_code返回调用代码
private string _rls_code = "";
[ModelDB]
public string rlsCode
{
get { return _rls_code; }
set { _rls_code = value; }
}
/*
//invoke_result返回调用结果
private string _invoke_result = "";
[ModelDB]
public string invoke_result
{
get { return _invoke_result; }
set { _invoke_result = value; }
}
//错误信息
private string _errorDesc = "";
[ModelDB]
public string errorDesc
{
get { return _errorDesc; }
set { _errorDesc = value; }
}
*/
#endregion
public MsOpSFPrint()
{
TableName = "op_express_sfprint";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
//
}