using System; using BP.En; namespace BP.WF.Data { /// /// 工作质量评价 /// public class EvalAttr { #region 基本属性 /// /// 流程编号 /// public const string FK_Flow="FK_Flow"; /// /// 流程名称 /// public const string FlowName = "FlowName"; /// /// 考核的节点 /// public const string FK_Node = "FK_Node"; /// /// 节点名称 /// public const string NodeName = "NodeName"; /// /// 工作ID /// public const string WorkID = "WorkID"; /// /// 隶属部门 /// public const string FK_Dept = "FK_Dept"; /// /// 部门名称 /// public const string DeptName = "DeptName"; /// /// 年月 /// public const string FK_NY="FK_NY"; /// /// 标题 /// public const string Title = "Title"; /// /// 评价时间 /// public const string RDT = "RDT"; /// /// 被考核的人员名称 /// public const string EvalEmpName="EvalEmpName"; /// /// 被考核的人员编号 /// public const string EvalEmpNo="EvalEmpNo"; /// /// 评价分值 /// public const string EvalCent = "EvalCent"; /// /// 评价内容 /// public const string EvalNote = "EvalNote"; /// /// 评价人员 /// public const string Rec="Rec"; /// /// 评价人员名称 /// public const string RecName = "RecName"; #endregion } /// /// 工作质量评价 /// public class Eval : EntityMyPK { #region 基本属性 /// /// 流程标题 /// public string Title { get { return this.GetValStringByKey(EvalAttr.Title); } set { this.SetValByKey(EvalAttr.Title, value); } } /// /// 工作ID /// public Int64 WorkID { get { return this.GetValInt64ByKey(EvalAttr.WorkID); } set { this.SetValByKey(EvalAttr.WorkID,value); } } /// /// 节点编号 /// public int NodeID { get { return this.GetValIntByKey(EvalAttr.FK_Node); } set { this.SetValByKey(EvalAttr.FK_Node,value); } } /// /// 节点名称 /// public string NodeName { get { return this.GetValStringByKey(EvalAttr.NodeName); } set { this.SetValByKey(EvalAttr.NodeName, value); } } /// /// 被评估人员名称 /// public string EvalEmpName { get { return this.GetValStringByKey(EvalAttr.EvalEmpName); } set { this.SetValByKey(EvalAttr.EvalEmpName,value); } } /// /// 记录日期 /// public string RDT { get { return this.GetValStringByKey(EvalAttr.RDT); } set { this.SetValByKey(EvalAttr.RDT,value); } } /// /// 流程隶属部门 /// public string DeptNo { get { return this.GetValStringByKey(EvalAttr.FK_Dept); } set { this.SetValByKey(EvalAttr.FK_Dept,value); } } /// /// 部门名称 /// public string DeptName { get { return this.GetValStringByKey(EvalAttr.DeptName); } set { this.SetValByKey(EvalAttr.DeptName, value); } } /// /// 隶属年月 /// public string NY { get { return this.GetValStringByKey(EvalAttr.FK_NY); } set { this.SetValByKey(EvalAttr.FK_NY,value); } } /// /// 流程编号 /// public string FlowNo { get { return this.GetValStringByKey(EvalAttr.FK_Flow); } set { this.SetValByKey(EvalAttr.FK_Flow, value); } } /// /// 流程名称 /// public string FlowName { get { return this.GetValStringByKey(EvalAttr.FlowName); } set { this.SetValByKey(EvalAttr.FlowName, value); } } /// /// 评价人 /// public string Rec { get { return this.GetValStringByKey(EvalAttr.Rec); } set { this.SetValByKey(EvalAttr.Rec,value); } } /// /// 评价人名称 /// public string RecName { get { return this.GetValStringByKey(EvalAttr.RecName); } set { this.SetValByKey(EvalAttr.RecName, value); } } /// /// 评价内容 /// public string EvalNote { get { return this.GetValStringByKey(EvalAttr.EvalNote); } set { this.SetValByKey(EvalAttr.EvalNote, value); } } /// /// 被考核的人员编号 /// public string EvalEmpNo { get { return this.GetValStringByKey(EvalAttr.EvalEmpNo); } set { this.SetValByKey(EvalAttr.EvalEmpNo, value); } } /// /// 评价分值 /// public string EvalCent { get { return this.GetValStringByKey(EvalAttr.EvalCent); } set { this.SetValByKey(EvalAttr.EvalCent, value); } } #endregion #region 构造函数 /// /// 工作质量评价 /// public Eval() { } /// /// 工作质量评价 /// /// /// public Eval(int workid, int nodeID) { this.WorkID=workid; this.NodeID= nodeID; this.Retrieve(); } /// /// 重写基类方法 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("WF_CHEval", "工作质量评价"); map.AddMyPK(); map.AddTBString(EvalAttr.Title, null, "标题", false, true, 0, 500, 10); map.AddTBString(EvalAttr.FK_Flow, null, "流程编号", false, true, 0, 4, 10); map.AddTBString(EvalAttr.FlowName, null, "流程名称", false, true, 0, 100, 10); map.AddTBInt(EvalAttr.WorkID, 0, "工作ID", false, true); map.AddTBInt(EvalAttr.FK_Node, 0, "评价节点", false, true); map.AddTBString(EvalAttr.NodeName, null, "停留节点", false, true, 0, 100, 10); map.AddTBString(EvalAttr.Rec, null, "评价人", false, true, 0, 50, 10); map.AddTBString(EvalAttr.RecName, null, "评价人名称", false, true, 0, 50, 10); map.AddTBDateTime(EvalAttr.RDT, "评价日期", true, true); map.AddTBString(EvalAttr.EvalEmpNo, null, "被考核的人员编号", false, true, 0, 50, 10); map.AddTBString(EvalAttr.EvalEmpName, null, "被考核的人员名称", false, true, 0, 50, 10); map.AddTBString(EvalAttr.EvalCent, null, "评价分值", false, true, 0, 20, 10); map.AddTBString(EvalAttr.EvalNote, null, "评价内容", false, true, 0, 20, 10); map.AddTBString(EvalAttr.FK_Dept, null, "部门", false, true, 0, 50, 10); map.AddTBString(EvalAttr.DeptName, null, "部门名称", false, true, 0, 100, 10); map.AddTBString(EvalAttr.FK_NY, null, "年月", false, true, 0, 7, 10); this._enMap = map; return this._enMap; } } #endregion } /// /// 工作质量评价s BP.Port.FK.Evals /// public class Evals : EntitiesMyPK { #region 方法 /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new Eval(); } } /// /// 工作质量评价s /// public Evals(){} #endregion #region 为了适应自动翻译成java的需要,把实体转换成List. /// /// 转化成 java list,C#不能调用. /// /// List public System.Collections.Generic.IList ToJavaList() { return (System.Collections.Generic.IList)this; } /// /// 转化成list /// /// List public System.Collections.Generic.List Tolist() { System.Collections.Generic.List list = new System.Collections.Generic.List(); for (int i = 0; i < this.Count; i++) { list.Add((Eval)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }