/** * EC_MergerForums.cs * * 功 能: N/A * 类 名: EC_MergerForums * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:31 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 专版施工单版面 /// [Serializable] public partial class EC_SpecialHoudaos : IAggregateRoot { public EC_SpecialHoudaos() { } #region Model /// /// 主键--标识ID /// public int? Keyid { set; get; } public int? SpecialOrderId { get; set; } public string PSF_Houdaogongxu { get; set; } public string PSF_Shuliang { get; set; } public string PSF_Beishu { get; set; } public string PSF_Jichang { get; set; } public string PSF_Yaoqiu { 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.ConvertToInt32(value) : Keyid; theValue = this.Keyid; } else if ("SpecialOrderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.SpecialOrderId = isChange ? MyConvert.ConvertToInt32(value) : SpecialOrderId; theValue = this.SpecialOrderId; } else if ("PSF_Houdaogongxu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.PSF_Houdaogongxu = isChange ? MyConvert.ConvertToString(value) : PSF_Houdaogongxu; theValue = this.PSF_Houdaogongxu; } else if ("PSF_Shuliang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.PSF_Shuliang = isChange ? MyConvert.ConvertToString(value) : PSF_Shuliang; theValue = this.PSF_Shuliang; } else if ("PSF_Beishu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.PSF_Beishu = isChange ? MyConvert.ConvertToString(value) : PSF_Beishu; theValue = this.PSF_Beishu; } else if ("PSF_Jichang".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.PSF_Jichang = isChange ? MyConvert.ConvertToString(value) : PSF_Jichang; theValue = this.PSF_Jichang; } else if ("PSF_Yaoqiu".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.PSF_Yaoqiu = isChange ? MyConvert.ConvertToString(value) : PSF_Yaoqiu; theValue = this.PSF_Yaoqiu; } return theValue; } #endregion } }