/** *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_WorkPlan_attachment : IAggregateRoot { #region Model /// /// Keyid /// public int Keyid { get; set; } /// /// OA_WorkPlanId /// public int? OA_WorkPlanId { get; set; } /// /// PlanAttachment /// public string PlanAttachment { get; set; } /// /// AttachmentType 1发票 2 附件 3 /// public int? AttachmentType { get; set; } /// /// 创建时间 /// public DateTime? CreateTime { get; set; } /// /// Operator /// public string Operator { 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).Value : Keyid; theValue = this.Keyid; } else if ("OA_WorkPlanId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.OA_WorkPlanId = isChange ? MyConvert.ConvertToInt32(value).Value : OA_WorkPlanId; theValue = this.OA_WorkPlanId; } else if ("PlanAttachment".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.PlanAttachment = isChange ? MyConvert.ConvertToString(value) : PlanAttachment; theValue = this.PlanAttachment; } else if ("CreateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; theValue = this.CreateTime; } else if ("AttachmentType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.AttachmentType = isChange ? MyConvert.ConvertToInt32(value) : AttachmentType; theValue = this.AttachmentType; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } return theValue; } #endregion } }