using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
/// <summary>
|
/// 计划订单表
|
/// </summary>
|
[Serializable]
|
public partial class CoreDeliverOrder : IAggregateRoot
|
{
|
public CoreDeliverOrder()
|
{
|
}
|
|
#region Model
|
|
/// <summary>
|
/// 序号
|
/// </summary>
|
public Guid id { get; set; }
|
/// <summary>
|
/// 订单ID 关联order.id
|
/// </summary>
|
public int? OrderId { get; set; }
|
|
/// <summary>
|
/// 司机电话
|
/// </summary>
|
public System.String DeliveryMoble { get; set; }
|
|
/// <summary>
|
///司机id
|
/// </summary>
|
public int? DriverId { get; set; }
|
|
|
public System.String CreateBy { get; set; }
|
|
public System.String UpDataBy { get; set; }
|
|
public DateTime? CreateTime { get; set; }
|
|
public DateTime? UpdataTime { get; set; }
|
|
|
|
public System.String ContactName { get; set; }
|
|
public System.String ContactPhone { get; set; }
|
|
public System.String pianqu { get; set; }
|
public System.String shipAddress { get; set; }
|
public System.String DriverName { get; set; }
|
|
public System.String BuyerName { get; set; }
|
public int OrderState { get; set; }
|
|
|
public string OrderStateName { get
|
{
|
if(OrderState == 0)
|
{
|
return "未送";
|
}
|
else if(OrderState == 1)
|
{
|
return "配送中";
|
}
|
else if (OrderState == 2)
|
{
|
return "已送";
|
}
|
return "未送";
|
|
}
|
}
|
|
/// <summary>
|
/// 送货时间
|
/// </summary>
|
public System.DateTime? MakeTime { get; set; }
|
|
/// <summary>
|
/// 送货时间
|
/// </summary>
|
public System.DateTime? StartTime { get; set; }
|
|
/// <summary>
|
/// 送货时间
|
/// </summary>
|
public System.DateTime? OverTime { get; set; }
|
|
|
public System.String Remarke { get; set; }
|
|
|
|
|
|
|
#endregion Model
|
|
#region Visiter
|
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
|
{
|
object theValue = null;
|
|
|
if ("id".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
|
{
|
this.id = isChange ? MyConvert.ConvertToGuid(value) : id;
|
theValue = this.id;
|
}
|
else if ("OrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.OrderId = isChange ? MyConvert.ConvertToInt32(value) : OrderId;
|
theValue = this.OrderId;
|
}
|
else if ("DeliveryMoble".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.DeliveryMoble = isChange ? MyConvert.ConvertToString(value) : DeliveryMoble;
|
theValue = this.DeliveryMoble;
|
}
|
|
else if ("MakeTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.MakeTime = isChange ? MyConvert.ConvertToDateTime(value) : MakeTime;
|
theValue = this.MakeTime;
|
}
|
else if ("OrderState".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.OrderState = isChange ? MyConvert.ConvertToInt32(value).Value : OrderState;
|
theValue = this.OrderState;
|
}
|
|
else if ("CreateBy".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.CreateBy = isChange ? MyConvert.ConvertToString(value) : CreateBy;
|
theValue = this.CreateBy;
|
}
|
else if ("UpDataBy".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.UpDataBy = isChange ? MyConvert.ConvertToString(value) : UpDataBy;
|
theValue = this.UpDataBy;
|
}
|
else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime;
|
theValue = this.CreateTime;
|
}
|
else if ("UpdataTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.UpdataTime = isChange ? MyConvert.ConvertToDateTime(value) : UpdataTime;
|
theValue = this.UpdataTime;
|
}
|
|
else if ("StartTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.StartTime = isChange ? MyConvert.ConvertToDateTime(value) : StartTime;
|
theValue = this.StartTime;
|
}
|
else if ("OverTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.OverTime = isChange ? MyConvert.ConvertToDateTime(value) : OverTime;
|
theValue = this.OverTime;
|
}
|
|
else if ("Remarke".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.Remarke = isChange ? MyConvert.ConvertToString(value) : Remarke;
|
theValue = this.Remarke;
|
}
|
|
else if ("ContactName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.ContactName = isChange ? MyConvert.ConvertToString(value) : ContactName;
|
theValue = this.ContactName;
|
}
|
|
else if ("ContactPhone".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.ContactPhone = isChange ? MyConvert.ConvertToString(value) : ContactPhone;
|
theValue = this.ContactPhone;
|
}
|
|
else if ("DriverId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.DriverId = isChange ? MyConvert.ConvertToInt32(value) : DriverId;
|
theValue = this.DriverId;
|
}
|
else if ("pianqu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.pianqu = isChange ? MyConvert.ConvertToString(value) : pianqu;
|
theValue = this.pianqu;
|
}
|
else if ("shipAddress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.shipAddress = isChange ? MyConvert.ConvertToString(value) : shipAddress;
|
theValue = this.shipAddress;
|
}
|
else if ("DriverName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.DriverName = isChange ? MyConvert.ConvertToString(value) : DriverName;
|
theValue = this.DriverName;
|
}
|
else if ("BuyerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.BuyerName = isChange ? MyConvert.ConvertToString(value) : BuyerName;
|
theValue = this.BuyerName;
|
}
|
|
return theValue;
|
}
|
|
#endregion
|
}
|
}
|