using System; using System.Collections.Generic; using System.Text; using BP.En; using BP.WF.Template; using BP.Sys; namespace BP.WF.Data { /// /// 报表基类属性 /// public class NDXRptBaseAttr { /// /// 标题 /// public const string Title = "Title"; /// /// 参与人员 /// public const string FlowEmps = "FlowEmps"; /// /// 当前待办人员 /// public const string TodoEmps = "TodoEmps"; /// /// 紧急程度 /// public const string PRI = "PRI"; /// /// 流程ID /// public const string FID = "FID"; /// /// Workid /// public const string OID = "OID"; /// /// 发起年月 /// public const string FK_NY = "FK_NY"; /// /// 发起人ID /// public const string FlowStarter = "FlowStarter"; /// /// 发起时间 /// public const string FlowStartRDT = "FlowStartRDT"; /// /// 发起人部门编号 /// public const string FK_Dept = "FK_Dept"; /// /// 流程状态 /// public const string WFState = "WFState"; /// /// 流程 /// public const string WFSta = "WFSta"; /// /// 结束人 /// public const string FlowEnder = "FlowEnder"; /// /// 最后处理时间 /// public const string FlowEnderRDT = "FlowEnderRDT"; /// /// 跨度 /// public const string FlowDaySpan = "FlowDaySpan"; /// /// 停留节点 /// public const string FlowEndNode = "FlowEndNode"; /// /// 客户编号 /// public const string GuestNo = "GuestNo"; /// /// 客户名称 /// public const string GuestName = "GuestName"; /// /// BillNo /// public const string BillNo = "BillNo"; #region 项目相关. /// /// 项目编号 /// public const string PrjNo = "PrjNo"; /// /// 项目名称 /// public const string PrjName = "PrjName"; /// /// 经费总需求 /// public const string JingFeiZongXuQiu = "JingFeiZongXuQiu"; #endregion 项目相关. #region 父子流程属性. /// /// 父流程WorkID /// public const string PWorkID = "PWorkID"; /// /// 父流程编号 /// public const string PFlowNo = "PFlowNo"; /// /// 调用子流程的节点 /// public const string PNodeID = "PNodeID"; /// /// 吊起子流程的人 /// public const string PEmp = "PEmp"; /// /// 参数 /// public const string AtPara = "AtPara"; #endregion 父子流程属性. } /// /// 报表基类 /// abstract public class NDXRptBase : BP.En.EntityOID { #region 属性 /// /// 工作ID /// public new Int64 OID { get { return this.GetValInt64ByKey(NDXRptBaseAttr.OID); } set { this.SetValByKey(NDXRptBaseAttr.OID, value); } } /// /// 流程时间跨度 /// public float FlowDaySpan { get { return this.GetValFloatByKey(NDXRptBaseAttr.FlowDaySpan); } set { this.SetValByKey(NDXRptBaseAttr.FlowDaySpan, value); } } /// /// 主流程ID /// public Int64 FID { get { return this.GetValInt64ByKey(NDXRptBaseAttr.FID); } set { this.SetValByKey(NDXRptBaseAttr.FID, value); } } /// /// 流程参与人员 /// public string FlowEmps { get { return this.GetValStringByKey(NDXRptBaseAttr.FlowEmps); } set { this.SetValByKey(NDXRptBaseAttr.FlowEmps, value); } } /// /// 客户编号 /// public string GuestNo { get { return this.GetValStringByKey(NDXRptBaseAttr.GuestNo); } set { this.SetValByKey(NDXRptBaseAttr.GuestNo, value); } } /// /// 客户名称 /// public string GuestName { get { return this.GetValStringByKey(NDXRptBaseAttr.GuestName); } set { this.SetValByKey(NDXRptBaseAttr.GuestName, value); } } /// /// 单据编号 /// public string BillNo { get { return this.GetValStringByKey(NDXRptBaseAttr.BillNo); } set { this.SetValByKey(NDXRptBaseAttr.BillNo, value); } } /// /// 流程发起人 /// public string FlowStarter { get { return this.GetValStringByKey(NDXRptBaseAttr.FlowStarter); } set { this.SetValByKey(NDXRptBaseAttr.FlowStarter, value); } } /// /// 流程发起时间 /// public string FlowStartRDT { get { return this.GetValStringByKey(NDXRptBaseAttr.FlowStartRDT); } set { this.SetValByKey(NDXRptBaseAttr.FlowStartRDT, value); } } /// /// 流程结束者 /// public string FlowEnder { get { return this.GetValStringByKey(NDXRptBaseAttr.FlowEnder); } set { this.SetValByKey(NDXRptBaseAttr.FlowEnder, value); } } /// /// 当前待办人员 /// public string TodoEmps { get { return this.GetValStringByKey(NDXRptBaseAttr.TodoEmps); } set { this.SetValByKey(NDXRptBaseAttr.TodoEmps, value); } } /// /// 流程处理时间 /// public string FlowEnderRDT { get { return this.GetValStringByKey(NDXRptBaseAttr.FlowEnderRDT); } set { this.SetValByKey(NDXRptBaseAttr.FlowEnderRDT, value); } } /// /// 停留节点 /// public string FlowEndNodeText { get { Node nd = new Node(this.FlowEndNode); return nd.Name; } } /// /// 节点节点ID /// public int FlowEndNode { get { return this.GetValIntByKey(NDXRptBaseAttr.FlowEndNode); } set { this.SetValByKey(NDXRptBaseAttr.FlowEndNode, value); } } /// /// 流程标题 /// public string Title { get { return this.GetValStringByKey(NDXRptBaseAttr.Title); } set { this.SetValByKey(NDXRptBaseAttr.Title, value); } } /// /// 隶属年月 /// public string FK_NY { get { return this.GetValStringByKey(NDXRptBaseAttr.FK_NY); } set { this.SetValByKey(NDXRptBaseAttr.FK_NY, value); } } /// /// 发起人部门 /// public string DeptNo { get { return this.GetValStringByKey(NDXRptBaseAttr.FK_Dept); } set { this.SetValByKey(NDXRptBaseAttr.FK_Dept, value); } } /// /// 流程状态 /// public WFState WFState { get { return (WFState)this.GetValIntByKey(NDXRptBaseAttr.WFState); } set { this.SetValByKey(NDXRptBaseAttr.WFState, (int)value); } } /// /// 状态名称 /// public string WFStateText { get { switch (this.WFState) { case WF.WFState.Complete: return "已完成"; case WF.WFState.Delete: return "已删除"; default: return "运行中"; } } } /// /// 父流程WorkID /// public Int64 PWorkID { get { return this.GetValInt64ByKey(NDXRptBaseAttr.PWorkID); } set { this.SetValByKey(NDXRptBaseAttr.PWorkID, value); } } /// /// 父流程流程编号 /// public string PFlowNo { get { return this.GetValStringByKey(NDXRptBaseAttr.PFlowNo); } set { this.SetValByKey(NDXRptBaseAttr.PFlowNo, value); } } /// /// PNodeID /// public string PNodeID { get { return this.GetValStringByKey(NDXRptBaseAttr.PNodeID); } set { this.SetValByKey(NDXRptBaseAttr.PNodeID, value); } } public string PEmp { get { return this.GetValStringByKey(NDXRptBaseAttr.PEmp); } set { this.SetValByKey(NDXRptBaseAttr.PEmp, value); } } #endregion attrs #region 构造 /// /// 构造 /// protected NDXRptBase() { } /// /// 根据OID构造实体 /// /// workid protected NDXRptBase(int workid):base(workid) { } #endregion 构造 } /// /// 报表基类s /// abstract public class NDXRptBases : BP.En.EntitiesOID { /// /// 报表基类s /// public NDXRptBases() { } } }