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/MsCodeServiceFeeTemplate/MsCodeServiceFeeTemplate.cs

532 lines
14 KiB
C#

2 years ago
using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsCodeServiceFeeTemplate
{
[JsonObject]
public class MsCodeServiceFeeTemplate : ModelObjectBillHead
{
#region 私有成员
private string _GID = "*";
private string _OPTYPE = "1";
private string _OPTYPEREF = "";
private string _CORPID = String.Empty;
private string _CUSTOMERNAME = "";
private string _SERVICENAME = "";
private string _CREATEUSER = "";
private string _NAME = "";
private string _DESCRIPTION = "";
#endregion
#region 读写属性
[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; } }
public string OPTYPEREF { get { return _OPTYPEREF; } set { _OPTYPEREF = value; } }
[ModelDB]
public string CORPID { get { return _CORPID; } set { _CORPID = value; } }
[ModelDB]
public string CUSTOMERNAME { get { return _CUSTOMERNAME; } set { _CUSTOMERNAME = value; } }
public string SERVICENAME { get { return _SERVICENAME; } set { _SERVICENAME = value; } }
[ModelDB]
public string CREATEUSER { get { return _CREATEUSER; } set { _CREATEUSER = value; } }
[ModelDB]
public string NAME { get { return _NAME; } set { _NAME = value; } }
[ModelDB]
public string DESCRIPTION { get { return _DESCRIPTION; } set { _DESCRIPTION = value; } }
#endregion
public MsCodeServiceFeeTemplate()
{
TableName = "code_servcie_fee_template";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
[JsonObject]
public class MsCodeServiceFeeTemplateDetail : ModelObjectBillBody
{
#region 私有成员
private string _gid;//主键唯一值
private string _template_id;//费用模板GID(主表)
private string _OPField = "";
private string _fee_name;//费用名称
private string _customer_name;//结算单位
private string _servicename;//结算单位
private int _client;//客户名称
private string _customer_type;
private string _unit;//标准
private string _currency;//币别
private decimal _unit_price;//单价
private decimal _taxrate=0;//单价
private string _remark;//备注
private int _sort;//排序值
private string _create_user;//创建人
private string _modified_user;//最后一次更新操作人GID
private int _fee_type;//费用类型 1-应收 2-应付
private decimal _exchange_rate;//汇率
#endregion
public MsCodeServiceFeeTemplateDetail()
{
TableName = "code_service_fee_templatedetail";
}
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
public string GID
{
get { return _gid; }
set { _gid = value; }
}
/// <summary>
/// 费用模板GID(主表)
/// </summary>
public string TemplateID
{
get { return _template_id; }
set { _template_id = value; }
}
/// <summary>
/// 费用名称
/// </summary>
public string FeeName
{
get { return _fee_name; }
set { _fee_name = value; }
}
[ModelDB]
public string OPField { get { return _OPField; } set { _OPField = value; } }
/// <summary>
/// 结算单位
/// </summary>
public string CustomerName
{
get { return _customer_name; }
set { _customer_name = value; }
}
public string SERVICENAME
{
get { return _servicename; }
set { _servicename = value; }
}
/// <summary>
/// 客户名称
/// </summary>
public int Client
{
get { return _client; }
set { _client = value; }
}
[ModelDB]
public string CustomerType
{
get { return _customer_type; }
set { _customer_type = value; }
}
/// <summary>
/// 标准
/// </summary>
public string Unit
{
get { return _unit; }
set { _unit = value; }
}
/// <summary>
/// 币别
/// </summary>
public string Currency
{
get { return _currency; }
set { _currency = value; }
}
/// <summary>
/// 单价
/// </summary>
public Decimal UnitPrice
{
get { return _unit_price; }
set { _unit_price = value; }
}
public Decimal TAXRATE
{
get { return _taxrate; }
set { _taxrate = value; }
}
/// <summary>
/// 备注
/// </summary>
public string Remark
{
get { return _remark; }
set { _remark = value; }
}
/// <summary>
/// 排序值
/// </summary>
public int Sort
{
get { return _sort; }
set { _sort = value; }
}
/// <summary>
/// 创建人
/// </summary>
public string CreateUser
{
get { return _create_user; }
set { _create_user = value; }
}
/// <summary>
/// 最后一次更新操作人GID
/// </summary>
public string ModifiedUser
{
get { return _modified_user; }
set { _modified_user = value; }
}
/// <summary>
/// 费用类型 1-应收 2-应付
/// </summary>
public int FeeType
{
get { return _fee_type; }
set { _fee_type = value; }
}
/// <summary>
/// 汇率
/// </summary>
public decimal ExchangeRate
{
get { return _exchange_rate; }
set { _exchange_rate = value; }
}
#endregion
override public string GetBillNoFieldName()
{
return "TemplateID";
}
}
public class MsOpFeeService : ModelObjectBillBody
{
#region private Fields
private string _IsSERVICEFEE1 = "0";
private string _IsSERVICEFEE2 = "0";
private string _IsSERVICEFEE3 = "0";
private string _IsSERVICEFEE4 = "0";
private string _IsSERVICEFEE5 = "0";
private string _IsSERVICEFEE6 = "0";
private string _IsSERVICEFEE7 = "0";
private string _IsSERVICEFEE8 = "0";
private string _IsSERVICEFEE9 = "0";
private string _IsSERVICEFEE10 = "0";
private string _IsSERVICEFEE11= "0";
private string _IsSERVICEFEE12 = "0";
private string _IsSERVICEFEE13= "0";
private string _IsSERVICEFEE14 = "0";
private string _IsSERVICEFEE15 = "0";
private string _IsSERVICEFEE16 = "0";
private string _IsSERVICE1 = "0";
private string _IsSERVICE2 = "0";
private string _IsSERVICE3 = "0";
private string _IsSERVICE4 = "0";
private string _IsSERVICE5 = "0";
private string _IsSERVICE6 = "0";
private string _IsSERVICE7 = "0";
private string _IsSERVICE8 = "0";
private string _IsSERVICE9 = "0";
private string _IsSERVICE10 = "0";
private string _IsSERVICE11 = "0";
private string _IsSERVICE12 = "0";
private string _IsSERVICE13 = "0";
private string _IsSERVICE14 = "0";
private string _IsSERVICE15 = "0";
private string _IsSERVICE16 = "0";
#endregion
#region Public Properties
public string IsSERVICEFEE1
{
get { return _IsSERVICEFEE1; }
set { _IsSERVICEFEE1 = value; }
}
public string IsSERVICEFEE2
{
get { return _IsSERVICEFEE2; }
set { _IsSERVICEFEE2 = value; }
}
public string IsSERVICEFEE3
{
get { return _IsSERVICEFEE3; }
set { _IsSERVICEFEE3 = value; }
}
public string IsSERVICEFEE4
{
get { return _IsSERVICEFEE4; }
set { _IsSERVICEFEE4 = value; }
}
public string IsSERVICEFEE5
{
get { return _IsSERVICEFEE5; }
set { _IsSERVICEFEE5 = value; }
}
public string IsSERVICEFEE6
{
get { return _IsSERVICEFEE6; }
set { _IsSERVICEFEE6 = value; }
}
public string IsSERVICEFEE7
{
get { return _IsSERVICEFEE7; }
set { _IsSERVICEFEE7 = value; }
}
public string IsSERVICEFEE8
{
get { return _IsSERVICEFEE8; }
set { _IsSERVICEFEE8 = value; }
}
public string IsSERVICEFEE9
{
get { return _IsSERVICEFEE9; }
set { _IsSERVICEFEE9 = value; }
}
public string IsSERVICEFEE10
{
get { return _IsSERVICEFEE10; }
set { _IsSERVICEFEE10 = value; }
}
public string IsSERVICEFEE11
{
get { return _IsSERVICEFEE11; }
set { _IsSERVICEFEE11 = value; }
}
public string IsSERVICEFEE12
{
get { return _IsSERVICEFEE12; }
set { _IsSERVICEFEE12 = value; }
}
public string IsSERVICEFEE13
{
get { return _IsSERVICEFEE13; }
set { _IsSERVICEFEE13 = value; }
}
public string IsSERVICEFEE14
{
get { return _IsSERVICEFEE14; }
set { _IsSERVICEFEE14 = value; }
}
public string IsSERVICEFEE15
{
get { return _IsSERVICEFEE15; }
set { _IsSERVICEFEE15 = value; }
}
public string IsSERVICEFEE16
{
get { return _IsSERVICEFEE16; }
set { _IsSERVICEFEE16 = value; }
}
public string IsSERVICE1
{
get { return _IsSERVICE1; }
set { _IsSERVICE1 = value; }
}
public string IsSERVICE2
{
get { return _IsSERVICE2; }
set { _IsSERVICE2 = value; }
}
public string IsSERVICE3
{
get { return _IsSERVICE3; }
set { _IsSERVICE3 = value; }
}
public string IsSERVICE4
{
get { return _IsSERVICE4; }
set { _IsSERVICE4 = value; }
}
public string IsSERVICE5
{
get { return _IsSERVICE5; }
set { _IsSERVICE5 = value; }
}
public string IsSERVICE6
{
get { return _IsSERVICE6; }
set { _IsSERVICE6 = value; }
}
public string IsSERVICE7
{
get { return _IsSERVICE7; }
set { _IsSERVICE7 = value; }
}
public string IsSERVICE8
{
get { return _IsSERVICE8; }
set { _IsSERVICE8 = value; }
}
public string IsSERVICE9
{
get { return _IsSERVICE9; }
set { _IsSERVICE9 = value; }
}
public string IsSERVICE10
{
get { return _IsSERVICE10; }
set { _IsSERVICE10 = value; }
}
public string IsSERVICE11
{
get { return _IsSERVICE11; }
set { _IsSERVICE11 = value; }
}
public string IsSERVICE12
{
get { return _IsSERVICE12; }
set { _IsSERVICE12= value; }
}
public string IsSERVICE13
{
get { return _IsSERVICE13; }
set { _IsSERVICE13= value; }
}
public string IsSERVICE14
{
get { return _IsSERVICE14; }
set { _IsSERVICE14 = value; }
}
public string IsSERVICE15
{
get { return _IsSERVICE15; }
set { _IsSERVICE15= value; }
}
public string IsSERVICE16
{
get { return _IsSERVICE16; }
set { _IsSERVICE16 = value; }
}
#endregion
}
[JsonObject]
public class MsChFeeDoService : ModelObjectBillHead
{
#region 私有成员
private string _GID = "*";
private string _TEMPLATEID = "";
private string _TEMPLATEFEEID = "";
private string _BSNO = "";
private string _FEEID = "";
#endregion
#region 读写属性
[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 TEMPLATEFEEID { get { return _TEMPLATEFEEID; } set { _TEMPLATEFEEID = value; } }
[ModelDB]
public string BSNO { get { return _BSNO; } set { _BSNO = value; } }
public string FEEID { get { return _FEEID; } set { _FEEID = value; } }
#endregion
public MsChFeeDoService()
{
TableName = "ch_fee_do_service";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
#region 参照部分
#endregion
}