using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///工作安排
|
/// </summary>
|
[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;
|
|
/// <summary>
|
/// 编号
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// 会员编号
|
/// </summary>
|
public Guid MemberId
|
{
|
get
|
{
|
return _memberid;
|
}
|
set
|
{
|
_memberid = value;
|
}
|
}
|
/// <summary>
|
/// 发起人编号
|
/// </summary>
|
public Guid SentStaffId
|
{
|
get
|
{
|
return _sentstaffid;
|
}
|
set
|
{
|
_sentstaffid = value;
|
}
|
}
|
/// <summary>
|
/// 部门编号
|
/// </summary>
|
public int? DepartId
|
{
|
get
|
{
|
return _departid;
|
}
|
set
|
{
|
_departid = value;
|
}
|
}
|
/// <summary>
|
/// 接收人编号
|
/// </summary>
|
public Guid ReciveStaffId
|
{
|
get
|
{
|
return _recivestaffid;
|
}
|
set
|
{
|
_recivestaffid = value;
|
}
|
}
|
/// <summary>
|
/// 计划类型/工作安排1,任务下达2,我的请示3
|
/// </summary>
|
public int? PlanType
|
{
|
get
|
{
|
return _plantype;
|
}
|
set
|
{
|
_plantype = value;
|
}
|
}
|
/// <summary>
|
/// <para>计划性质/客户拜访1,业务跟单2,行政工作3,其他计划4</para>
|
/// <para>请示类别/请假5,出差6,用车7,采购申请8,物品领用9,业务经费10,客户联谊11,其他12,开票申请13</para>
|
/// </summary>
|
public int? PlanDataType
|
{
|
get
|
{
|
return _plandatatype;
|
}
|
set
|
{
|
_plandatatype = value;
|
}
|
}
|
/// <summary>
|
/// 主题
|
/// </summary>
|
public string PlanTitle
|
{
|
get
|
{
|
return _plantitle;
|
}
|
set
|
{
|
_plantitle = value;
|
}
|
}
|
/// <summary>
|
/// 内容
|
/// </summary>
|
public string PlanContent
|
{
|
get
|
{
|
return _plancontent;
|
}
|
set
|
{
|
_plancontent = value;
|
}
|
}
|
/// <summary>
|
/// 执行时间
|
/// </summary>
|
public DateTime? PlanRunTime
|
{
|
get
|
{
|
return _planruntime;
|
}
|
set
|
{
|
_planruntime = value;
|
}
|
}
|
/// <summary>
|
/// 申请费用
|
/// </summary>
|
public decimal? PlanMoney
|
{
|
get
|
{
|
return _planmoney;
|
}
|
set
|
{
|
_planmoney = value;
|
}
|
}
|
/// <summary>
|
/// 备注
|
/// </summary>
|
public string PlanRemark
|
{
|
get
|
{
|
return _planremark;
|
}
|
set
|
{
|
_planremark = value;
|
}
|
}
|
/// <summary>
|
/// 计划添加时间
|
/// </summary>
|
public DateTime? PlanStartTime
|
{
|
get
|
{
|
return _planstarttime;
|
}
|
set
|
{
|
_planstarttime = value;
|
}
|
}
|
/// <summary>
|
/// 承办人
|
/// </summary>
|
public string PlanPeople
|
{
|
get
|
{
|
return _planpeople;
|
}
|
set
|
{
|
_planpeople = value;
|
}
|
}
|
/// <summary>
|
/// 对口单位
|
/// </summary>
|
public string PlanComplany
|
{
|
get
|
{
|
return _plancomplany;
|
}
|
set
|
{
|
_plancomplany = value;
|
}
|
}
|
/// <summary>
|
/// 计划状态/未批复1,已批复2
|
/// </summary>
|
public int? PlanStatus
|
{
|
get
|
{
|
return _planstatus;
|
}
|
set
|
{
|
_planstatus = value;
|
}
|
}
|
/// <summary>
|
/// 审核人编号
|
/// </summary>
|
public Guid ApprovalStaffId
|
{
|
get
|
{
|
return _approvalstaffid;
|
}
|
set
|
{
|
_approvalstaffid = value;
|
}
|
}
|
/// <summary>
|
/// 审核状态/未审核0,批准1,不批准2,已结束3
|
/// </summary>
|
public int? ApprovalStatus
|
{
|
get
|
{
|
return _approvalstatus;
|
}
|
set
|
{
|
_approvalstatus = value;
|
}
|
}
|
/// <summary>
|
/// 审核时间
|
/// </summary>
|
public DateTime? ApprovalTime
|
{
|
get
|
{
|
return _approvaltime;
|
}
|
set
|
{
|
_approvaltime = value;
|
}
|
}
|
/// <summary>
|
/// 审核批复
|
/// </summary>
|
public string ApprovalContent
|
{
|
get
|
{
|
return _approvalcontent;
|
}
|
set
|
{
|
_approvalcontent = value;
|
}
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get
|
{
|
return _lastupdatetime;
|
}
|
set
|
{
|
_lastupdatetime = value;
|
}
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operator
|
{
|
get
|
{
|
return _operator;
|
}
|
set
|
{
|
_operator = value;
|
}
|
}
|
/// <summary>
|
/// 考评结果/未审核0,合格1,不合格2
|
/// </summary>
|
public int? EvaluationStatus
|
{
|
get
|
{
|
return _evaluationstatus;
|
}
|
set
|
{
|
_evaluationstatus = value;
|
}
|
}
|
/// <summary>
|
/// 考评内容
|
/// </summary>
|
public string EvaluationContent
|
{
|
get
|
{
|
return _evaluationcontent;
|
}
|
set
|
{
|
_evaluationcontent = value;
|
}
|
}
|
/// <summary>
|
/// 考评人
|
/// </summary>
|
public Guid EvaluationStaffId
|
{
|
get
|
{
|
return _evaluationstaffid;
|
}
|
set
|
{
|
_evaluationstaffid = value;
|
}
|
}
|
/// <summary>
|
/// 考评时间
|
/// </summary>
|
public DateTime? EvaluationTime
|
{
|
get
|
{
|
return _evaluationtime;
|
}
|
set
|
{
|
_evaluationtime = value;
|
}
|
}
|
/// <summary>
|
/// 奖励类型/无0,奖励1,惩罚2
|
/// </summary>
|
public int? RewardType
|
{
|
get
|
{
|
return _rewardtype;
|
}
|
set
|
{
|
_rewardtype = value;
|
}
|
}
|
/// <summary>
|
/// 奖励原因
|
/// </summary>
|
public string RewardContent
|
{
|
get
|
{
|
return _rewardcontent;
|
}
|
set
|
{
|
_rewardcontent = value;
|
}
|
}
|
/// <summary>
|
/// 奖励结果
|
/// </summary>
|
public string RewardResult
|
{
|
get
|
{
|
return _rewardresult;
|
}
|
set
|
{
|
_rewardresult = value;
|
}
|
}
|
/// <summary>
|
/// 奖励金额
|
/// </summary>
|
public decimal? RewardMoney
|
{
|
get
|
{
|
return _rewardmoney;
|
}
|
set
|
{
|
_rewardmoney = value;
|
}
|
}
|
|
/// <summary>
|
/// 任务下达人
|
/// </summary>
|
public string SentStaffName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 承办人
|
/// </summary>
|
public string ReciveStaffName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 审核人
|
/// </summary>
|
public string ApprovalStaffName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 考评人
|
/// </summary>
|
public string EvaluationStaff
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 工作性质
|
/// </summary>
|
public string PlanDataTypeName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 部门名称
|
/// </summary>
|
public string DepartName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 承办人性别
|
/// </summary>
|
public string ReciveStaffSex
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 统计奖励
|
/// </summary>
|
public decimal? AllReward
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 统计罚款
|
/// </summary>
|
public decimal? AllFine
|
{
|
get;
|
set;
|
}
|
#endregion Model
|
|
#region Visiter
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
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
|
}
|
}
|