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/MsCodeFeeTemplateAuto/CodeFeeTemplateAuto.cs

465 lines
11 KiB
C#

using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsCodeFeeTemplateAuto
{
[JsonObject]
public class CodeFeeTemplateAuto : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _OPTYPE;//
private int _FEETYPE;//
private string _OPTYPEREF;//
private string _FEETYPEREF;//
private string _NAME;
private string _DESCRIPTION;
private string _REMARKS;
private string _CONDITION;
private string _ISPUBLIC;
private string _CORPID;
private string _CREATEUSER;
private string _CREATEUSERREF;
private DateTime _CREATETIME = DateTime.Now;//录入日期
private string _BGNDATE;
private string _ENDDATE;
private string _FEEGROUP;
private string _ISDEF;
private int _CLASS;
#endregion
public CodeFeeTemplateAuto()
{
TableName = "code_fee_template_auto";
}
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string 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; }
}
[ModelDB]
public string BGNDATE
{
get { return _BGNDATE; }
set { _BGNDATE = value; }
}
[ModelDB]
public string ENDDATE
{
get { return _ENDDATE; }
set { _ENDDATE = 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; }
}
/// <summary>
/// 备注
/// </summary>
[ModelDB]
public string CONDITION
{
get { return _CONDITION; }
set { _CONDITION = value; }
}
[ModelDB]
public string ISDEF
{
get { return _ISDEF; }
set { _ISDEF = value; }
}
[ModelDB]
public string FEEGROUP
{
get { return _FEEGROUP; }
set { _FEEGROUP = value; }
}
[ModelDB]
public Int32 CLASS
{
get { return _CLASS; }
set { _CLASS = value; }
}
[ModelDB]
public string ISSTOP { get; set; }
#endregion
}
[JsonObject]
public class CodeFeeTemplateDetailAuto : 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 string _CLIENT = "";
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;
private string _UNITPRICEDESCRPTION = 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 FEEDESCRIPTION
{
get { return _FEEDESCRIPTION; }
set { _FEEDESCRIPTION = value; }
}
[ModelDB]
public string 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; }
[ModelDB]
public string UNITPRICEDESCRPTION
{
get { return _UNITPRICEDESCRPTION; }
set { _UNITPRICEDESCRPTION = value; }
}
#endregion
public CodeFeeTemplateDetailAuto()
{
TableName = "code_fee_templatedetail_auto";
}
override public string GetBillNoFieldName()
{
return "TEMPLATEID";
}
}
[JsonObject]
public class CodeFeeTemplateCondition : ModelObjectBase
{
#region private Fields
private string _GID = String.Empty;
private string _TEMPLATEID = String.Empty;
private string _fieldname = String.Empty;
private string _fieldcondit = String.Empty;
private string _fieldvalue = String.Empty;
private string _CREATEUSER = String.Empty;
private string _CREATETIME = 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; }
}
public string FIELDNAME
{
get { return _fieldname; }
set { _fieldname = value; }
}
public string FIELDCONDIT
{
get { return _fieldcondit; }
set { _fieldcondit = value; }
}
public string FIELDVALUE
{
get { return _fieldvalue; }
set { _fieldvalue = value; }
}
public string FIELDTYPE { get;set;}
public string FIELDCNAME { get; set; }
[ModelDB]
public string CREATEUSER
{
get { return _CREATEUSER; }
set { _CREATEUSER = value; }
}
[ModelDB]
public string CREATETIME
{
get { return _CREATETIME; }
set { _CREATETIME = value; }
}
#endregion
public CodeFeeTemplateCondition()
{
TableName = "code_fee_template_condition";
}
}
public class FeeUnit
{
private string _UNIT;
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
}
}