using BP.En; namespace BP.WF.Port { /// /// 流程部门数据查询权限 /// public class DeptFlowSearchAttr { #region 基本属性 /// /// 工作人员ID /// public const string FK_Emp = "FK_Emp"; /// /// 部门 /// public const string FK_Dept = "FK_Dept"; /// /// 流程编号 /// public const string FK_Flow = "FK_Flow"; #endregion } /// /// 流程部门数据查询权限 的摘要说明。 /// public class DeptFlowSearch : EntityMyPK { /// /// UI界面上的访问控制 /// public override UAC HisUAC { get { UAC uac = new UAC(); if (BP.Web.WebUser.No == "admin") { uac.IsView = true; uac.IsDelete = true; uac.IsInsert = true; uac.IsUpdate = true; uac.IsAdjunct = true; } return uac; } } #region 基本属性 /// /// 工作人员ID /// public string EmpNo { get { return this.GetValStringByKey(DeptFlowSearchAttr.FK_Emp); } set { SetValByKey(DeptFlowSearchAttr.FK_Emp, value); } } /// ///部门 /// public string DeptNo { get { return this.GetValStringByKey(DeptFlowSearchAttr.FK_Dept); } set { SetValByKey(DeptFlowSearchAttr.FK_Dept, value); } } /// /// 流程编号 /// public string FlowNo { get { return this.GetValStringByKey(DeptFlowSearchAttr.FK_Flow); } set { this.SetValByKey(DeptFlowSearchAttr.FK_Flow, value); } } #endregion #region 构造函数 /// /// 流程部门数据查询权限 /// public DeptFlowSearch() { } /// /// 重写基类方法 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("WF_DeptFlowSearch", "流程部门数据查询权限"); map.AddMyPK(); map.AddTBString(DeptFlowSearchAttr.FK_Emp, null, "操作员", true, true, 1, 100, 11); map.AddTBString(DeptFlowSearchAttr.FK_Flow, null, "流程编号", true, true, 1, 4, 11); map.AddTBString(DeptFlowSearchAttr.FK_Dept, null, "部门编号", true, true, 1, 100, 11); this._enMap = map; return this._enMap; } } #endregion } /// /// 流程部门数据查询权限 /// public class DeptFlowSearchs : EntitiesMyPK { #region 构造 /// /// 流程部门数据查询权限 /// public DeptFlowSearchs() { } /// /// 流程部门数据查询权限 /// /// FK_Emp public DeptFlowSearchs(string FK_Emp) { QueryObject qo = new QueryObject(this); qo.AddWhere(DeptFlowSearchAttr.FK_Emp, FK_Emp); qo.DoQuery(); } #endregion #region 方法 /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new DeptFlowSearch(); } } #endregion #region 查询方法 #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((DeptFlowSearch)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }