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/MsWlBulkPc/MsWlPcHead.cs

357 lines
9.6 KiB
C#

using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.TruckMng.Models.MsWlBulkPc
{
[JsonObject]
public class MsWlPcHead : ModelObjectBillHead
{
#region private Fields
private string _billNo = "*";
private DateTime? _lrDate = null;
private DateTime? _jzDate = null;
private string _userCode = String.Empty;
private string _userName = String.Empty;
private string _orgCode = String.Empty;
private string _orgName = String.Empty;
private string _truckNo = String.Empty;
private string _truckNo_Ref = String.Empty;
private string _drvCode = String.Empty;
private string _drvName = String.Empty;
private string _drvName_Ref = String.Empty;
private string _mobile = String.Empty;
private string _expDate = String.Empty;
private string _dstArea = String.Empty;
private string _detiNation = String.Empty;
private string _factoryAddr = String.Empty;
private string _linkTel = String.Empty;
private string _linkMan = String.Empty;
private decimal _ratedMil = 0;
private decimal _ratedFuel = 0;
private decimal _fuelQty = 0;
private decimal _realMil = 0;
private decimal _realFuel = 0;
private decimal _noLoadMil = 0;
private decimal _overLoadMil = 0;
private decimal _ton = 0;
private decimal _aroundTon = 0;
private decimal _loadCount = 0;
private string _arriveDate = String.Empty;
private string _ddCode = String.Empty;
private string _ddCode_Ref = String.Empty;
private string _ddName = String.Empty;
private string _returnDate = String.Empty;
private string _remark = String.Empty;
private string _billStatus = "0";
private string _billStatus_Ref = "0";
private string _feeStatus = "0";
private string _feeStatus_Ref = "0";
private string _gId = String.Empty;
private decimal _totalMil = 0;
private decimal _timeMark = 0;
private string _pcBillType = "1";
private string _oilticketno = String.Empty;
private string _ACCDATE = string.Empty;
public string TransTotal { get; set; }
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string BillNo
{
get { return _billNo; }
set { _billNo = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public DateTime? LrDate
{
get { return _lrDate; }
set { _lrDate = value; }
}
public DateTime? JzDate
{
get { return _jzDate; }
set { _jzDate = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string UserCode
{
get { return _userCode; }
set { _userCode = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string UserName
{
get { return _userName; }
set { _userName = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string OrgCode
{
get { return _orgCode; }
set { _orgCode = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string OrgName
{
get { return _orgName; }
set { _orgName = 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 DrvCode
{
get { return _drvCode; }
set { _drvCode = value; }
}
[ModelDB]
public string DrvName
{
get { return _drvName; }
set { _drvName = value; }
}
public string DrvName_Ref
{
get { return _drvName_Ref; }
set { _drvName_Ref = value; }
}
[ModelDB]
public string Mobile
{
get { return _mobile; }
set { _mobile = value; }
}
[ModelDB]
public string ExpDate
{
get { return _expDate; }
set { _expDate = value; }
}
[ModelDB]
public string DstArea
{
get { return _dstArea; }
set { _dstArea = value; }
}
[ModelDB]
public string DetiNation
{
get { return _detiNation; }
set { _detiNation = value; }
}
[ModelDB]
public string FactoryAddr
{
get { return _factoryAddr; }
set { _factoryAddr = value; }
}
[ModelDB]
public string LinkTel
{
get { return _linkTel; }
set { _linkTel = value; }
}
[ModelDB]
public string LinkMan
{
get { return _linkMan; }
set { _linkMan = value; }
}
[ModelDB]
public decimal RatedMil
{
get { return _ratedMil; }
set { _ratedMil = value; }
}
[ModelDB]
public decimal RatedFuel
{
get { return _ratedFuel; }
set { _ratedFuel = value; }
}
[ModelDB]
public decimal FuelQty
{
get { return _fuelQty; }
set { _fuelQty = value; }
}
[ModelDB]
public decimal RealMil
{
get { return _realMil; }
set { _realMil = value; }
}
[ModelDB]
public decimal RealFuel
{
get { return _realFuel; }
set { _realFuel = value; }
}
[ModelDB]
public decimal NoLoadMil
{
get { return _noLoadMil; }
set { _noLoadMil = value; }
}
[ModelDB]
public decimal OverLoadMil
{
get { return _overLoadMil; }
set { _overLoadMil = value; }
}
[ModelDB]
public decimal Ton
{
get { return _ton; }
set { _ton = value; }
}
[ModelDB]
public decimal AroundTon
{
get { return _aroundTon; }
set { _aroundTon = value; }
}
[ModelDB]
public decimal LoadCount
{
get { return _loadCount; }
set { _loadCount = value; }
}
[ModelDB]
public string ArriveDate
{
get { return _arriveDate; }
set { _arriveDate = value; }
}
[ModelDB]
public string DdCode
{
get { return _ddCode; }
set { _ddCode = value; }
}
public string DdCode_Ref
{
get { return _ddCode_Ref; }
set { _ddCode_Ref = value; }
}
[ModelDB]
public string DdName
{
get { return _ddName; }
set { _ddName = value; }
}
[ModelDB]
public string ReturnDate
{
get { return _returnDate; }
set { _returnDate = value; }
}
[ModelDB]
public string Remark
{
get { return _remark; }
set { _remark = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string BillStatus
{
get { return _billStatus; }
set { _billStatus = value; }
}
public string BillStatus_Ref
{
get { return _billStatus_Ref; }
set { _billStatus_Ref = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string FeeStatus
{
get { return _feeStatus; }
set { _feeStatus = value; }
}
public string FeeStatus_Ref
{
get { return _feeStatus_Ref; }
set { _feeStatus_Ref = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string GId
{
get { return _gId; }
set { _gId = value; }
}
[ModelDB]
public decimal TotalMil
{
get { return _totalMil; }
set { _totalMil = value; }
}
public decimal TimeMark
{
get { return _timeMark; }
set { _timeMark = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string PcBillType
{
get { return _pcBillType; }
set { _pcBillType = value; }
}
public string OilticketNO
{
get { return _oilticketno; }
set { _oilticketno = value; }
}
[ModelDB]
public string ACCDATE
{
get { return _ACCDATE; }
set { _ACCDATE = value; }
}
#endregion
public MsWlPcHead()
{
TableName = "tMsWlPcHead";
GId = "TMSBL" + Guid.NewGuid().ToString("N").ToUpper();
}
}
#region 参照部分
public class MsWlPcHeadRefMsWlTruck
{
public string TruckNo { get; set; }
public string DrvCode { get; set; }
public string Mobile { get; set; }
}
public class MsWlPcHeadRefMsWlDriver
{
public string DrvCode { get; set; }
public string DrvName { get; set; }
public string CodeAndName { get; set; }
}
#endregion
}