using BP.En; namespace BP.CCBill.Template { /// /// 台账子流程属性 /// public class DictFlowAttr:EntityMyPKAttr { #region 基本属性. /// /// 表单ID /// public const string FrmID = "FrmID"; /// /// 子流程编号 /// public const string FlowNo = "FlowNo"; /// /// 标签 /// public const string Label = "Label"; /// /// 是否显示在表格右边 /// public const string IsShowListRight = "IsShowListRight"; /// /// Idx /// public const string Idx = "Idx"; #endregion 基本属性. } /// /// 台账子流程 /// public class DictFlow : EntityMyPK { #region 基本属性 /// /// 表单ID /// public string FrmID { get { return this.GetValStringByKey(DictFlowAttr.FrmID); } set { this.SetValByKey(DictFlowAttr.FrmID, value); } } /// /// 方法名 /// public string FlowNo { get { return this.GetValStringByKey(DictFlowAttr.FlowNo); } set { this.SetValByKey(DictFlowAttr.FlowNo, value); } } /// /// 显示标签 /// public string Label { get { return this.GetValStringByKey(DictFlowAttr.Label); } set { this.SetValByKey(DictFlowAttr.Label, value); } } /// /// 是否显示在表格右边 /// public int ItIsShowListRight { get { return this.GetValIntByKey(DictFlowAttr.IsShowListRight); } set { this.SetValByKey(DictFlowAttr.IsShowListRight, value); } } /// /// 顺序号 /// public int Idx { get { return this.GetValIntByKey(DictFlowAttr.Idx); } set { this.SetValByKey(DictFlowAttr.Idx, value); } } #endregion #region 构造方法 /// /// 台账子流程 /// public DictFlow() { } /// /// 重写基类方法 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("Frm_DictFlow", "台账子流程"); map.AddMyPK(); map.AddTBString(DictFlowAttr.FrmID, null, "表单ID", true, false, 0, 300, 10); map.AddTBString(DictFlowAttr.FlowNo, null, "流程编号", true, false, 0, 20, 10); map.AddTBString(DictFlowAttr.Label, null, "功能标签", true, false, 0, 20, 10); map.AddTBInt(DictFlowAttr.IsShowListRight, 0, "是否显示在列表右边", true, false); map.AddTBInt(DictFlowAttr.Idx, 0, "Idx", true, false); this._enMap = map; return this._enMap; } } #endregion #region 移动. public void DoUp() { this.DoOrderUp(DictFlowAttr.FrmID, this.FrmID, DictFlowAttr.Idx); } public void DoDown() { this.DoOrderDown(DictFlowAttr.FrmID, this.FrmID, DictFlowAttr.Idx); } #endregion 移动. } /// /// 台账子流程 /// public class DictFlows : EntitiesMyPK { /// /// 台账子流程 /// public DictFlows() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new DictFlow(); } } #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((DictFlow)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }