using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// ///工作安排 /// [Serializable] public partial class OA_WorkPlan : IAggregateRoot { public OA_WorkPlan() { } #region Model private int? _keyid; private Guid _memberid; private Guid _sentstaffid; private int? _departid; private Guid _recivestaffid; private int? _plantype; private int? _plandatatype; private string _plantitle; private string _plancontent; private DateTime? _planruntime; private decimal? _planmoney; private string _planremark; private DateTime? _planstarttime; private string _planpeople; private string _plancomplany; private int? _planstatus; private Guid _approvalstaffid; private int? _approvalstatus; private DateTime? _approvaltime; private string _approvalcontent; private DateTime? _lastupdatetime; private string _operator; private int? _evaluationstatus; private string _evaluationcontent; private Guid _evaluationstaffid; private DateTime? _evaluationtime; private int? _rewardtype; private string _rewardcontent; private string _rewardresult; private decimal? _rewardmoney; /// /// 编号 /// public int? Keyid { get { return _keyid; } set { _keyid = value; } } /// /// 会员编号 /// public Guid MemberId { get { return _memberid; } set { _memberid = value; } } /// /// 发起人编号 /// public Guid SentStaffId { get { return _sentstaffid; } set { _sentstaffid = value; } } /// /// 部门编号 /// public int? DepartId { get { return _departid; } set { _departid = value; } } /// /// 接收人编号 /// public Guid ReciveStaffId { get { return _recivestaffid; } set { _recivestaffid = value; } } /// /// 计划类型/工作安排1,任务下达2,我的请示3 /// public int? PlanType { get { return _plantype; } set { _plantype = value; } } /// /// 计划性质/客户拜访1,业务跟单2,行政工作3,其他计划4 /// 请示类别/请假5,出差6,用车7,采购申请8,物品领用9,业务经费10,客户联谊11,其他12,开票申请13 /// public int? PlanDataType { get { return _plandatatype; } set { _plandatatype = value; } } /// /// 主题 /// public string PlanTitle { get { return _plantitle; } set { _plantitle = value; } } /// /// 内容 /// public string PlanContent { get { return _plancontent; } set { _plancontent = value; } } /// /// 执行时间 /// public DateTime? PlanRunTime { get { return _planruntime; } set { _planruntime = value; } } /// /// 申请费用 /// public decimal? PlanMoney { get { return _planmoney; } set { _planmoney = value; } } /// /// 备注 /// public string PlanRemark { get { return _planremark; } set { _planremark = value; } } /// /// 计划添加时间 /// public DateTime? PlanStartTime { get { return _planstarttime; } set { _planstarttime = value; } } /// /// 承办人 /// public string PlanPeople { get { return _planpeople; } set { _planpeople = value; } } /// /// 对口单位 /// public string PlanComplany { get { return _plancomplany; } set { _plancomplany = value; } } /// /// 计划状态/未批复1,已批复2 /// public int? PlanStatus { get { return _planstatus; } set { _planstatus = value; } } /// /// 审核人编号 /// public Guid ApprovalStaffId { get { return _approvalstaffid; } set { _approvalstaffid = value; } } /// /// 审核状态/未审核0,批准1,不批准2,已结束3 /// public int? ApprovalStatus { get { return _approvalstatus; } set { _approvalstatus = value; } } /// /// 审核时间 /// public DateTime? ApprovalTime { get { return _approvaltime; } set { _approvaltime = value; } } /// /// 审核批复 /// public string ApprovalContent { get { return _approvalcontent; } set { _approvalcontent = value; } } /// /// 最后修改时间 /// public DateTime? LastUpdateTime { get { return _lastupdatetime; } set { _lastupdatetime = value; } } /// /// 操作人 /// public string Operator { get { return _operator; } set { _operator = value; } } /// /// 考评结果/未审核0,合格1,不合格2 /// public int? EvaluationStatus { get { return _evaluationstatus; } set { _evaluationstatus = value; } } /// /// 考评内容 /// public string EvaluationContent { get { return _evaluationcontent; } set { _evaluationcontent = value; } } /// /// 考评人 /// public Guid EvaluationStaffId { get { return _evaluationstaffid; } set { _evaluationstaffid = value; } } /// /// 考评时间 /// public DateTime? EvaluationTime { get { return _evaluationtime; } set { _evaluationtime = value; } } /// /// 奖励类型/无0,奖励1,惩罚2 /// public int? RewardType { get { return _rewardtype; } set { _rewardtype = value; } } /// /// 奖励原因 /// public string RewardContent { get { return _rewardcontent; } set { _rewardcontent = value; } } /// /// 奖励结果 /// public string RewardResult { get { return _rewardresult; } set { _rewardresult = value; } } /// /// 奖励金额 /// public decimal? RewardMoney { get { return _rewardmoney; } set { _rewardmoney = value; } } /// /// 任务下达人 /// public string SentStaffName { get; set; } /// /// 承办人 /// public string ReciveStaffName { get; set; } /// /// 审核人 /// public string ApprovalStaffName { get; set; } /// /// 考评人 /// public string EvaluationStaff { get; set; } /// /// 工作性质 /// public string PlanDataTypeName { get; set; } /// /// 部门名称 /// public string DepartName { get; set; } /// /// 承办人性别 /// public string ReciveStaffSex { get; set; } /// /// 统计奖励 /// public decimal? AllReward { get; set; } /// /// 统计罚款 /// public decimal? AllFine { 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.ConvertToInt(value) : Keyid; theValue = this.Keyid; } else if ("MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : MemberId; theValue = this.MemberId; } else if ("SentStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.SentStaffId = isChange ? MyConvert.ConvertToGuid(value) : SentStaffId; theValue = this.SentStaffId; } else if ("DepartId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.DepartId = isChange ? MyConvert.ConvertToInt(value) : DepartId; theValue = this.DepartId; } else if ("ReciveStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.ReciveStaffId = isChange ? MyConvert.ConvertToGuid(value) : ReciveStaffId; theValue = this.ReciveStaffId; } else if ("PlanType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.PlanType = isChange ? MyConvert.ConvertToInt(value) : PlanType; theValue = this.PlanType; } else if ("PlanDataType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.PlanDataType = isChange ? MyConvert.ConvertToInt(value) : PlanDataType; theValue = this.PlanDataType; } else if ("PlanTitle".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.PlanTitle = isChange ? MyConvert.ConvertToString(value) : PlanTitle; theValue = this.PlanTitle; } else if ("PlanContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.PlanContent = isChange ? MyConvert.ConvertToString(value) : PlanContent; theValue = this.PlanContent; } else if ("PlanRunTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.PlanRunTime = isChange ? MyConvert.ConvertToDateTime(value) : PlanRunTime; theValue = this.PlanRunTime; } else if ("PlanMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.PlanMoney = isChange ? MyConvert.ConvertToDecimal(value) : PlanMoney; theValue = this.PlanMoney; } else if ("PlanRemark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.PlanRemark = isChange ? MyConvert.ConvertToString(value) : PlanRemark; theValue = this.PlanRemark; } else if ("PlanStartTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.PlanStartTime = isChange ? MyConvert.ConvertToDateTime(value) : PlanStartTime; theValue = this.PlanStartTime; } else if ("PlanPeople".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.PlanPeople = isChange ? MyConvert.ConvertToString(value) : PlanPeople; theValue = this.PlanPeople; } else if ("PlanComplany".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.PlanComplany = isChange ? MyConvert.ConvertToString(value) : PlanComplany; theValue = this.PlanComplany; } else if ("PlanStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) { this.PlanStatus = isChange ? MyConvert.ConvertToInt(value) : PlanStatus; theValue = this.PlanStatus; } else if ("ApprovalStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) { this.ApprovalStaffId = isChange ? MyConvert.ConvertToGuid(value) : ApprovalStaffId; theValue = this.ApprovalStaffId; } else if ("ApprovalStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) { this.ApprovalStatus = isChange ? MyConvert.ConvertToInt(value) : ApprovalStatus; theValue = this.ApprovalStatus; } else if ("ApprovalTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) { this.ApprovalTime = isChange ? MyConvert.ConvertToDateTime(value) : ApprovalTime; theValue = this.ApprovalTime; } else if ("ApprovalContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20) { this.ApprovalContent = isChange ? MyConvert.ConvertToString(value) : ApprovalContent; theValue = this.ApprovalContent; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("EvaluationStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23) { this.EvaluationStatus = isChange ? MyConvert.ConvertToInt(value) : EvaluationStatus; theValue = this.EvaluationStatus; } else if ("EvaluationContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24) { this.EvaluationContent = isChange ? MyConvert.ConvertToString(value) : EvaluationContent; theValue = this.EvaluationContent; } else if ("EvaluationStaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25) { this.EvaluationStaffId = isChange ? MyConvert.ConvertToGuid(value) : EvaluationStaffId; theValue = this.EvaluationStaffId; } else if ("EvaluationTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26) { this.EvaluationTime = isChange ? MyConvert.ConvertToDateTime(value) : EvaluationTime; theValue = this.EvaluationTime; } else if ("RewardType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27) { this.RewardType = isChange ? MyConvert.ConvertToInt(value) : RewardType; theValue = this.RewardType; } else if ("RewardContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) { this.RewardContent = isChange ? MyConvert.ConvertToString(value) : RewardContent; theValue = this.RewardContent; } else if ("RewardResult".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29) { this.RewardResult = isChange ? MyConvert.ConvertToString(value) : RewardResult; theValue = this.RewardResult; } else if ("RewardMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30) { this.RewardMoney = isChange ? MyConvert.ConvertToDecimal(value) : RewardMoney; theValue = this.RewardMoney; } else if ("SentStaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 51) { this.SentStaffName = isChange ? MyConvert.ConvertToString(value) : SentStaffName; theValue = this.SentStaffName; } else if ("ReciveStaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 52) { this.ReciveStaffName = isChange ? MyConvert.ConvertToString(value) : ReciveStaffName; theValue = this.ReciveStaffName; } else if ("ApprovalStaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 53) { this.ApprovalStaffName = isChange ? MyConvert.ConvertToString(value) : ApprovalStaffName; theValue = this.ApprovalStaffName; } else if ("EvaluationStaff".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 54) { this.EvaluationStaff = isChange ? MyConvert.ConvertToString(value) : EvaluationStaff; theValue = this.EvaluationStaff; } else if ("PlanDataTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 55) { this.PlanDataTypeName = isChange ? MyConvert.ConvertToString(value) : PlanDataTypeName; theValue = this.PlanDataTypeName; } else if ("DepartName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 56) { this.DepartName = isChange ? MyConvert.ConvertToString(value) : DepartName; theValue = this.DepartName; } else if ("ReciveStaffSex".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 57) { this.ReciveStaffSex = isChange ? MyConvert.ConvertToString(value) : ReciveStaffSex; theValue = this.ReciveStaffSex; } else if ("AllReward".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 58) { this.AllReward = isChange ? MyConvert.ConvertToDecimal(value) : AllReward; theValue = this.AllReward; } else if ("AllFine".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 59) { this.AllFine = isChange ? MyConvert.ConvertToDecimal(value) : AllFine; theValue = this.AllFine; } return theValue; } #endregion Visiter } }