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.
552 lines
14 KiB
C#
552 lines
14 KiB
C#
using System;
|
|
using HcUtility.Core;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace DSWeb.Areas.TruckMng.Models.MsWlDjPc
|
|
{
|
|
[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 _drvCode_Ref = String.Empty;
|
|
private string _drvName = 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 _refBillNo = 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 _loadPlace = string.Empty;
|
|
|
|
private decimal _loadFuel = 0;
|
|
|
|
private decimal _noLoadFuel = 0;
|
|
|
|
private string _bsType = "0";
|
|
private string _bsType_Ref = String.Empty;
|
|
|
|
|
|
private string _feeOpStatus = "0";
|
|
private string _feeOpStatus_Ref = "未提交";
|
|
|
|
private decimal _runTimes = 1;
|
|
|
|
|
|
//private string _neadLoadDate = string.Empty;
|
|
//[ModelDB]
|
|
//public string NeadLoadDate
|
|
//{
|
|
// get { return _neadLoadDate; }
|
|
// set { _neadLoadDate = value; }
|
|
//}
|
|
|
|
//private string _needArriveDate = string.Empty;
|
|
//[ModelDB]
|
|
//public string NeedArriveDate
|
|
//{
|
|
// get { return _needArriveDate; }
|
|
// set { _needArriveDate = value; }
|
|
//}
|
|
|
|
private string _arriveTime = string.Empty;
|
|
private string _returnTime = string.Empty;
|
|
private string _billRises1 = string.Empty;
|
|
private decimal _changedMil = 0;
|
|
private decimal _changedFuel = 0;
|
|
private string _changedReson = string.Empty;
|
|
private string _ywType = "0111";
|
|
private string _pcBillType = "2";
|
|
private string _PcBillTypeREF = string.Empty;
|
|
|
|
private string _TransTotal = string.Empty;
|
|
|
|
|
|
#endregion
|
|
|
|
#region Public Properties
|
|
|
|
public string TransTotal
|
|
{
|
|
get { return _TransTotal; }
|
|
set { _TransTotal = value; }
|
|
}
|
|
|
|
[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 DrvCode_Ref
|
|
{
|
|
get { return _drvCode_Ref; }
|
|
set { _drvCode_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; }
|
|
}
|
|
|
|
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; }
|
|
}
|
|
|
|
public string DdName
|
|
{
|
|
get { return _ddName; }
|
|
set { _ddName = value; }
|
|
}
|
|
[ModelDB]
|
|
public string ReturnDate
|
|
{
|
|
get { return _returnDate; }
|
|
set { _returnDate = value; }
|
|
}
|
|
[ModelDB]
|
|
public string RefBillNo
|
|
{
|
|
get { return _refBillNo; }
|
|
set { _refBillNo = 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]
|
|
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]
|
|
public string LoadPlace
|
|
{
|
|
get { return _loadPlace; }
|
|
set { _loadPlace = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public decimal LoadFuel
|
|
{
|
|
get { return _loadFuel; }
|
|
set { _loadFuel = value; }
|
|
}
|
|
[ModelDB]
|
|
public decimal NoLoadFuel
|
|
{
|
|
get { return _noLoadFuel; }
|
|
set { _noLoadFuel = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public string BsType
|
|
{
|
|
get { return _bsType; }
|
|
set { _bsType = value; }
|
|
}
|
|
public string BsType_Ref
|
|
{
|
|
get { return _bsType_Ref; }
|
|
set { _bsType_Ref = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public string BillRises1
|
|
{
|
|
get
|
|
{
|
|
return this._billRises1;
|
|
}
|
|
set
|
|
{
|
|
this._billRises1 = value;
|
|
}
|
|
}
|
|
|
|
[ModelDB]
|
|
public decimal ChangedMil
|
|
{
|
|
get
|
|
{
|
|
return this._changedMil;
|
|
}
|
|
set
|
|
{
|
|
this._changedMil = value;
|
|
}
|
|
}
|
|
|
|
[ModelDB]
|
|
public decimal ChangedFuel
|
|
{
|
|
get
|
|
{
|
|
return this._changedFuel;
|
|
}
|
|
set
|
|
{
|
|
this._changedFuel = value;
|
|
}
|
|
}
|
|
|
|
[ModelDB]
|
|
public string ChangedReson
|
|
{
|
|
get
|
|
{
|
|
return this._changedReson;
|
|
}
|
|
set
|
|
{
|
|
this._changedReson = value;
|
|
}
|
|
}
|
|
|
|
public string YwType
|
|
{
|
|
get
|
|
{
|
|
return this._ywType;
|
|
}
|
|
set
|
|
{
|
|
this._ywType = value;
|
|
}
|
|
}
|
|
|
|
public string FeeOpStatus
|
|
{
|
|
get { return _feeOpStatus; }
|
|
set { _feeOpStatus = value; }
|
|
}
|
|
|
|
public string FeeOpStatus_Ref
|
|
{
|
|
get { return _feeOpStatus_Ref; }
|
|
set { _feeOpStatus_Ref = value; }
|
|
}
|
|
|
|
[ModelDB]
|
|
public decimal RunTimes
|
|
{
|
|
get
|
|
{
|
|
return this._runTimes;
|
|
}
|
|
set
|
|
{
|
|
this._runTimes = value;
|
|
}
|
|
}
|
|
|
|
[ModelDB]
|
|
public string ArriveTime
|
|
{
|
|
get { return _arriveTime; }
|
|
set { _arriveTime = value; }
|
|
}
|
|
[ModelDB]
|
|
public string ReturnTime
|
|
{
|
|
get { return _returnTime; }
|
|
set { _returnTime = value; }
|
|
}
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
public string PcBillType
|
|
{
|
|
get { return _pcBillType; }
|
|
set { _pcBillType = value; }
|
|
}
|
|
|
|
public string PcBillTypeREF
|
|
{
|
|
get { return _PcBillTypeREF; }
|
|
set { _PcBillTypeREF = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
public MsWlPcHead()
|
|
{
|
|
TableName = "tMsWlPcHead";
|
|
GId = "TMSPC" + Guid.NewGuid().ToString("N").ToUpper();
|
|
}
|
|
|
|
override public string GetBillNoFieldName()
|
|
{
|
|
return "GId";
|
|
}
|
|
}
|
|
|
|
#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; }
|
|
|
|
public string Mobile { get; set; }
|
|
}
|
|
|
|
|
|
#endregion
|
|
}
|