You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

354 lines
8.0 KiB
C#

10 months ago
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsChFeeAgent
{
[JsonObject]
public class ChFeeAgentDC : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _BSNO = "*";//业务编号
private string _DCNO = "";//业务编号
private string _AGENT;
private string _FEENAME;
private string _CURRENCY;
private decimal _AMOUNTDR = 0;
private decimal _AMOUNTCR = 0;
private decimal _AMOUNTBAL = 0;
private decimal _EXCHANGERATE = 0;
private string _FEEAGENT;
private string _DCTYPE;
private string _AMOUNTTOTALSTR;
private bool _ISCREATEFEE;
private string _REMARKS;
private string _CREATEUSER;
private string _CREATEUSERREF;
private string _CREATETIME ="";//录入日期
private string _ISCREATEFEEREF = "";
#endregion
public ChFeeAgentDC()
{
TableName = "ch_fee_agentdc";
}
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string DCNO
{
get { return _DCNO; }
set { _DCNO = value; }
}
[ModelDB]
public string AGENT
{
get { return _AGENT; }
set { _AGENT = value; }
}
[ModelDB]
public string FEENAME
{
get { return _FEENAME; }
set { _FEENAME = value; }
}
[ModelDB]
public string CURRENCY
{
get { return _CURRENCY; }
set { _CURRENCY = value; }
}
[ModelDB]
public decimal AMOUNTDR
{
get { return _AMOUNTDR; }
set { _AMOUNTDR = value; }
}
[ModelDB]
public decimal AMOUNTCR
{
get { return _AMOUNTCR; }
set { _AMOUNTCR = value; }
}
[ModelDB]
public decimal AMOUNTBAL
{
get { return _AMOUNTBAL; }
set { _AMOUNTBAL = value; }
}
[ModelDB]
public decimal EXCHANGERATE
{
get { return _EXCHANGERATE; }
set { _EXCHANGERATE = value; }
}
[ModelDB]
public string FEEAGENT
{
get { return _FEEAGENT; }
set { _FEEAGENT = value; }
}
[ModelDB]
public string DCTYPE
{
get { return _DCTYPE; }
set { _DCTYPE = value; }
}
[ModelDB]
public string AMOUNTTOTALSTR
{
get { return _AMOUNTTOTALSTR; }
set { _AMOUNTTOTALSTR = value; }
}
[ModelDB]
public bool ISCREATEFEE
{
get { return _ISCREATEFEE; }
set { _ISCREATEFEE = value; }
}
public string ISCREATEFEEREF
{
get { return _ISCREATEFEEREF; }
set { _ISCREATEFEEREF = value; }
}
[ModelDB]
public string CREATEUSER
{
get { return _CREATEUSER; }
set { _CREATEUSER = value; }
}
public string CREATEUSERREF
{
get { return _CREATEUSERREF; }
set { _CREATEUSERREF = value; }
}
/// <summary>
[ModelDB]
public string CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } }
/// <summary>
/// <summary>
/// 备注
/// </summary>
[ModelDB]
public string REMARK
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
#endregion
}
[JsonObject]
public class ChFeeAgentDcDetail : ModelObjectBillBody
{
#region private Fields
private string _GID = String.Empty;
private string _DCGID = String.Empty;
private string _FEENAME = String.Empty;
private string _FEEENAME = String.Empty;
private string _CURRENCY = "RMB";
private decimal _EXCHANGERATE = 0;
private decimal _DRPP = 0;
private decimal _DRCC = 0;
private decimal _CRPP = 0;
private decimal _CRCC = 0;
private string _FZPR = String.Empty;
private decimal _AMOUNTDR = 0;
private decimal _AMOUNTCR = 0;
private string _UNIT = String.Empty;
private decimal _UNITPRICE = 0;
private decimal _QUANTITY = 0;
private string _FEEDESCRIPTION = String.Empty;
private int _SORT = 0;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string DCGID
{
get { return _DCGID; }
set { _DCGID = value; }
}
[ModelDB]
public string FEENAME
{
get { return _FEENAME; }
set { _FEENAME = value; }
}
[ModelDB]
public string FEEENAME
{
get { return _FEEENAME; }
set { _FEEENAME = value; }
}
[ModelDB]
public string CURRENCY
{
get { return _CURRENCY; }
set { _CURRENCY = value; }
}
[ModelDB]
public decimal EXCHANGERATE
{
get { return _EXCHANGERATE; }
set { _EXCHANGERATE = value; }
}
[ModelDB]
public decimal DRPP
{
get { return _DRPP; }
set { _DRPP = value; }
}
[ModelDB]
public decimal DRCC
{
get { return _DRCC; }
set { _DRCC = value; }
}
[ModelDB]
public decimal CRPP
{
get { return _CRPP; }
set { _CRPP = value; }
}
[ModelDB]
public decimal CRCC
{
get { return _CRCC; }
set { _CRCC = value; }
}
[ModelDB]
public string FZPR
{
get { return _FZPR; }
set { _FZPR = value; }
}
[ModelDB]
public decimal AMOUNTDR
{
get { return _AMOUNTDR; }
set { _AMOUNTDR = value; }
}
[ModelDB]
public decimal AMOUNTCR
{
get { return _AMOUNTCR; }
set { _AMOUNTCR = value; }
}
[ModelDB]
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
[ModelDB]
public decimal UNITPRICE
{
get { return _UNITPRICE; }
set { _UNITPRICE = value; }
}
[ModelDB]
public decimal QUANTITY
{
get { return _QUANTITY; }
set { _QUANTITY = value; }
}
[ModelDB]
public string FEEDESCRIPTION
{
get { return _FEEDESCRIPTION; }
set { _FEEDESCRIPTION = value; }
}
[ModelDB]
public int SORT
{
get { return _SORT; }
set { _SORT = value; }
}
#endregion
public ChFeeAgentDcDetail()
{
TableName = "ch_fee_agentdc_detail";
}
override public string GetBillNoFieldName()
{
return "DCGID";
}
}
public class FeeUnit
{
private string _UNIT;
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
}
}