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.
DS7/DSWeb/Areas/MvcShipping/Models/MsCodeFeeTemplateAgent/CodeFeeTemplateAgent.cs

319 lines
7.1 KiB
C#

3 years ago
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsCodeFeeTemplateAgent
{
[JsonObject]
public class CodeFeeTemplateAgent : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private int _OPTYPE;//
private string _OPTYPEREF;//
private string _NAME;
private string _DESCRIPTION;
private string _REMARKS;
private string _ISPUBLIC;
private string _CORPID;
private string _CREATEUSER;
private string _CREATEUSERREF;
private DateTime _CREATETIME = DateTime.Now;//录入日期
#endregion
public CodeFeeTemplateAgent()
{
TableName = "code_fee_template_agent";
}
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public int OPTYPE
{
get { return _OPTYPE; }
set { _OPTYPE = value; }
}
public string OPTYPEREF
{
get { return _OPTYPEREF; }
set { _OPTYPEREF = value; }
}
[ModelDB]
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
[ModelDB]
public string DESCRIPTION
{
get { return _DESCRIPTION; }
set { _DESCRIPTION = value; }
}
[ModelDB]
public string CREATEUSER
{
get { return _CREATEUSER; }
set { _CREATEUSER = value; }
}
public string CREATEUSERREF
{
get { return _CREATEUSERREF; }
set { _CREATEUSERREF = value; }
}
[ModelDB]
public string CORPID
{
get { return _CORPID; }
set { _CORPID = value; }
}
[ModelDB]
public string ISPUBLIC
{
get { return _ISPUBLIC; }
set { _ISPUBLIC = value; }
}
/// <summary>
[ModelDB]
public DateTime CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } }
/// <summary>
/// <summary>
/// 备注
/// </summary>
[ModelDB]
public string REMARK
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
#endregion
}
[JsonObject]
public class CodeFeeTemplateAgentDetail : ModelObjectBillBody
{
#region private Fields
private string _GID = String.Empty;
private string _TEMPLATEID = 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;
private string _CREATEUSER = String.Empty;
private string _CREATETIME = String.Empty;
private string _REMARK = String.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string TEMPLATEID
{
get { return _TEMPLATEID; }
set { _TEMPLATEID = 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; }
}
[ModelDB]
public string CREATEUSER
{
get { return _CREATEUSER; }
set { _CREATEUSER = value; }
}
[ModelDB]
public string CREATETIME
{
get { return _CREATETIME; }
set { _CREATETIME = value; }
}
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
#endregion
public CodeFeeTemplateAgentDetail()
{
TableName = "code_fee_template_agentdetail";
}
override public string GetBillNoFieldName()
{
return "TEMPLATEID";
}
}
public class FeeUnit
{
private string _UNIT;
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
}
}