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

152 lines
3.8 KiB
C#

using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.TruckMng.Models.MsWlTyre
{
[JsonObject]
public class MsWlTyre : ModelObjectBase
{
#region private Fields
private decimal _serialNo = 0;
private string _truckNo = String.Empty;
private string _truckNo_Ref = String.Empty;
private string _pluCode = String.Empty;
private string _pluCode_Ref = String.Empty;
private string _Spec = String.Empty;
private string _tyreType = "0";
private string _tyreType_Ref = "0";
private string _tyrePos = String.Empty;
private string _tyrePos_Ref = String.Empty;
private string _pcNo = String.Empty;
private decimal _planMil = 0;
private decimal _initMil = 0;
private string _initDate = String.Empty;
private decimal _realMil = 0;
private string _orgCode = String.Empty;
private string _remark = String.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public decimal SerialNo
{
get { return _serialNo; }
set { _serialNo = value; }
}
[ModelDB]
public string TruckNo
{
get { return _truckNo; }
set { _truckNo = value; }
}
public string TruckNo_Ref
{
get { return _truckNo_Ref; }
set { _truckNo_Ref = value; }
}
[ModelDB]
public string PluCode
{
get { return _pluCode; }
set { _pluCode = value; }
}
public string PluCode_Ref
{
get { return _pluCode_Ref; }
set { _pluCode_Ref = value; }
}
[ModelDB]
public string Spec
{
get { return _Spec; }
set { _Spec = value; }
}
[ModelDB]
public string TyreType
{
get { return _tyreType; }
set { _tyreType = value; }
}
public string TyreType_Ref
{
get { return _tyreType_Ref; }
set { _tyreType_Ref = value; }
}
[ModelDB]
public string TyrePos
{
get { return _tyrePos; }
set { _tyrePos = value; }
}
public string TyrePos_Ref
{
get { return _tyrePos_Ref; }
set { _tyrePos_Ref = value; }
}
[ModelDB]
public string PcNo
{
get { return _pcNo; }
set { _pcNo = value; }
}
[ModelDB]
public decimal PlanMil
{
get { return _planMil; }
set { _planMil = value; }
}
[ModelDB]
public decimal InitMil
{
get { return _initMil; }
set { _initMil = value; }
}
[ModelDB]
public string InitDate
{
get { return _initDate; }
set { _initDate = value; }
}
[ModelDB]
public decimal RealMil
{
get { return _realMil; }
set { _realMil = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string OrgCode
{
get { return _orgCode; }
set { _orgCode = value; }
}
[ModelDB]
public string Remark
{
get { return _remark; }
set { _remark = value; }
}
#endregion
public MsWlTyre()
{
TableName = "tMsWlTyre";
}
}
#region 参照部分
public class MsWlTyreRefMsWlTruck
{
public string TruckNo { get; set; }
public string TruckSpec { get; set; }
public string CodeAndName { get; set; }
}
#endregion
}