using System; using BP.En; namespace BP.WF.Data.Admin2Group { /// /// 时效考核 /// public class CHExt : EntityMyPK { #region 基本属性 /// /// 考核状态 /// public CHSta CHSta { get { return (CHSta)this.GetValIntByKey(CHAttr.CHSta); } set { this.SetValByKey(CHAttr.CHSta, (int)value); } } /// /// 时间到 /// public string DTTo { get { return this.GetValStringByKey(CHAttr.DTTo); } set { this.SetValByKey(CHAttr.DTTo, value); } } /// /// 时间从 /// public string DTFrom { get { return this.GetValStringByKey(CHAttr.DTFrom); } set { this.SetValByKey(CHAttr.DTFrom, value); } } /// /// 应完成日期 /// public string SDT { get { return this.GetValStringByKey(CHAttr.SDT); } set { this.SetValByKey(CHAttr.SDT, value); } } /// /// 流程标题 /// public string Title { get { return this.GetValStringByKey(CHAttr.Title); } set { this.SetValByKey(CHAttr.Title, value); } } /// /// 流程编号 /// public string FK_Flow { get { return this.GetValStringByKey(CHAttr.FK_Flow); } set { this.SetValByKey(CHAttr.FK_Flow, value); } } /// /// 流程 /// public string FK_FlowT { get { return this.GetValStringByKey(CHAttr.FK_FlowT); } set { this.SetValByKey(CHAttr.FK_FlowT, value); } } /// /// 限期 /// public int TimeLimit { get { return this.GetValIntByKey(CHAttr.TimeLimit); } set { this.SetValByKey(CHAttr.TimeLimit, value); } } /// /// 操作人员 /// public string FK_Emp { get { return this.GetValStringByKey(CHAttr.FK_Emp); } set { this.SetValByKey(CHAttr.FK_Emp, value); } } /// /// 人员 /// public string FK_EmpT { get { return this.GetValStringByKey(CHAttr.FK_EmpT); } set { this.SetValByKey(CHAttr.FK_EmpT, value); } } /// /// 部门 /// public string FK_Dept { get { return this.GetValStrByKey(CHAttr.FK_Dept); } set { this.SetValByKey(CHAttr.FK_Dept, value); } } /// /// 部门名称 /// public string FK_DeptT { get { return this.GetValStrByKey(CHAttr.FK_DeptT); } set { this.SetValByKey(CHAttr.FK_DeptT, value); } } /// /// 年月 /// public string FK_NY { get { return this.GetValStrByKey(CHAttr.FK_NY); } set { this.SetValByKey(CHAttr.FK_NY, value); } } /// /// 工作ID /// public Int64 WorkID { get { return this.GetValInt64ByKey(CHAttr.WorkID); } set { this.SetValByKey(CHAttr.WorkID, value); } } /// /// 流程ID /// public Int64 FID { get { return this.GetValInt64ByKey(CHAttr.FID); } set { this.SetValByKey(CHAttr.FID, value); } } /// /// 节点ID /// public int FK_Node { get { return this.GetValIntByKey(CHAttr.FK_Node); } set { this.SetValByKey(CHAttr.FK_Node, value); } } /// /// 节点名称 /// public string FK_NodeT { get { return this.GetValStrByKey(CHAttr.FK_NodeT); } set { this.SetValByKey(CHAttr.FK_NodeT, value); } } #endregion #region 构造方法 /// /// UI界面上的访问控制 /// public override UAC HisUAC { get { UAC uac = new UAC(); uac.IsDelete = false; uac.IsInsert = false; uac.IsUpdate = false; uac.IsView = true; return uac; } } /// /// 时效考核 /// public CHExt() { } /// /// /// /// public CHExt(string pk) : base(pk) { } #endregion #region Map /// /// EnMap /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("WF_CH", "时效考核"); map.AddMyPK(); map.AddTBString(CHAttr.FK_DeptT, null, "部门", true, true, 0, 900, 5, true); map.AddDDLEntities(CHAttr.FK_Emp, null, "当事人", new BP.Port.Emps(), false); map.AddDDLEntities(CHAttr.FK_Flow, null, "流程", new FlowSimples(), false); map.AddTBString(CHAttr.Title, null, "标题", true, true, 0, 900, 5, true); map.AddTBString(CHAttr.FK_NodeT, null, "节点名称", true, true, 0, 50, 5); map.AddTBString(CHAttr.DTFrom, null, "时间从", true, true, 0, 50, 5); map.AddTBString(CHAttr.DTTo, null, "到", true, true, 0, 50, 5); map.AddTBString(CHAttr.SDT, null, "应完成日期", true, true, 0, 50, 5); map.AddTBString(CHAttr.TimeLimit, null, "限期", true, true, 0, 50, 5); map.AddTBFloat(CHAttr.UseDays, 0, "实际使用天", false, true); map.AddTBFloat(CHAttr.OverDays, 0, "逾期天", false, true); map.AddDDLSysEnum(CHAttr.CHSta, 0, "状态", true, true, CHAttr.CHSta, "@0=及时完成@1=按期完成@2=逾期完成@3=超期完成"); map.AddTBString(CHAttr.FK_NY, null, "月份", true, true, 0, 50, 5); map.AddTBInt(CHAttr.WorkID, 0, "工作ID", true, true); map.AddTBString(CHAttr.OrgNo, null, "OrgNo", false, false, 0, 50, 5); //查询条件. map.AddSearchAttr(CHAttr.CHSta); map.AddSearchAttr(CHAttr.FK_Flow); map.AddHidden("OrgNo", " = ", "@WebUser.OrgNo"); //查询本组织的. //方法. RefMethod rm = new RefMethod(); rm.Title = "详情"; rm.ClassMethodName = this.ToString() + ".DoOpen"; rm.RefMethodType = RefMethodType.LinkeWinOpen; rm.IsForEns = false; map.AddRefMethod(rm); this._enMap = map; return this._enMap; } } #endregion public string DoOpen() { return "../../MyView.htm?FK_Flow" + this.FK_Flow + "&WorkID=" + this.WorkID + "&OID=" + this.WorkID; } } /// /// 时效考核s /// public class CHExts : Entities { #region 构造方法属性 /// /// 时效考核s /// public CHExts() { } #endregion #region 属性 /// /// 时效考核 /// public override Entity GetNewEntity { get { return new CHExt(); } } #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((CHExt)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }