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/TruckMng/Models/MsCustTruckFeeTemplate/CustTruckFeeTemplate.cs

285 lines
6.4 KiB
C#

using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.TruckMng.Models.MsCustTruckFeeTemplate
{
[JsonObject]
public class CustTruckFeeTemplate : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _LINKID;
private string _BSSTATUS;
private string _CONTRACTNO;
private string _TEMPLATENAME;
private string _CUSTOMERNAME;
private string _GOODNAME;
private string _TRANTYPE;
private string _FEEUNIT;
private string _DC;
private string _PRICEUNIT;
private string _REMARKS;
private string _CORPID;
private string _CREATEUSER;
private string _CREATEUSERREF;
private DateTime _CREATETIME = DateTime.Now;//录入日期
#endregion
public CustTruckFeeTemplate()
{
TableName = "Cust_Truck_feetemplate";
}
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string LINKID
{
get { return _LINKID; }
set { _LINKID = value; }
}
[ModelDB]
public string BSSTATUS
{
get { return _BSSTATUS; }
set { _BSSTATUS = value; }
}
[ModelDB]
public string TEMPLATENAME
{
get { return _TEMPLATENAME; }
set { _TEMPLATENAME = value; }
}
[ModelDB]
public string CONTRACTNO
{
get { return _CONTRACTNO; }
set { _CONTRACTNO = value; }
}
[ModelDB]
public string CUSTOMERNAME
{
get { return _CUSTOMERNAME; }
set { _CUSTOMERNAME = value; }
}
[ModelDB]
public string DC
{
get { return _DC; }
set { _DC = value; }
}
[ModelDB]
public string FEEUNIT
{
get { return _FEEUNIT; }
set { _FEEUNIT = value; }
}
[ModelDB]
public string PRICEUNIT
{
get { return _PRICEUNIT; }
set { _PRICEUNIT = value; }
}
[ModelDB]
public string GOODNAME
{
get { return _GOODNAME; }
set { _GOODNAME = value; }
}
[ModelDB]
public string TRANTYPE
{
get { return _TRANTYPE; }
set { _TRANTYPE = 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; }
}
/// <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 CustTruckFeeTemplateDetail : ModelObjectBillBody
{
#region private Fields
private string _GID = String.Empty;
private string _TEMPLATEID = String.Empty;
private string _UNITTYPE;
private string _UNIT = String.Empty;
private string _LOADPORT;
private string _DISTPORT;
private decimal _UNITPRICE = 0;
private decimal _STARTWEIGHT = 0;
private decimal _ENDWEIGHT = 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 LOADPORT
{
get { return _LOADPORT; }
set { _LOADPORT = value; }
}
[ModelDB]
public string DISTPORT
{
get { return _DISTPORT; }
set { _DISTPORT = value; }
}
[ModelDB]
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
[ModelDB]
public string UNITTYPE
{
get { return _UNITTYPE; }
set { _UNITTYPE = value; }
}
[ModelDB]
public decimal UNITPRICE
{
get { return _UNITPRICE; }
set { _UNITPRICE = value; }
}
[ModelDB]
public decimal STARTWEIGHT
{
get { return _STARTWEIGHT; }
set { _STARTWEIGHT = value; }
}
[ModelDB]
public decimal ENDWEIGHT
{
get { return _ENDWEIGHT; }
set { _ENDWEIGHT = 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 CustTruckFeeTemplateDetail()
{
TableName = "Cust_Truck_feetemplatedetail";
}
override public string GetBillNoFieldName()
{
return "TEMPLATEID";
}
}
public class FeeUnit
{
private string _UNIT;
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
}
}