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/MsWlTruck/MsWlTruckFuel.cs

113 lines
2.6 KiB
C#

3 years ago
using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.TruckMng.Models
{
[JsonObject]
public class MsWlTruckFuel : ModelObjectBillBody
{
#region private Fields
private string _truckNo = String.Empty;
private decimal _serialNo = 0;
private string _loadType = "1";
private string _loadType_Ref = "1";
private string _condition1 = ">=";
private decimal _ton1 = 0;
private string _condition2 = "<";
private decimal _ton2 = 0;
private decimal _fuelTotal = 0;
private string _remark = String.Empty;
private decimal _fuelPrice = 0;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string TruckNo
{
get { return _truckNo; }
set { _truckNo = value; }
}
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public decimal SerialNo
{
get { return _serialNo; }
set { _serialNo = value; }
}
[ModelDB]
public string LoadType
{
get { return _loadType; }
set { _loadType = value; }
}
public string LoadType_Ref
{
get { return _loadType_Ref; }
set { _loadType_Ref = value; }
}
public string Condition1
{
get { return _condition1; }
set { _condition1 = value; }
}
[ModelDB]
public decimal Ton1
{
get { return _ton1; }
set { _ton1 = value; }
}
public string Condition2
{
get { return _condition2; }
set { _condition2 = value; }
}
[ModelDB]
public decimal Ton2
{
get { return _ton2; }
set { _ton2 = value; }
}
[ModelDB]
public decimal FuelTotal
{
get { return _fuelTotal; }
set { _fuelTotal = value; }
}
[ModelDB]
public string Remark
{
get { return _remark; }
set { _remark = value; }
}
[ModelDB]
public decimal FuelPrice
{
get { return _fuelPrice; }
set { _fuelPrice = value; }
}
#endregion
public MsWlTruckFuel()
{
TableName = "tMsWlTruckFuel";
}
public override string GetBillNoFieldName()
{
return "TruckNo";
}
}
#region 参照部分
#endregion
}