using System; using BP.En; namespace BP.WF.Data { /// /// 逾期流程属性 /// public class DelayAttr { #region 属性 public const string MyPK = "MyPK"; /// /// 工作ID /// public const string WorkID = "WorkID"; /// /// 发起人 /// public const string Starter = "Starter"; /// /// 发起人名称 /// public const string StarterName = "StarterName"; /// /// 状态 /// public const string WFState = "WFState"; /// /// 部门编号 /// public const string FK_Dept = "FK_Dept"; /// /// 部门名称 /// public const string DeptName = "DeptName"; /// /// 流程编号 /// public const string FK_Flow = "FK_Flow"; /// /// 流程名称 /// public const string FlowName = "FlowName"; /// /// 停留节点 /// public const string FK_Node = "FK_Node"; /// /// 节点名称 /// public const string NodeName = "NodeName"; /// /// 标题 /// public const string Title = "Title"; /// /// 记录日期 /// public const string RDT = "RDT"; /// /// 应完成日期 /// public const string SDT = "SDT"; /// /// 当事人 /// public const string FK_Emp = "FK_Emp"; /// /// FK_EmpText /// public const string FK_EmpText = "FK_EmpText"; /// /// FID /// public const string FID = "FID"; /// /// 流程类别 /// public const string FK_FlowSort = "FK_FlowSort"; /// /// 系统类型 /// public const string SysType = "SysType"; /// /// 应完成日期 /// public const string SDTOfNode = "SDTOfNode"; /// ///催办次数 /// public const string PressTimes = "PressTimes"; /// /// 单据编号 /// public const string BillNo = "BillNo"; /// /// 流程备注 /// public const string FlowNote = "FlowNote"; /// /// 当前办理人 /// public const string TodoEmps = "TodoEmps"; /// /// 发送人 /// public const string Sender = "Sender"; #endregion } /// /// 逾期流程 /// public class Delay : EntityMyPK { #region 基本属性 /// /// workid /// public Int64 WorkID { get { return this.GetValInt64ByKey(DelayAttr.WorkID); } set { this.SetValByKey(DelayAttr.WorkID, value); } } /// /// 发起人 /// public string Starter { get { return this.GetValStringByKey(DelayAttr.Starter); } set { this.SetValByKey(DelayAttr.Starter, value); } } /// /// 发起人名称 /// public string StarterName { get { return this.GetValStringByKey(DelayAttr.StarterName); } set { this.SetValByKey(DelayAttr.StarterName, value); } } /// /// 流程状态 /// public int WFStateInt { get { return this.GetValIntByKey(DelayAttr.WFState); } set { this.SetValByKey(DelayAttr.WFState, value); } } /// /// 流程状态 /// public WFState WFState { get { return (WFState)this.GetValIntByKey(DelayAttr.WFState); } set { this.SetValByKey(DelayAttr.WFState, (int)value); } } /// /// 部门编号 /// public string DeptNo { get { return this.GetValStringByKey(DelayAttr.FK_Dept); } set { this.SetValByKey(DelayAttr.FK_Dept, value); } } /// /// 部门名称 /// public string DeptName { get { return this.GetValStringByKey(DelayAttr.DeptName); } set { this.SetValByKey(DelayAttr.DeptName, value); } } /// /// 流程编号 /// public string FlowNo { get { return this.GetValStringByKey(DelayAttr.FK_Flow); } set { this.SetValByKey(DelayAttr.FK_Flow, value); } } /// /// 流程名称 /// public string FlowName { get { return this.GetValStringByKey(DelayAttr.FlowName); } set { this.SetValByKey(DelayAttr.FlowName, value); } } /// /// 当前节点 /// public int NodeID { get { return this.GetValIntByKey(DelayAttr.FK_Node); } set { this.SetValByKey(DelayAttr.FK_Node, value); } } /// /// 节点名称 /// public string NodeName { get { return this.GetValStringByKey(DelayAttr.NodeName); } set { this.SetValByKey(DelayAttr.NodeName, value); } } /// /// 标题 /// public string Title { get { return this.GetValStringByKey(DelayAttr.Title); } set { this.SetValByKey(DelayAttr.Title, value); } } /// /// 记录日期 /// public string RDT { get { return this.GetValStringByKey(DelayAttr.RDT); } set { this.SetValByKey(DelayAttr.RDT, value); } } /// /// 应完成日期 /// public string SDT { get { return this.GetValStringByKey(DelayAttr.SDT); } set { this.SetValByKey(DelayAttr.SDT, value); } } /// /// 人员编号 /// public string EmpNo { get { return this.GetValStringByKey(DelayAttr.FK_Emp); } set { this.SetValByKey(DelayAttr.FK_Emp, value); } } /// /// fid /// public Int64 FID { get { return this.GetValInt64ByKey(DelayAttr.FID); } set { this.SetValByKey(DelayAttr.FID, value); } } /// /// 流程类别 /// public string FlowSortNo { get { return this.GetValStringByKey(DelayAttr.FK_FlowSort); } set { this.SetValByKey(DelayAttr.FK_FlowSort, value); } } /// /// 系统类型 /// public string SysType { get { return this.GetValStringByKey(DelayAttr.SysType); } set { this.SetValByKey(DelayAttr.SysType, value); } } /// /// 应完成日期 /// public string SDTOfNode { get { return this.GetValStringByKey(DelayAttr.SDTOfNode); } set { this.SetValByKey(DelayAttr.SDTOfNode, value); } } /// /// 催办次数 /// public int PressTimes { get { return this.GetValIntByKey(DelayAttr.PressTimes); } set { this.SetValByKey(DelayAttr.PressTimes, value); } } /// /// 单据编号 /// public string BillNo { get { return this.GetValStringByKey(DelayAttr.BillNo); } set { this.SetValByKey(DelayAttr.BillNo, value); } } /// /// 备注 /// public string FlowNote { get { return this.GetValStringByKey(DelayAttr.FlowNote); } set { this.SetValByKey(DelayAttr.FlowNote, value); } } /// /// 待办处理人 /// public string TodoEmps { get { return this.GetValStringByKey(DelayAttr.TodoEmps); } set { this.SetValByKey(DelayAttr.TodoEmps, value); } } /// /// 发送人 /// public string Sender { get { return this.GetValStringByKey(DelayAttr.Sender); } set { this.SetValByKey(DelayAttr.Sender, 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 Delay() { } /// /// /// /// public Delay(string pk) : base(pk) { } #endregion #region Map /// /// EnMap /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("V_WF_Delay", "逾期流程"); map.setEnType(EnType.View); map.AddMyPK(); map.AddTBInt(DelayAttr.WorkID, 0, "工作ID", true, true); map.AddTBString(DelayAttr.FK_Emp, null, "待办人", true, true, 0, 50, 40); map.AddTBString(DelayAttr.FK_EmpText, null, "待办人", true, true, 0, 50, 40); map.AddTBInt(DelayAttr.FK_Node, 0, "节点", false, true); map.AddTBString(DelayAttr.Title, null, "标题", true, true, 0, 50, 100); map.AddTBString(DelayAttr.StarterName, null, "发起人", true, true, 0, 50, 30); // map.AddDDLSysEnum(DelayAttr.WFState, 0, "状态", true, true, DelayAttr.WFState); map.AddTBInt(DelayAttr.FK_Dept, 0, "隶属部门", false, true); map.AddTBString(DelayAttr.DeptName, null, "隶属部门", true, true, 0, 50, 40); map.AddDDLEntities(DelayAttr.FK_Flow, null, "流程", new Flows(), false); map.AddTBString(DelayAttr.NodeName, null, "节点名称", true, true, 0, 50, 40); // map.AddTBInt(DelayAttr.WorkerDept, 0, "工作人员部门", false, true); map.AddTBString(DelayAttr.RDT, null, "接受日期", true, true, 0, 50, 30); map.AddTBString(DelayAttr.SDTOfNode, null, "应完成日期", true, true, 0, 50, 50); // map.AddTBString(DelayAttr.SDTOfNode, null, "节点应完成日期", true, true, 0, 50, 70); // map.AddTBString(DelayAttr.PressTimes, null, "催办次数", false, true, 0, 50, 5); map.AddTBString(DelayAttr.BillNo, null, "单据号", true, true, 0, 50, 5); map.AddTBString(DelayAttr.FlowNote, null, "FlowNote", false, true, 0, 50, 5); map.AddTBString(DelayAttr.TodoEmps, null, "待办人员", true, true, 0, 50, 5); map.AddTBString(DelayAttr.Sender, null, "发送人员", true, true, 0, 50, 50); //查询条件. // map.AddSearchAttr(DelayAttr.WFState); map.AddSearchAttr(DelayAttr.FK_Flow); RefMethod rm = new En.RefMethod(); rm.Title = "打开轨迹"; rm.ClassMethodName = this.ToString() + ".DoOpenTrack"; rm.RefMethodType = RefMethodType.LinkeWinOpen; map.AddRefMethod(rm); this._enMap = map; return this._enMap; } } #endregion public void InitView() { string sql = ""; } public string DoOpenTrack() { return "/WF/WFRpt.htm?WorkID=" + this.WorkID + "&FK_Flow=" + this.FlowNo; } } /// /// 逾期流程s /// public class Delays : EntitiesMyPK { #region 构造方法属性 /// /// 逾期流程s /// public Delays() { } #endregion #region 属性 /// /// 逾期流程 /// public override Entity GetNewEntity { get { return new Delay(); } } #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((Delay)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }