/** * OA_CorporateClients.cs * * 功 能: N/A * 类 名: OA_CorporateClients * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:43 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 印刷参数 /// [Serializable] public partial class OA_DeliverPlan : IAggregateRoot { public OA_DeliverPlan() { } #region Model /// /// id /// public Guid Keyid { get; set; } public Guid? YujihuikuanKeyid { get; set; } /// /// OrderId /// public int? OrderId { get; set; } /// /// FirmId /// public Guid FirmId { get; set; } /// /// 客户id /// public Guid BuyerId { get; set; } /// /// 客户id /// public string BuyerName { get; set; } public string CompanyName { get; set; } public string BusinessManager { get; set; } public string DizhiLianxirenDianhua { get; set; } public int? shuliang { get; set; } public int? fapiaoshuliang { get; set; } /// /// 要求到达时间 /// public DateTime? DeliverTime { get; set; } /// /// 要求到达时间 /// public DateTime? YujihuikuanTime { get; set; } /// /// 实际收货时间 /// public DateTime? DeliveredTime { get; set; } /// /// 注意事项 /// public string Zhuyishixiang { get; set; } /// /// 工作考评 /// public string Gongzuokaoping { get; set; } /// /// 车辆id /// public int? CarId { get; set; } public string CarName { get; set; } /// /// 司机id /// public int? DriverId { get; set; } public string DriverName { get; set; } /// /// 移交状态 /// public int? Transferstatus { get; set; } public string TransferstatusName { get; set; } /// /// 移交时间 /// public DateTime? TransfersTime { get; set; } /// /// 创建人 /// public Guid? Creater { get; set; } /// /// 创建时间 /// public DateTime? CreateTime { get; set; } /// /// 修改人 /// public Guid? Updater { get; set; } /// /// 修改时间 /// public DateTime? LastUpdateTime { get; set; } /// /// 排序 /// public int? Sort { get; set; } public string wentifankui { get; set; } public string qianshou { get; set; } public string Yichangchuli { get; set; } public string Xingzhengzhuize { get; set; } public string SellerOrderId { get; set; } public string Dianhua { get; set; } public string Lianxiren { get; set; } public string Dizhi { get; set; } public string Remark { get; set; } public int? BusinessManagerId { get; set; } public int? Biddingcompany { get; set; } public int? shifouDelivery { get; set; } public decimal? SumPrice { get; set; } public decimal? PayedMoney { get; set; } public decimal? Contractmoney { get; set; } /// /// 修改时间 /// public DateTime? chaxuntime { get; set; } /// /// 修改时间 /// public DateTime? chaxuntimestart { get; set; } /// /// 修改时间 /// public DateTime? chaxuntimeend { get; set; } /// /// 回款客户 /// public decimal? huikuankehu { get; set; } /// /// 未回款客户 /// public decimal? weihuikuankehu { get; set; } /// /// 未付款 /// public decimal UnPayedMoney { get { return SumPrice.HasValue && PayedMoney.HasValue ? (SumPrice - PayedMoney).Value : 0; } } /// /// 未付款 /// public decimal UnorderMoney { get { return SumPrice.HasValue && Contractmoney.HasValue ? (Contractmoney - SumPrice).Value : 0; } } public string shoukuanshijian { get; set; } public int? Paytime { get; set; } public string quyu { get; set; } public string ContracttypeName { get; set; } public string ExpiretypeName { get; set; } public DateTime? ExpireTime { get; set; } public decimal? gendanshuliang { get; set; } public decimal? xinzengshuliang { get; set; } public decimal? wanjieshuliang { get; set; } public decimal? xiadanshuliang { get; set; } public decimal? kaipiaojine { get; set; } public decimal? huifangshuliang { get; set; } #endregion Model #region Visiter /// /// 属性访问器 /// /// 属性名 /// 索引 /// 是否将指定属性设置为传入值 /// 需要赋予的值 /// 与名称对应的属性值 public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) { object theValue = null; if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) { this.Keyid = isChange ? MyConvert.ConvertToGuid(value) : Keyid; theValue = this.Keyid; } else if ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId; theValue = this.FirmId; } else if ("BuyerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.BuyerId = isChange ? MyConvert.ConvertToGuid(value) : BuyerId; theValue = this.BuyerId; } else if ("BuyerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.BuyerName = isChange ? MyConvert.ConvertToString(value) : BuyerName; theValue = this.BuyerName; } else if ("DeliveredTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.DeliveredTime = isChange ? MyConvert.ConvertToDateTime(value) : DeliveredTime; theValue = this.DeliveredTime; } else if ("Zhuyishixiang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.Zhuyishixiang = isChange ? MyConvert.ConvertToString(value) : Zhuyishixiang; theValue = this.Zhuyishixiang; } else if ("Gongzuokaoping".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.Gongzuokaoping = isChange ? MyConvert.ConvertToString(value) : Gongzuokaoping; theValue = this.Gongzuokaoping; } else if ("CarId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.CarId = isChange ? MyConvert.ConvertToInt32(value) : CarId; theValue = this.CarId; } else if ("CarName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.CarName = isChange ? MyConvert.ConvertToString(value) : CarName; theValue = this.CarName; } else if ("DriverId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.DriverId = isChange ? MyConvert.ConvertToInt32(value) : DriverId; theValue = this.DriverId; } else if ("DriverName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.DriverName = isChange ? MyConvert.ConvertToString(value) : DriverName; theValue = this.DriverName; } else if ("Transferstatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.Transferstatus = isChange ? MyConvert.ConvertToInt32(value) : Transferstatus; theValue = this.Transferstatus; } else if ("TransferstatusName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.TransferstatusName = isChange ? MyConvert.ConvertToString(value) : TransferstatusName; theValue = this.TransferstatusName; } else if ("TransfersTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.TransfersTime = isChange ? MyConvert.ConvertToDateTime(value) : TransfersTime; theValue = this.TransfersTime; } else if ("Creater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.Creater = isChange ? MyConvert.ConvertToGuid(value) : Creater; theValue = this.Creater; } else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; theValue = this.CreateTime; } else if ("Updater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) { this.Updater = isChange ? MyConvert.ConvertToGuid(value) : Updater; theValue = this.Updater; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Sort".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) { this.Sort = isChange ? MyConvert.ConvertToInt32(value) : Sort; theValue = this.Sort; } else if ("BusinessManager".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) { this.BusinessManager = isChange ? MyConvert.ConvertToString(value) : BusinessManager; theValue = this.BusinessManager; } else if ("DizhiLianxirenDianhua".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20) { this.DizhiLianxirenDianhua = isChange ? MyConvert.ConvertToString(value) : DizhiLianxirenDianhua; theValue = this.DizhiLianxirenDianhua; } else if ("shuliang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) { this.shuliang = isChange ? MyConvert.ConvertToInt32(value) : shuliang; theValue = this.shuliang; } else if ("DeliverTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) { this.DeliverTime = isChange ? MyConvert.ConvertToDateTime(value) : DeliverTime; theValue = this.DeliverTime; } else if ("wentifankui".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24) { this.wentifankui = isChange ? MyConvert.ConvertToString(value) : wentifankui; theValue = this.wentifankui; } else if ("Yichangchuli".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25) { this.Yichangchuli = isChange ? MyConvert.ConvertToString(value) : Yichangchuli; theValue = this.Yichangchuli; } else if ("Xingzhengzhuize".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26) { this.Xingzhengzhuize = isChange ? MyConvert.ConvertToString(value) : Xingzhengzhuize; theValue = this.Xingzhengzhuize; } else if ("SellerOrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27) { this.SellerOrderId = isChange ? MyConvert.ConvertToString(value) : SellerOrderId; theValue = this.SellerOrderId; } else if ("Dianhua".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) { this.Dianhua = isChange ? MyConvert.ConvertToString(value) : Dianhua; theValue = this.Dianhua; } else if ("Dizhi".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29) { this.Dizhi = isChange ? MyConvert.ConvertToString(value) : Dizhi; theValue = this.Dizhi; } else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30) { this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; theValue = this.Remark; } else if ("BusinessManagerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31) { this.BusinessManagerId = isChange ? MyConvert.ConvertToInt32(value) : BusinessManagerId; theValue = this.BusinessManagerId; } else if ("Biddingcompany".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32) { this.Biddingcompany = isChange ? MyConvert.ConvertToInt32(value) : Biddingcompany; theValue = this.Biddingcompany; } else if ("shifouDelivery".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 33) { this.shifouDelivery = isChange ? MyConvert.ConvertToInt32(value) : shifouDelivery; theValue = this.shifouDelivery; } else if ("Lianxiren".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 34) { this.Lianxiren = isChange ? MyConvert.ConvertToString(value) : Lianxiren; theValue = this.Lianxiren; } else if ("SumPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 35) { this.SumPrice = isChange ? MyConvert.ConvertToDecimal(value) : SumPrice; theValue = this.SumPrice; } else if ("PayedMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 36) { this.PayedMoney = isChange ? MyConvert.ConvertToDecimal(value) : PayedMoney; theValue = this.PayedMoney; } else if ("shoukuanshijian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 37) { this.shoukuanshijian = isChange ? MyConvert.ConvertToString(value) : shoukuanshijian; theValue = this.shoukuanshijian; } else if ("Paytime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 38) { this.Paytime = isChange ? MyConvert.ConvertToInt32(value) : Paytime; theValue = this.Paytime; } else if ("OrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 39) { this.OrderId = isChange ? MyConvert.ConvertToInt32(value) : OrderId; theValue = this.OrderId; } else if ("YujihuikuanTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 40) { this.YujihuikuanTime = isChange ? MyConvert.ConvertToDateTime(value) : YujihuikuanTime; theValue = this.YujihuikuanTime; } else if ("YujihuikuanKeyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 41) { this.YujihuikuanKeyid = isChange ? MyConvert.ConvertToGuid(value) : YujihuikuanKeyid; theValue = this.YujihuikuanKeyid; } else if ("quyu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 42) { this.quyu = isChange ? MyConvert.ConvertToString(value) : quyu; theValue = this.quyu; } else if ("ContracttypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 43) { this.ContracttypeName = isChange ? MyConvert.ConvertToString(value) : ContracttypeName; theValue = this.ContracttypeName; } else if ("Contractmoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 44) { this.Contractmoney = isChange ? MyConvert.ConvertToDecimal(value) : Contractmoney; theValue = this.Contractmoney; } else if ("ExpiretypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 45) { this.ExpiretypeName = isChange ? MyConvert.ConvertToString(value) : ExpiretypeName; theValue = this.ExpiretypeName; } else if ("ExpireTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 46) { this.ExpireTime = isChange ? MyConvert.ConvertToDateTime(value) : ExpireTime; theValue = this.ExpireTime; } else if ("gendanshuliang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 47) { this.gendanshuliang = isChange ? MyConvert.ConvertToDecimal(value) : gendanshuliang; theValue = this.gendanshuliang; } else if ("xinzengshuliang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 48) { this.xinzengshuliang = isChange ? MyConvert.ConvertToDecimal(value) : xinzengshuliang; theValue = this.xinzengshuliang; } else if ("wanjieshuliang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 49) { this.wanjieshuliang = isChange ? MyConvert.ConvertToDecimal(value) : wanjieshuliang; theValue = this.wanjieshuliang; } else if ("xiadanshuliang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 50) { this.xiadanshuliang = isChange ? MyConvert.ConvertToDecimal(value) : xiadanshuliang; theValue = this.xiadanshuliang; } else if ("kaipiaojine".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 51) { this.kaipiaojine = isChange ? MyConvert.ConvertToDecimal(value) : kaipiaojine; theValue = this.kaipiaojine; } else if ("huifangshuliang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 52) { this.huifangshuliang = isChange ? MyConvert.ConvertToDecimal(value) : huifangshuliang; theValue = this.huifangshuliang; } else if ("chaxuntime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 53) { this.chaxuntime = isChange ? MyConvert.ConvertToDateTime(value) : chaxuntime; theValue = this.chaxuntime; } else if ("chaxuntimestart".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 54) { this.chaxuntimestart = isChange ? MyConvert.ConvertToDateTime(value) : chaxuntimestart; theValue = this.chaxuntimestart; } else if ("chaxuntimeend".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 55) { this.chaxuntimeend = isChange ? MyConvert.ConvertToDateTime(value) : chaxuntimeend; theValue = this.chaxuntimeend; } else if ("huikuankehu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 56) { this.huikuankehu = isChange ? MyConvert.ConvertToDecimal(value) : huikuankehu; theValue = this.huikuankehu; } else if ("weihuikuankehu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 57) { this.weihuikuankehu = isChange ? MyConvert.ConvertToDecimal(value) : weihuikuankehu; theValue = this.weihuikuankehu; } else if ("CompanyName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 58) { this.CompanyName = isChange ? MyConvert.ConvertToString(value) : CompanyName; theValue = this.CompanyName; } return theValue; } #endregion } }