|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.MvcShipping.Models.MsChDui
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class ChDui : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region 私有成员
|
|
|
|
|
private string _duino="*";//主键唯一值
|
|
|
|
|
private string _custname;//
|
|
|
|
|
private string _duidate;//
|
|
|
|
|
private string _op;//业务种类
|
|
|
|
|
private string _duiname;//费用类型
|
|
|
|
|
private int _billstatus = 2;
|
|
|
|
|
private string _billstatusref="新建";
|
|
|
|
|
private string _dm_id;//创建人
|
|
|
|
|
private string _dc;//备注
|
|
|
|
|
private string _isnostl;//备注
|
|
|
|
|
private string _isnotax;//备注
|
|
|
|
|
private string _remarks;//
|
|
|
|
|
private decimal _RMBDR = 0;
|
|
|
|
|
private decimal _BALRMBDR = 0;
|
|
|
|
|
private decimal _RMBCR = 0;
|
|
|
|
|
private decimal _BALRMBCR = 0;
|
|
|
|
|
private decimal _USDDR = 0;
|
|
|
|
|
private decimal _BALUSDDR = 0;
|
|
|
|
|
private decimal _USDCR = 0;
|
|
|
|
|
private decimal _BALUSDCR = 0;
|
|
|
|
|
private decimal _OTDR = 0;
|
|
|
|
|
private decimal _BALOTDR = 0;
|
|
|
|
|
private decimal _OTCR = 0;
|
|
|
|
|
private decimal _BALOTCR = 0;
|
|
|
|
|
private decimal _TTLDR = 0;
|
|
|
|
|
private decimal _BALTTLDR = 0;
|
|
|
|
|
private decimal _TTLCR = 0;
|
|
|
|
|
private decimal _BALTTLCR = 0;
|
|
|
|
|
private string _isinvoice="否";//备注
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public ChDui()
|
|
|
|
|
{
|
|
|
|
|
TableName = "ch_dui";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override public string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "DUINO";
|
|
|
|
|
}
|
|
|
|
|
#region 读写属性
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主键唯一值
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string DUINO
|
|
|
|
|
{
|
|
|
|
|
get { return _duino; }
|
|
|
|
|
set { _duino = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用模板系统名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CUSTNAME
|
|
|
|
|
{
|
|
|
|
|
get { return _custname; }
|
|
|
|
|
set { _custname = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用模板中文名称或描述信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string DUIDATE
|
|
|
|
|
{
|
|
|
|
|
get { return _duidate; }
|
|
|
|
|
set { _duidate = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务种类
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string DM_ID
|
|
|
|
|
{
|
|
|
|
|
get { return _dm_id; }
|
|
|
|
|
set { _dm_id = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务种类
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string OP
|
|
|
|
|
{
|
|
|
|
|
get { return _op; }
|
|
|
|
|
set { _op = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string DUINAME
|
|
|
|
|
{
|
|
|
|
|
get { return _duiname; }
|
|
|
|
|
set { _duiname = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string DC
|
|
|
|
|
{
|
|
|
|
|
get { return _dc; }
|
|
|
|
|
set { _dc = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ISNOSTL
|
|
|
|
|
{
|
|
|
|
|
get { return _isnostl; }
|
|
|
|
|
set { _isnostl = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ISNOTAX
|
|
|
|
|
{
|
|
|
|
|
get { return _isnotax; }
|
|
|
|
|
set { _isnotax = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string REMARKS
|
|
|
|
|
{
|
|
|
|
|
get { return _remarks; }
|
|
|
|
|
set { _remarks = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public int BILLSTATUS
|
|
|
|
|
{
|
|
|
|
|
get { return _billstatus; }
|
|
|
|
|
set { _billstatus = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string BILLSTATUSREF
|
|
|
|
|
{
|
|
|
|
|
get { return _billstatusref; }
|
|
|
|
|
set { _billstatusref = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ISINVOICE
|
|
|
|
|
{
|
|
|
|
|
get { return _isinvoice; }
|
|
|
|
|
set { _isinvoice = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public decimal RMBDR { get { return _RMBDR; } set { _RMBDR = value; } }
|
|
|
|
|
public decimal RMBCR { get { return _RMBCR; } set { _RMBCR = value; } }
|
|
|
|
|
public decimal BALRMBDR { get { return _BALRMBDR; } set { _BALRMBDR = value; } }
|
|
|
|
|
public decimal BALRMBCR { get { return _BALRMBCR; } set { _BALRMBCR = value; } }
|
|
|
|
|
public decimal USDDR { get { return _USDDR; } set { _USDDR = value; } }
|
|
|
|
|
public decimal USDCR { get { return _USDCR; } set { _USDCR = value; } }
|
|
|
|
|
public decimal BALUSDDR { get { return _BALUSDDR; } set { _BALUSDDR = value; } }
|
|
|
|
|
public decimal BALUSDCR { get { return _BALUSDCR; } set { _BALUSDCR = value; } }
|
|
|
|
|
public decimal OTDR { get { return _OTDR; } set { _OTDR = value; } }
|
|
|
|
|
public decimal OTCR { get { return _OTCR; } set { _OTCR = value; } }
|
|
|
|
|
public decimal BALOTDR { get { return _BALOTDR; } set { _BALOTDR = value; } }
|
|
|
|
|
public decimal BALOTCR { get { return _BALOTCR; } set { _BALOTCR = value; } }
|
|
|
|
|
public decimal TTLDR { get { return _TTLDR; } set { _TTLDR = value; } }
|
|
|
|
|
public decimal TTLCR { get { return _TTLCR; } set { _TTLCR = value; } }
|
|
|
|
|
public decimal BALTTLDR { get { return _BALTTLDR; } set { _BALTTLDR = value; } }
|
|
|
|
|
public decimal BALTTLCR { get { return _BALTTLCR; } set { _BALTTLCR = value; } }
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CUSTTYPE { get; set; }
|
|
|
|
|
|
|
|
|
|
public decimal STLRMBDR { get; set; }
|
|
|
|
|
public decimal STLRMBCR { get; set; }
|
|
|
|
|
|
|
|
|
|
public decimal STLUSDDR { get; set; }
|
|
|
|
|
public decimal STLUSDCR { get; set; }
|
|
|
|
|
|
|
|
|
|
public decimal STLOTDR { get; set; }
|
|
|
|
|
public decimal STLOTCR { get; set; }
|
|
|
|
|
|
|
|
|
|
public decimal STLTTL { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用模板费用明细
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class ChDuiBill : ModelObjectBillBody
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
private string _DUINO = "*";//业务编号
|
|
|
|
|
private string _BSNO = "*";//业务编号
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Public Properties
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string DUINO { get { return _DUINO; } set { _DUINO = value; } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string BSNO { get { return _BSNO; } set { _BSNO = value; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
public ChDuiBill ( )
|
|
|
|
|
{
|
|
|
|
|
TableName = "ch_dui_bill";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override public string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "DUINO";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class ChDuiDetail : ModelObjectBillBody
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
private string _DUINO = "*";//业务编号
|
|
|
|
|
private string _BSNO = "*";//业务编号
|
|
|
|
|
private string _CH_ID = String.Empty;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Public Properties
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string DUINO { get { return _DUINO; } set { _DUINO = value; } }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string BSNO { get { return _BSNO; } set { _BSNO = value; } }
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
|
|
|
|
|
public string CH_ID { get { return _CH_ID; } set { _CH_ID = value; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
override public string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "BsNo";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|