/** * EC_OrderExtendExtend.cs * * 功 能: 订单扩展信息表实体扩展类 * 类 名: EC_OrderExtend * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-23 10:13:00 吴崎均 迁移Visiter到此类 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 订单扩展表扩展类 /// public partial class EC_OrderExtend { /// /// 初始化 /// /// 是否简略实例化 public EC_OrderExtend(bool isInitBrief) { this.FileId = -1; this.ProofreadWayId = -1; this.ProofreadState = -1; this.ProofreadFileId = -1; this.PrintNum = -1; this.ExigencyCaseId = -1; this.BusinessManagerId = -1; this.CustomerManagerId = -1; this.CustomerLevelId = -1; this.Contacts = ""; this.ContactPhone = ""; this.InvoiceId = -1; this.SurplusPrintNum = -1; this.Operate = ""; this.Remark = ""; this.BookNum = ""; this.BookPrice = ""; this.NumPerBag = ""; this.BagNum = ""; this.Productionprogress = ""; this.DelayTime = null; } #region ExtendProperties private Sys_Dictionary _proofreadway; /// /// 校稿方式 /// public Sys_Dictionary ProofreadWay { get { _proofreadway = null == _proofreadway ? new Sys_Dictionary() : _proofreadway; return _proofreadway; } set { value = _proofreadway; } } private Sys_Dictionary _proofreadstateobj = null; /// /// 校稿状态 /// public Sys_Dictionary ProofreadStateObj { get { _proofreadstateobj = null == _proofreadstateobj ? new Sys_Dictionary() : _proofreadstateobj; return _proofreadstateobj; } set { _proofreadstateobj = value; } } private Sys_Dictionary _exigencycase; /// /// 紧急程度 /// public Sys_Dictionary ExigencyCase { get { _exigencycase = null == _exigencycase ? new Sys_Dictionary() : _exigencycase; return _exigencycase; } set { value = _exigencycase; } } private Sys_Dictionary _customerlevel; /// /// 客户级别 /// public Sys_Dictionary CustomerLevel { get { _customerlevel = null == _customerlevel ? new Sys_Dictionary() : _customerlevel; return _customerlevel; } set { value = _customerlevel; } } private OA_Staff _businessmanager; /// /// 业务经理 /// public OA_Staff BusinessManager { get { _businessmanager = null == _businessmanager ? new OA_Staff() : _businessmanager; return _businessmanager; } set { value = _businessmanager; } } private OA_Staff _customermanager; /// /// 客户经理 /// public OA_Staff CustomerManager { get { _customermanager = null == _customermanager ? new OA_Staff() : _customermanager; return _customermanager; } set { value = _customermanager; } } /// /// 开票申请 /// public int? Kaipiaoshenqing { get; set; } /// /// 开票申请人 /// public Guid? KaipiaoshenqingId { get; set; } /// /// 开票申请 /// public string KaipiaoshenqingName { get; set; } /// /// 开票申请人 /// public Guid? KaipiaoshenqingCreater { get; set; } /// /// 开票申请时间 /// public DateTime? KaipiaoshenqingTime { get; set; } /// /// 去除订单 /// public int? Quchudingdan { get; set; } /// /// 去除订单人 /// public Guid? QuchudingdanCreater { get; set; } /// /// 去除订单时间 /// public DateTime? QuchudingdanTime { get; set; } /// /// 客户签收 /// public int? Kehuqianshou { get; set; } /// /// 客户签收 /// public string KehuqianshouName { get; set; } /// /// 客户签收人 /// public Guid? KehuqianshouCreater { get; set; } /// /// 客户签收时间 /// public DateTime? KehuqianshouTime { get; set; } /// /// 开票确认人 /// public Guid? KaipiaoquerenCreater { get; set; } /// /// 开票确认时间 /// public DateTime? KaipiaoquerenTime { get; set; } /// /// 送货单号 /// public Guid? DeliveryOrderId { get; set; } /// /// 是否安排送货 `1是2否 /// public int? shifouDelivery { get; set; } /// /// 设计状态,是否下单 `1是2否 /// public int? ShejiStatus { get; set; } /// /// 设计人员 /// public int? Shejirenyuan { get; set; } /// /// 设计人员 /// public string ShejirenyuanName { get; set; } /// /// 设计类型 /// public int? Shejileixing { get; set; } /// /// 设计类型 /// public string ShejileixingName { get; set; } /// /// 单双面 /// public string Danshuangmian { get; set; } /// /// 设计要求 /// public string Shejiyaoqiu { get; set; } /// /// 设计人员 /// public int? Shejirenyuanneiye { get; set; } /// /// 设计人员 /// public string ShejirenyuanNameneiye { get; set; } /// /// 设计类型 /// public int? Shejileixingneiye { get; set; } /// /// 设计类型 /// public string ShejileixingNameneiye { get; set; } /// /// 单双面 /// public string Danshuangmianneiye { get; set; } /// /// 设计要求 /// public string Shejiyaoqiuneiye { get; set; } /// /// 设计单价 /// public decimal? ShejiUnitPrice { get; set; } /// /// 设计金额 /// public decimal? ShejiSumPrice { get; set; } /// /// 设计单价内页 /// public decimal? ShejiUnitPriceneiye { get; set; } /// /// 设计金额内页 /// public decimal? ShejiSumPriceneiye { get; set; } /// /// 设计数量 /// public int? Shejicount { get; set; } /// /// 设计数量内页 /// public int? Shejicountneiye { get; set; } public string Duiyinghetongbianhao { get; set; } #endregion #region Visiter /// /// 属性访问器 /// /// 属性名 /// 索引 /// 是否将指定属性设置为传入值 /// 需要赋予的值 /// 与名称对应的属性值 public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) { object theValue = null; #region Basic if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) { this.Keyid = isChange ? MyConvert.ConvertToInt32(value) : Keyid; theValue = this.Keyid; } else if ("FileId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.FileId = isChange ? MyConvert.ConvertToInt32(value) : FileId; theValue = this.FileId; } else if ("ProofreadWayId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.ProofreadWayId = isChange ? MyConvert.ConvertToInt32(value) : ProofreadWayId; theValue = this.ProofreadWayId; } else if ("ProofreadState".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.ProofreadState = isChange ? MyConvert.ConvertToInt32(value) : ProofreadState; theValue = this.ProofreadState; } else if ("ProofreadFileId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.ProofreadFileId = isChange ? MyConvert.ConvertToInt32(value) : ProofreadFileId; theValue = this.ProofreadFileId; } else if ("PrintNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.PrintNum = isChange ? MyConvert.ConvertToInt32(value) : PrintNum; theValue = this.PrintNum; } else if ("ExigencyCaseId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.ExigencyCaseId = isChange ? MyConvert.ConvertToInt32(value) : ExigencyCaseId; theValue = this.ExigencyCaseId; } else if ("BusinessManagerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.BusinessManagerId = isChange ? MyConvert.ConvertToInt32(value) : BusinessManagerId; theValue = this.BusinessManagerId; } else if ("CustomerManagerId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.CustomerManagerId = isChange ? MyConvert.ConvertToInt32(value) : CustomerManagerId; theValue = this.CustomerManagerId; } else if ("CustomerLevelId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.CustomerLevelId = isChange ? MyConvert.ConvertToInt32(value) : CustomerLevelId; theValue = this.CustomerLevelId; } else if ("Contacts".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.Contacts = isChange ? MyConvert.ConvertToString(value) : Contacts; theValue = this.Contacts; } else if ("ContactPhone".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.ContactPhone = isChange ? MyConvert.ConvertToString(value) : ContactPhone; theValue = this.ContactPhone; } else if ("InvoiceId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.InvoiceId = isChange ? MyConvert.ConvertToInt32(value) : InvoiceId; theValue = this.InvoiceId; } else if ("SurplusPrintNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.SurplusPrintNum = isChange ? MyConvert.ConvertToInt32(value) : SurplusPrintNum; theValue = this.SurplusPrintNum; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operate".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) { this.Operate = isChange ? MyConvert.ConvertToString(value) : Operate; theValue = this.Operate; } else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) { this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; theValue = this.Remark; } else if ("BookNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) { this.BookNum = isChange ? MyConvert.ConvertToString(value) : BookNum; theValue = this.BookNum; } else if ("BookPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) { this.BookPrice = isChange ? MyConvert.ConvertToString(value) : BookPrice; theValue = this.BookPrice; } else if ("NumPerBag".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20) { this.NumPerBag = isChange ? MyConvert.ConvertToString(value) : NumPerBag; theValue = this.NumPerBag; } else if ("BagNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) { this.BagNum = isChange ? MyConvert.ConvertToString(value) : BagNum; theValue = this.BagNum; } #endregion #region Extend else if ("ProofreadWayName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30) { this.ProofreadWay.Name = isChange ? MyConvert.ConvertToString(value) : this.ProofreadWay.Name; theValue = this.ProofreadWay.Name; } else if ("ProofreadStateName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31) { this.ProofreadStateObj.Name = isChange ? MyConvert.ConvertToString(value) : this.ProofreadStateObj.Name; theValue = this.ProofreadStateObj.Name; } else if ("ExigencyCaseName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32) { this.ExigencyCase.Name = isChange ? MyConvert.ConvertToString(value) : this.ExigencyCase.Name; theValue = this.ExigencyCase.Name; } else if ("CustomerLevelName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 33) { this.CustomerLevel.Name = isChange ? MyConvert.ConvertToString(value) : this.CustomerLevel.Name; theValue = this.CustomerLevel.Name; } else if ("BusinessManagerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 34) { this.BusinessManager.Name = isChange ? MyConvert.ConvertToString(value) : this.BusinessManager.Name; theValue = this.BusinessManager.Name; } else if ("CustomerManagerName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 35) { this.CustomerManager.Name = isChange ? MyConvert.ConvertToString(value) : this.CustomerManager.Name; theValue = this.CustomerManager.Name; } else if ("DelayTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 36) { this.DelayTime = isChange ? MyConvert.ConvertToDateTime(value) : this.DelayTime; theValue = this.DelayTime; } else if ("Productionprogress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 37) { this.Productionprogress = isChange ? MyConvert.ConvertToString(value) : this.Productionprogress; theValue = this.Productionprogress; } else if ("PrintPackDeliveryRequir".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 38) { this.PrintPackDeliveryRequir = isChange ? MyConvert.ConvertToString(value) : this.PrintPackDeliveryRequir; theValue = this.PrintPackDeliveryRequir; } else if ("Kaipiaoshenqing".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 39) { this.Kaipiaoshenqing = isChange ? MyConvert.ConvertToInt32(value) : this.Kaipiaoshenqing; theValue = this.Kaipiaoshenqing; } else if ("KaipiaoshenqingTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 40) { this.KaipiaoshenqingTime = isChange ? MyConvert.ConvertToDateTime(value) : this.KaipiaoshenqingTime; theValue = this.KaipiaoshenqingTime; } else if ("KaipiaoshenqingCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 41) { this.KaipiaoshenqingCreater = isChange ? MyConvert.ConvertToGuid(value) : this.KaipiaoshenqingCreater; theValue = this.KaipiaoshenqingCreater; } else if ("Quchudingdan".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 42) { this.Quchudingdan = isChange ? MyConvert.ConvertToInt32(value) : this.Quchudingdan; theValue = this.Quchudingdan; } else if ("QuchudingdanTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 43) { this.QuchudingdanTime = isChange ? MyConvert.ConvertToDateTime(value) : this.QuchudingdanTime; theValue = this.QuchudingdanTime; } else if ("QuchudingdanCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 44) { this.QuchudingdanCreater = isChange ? MyConvert.ConvertToGuid(value) : this.QuchudingdanCreater; theValue = this.QuchudingdanCreater; } else if ("KaipiaoshenqingName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 45) { this.KaipiaoshenqingName = isChange ? MyConvert.ConvertToString(value) : this.KaipiaoshenqingName; theValue = this.KaipiaoshenqingName; } else if ("Kehuqianshou".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 46) { this.Kehuqianshou = isChange ? MyConvert.ConvertToInt32(value) : this.Kehuqianshou; theValue = this.Kehuqianshou; } else if ("KehuqianshouTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 47) { this.KehuqianshouTime = isChange ? MyConvert.ConvertToDateTime(value) : this.KehuqianshouTime; theValue = this.KehuqianshouTime; } else if ("KehuqianshouCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 48) { this.KehuqianshouCreater = isChange ? MyConvert.ConvertToGuid(value) : this.KehuqianshouCreater; theValue = this.KehuqianshouCreater; } else if ("KehuqianshouName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 49) { this.KehuqianshouName = isChange ? MyConvert.ConvertToString(value) : this.KehuqianshouName; theValue = this.KehuqianshouName; } else if ("KaipiaoquerenTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 50) { this.KaipiaoquerenTime = isChange ? MyConvert.ConvertToDateTime(value) : this.KaipiaoquerenTime; theValue = this.KaipiaoquerenTime; } else if ("KaipiaoquerenCreater".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 51) { this.KaipiaoquerenCreater = isChange ? MyConvert.ConvertToGuid(value) : this.KaipiaoquerenCreater; theValue = this.KaipiaoquerenCreater; } else if ("DeliveryOrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 52) { this.DeliveryOrderId = isChange ? MyConvert.ConvertToGuid(value) : this.DeliveryOrderId; theValue = this.DeliveryOrderId; } else if ("shifouDelivery".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 53) { this.shifouDelivery = isChange ? MyConvert.ConvertToInt32(value) : this.shifouDelivery; theValue = this.shifouDelivery; } else if ("Duiyinghetongbianhao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 54) { this.Duiyinghetongbianhao = isChange ? MyConvert.ConvertToString(value) : this.Duiyinghetongbianhao; theValue = this.Duiyinghetongbianhao; } else if ("ShejiStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 55) { this.ShejiStatus = isChange ? MyConvert.ConvertToInt32(value) : this.ShejiStatus; theValue = this.ShejiStatus; } else if ("Shejirenyuan".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 56) { this.Shejirenyuan = isChange ? MyConvert.ConvertToInt32(value) : this.Shejirenyuan; theValue = this.Shejirenyuan; } else if ("ShejirenyuanName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 57) { this.ShejirenyuanName = isChange ? MyConvert.ConvertToString(value) : this.ShejirenyuanName; theValue = this.ShejirenyuanName; } else if ("Shejileixing".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 58) { this.Shejileixing = isChange ? MyConvert.ConvertToInt32(value) : this.Shejileixing; theValue = this.Shejileixing; } else if ("ShejileixingName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 59) { this.ShejileixingName = isChange ? MyConvert.ConvertToString(value) : this.ShejileixingName; theValue = this.ShejileixingName; } else if ("Danshuangmian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 60) { this.Danshuangmian = isChange ? MyConvert.ConvertToString(value) : this.Danshuangmian; theValue = this.Danshuangmian; } else if ("Shejiyaoqiu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 61) { this.Shejiyaoqiu = isChange ? MyConvert.ConvertToString(value) : this.Shejiyaoqiu; theValue = this.Shejiyaoqiu; } else if ("Shejirenyuanneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 62) { this.Shejirenyuanneiye = isChange ? MyConvert.ConvertToInt32(value) : this.Shejirenyuanneiye; theValue = this.Shejirenyuanneiye; } else if ("ShejirenyuanNameneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 63) { this.ShejirenyuanNameneiye = isChange ? MyConvert.ConvertToString(value) : this.ShejirenyuanNameneiye; theValue = this.ShejirenyuanNameneiye; } else if ("Shejileixingneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 64) { this.Shejileixingneiye = isChange ? MyConvert.ConvertToInt32(value) : this.Shejileixingneiye; theValue = this.Shejileixingneiye; } else if ("ShejileixingNameneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 65) { this.ShejileixingNameneiye = isChange ? MyConvert.ConvertToString(value) : this.ShejileixingNameneiye; theValue = this.ShejileixingNameneiye; } else if ("Danshuangmianneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 66) { this.Danshuangmianneiye = isChange ? MyConvert.ConvertToString(value) : this.Danshuangmianneiye; theValue = this.Danshuangmianneiye; } else if ("Shejiyaoqiuneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 67) { this.Shejiyaoqiuneiye = isChange ? MyConvert.ConvertToString(value) : this.Shejiyaoqiuneiye; theValue = this.Shejiyaoqiuneiye; } else if ("ShejiUnitPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 68) { this.ShejiUnitPrice = isChange ? MyConvert.ConvertToDecimal(value) : this.ShejiUnitPrice; theValue = this.ShejiUnitPrice; } else if ("ShejiSumPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 69) { this.ShejiSumPrice = isChange ? MyConvert.ConvertToDecimal(value) : this.ShejiSumPrice; theValue = this.ShejiSumPrice; } else if ("ShejiUnitPriceneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 70) { this.ShejiUnitPriceneiye = isChange ? MyConvert.ConvertToDecimal(value) : this.ShejiUnitPriceneiye; theValue = this.ShejiUnitPriceneiye; } else if ("ShejiSumPriceneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 71) { this.ShejiSumPriceneiye = isChange ? MyConvert.ConvertToDecimal(value) : this.ShejiSumPriceneiye; theValue = this.ShejiSumPriceneiye; } else if ("Shejicount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 72) { this.Shejicount = isChange ? MyConvert.ConvertToInt32(value) : this.Shejicount; theValue = this.Shejicount; } else if ("Shejicountneiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 73) { this.Shejicountneiye = isChange ? MyConvert.ConvertToInt32(value) : this.Shejicountneiye; theValue = this.Shejicountneiye; } #endregion return theValue; } #endregion } }