using System; using System.Data; using BP.DA; using BP.En; using BP.WF; using BP.Port; using BP.WF.Data; namespace BP.WF { /// /// 流程删除日志 /// public class WorkFlowDeleteLogAttr { #region 基本属性 /// /// 工作ID /// public const string OID="OID"; /// /// 流程编号 /// public const string FK_Flow = "FK_Flow"; /// /// 流程类别 /// public const string FK_FlowSort = "FK_FlowSort"; /// /// 删除人员 /// public const string Oper="Oper"; /// /// 删除原因 /// public const string DeleteNote="DeleteNote"; /// /// 删除日期 /// public const string DeleteDT = "DeleteDT"; /// /// 删除人员 /// public const string OperDept = "OperDept"; /// /// 删除人员名称 /// public const string OperDeptName = "OperDeptName"; /// /// 删除节点节点 /// public const string DeleteNode = "DeleteNode"; /// /// 删除节点节点名称 /// public const string DeleteNodeName = "DeleteNodeName"; /// /// 删除节点后是否需要原路返回? /// public const string IsBackTracking = "IsBackTracking"; #endregion #region 流程属性 /// /// 标题 /// public const string Title = "Title"; /// /// 参与人员 /// public const string FlowEmps = "FlowEmps"; /// /// 流程ID /// public const string FID = "FID"; /// /// 发起年月 /// public const string FK_NY = "FK_NY"; /// /// 发起人ID /// public const string FlowStarter = "FlowStarter"; /// /// 发起日期 /// public const string FlowStartDeleteDT = "FlowStartDeleteDT"; /// /// 发起人部门ID /// public const string FK_Dept = "FK_Dept"; /// /// 结束人 /// public const string FlowEnder = "FlowEnder"; /// /// 最后活动日期 /// public const string FlowEnderDeleteDT = "FlowEnderDeleteDT"; /// /// 跨度 /// public const string FlowDaySpan = "FlowDaySpan"; /// /// 结束节点 /// public const string FlowEndNode = "FlowEndNode"; /// /// 父流程WorkID /// public const string PWorkID = "PWorkID"; /// /// 父流程编号 /// public const string PFlowNo = "PFlowNo"; #endregion } /// /// 流程删除日志 /// public class WorkFlowDeleteLog : EntityOID { #region 基本属性 /// /// 工作ID /// public Int64 OID { get { return this.GetValInt64ByKey(WorkFlowDeleteLogAttr.OID); } set { SetValByKey(WorkFlowDeleteLogAttr.OID, value); } } /// /// 操作人 /// public string Oper { get { return this.GetValStringByKey(WorkFlowDeleteLogAttr.Oper); } set { SetValByKey(WorkFlowDeleteLogAttr.Oper, value); } } /// /// 删除人员 /// public string OperDept { get { return this.GetValStringByKey(WorkFlowDeleteLogAttr.OperDept); } set { SetValByKey(WorkFlowDeleteLogAttr.OperDept, value); } } public string OperDeptName { get { return this.GetValStringByKey(WorkFlowDeleteLogAttr.OperDeptName); } set { SetValByKey(WorkFlowDeleteLogAttr.OperDeptName, value); } } public string DeleteNote { get { return this.GetValStringByKey(WorkFlowDeleteLogAttr.DeleteNote); } set { SetValByKey(WorkFlowDeleteLogAttr.DeleteNote, value); } } public string DeleteNoteHtml { get { return this.GetValHtmlStringByKey(WorkFlowDeleteLogAttr.DeleteNote); } } /// /// 记录日期 /// public string DeleteDT { get { return this.GetValStringByKey(WorkFlowDeleteLogAttr.DeleteDT); } set { SetValByKey(WorkFlowDeleteLogAttr.DeleteDT, value); } } /// /// 流程编号 /// public string FK_Flow { get { return this.GetValStringByKey(WorkFlowDeleteLogAttr.FK_Flow); } set { SetValByKey(WorkFlowDeleteLogAttr.FK_Flow, value); } } /// /// 流程类别 /// public string FK_FlowSort { get { return this.GetValStringByKey(WorkFlowDeleteLogAttr.FK_FlowSort); } set { SetValByKey(WorkFlowDeleteLogAttr.FK_FlowSort, value); } } #endregion #region 构造函数 public override UAC HisUAC { get { UAC uac = new UAC(); uac.Readonly(); return uac; } } /// /// 流程删除日志 /// public WorkFlowDeleteLog() { } /// /// 重写基类方法 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("WF_WorkFlowDeleteLog", "流程删除日志"); // 流程基础数据。 map.AddTBIntPKOID(); map.AddTBInt(GenerWorkFlowAttr.FID, 0, "FID", false, false); map.AddDDLEntities(GenerWorkFlowAttr.FK_Dept, null, "部门", new BP.Port.Depts(), false); map.AddTBString(GenerWorkFlowAttr.Title, null, "标题", true, true, 0, 100, 100); map.AddTBString(GERptAttr.FlowStarter, null, "发起人", true, true, 0, 100, 100); map.AddTBDateTime(GERptAttr.FlowStartRDT, null, "发起时间", true, true); //map.AddDDLEntities(GenerWorkFlowAttr.FK_NY, null, "年月", new BP.Pub.NYs(), false); map.AddDDLEntities(GenerWorkFlowAttr.FK_Flow, null, "流程", new Flows(), false); map.AddTBDateTime(GERptAttr.FlowEnderRDT, null, "最后处理时间", true, true); map.AddTBInt(GERptAttr.FlowEndNode, 0, "停留节点", true, true); map.AddTBFloat(GERptAttr.FlowDaySpan, 0, "流程时长(天)", true, true); map.AddTBString(GERptAttr.FlowEmps, null, "参与人", false, false, 0, 100, 100); //删除信息. map.AddTBString(WorkFlowDeleteLogAttr.Oper, null, "删除人员", true, true, 0, 20, 10); map.AddTBString(WorkFlowDeleteLogAttr.OperDept, null, "删除人员部门", true, true, 0, 20, 10); map.AddTBString(WorkFlowDeleteLogAttr.OperDeptName, null, "删除人员名称", true, true, 0, 200, 10); map.AddTBString(WorkFlowDeleteLogAttr.DeleteNote, "", "删除原因", true, true, 0, 4000, 10); map.AddTBDateTime(WorkFlowDeleteLogAttr.DeleteDT, null, "删除日期", true, true); //查询. map.AddSearchAttr(GenerWorkFlowAttr.FK_Dept); map.AddSearchAttr(GenerWorkFlowAttr.FK_Flow); // map.AddHidden(FlowDataAttr.FlowEmps, " LIKE ", "'%@@WebUser.No%'"); this._enMap = map; return this._enMap; } } #endregion } /// /// 流程删除日志s /// public class WorkFlowDeleteLogs : Entities { #region 构造 /// /// 流程删除日志s /// public WorkFlowDeleteLogs() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new WorkFlowDeleteLog(); } } #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((WorkFlowDeleteLog)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }