using System; using System.Collections; using BP.DA; using BP.En; using BP.Port; using BP.Sys; namespace BP.WF.Template { /// /// 表单节点排除规则属性 /// public class FrmNodeFieldRemoveAttr { /// /// 表单ID /// public const string FrmID = "FrmID"; /// /// 流程 /// public const string FlowNo = "FlowNo"; /// /// 节点 /// public const string NodeID = "NodeID"; /// /// 要隐藏的字段s /// public const string Fields = "Fields"; /// /// 表达式类型: Emps,Depts,Stas,SQL /// public const string ExpType = "ExpType"; /// /// 组织结构 /// public const string Exp = "Exp"; } /// /// 表单节点排除规则 /// public class FrmNodeFieldRemove : EntityMyPK { #region 基本属性 /// /// UI界面上的访问控制 /// public override UAC HisUAC { get { UAC uac = new UAC(); uac.OpenForSysAdmin(); return uac; } } /// /// 流程编号 /// public string FlowNo { get { return this.GetValStringByKey(FrmNodeFieldRemoveAttr.FlowNo); } set { this.SetValByKey(FrmNodeFieldRemoveAttr.FlowNo, value); } } public string FrmID { get { return this.GetValStringByKey(FrmNodeFieldRemoveAttr.FrmID); } set { this.SetValByKey(FrmNodeFieldRemoveAttr.FrmID, value); } } public string Fields { get { return this.GetValStringByKey(FrmNodeFieldRemoveAttr.Fields); } set { this.SetValByKey(FrmNodeFieldRemoveAttr.Fields, value); } } public int NodeID { get { return this.GetValIntByKey(FrmNodeFieldRemoveAttr.NodeID); } set { this.SetValByKey(FrmNodeFieldRemoveAttr.NodeID, value); } } #endregion 基本属性 #region 构造方法 /// /// 表单节点排除规则 /// public FrmNodeFieldRemove() { } /// /// 表单节点排除规则 /// /// public FrmNodeFieldRemove(string mypk) : base(mypk) { } /// /// 重写基类方法 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("WF_FrmNodeFieldRemove", "表单节点排除规则"); map.AddMyPK(); map.AddTBString(FrmNodeFieldRemoveAttr.FrmID, null, "表单ID", true, true, 1, 200, 200); map.AddTBInt(FrmNodeFieldRemoveAttr.NodeID, 0, "节点编号", true, true); map.AddTBString(FrmNodeFieldRemoveAttr.FlowNo, null, "流程编号", true, true, 1, 10, 20); map.AddTBString(FrmNodeFieldRemoveAttr.Fields, null, "字段", false, false, 0, 50, 10, false); map.AddTBString(FrmNodeFieldRemoveAttr.ExpType, null, "表达式类型", false, false, 0, 50, 10, false); map.SetHelperAlert(FrmNodeFieldRemoveAttr.ExpType, "类型: Stas,Emps,Depts,SQL"); map.AddTBString(FrmNodeFieldRemoveAttr.Exp, null, "表达式", false, false, 0, 500, 10, false); this._enMap = map; return this._enMap; } } #endregion } /// /// 表单节点排除规则s /// public class FrmNodeFieldRemoves : EntitiesMyPK { #region 构造方法.. /// /// 表单节点排除规则 /// public FrmNodeFieldRemoves() { } #endregion 构造方法.. #region 公共方法. /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new FrmNodeFieldRemove(); } } #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((FrmNodeFieldRemove)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }