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.

657 lines
16 KiB
C#

using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.TruckMng.Models.MsWlTruck
{
[JsonObject]
public class MsWlTruck : ModelObjectBillHead
{
#region private Fields
private string _RowNumber = String.Empty;
private string _orgCode = String.Empty;
private string _truckNo = String.Empty;
private string _truckSpec = String.Empty;
private string _truckType = "0";
private string _truckType_Ref = "0";
private string _trunkColor = String.Empty;
private string _trunkBrand = String.Empty;
private decimal _loadCount = 0;
private string _cjNo = String.Empty;
private string _fdjNo = String.Empty;
private string _gzDate = String.Empty;
private string _zrDate = String.Empty;
private string _BfDate = String.Empty;
private string _drvCode = String.Empty;
private string _drvCode_Ref = String.Empty;
private string _drvName = String.Empty;
private string _nowStatus = "0";
private string _nowStatus_Ref = "0";
private string _truncClass = String.Empty;
private string _nsDqDate = String.Empty;
private string _verifiType = "0";
private string _verifiType_Ref = "0";
private string _insureType = "0";
private string _insureType_Ref = "0";
private string _insureDate = String.Empty;
private string _acciDate = String.Empty;
private string _acciExplain = String.Empty;
private string _dealResult = String.Empty;
private string _repairDate = String.Empty;
private string _isRotine = "0";
private string _remark = String.Empty;
private string _level2Date = string.Empty;
private string _emissions = string.Empty;
private decimal _unloadfuel = 0;
private decimal _cranefuel = 0;
private decimal _basisfuel = 0;
private decimal _tonmilfuel = 0;
private string _OWNER = string.Empty;
private string _OWNER_REF = string.Empty;
private string _WORKNO = string.Empty;
private string _LINKTRUCKNO = string.Empty;
private string _YouLiaoType = string.Empty;
[ModelDB]
public string YouLiaoType
{
get { return _YouLiaoType; }
set { _YouLiaoType = value; }
}
public string RowNumber
{
get { return _RowNumber; }
set { _RowNumber = value; }
}
[ModelDB]
public string Emissions
{
get { return _emissions; }
set { _emissions = value; }
}
private string _emissions_Ref = string.Empty;
public string Emissions_Ref
{
get { return _emissions_Ref; }
set { _emissions_Ref = value; }
}
private string _bizProperty = string.Empty;
[ModelDB]
public string BizProperty
{
get { return _bizProperty; }
set { _bizProperty = value; }
}
private string _bizProperty_Ref = string.Empty;
public string BizProperty_Ref
{
get { return _bizProperty_Ref; }
set { _bizProperty_Ref = value; }
}
private string _nativeAddr = string.Empty;
[ModelDB]
public string NativeAddr
{
get { return _nativeAddr; }
set { _nativeAddr = value; }
}
private string _mngOrg = string.Empty;
[ModelDB]
public string MngOrg
{
get { return _mngOrg; }
set { _mngOrg = value; }
}
private string _property = string.Empty;
[ModelDB]
public string Property
{
get { return _property; }
set { _property = value; }
}
private string _property_Ref = string.Empty;
public string Property_Ref
{
get { return _property_Ref; }
set { _property_Ref = value; }
}
private string _fuelType = string.Empty;
[ModelDB]
public string FuelType
{
get { return _fuelType; }
set { _fuelType = value; }
}
private string _fuelType_Ref = string.Empty;
public string FuelType_Ref
{
get { return _fuelType_Ref; }
set { _fuelType_Ref = value; }
}
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.InsertEdit)]
public string OrgCode
{
get { return _orgCode; }
set { _orgCode = value; }
}
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string TruckNo
{
get { return _truckNo; }
set { _truckNo = value; }
}
[ModelDB]
public string TruckSpec
{
get { return _truckSpec; }
set { _truckSpec = value; }
}
[ModelDB]
public string TruckType
{
get { return _truckType; }
set { _truckType = value; }
}
public string TruckType_Ref
{
get { return _truckType_Ref; }
set { _truckType_Ref = value; }
}
[ModelDB]
public string TrunkColor
{
get { return _trunkColor; }
set { _trunkColor = value; }
}
[ModelDB]
public string TrunkBrand
{
get { return _trunkBrand; }
set { _trunkBrand = value; }
}
[ModelDB]
public decimal LoadCount
{
get { return _loadCount; }
set { _loadCount = value; }
}
[ModelDB]
public string CjNo
{
get { return _cjNo; }
set { _cjNo = value; }
}
[ModelDB]
public string FdjNo
{
get { return _fdjNo; }
set { _fdjNo = value; }
}
[ModelDB]
public string GzDate
{
get { return _gzDate; }
set { _gzDate = value; }
}
[ModelDB]
public string ZrDate
{
get { return _zrDate; }
set { _zrDate = value; }
}
[ModelDB]
public string BfDate
{
get { return _BfDate; }
set { _BfDate = value; }
}
[ModelDB]
public string DrvCode
{
get { return _drvCode; }
set { _drvCode = value; }
}
public string DrvCode_Ref
{
get { return _drvCode_Ref; }
set { _drvCode_Ref = value; }
}
public string DrvName
{
get { return _drvName; }
set { _drvName = value; }
}
[ModelDB]
public string NowStatus
{
get { return _nowStatus; }
set { _nowStatus = value; }
}
public string NowStatus_Ref
{
get { return _nowStatus_Ref; }
set { _nowStatus_Ref = value; }
}
public string TruncClass
{
get { return _truncClass; }
set { _truncClass = value; }
}
[ModelDB]
public string NsDqDate
{
get { return _nsDqDate; }
set { _nsDqDate = value; }
}
[ModelDB]
public string VerifiType
{
get { return _verifiType; }
set { _verifiType = value; }
}
public string VerifiType_Ref
{
get { return _verifiType_Ref; }
set { _verifiType_Ref = value; }
}
[ModelDB]
public string InsureType
{
get { return _insureType; }
set { _insureType = value; }
}
public string InsureType_Ref
{
get { return _insureType_Ref; }
set { _insureType_Ref = value; }
}
[ModelDB]
public string InsureDate
{
get { return _insureDate; }
set { _insureDate = value; }
}
[ModelDB]
public string AcciDate
{
get { return _acciDate; }
set { _acciDate = value; }
}
[ModelDB]
public string AcciExplain
{
get { return _acciExplain; }
set { _acciExplain = value; }
}
[ModelDB]
public string DealResult
{
get { return _dealResult; }
set { _dealResult = value; }
}
[ModelDB]
public string RepairDate
{
get { return _repairDate; }
set { _repairDate = value; }
}
[ModelDB]
public string IsRotine
{
get { return _isRotine; }
set { _isRotine = value; }
}
[ModelDB]
public string Remark
{
get { return _remark; }
set { _remark = value; }
}
[ModelDB]
public string Level2Date
{
get { return _level2Date; }
set { _level2Date = value; }
}
[ModelDB]
public decimal UnloadFuel
{
get { return _unloadfuel; }
set { _unloadfuel = value; }
}
[ModelDB]
public decimal CraneFuel
{
get { return _cranefuel; }
set { _cranefuel = value; }
}
[ModelDB]
public decimal BasisFuel
{
get { return _basisfuel; }
set { _basisfuel = value; }
}
[ModelDB]
public decimal TonMilFuel
{
get { return _tonmilfuel; }
set { _tonmilfuel = value; }
}
[ModelDB]
public string OWNER
{
get { return _OWNER; }
set { _OWNER = value; }
}
public string OWNER_REF
{
get { return _OWNER_REF; }
set { _OWNER_REF = value; }
}
[ModelDB]
public string WORKNO
{
get { return _WORKNO; }
set { _WORKNO = value; }
}
[ModelDB]
public string LINKTRUCKNO
{
get { return _LINKTRUCKNO; }
set { _LINKTRUCKNO = value; }
}
#endregion
public MsWlTruck()
{
TableName = "tMsWlTruck";
}
public override string GetBillNoFieldName()
{
return "TruckNo";
}
public override string GetTimeMarkFieldName()
{
return string.Empty;
}
}
[JsonObject]
public class MsWlTruckFee : ModelObjectBillHead
{
#region private Fields
private string _GID = string.Empty;
private string _TruckNo = string.Empty;
private string _FeeDate = string.Empty;
private string _FeeName = string.Empty;
private string _Amount = string.Empty;
private string _Remark = string.Empty;
private string _Inserted = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string TruckNo
{
get { return _TruckNo; }
set { _TruckNo = value; }
}
[ModelDB]
public string FeeDate
{
get { return _FeeDate; }
set { _FeeDate = value; }
}
[ModelDB]
public string FeeName
{
get { return _FeeName; }
set { _FeeName = value; }
}
[ModelDB]
public string Amount
{
get { return _Amount; }
set { _Amount = value; }
}
[ModelDB]
public string Remark
{
get { return _Remark; }
set { _Remark = value; }
}
[ModelDB]
public string Inserted
{
get { return _Inserted; }
set { _Inserted = value; }
}
#endregion
public MsWlTruckFee()
{
TableName = "tMsWlTruckFee";
}
public override string GetBillNoFieldName()
{
return "GID";
}
public override string GetTimeMarkFieldName()
{
return string.Empty;
}
}
[JsonObject]
public class MsWlTruckFee_edit : MsWlTruckFee
{
public MsWlTruckFee_edit()
{
TableName = "tMsWlTruckFee";
}
public override string GetBillNoFieldName()
{
return "TruckNo";
}
public override string GetTimeMarkFieldName()
{
return string.Empty;
}
}
[JsonObject]
public class MsWlTruckTeam : ModelObjectBillBody
{
private string _GID = string.Empty;
private string _ORGCODE = string.Empty;
private string _COMPANYNAME = string.Empty;
private string _TEAMNAME = string.Empty;
private string _INSERTED = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string ORGCODE
{
get { return _ORGCODE; }
set { _ORGCODE = value; }
}
public string COMPANYNAME
{
get { return _COMPANYNAME; }
set { _COMPANYNAME = value; }
}
[ModelDB]
public string TEAMNAME
{
get { return _TEAMNAME; }
set { _TEAMNAME = value; }
}
public string INSERTED
{
get { return _INSERTED; }
set { _INSERTED = value; }
}
public MsWlTruckTeam ( )
{
TableName = "tMswlTruckTeam";
}
override public string GetBillNoFieldName()
{
return "INSERTED";
}
}
public class TruckSimplemb
{
public string TruckNo { get; set; }
public string DrvCode { get; set; }
public string DrvName { get; set; }
public string Mobile { get; set; }
public string WORKNOTruckNo { get; set; }
public string COMPANYNAME { get; set; }
public string TEAMNAME { get; set; }
}
[JsonObject]
public class TruckMonthmb : ModelObjectBillBody
{//
#region private Fields
private string _GID = string.Empty;
private string _TRUCKNO = string.Empty;
private string _ACCDATE = string.Empty;
private string _ZJF = string.Empty;
private string _BXF = string.Empty;
private string _GZCR = string.Empty;
private string _XLCR = string.Empty;
private string _ZCR = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string TRUCKNO
{
get { return _TRUCKNO; }
set { _TRUCKNO = value; }
}
[ModelDB]
public string ACCDATE
{
get { return _ACCDATE; }
set { _ACCDATE = value; }
}
[ModelDB]
public string ZJF
{
get { return _ZJF; }
set { _ZJF = value; }
}
[ModelDB]
public string BXF
{
get { return _BXF; }
set { _BXF = value; }
}
[ModelDB]
public string GZCR
{
get { return _GZCR; }
set { _GZCR = value; }
}
public string XLCR
{
get { return _XLCR; }
set { _XLCR = value; }
}
public string ZCR
{
get { return _ZCR; }
set { _ZCR = value; }
}
#endregion
public TruckMonthmb ( )
{
// TableName = "tMsWlPcHead";
TableName = "tMsWlTruck_Month";
}
public override string GetBillNoFieldName ( )
{
return "TRUCKNO";
}
public override string GetTimeMarkFieldName ( )
{
return "";
}
}
#region 参照部分
public class MsWlTruckRefMsWlDriver
{
public string DrvCode { get; set; }
public string DrvName { get; set; }
public string CodeAndName { get; set; }
}
#endregion
}