|
|
using System;
|
|
|
using HcUtility.Core;
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
namespace DSWeb.MvcShipping.Models.MsOpReceipt
|
|
|
{
|
|
|
[JsonObject]
|
|
|
public class MsOpReceiptEntity : ModelObjectBillBody
|
|
|
{
|
|
|
#region Public Properties
|
|
|
private string _gid = "";
|
|
|
/// <summary>
|
|
|
/// 惟一编号
|
|
|
/// </summary>
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
public string GID
|
|
|
{
|
|
|
get { return _gid; }
|
|
|
set { _gid = value; }
|
|
|
}
|
|
|
|
|
|
private string _bsno = "";
|
|
|
/// <summary>
|
|
|
/// 关联编号/业务编号BSNO
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string BSNO
|
|
|
{
|
|
|
get { return _bsno; }
|
|
|
set { _bsno = value; }
|
|
|
}
|
|
|
|
|
|
private string _receiptno = "";
|
|
|
/// <summary>
|
|
|
/// 单据编号
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RECEIPTNO
|
|
|
{
|
|
|
get { return _receiptno; }
|
|
|
set { _receiptno = value; }
|
|
|
}
|
|
|
|
|
|
private string _receipttype = "";
|
|
|
/// <summary>
|
|
|
/// 单据类型
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RECEIPTTYPE
|
|
|
{
|
|
|
get { return _receipttype; }
|
|
|
set { _receipttype = value; }
|
|
|
}
|
|
|
|
|
|
private int _DOCNUM =0;
|
|
|
/// <summary>
|
|
|
/// 单据数量
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public int DOCNUM
|
|
|
{
|
|
|
get { return _DOCNUM; }
|
|
|
set { _DOCNUM = value; }
|
|
|
}
|
|
|
|
|
|
private string _receive_man = "";
|
|
|
/// <summary>
|
|
|
/// 接单人
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RECEIVE_MAN
|
|
|
{
|
|
|
get { return _receive_man; }
|
|
|
set { _receive_man = value; }
|
|
|
}
|
|
|
|
|
|
private string _receive_date = "";
|
|
|
/// <summary>
|
|
|
/// 接单日期
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RECEIVE_DATE
|
|
|
{
|
|
|
get { return _receive_date; }
|
|
|
set { _receive_date = value; }
|
|
|
}
|
|
|
|
|
|
private string _send_man = "";
|
|
|
/// <summary>
|
|
|
/// 送单人
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string SEND_MAN
|
|
|
{
|
|
|
get { return _send_man; }
|
|
|
set { _send_man = value; }
|
|
|
}
|
|
|
|
|
|
private string _send_date = "";
|
|
|
/// <summary>
|
|
|
/// 送单日期
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string SEND_DATE
|
|
|
{
|
|
|
get { return _send_date; }
|
|
|
set { _send_date = value; }
|
|
|
}
|
|
|
|
|
|
private string _trancer = "";
|
|
|
/// <summary>
|
|
|
/// 送单的快递公司
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string TRANCER
|
|
|
{
|
|
|
get { return _trancer; }
|
|
|
set { _trancer = value; }
|
|
|
}
|
|
|
|
|
|
private string _trancno = "";
|
|
|
/// <summary>
|
|
|
/// 送单的快递单号
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string TRANCNO
|
|
|
{
|
|
|
get { return _trancno; }
|
|
|
set { _trancno = value; }
|
|
|
}
|
|
|
|
|
|
private bool _isrepeat = false;
|
|
|
/// <summary>
|
|
|
/// 是否回单
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public bool ISREPEAT
|
|
|
{
|
|
|
get { return _isrepeat; }
|
|
|
set { _isrepeat = value; }
|
|
|
}
|
|
|
|
|
|
private string _repeat_man = "";
|
|
|
/// <summary>
|
|
|
/// 回单人
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string REPEAT_MAN
|
|
|
{
|
|
|
get { return _repeat_man; }
|
|
|
set { _repeat_man = value; }
|
|
|
}
|
|
|
|
|
|
private string _repeat_date = "";
|
|
|
/// <summary>
|
|
|
/// 回单日期
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string REPEAT_DATE
|
|
|
{
|
|
|
get { return _repeat_date; }
|
|
|
set { _repeat_date = value; }
|
|
|
}
|
|
|
|
|
|
private bool _isreceive = false;
|
|
|
/// <summary>
|
|
|
/// 是否还单
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public bool ISRECEIVE
|
|
|
{
|
|
|
get { return _isreceive; }
|
|
|
set { _isreceive = value; }
|
|
|
}
|
|
|
|
|
|
private string _return_man = "";
|
|
|
/// <summary>
|
|
|
/// 还单人
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RETURN_MAN
|
|
|
{
|
|
|
get { return _return_man; }
|
|
|
set { _return_man = value; }
|
|
|
}
|
|
|
|
|
|
private string _return_date = "";
|
|
|
/// <summary>
|
|
|
/// 还单日期
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RETURN_DATE
|
|
|
{
|
|
|
get { return _return_date; }
|
|
|
set { _return_date = value; }
|
|
|
}
|
|
|
|
|
|
private string _return_trancer = "";
|
|
|
/// <summary>
|
|
|
/// 还单的快递公司
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RETURN_TRANCER
|
|
|
{
|
|
|
get { return _return_trancer; }
|
|
|
set { _return_trancer = value; }
|
|
|
}
|
|
|
|
|
|
private string _return_trancno = "";
|
|
|
/// <summary>
|
|
|
/// 还单的快递单号
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RETURN_TRANCNO
|
|
|
{
|
|
|
get { return _return_trancno; }
|
|
|
set { _return_trancno = value; }
|
|
|
}
|
|
|
|
|
|
private string _remark = "";
|
|
|
/// <summary>
|
|
|
/// 备注
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string REMARK
|
|
|
{
|
|
|
get { return _remark; }
|
|
|
set { _remark = value; }
|
|
|
}
|
|
|
|
|
|
private string _corpid = "";
|
|
|
/// <summary>
|
|
|
/// 分公司代码
|
|
|
/// </summary>
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
public string CORPID
|
|
|
{
|
|
|
get { return _corpid; }
|
|
|
set { _corpid = value; }
|
|
|
}
|
|
|
|
|
|
private string _createuser = "";
|
|
|
/// <summary>
|
|
|
/// 创建人gid
|
|
|
/// </summary>
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
public string CREATEUSER
|
|
|
{
|
|
|
get { return _createuser; }
|
|
|
set { _createuser = value; }
|
|
|
}
|
|
|
|
|
|
private string _createtime = DateTime.Now.ToString();
|
|
|
/// <summary>
|
|
|
/// 创建时间
|
|
|
/// </summary>
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
public string CREATETIME
|
|
|
{
|
|
|
get { return _createtime; }
|
|
|
set { _createtime = value; }
|
|
|
}
|
|
|
|
|
|
private string _modifieduser = "";
|
|
|
/// <summary>
|
|
|
/// 更改操作人gid
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string MODIFIEDUSER
|
|
|
{
|
|
|
get { return _modifieduser; }
|
|
|
set { _modifieduser = value; }
|
|
|
}
|
|
|
|
|
|
private string _modifiedtime = DateTime.Now.ToString();
|
|
|
/// <summary>
|
|
|
/// 更改操作时间
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string MODIFIEDTIME
|
|
|
{
|
|
|
get { return _modifiedtime; }
|
|
|
set { _modifiedtime = value; }
|
|
|
}
|
|
|
|
|
|
private string _receive_trancno = "";
|
|
|
/// <summary>
|
|
|
/// 接单快递单号
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string RECEIVE_TRANCNO
|
|
|
{
|
|
|
get { return _receive_trancno; }
|
|
|
set { _receive_trancno = value; }
|
|
|
}
|
|
|
|
|
|
private string _repeat_trancno = "";
|
|
|
/// <summary>
|
|
|
/// 接单快递单号
|
|
|
/// </summary>
|
|
|
[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
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 会计期间
|
|
|
/// </summary>
|
|
|
public string ACCDATE { get; set; }
|
|
|
public string OPLB { get; set; }
|
|
|
public string OPLBNAME { get; set; }
|
|
|
public string OPTYPE { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 主提单号
|
|
|
/// </summary>
|
|
|
public string MBLNO { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 分提单号
|
|
|
/// </summary>
|
|
|
public string HBLNO { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 委托编号
|
|
|
/// </summary>
|
|
|
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; }
|
|
|
/// <summary>
|
|
|
/// 委托单位
|
|
|
/// </summary>
|
|
|
public string CUSTOMERNAME { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 船名
|
|
|
/// </summary>
|
|
|
public string VESSEL { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 航次
|
|
|
/// </summary>
|
|
|
public string VOYNO { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 开船日期
|
|
|
/// </summary>
|
|
|
public string ETD { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 卸货港代码
|
|
|
/// </summary>
|
|
|
public string PORTLOAD { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 卸货港
|
|
|
/// </summary>
|
|
|
public string PORTDISCHARGE { get; set; }
|
|
|
public string DESTINATION { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 录入人
|
|
|
/// </summary>
|
|
|
public string INPUTBY { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 操作员
|
|
|
/// </summary>
|
|
|
public string OP { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 客服
|
|
|
/// </summary>
|
|
|
public string CUSTSERVICE { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 单证
|
|
|
/// </summary>
|
|
|
public string DOC { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 揽货人
|
|
|
/// </summary>
|
|
|
public string SALE { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 业务来源
|
|
|
/// </summary>
|
|
|
public string BSSOURCE { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 来源明细
|
|
|
/// </summary>
|
|
|
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 = "";
|
|
|
/// <summary>
|
|
|
/// 易航线_随附单证代码//需求编号:SR2017081100003
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string DOCUMENTATTACHEDCODE
|
|
|
{
|
|
|
get { return _documentattachedcode; }
|
|
|
set { _documentattachedcode = value; }
|
|
|
}
|
|
|
|
|
|
private string _documentattachedno = "";
|
|
|
/// <summary>
|
|
|
/// 易航线_随附单证编号//需求编号:SR2017081100003
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public string DOCUMENTATTACHEDNO
|
|
|
{
|
|
|
get { return _documentattachedno; }
|
|
|
set { _documentattachedno = value; }
|
|
|
}
|
|
|
|
|
|
|
|
|
private bool _ISPUBLIC = false;
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
[ModelDB]
|
|
|
public bool ISPUBLIC
|
|
|
{
|
|
|
get { return _ISPUBLIC; }
|
|
|
set { _ISPUBLIC = value; }
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
public ReceiptDocmb()
|
|
|
{
|
|
|
// TableName = "tMsWlPcHead";
|
|
|
TableName = "Receipt_Doc";
|
|
|
}
|
|
|
|
|
|
public override string GetBillNoFieldName()
|
|
|
{
|
|
|
return "BSNO";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|