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/MsCodeFeeTemplate/CodeFeeTemplate.cs

343 lines
8.1 KiB
C#

2 years ago
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsCodeFeeTemplate
{
[JsonObject]
public class CodeFeeTemplate : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private int _OPTYPE;//
private int _FEETYPE;//
private string _OPTYPEREF;//
private string _FEETYPEREF;//
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 CodeFeeTemplate()
{
TableName = "code_fee_template";
}
#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; }
}
[ModelDB]
public int FEETYPE
{
get { return _FEETYPE; }
set { _FEETYPE = value; }
}
public string OPTYPEREF
{
get { return _OPTYPEREF; }
set { _OPTYPEREF = value; }
}
public string FEETYPEREF
{
get { return _FEETYPEREF; }
set { _FEETYPEREF = 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 CodeFeeTemplateDetail : ModelObjectBillBody
{
#region private Fields
private string _GID = String.Empty;
private string _TEMPLATEID = String.Empty;
private string _FEENAME = String.Empty;
private string _FEEDESCRIPTION = String.Empty;
private int _SORT = 0;
private int _CLIENT = 0;
private string _CLIENTREF = String.Empty;
private string _CUSTOMERNAME = String.Empty;
private string _UNIT = String.Empty;
private string _CURRENCY = "RMB";
private decimal _UNITPRICE = 0;
private decimal _TAXUNITPRICE = 0;
private decimal _EXCHANGERATE = 0;
private decimal _TAXRATE = 0;
private decimal _TAX = 0;
private string _CREATEUSER = String.Empty;
private string _CREATETIME = String.Empty;
private string _REMARK = String.Empty;
private string _FEEFRT = String.Empty;
private bool _ISCTN = false;
private string _ISCTNREF = String.Empty;
private bool _ISINVOICE = false;
private bool _ISADVANCEDPAY = false;
private decimal _ACCTAXRATE = 0;
#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 FEEDESCRIPTION
{
get { return _FEEDESCRIPTION; }
set { _FEEDESCRIPTION = value; }
}
[ModelDB]
public int CLIENT
{
get { return _CLIENT; }
set { _CLIENT = value; }
}
public string CLIENTREF
{
get { return _CLIENTREF; }
set { _CLIENTREF = value; }
}
[ModelDB]
public int SORT
{
get { return _SORT; }
set { _SORT = value; }
}
[ModelDB]
public string CUSTOMERNAME
{
get { return _CUSTOMERNAME; }
set { _CUSTOMERNAME = value; }
}
[ModelDB]
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
[ModelDB]
public string CURRENCY
{
get { return _CURRENCY; }
set { _CURRENCY = value; }
}
[ModelDB]
public decimal UNITPRICE
{
get { return _UNITPRICE; }
set { _UNITPRICE = value; }
}
[ModelDB]
public decimal TAXUNITPRICE
{
get { return _TAXUNITPRICE; }
set { _TAXUNITPRICE = value; }
}
[ModelDB]
public decimal EXCHANGERATE
{
get { return _EXCHANGERATE; }
set { _EXCHANGERATE = value; }
}
[ModelDB]
public decimal TAXRATE
{
get { return _TAXRATE; }
set { _TAXRATE = value; }
}
[ModelDB]
public decimal TAX
{
get { return _TAX; }
set { _TAX = value; }
}
[ModelDB]
public string FEEFRT
{
get { return _FEEFRT; }
set { _FEEFRT = 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; }
}
[ModelDB]
public bool ISCTN
{
get { return _ISCTN; }
set { _ISCTN = value; }
}
public string ISCTNREF
{
get { return _ISCTNREF; }
set { _ISCTNREF = value; }
}
[ModelDB]
public bool ISINVOICE
{
get { return _ISINVOICE; }
set { _ISINVOICE = value; }
}
[ModelDB]
public bool ISADVANCEDPAY
{
get { return _ISADVANCEDPAY; }
set { _ISADVANCEDPAY = value; }
}
[ModelDB]
public decimal ACCTAXRATE
{
get { return _ACCTAXRATE; }
set { _ACCTAXRATE = value; }
}
public string SALECORP { set; get; }
#endregion
public CodeFeeTemplateDetail()
{
TableName = "code_fee_templatedetail";
}
override public string GetBillNoFieldName()
{
return "TEMPLATEID";
}
}
public class FeeUnit
{
private string _UNIT;
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
}
}