You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
6.8 KiB
2 lines
6.8 KiB
var i=(A,e,t)=>new Promise((o,u)=>{var n=a=>{try{m(t.next(a))}catch(p){u(p)}},s=a=>{try{m(t.throw(a))}catch(p){u(p)}},m=a=>a.done?o(a.value):Promise.resolve(a.value).then(n,s);m((t=t.apply(A,e)).next())});import{UAC as f}from"./UAC-8e255d47.js";import{Map as W}from"./Map-73575e6b.js";import{FlowSort as B}from"./FlowSort-5d5ee62a.js";import{RefMethodType as h,RefMethod as d}from"./RefMethod-33a71db4.js";import{EntityWorkID as c,EntitiesWorkID as I}from"./EntityWorkID-5aeb189e.js";import{DTSearchWay as E}from"./SearchNormal-5c7fda42.js";import{GPNReturnObj as F,GPNReturnType as D}from"./PageBaseGroupNew-ee20c033.js";import l from"./BSEntity-840a884b.js";import{b as r,c as S}from"./GenerWorkFlowExt-8e9d388f.js";import{a1 as w}from"./index-f4658ae7.js";import{CCBPMRunModel as k}from"./SystemConfig-b93c25b3.js";import{GL_AdminGenerList as g}from"./GL_AdminGenerList-53d77444.js";import{GL_AdminReback as M}from"./GL_AdminReback-656b7b7b.js";import{GPN_WorkShiftBatch as T}from"./GPN_WorkShiftBatch-3a86ed56.js";import"./Attrs-62391d6b.js";import"./EnumLab-3cbd0812.js";import"./DataType-33901a1c.js";import"./ParamUtils-cdc24dd6.js";import"./bignumber-cf158d26.js";import"./ParamsUtils-3cbc5822.js";import"./Attr-d5feb8b8.js";import"./SearchFKEnum-31a3a609.js";import"./Glo-fda3f906.js";import"./EnMapExt-8e17025c.js";import"./EntityNoName-d08126ae.js";import"./Entities-6a72b013.js";import"./EntityTree-333c163f.js";import"./assign-481cba08.js";import"./_createAssigner-77c8874c.js";import"./DBAccess-d3bef90d.js";import"./FlowAdm-28590a36.js";import"./Sort-3be7175a.js";import"./Group-ab70f402.js";import"./Page-34b19d96.js";import"./EnumLab-d43291c1.js";import"./PageBaseGenerList-b0d946a7.js";import"./WebConfig-c30998ac.js";class R extends c{constructor(e){super("TS.FlowData.GenerWorkFlowView"),e&&(this.WorkID=e)}get HisUAC(){const e=new f;return e.IsDelete=!1,e.IsUpdate=!1,e.IsInsert=!1,e.IsView=!0,e}get EnMap(){const e=new W("WF_GenerWorkFlow","\u7EFC\u5408\u67E5\u8BE2");e.AddTBIntPK(r.WorkID,"WorkID",!1),e.AddTBString(r.Title,null,"\u6807\u9898",!0,!0,0,100,350,!0),e.AddTBString(r.Starter,null,"\u53D1\u8D77\u4EBA",!1,!1,0,30,70),e.AddTBString(r.StarterName,null,"\u53D1\u8D77\u4EBA",!0,!0,0,30,70),e.AddDDLSysEnum(r.WFSta,0,"\u6D41\u7A0B\u72B6\u6001",!0,!1,r.WFSta,"@0=\u8FD0\u884C\u4E2D@1=\u5DF2\u5B8C\u6210@2=\u5176\u4ED6"),e.AddTBString(r.NodeName,null,"\u5F53\u524D\u8282\u70B9",!0,!0,0,100,180),e.AddTBDateTime(r.RDT,null,"\u8BB0\u5F55\u65E5\u671F",!0,!0),e.AddTBString(r.BillNo,null,"\u5355\u636E\u7F16\u53F7",!0,!0,0,100,90),e.AddDDLEntities(r.FK_FlowSort,null,"\u7C7B\u522B",new B,!1),e.AddTBInt(r.FID,0,"FID",!1,!1),e.AddTBInt(r.FK_Node,0,"FK_Node",!1,!1),e.AddTBString(r.FK_Flow,null,"FK_Flow",!1,!1,0,50,150),e.AddDDLSysEnum(r.WFState,0,"\u6D41\u7A0B\u72B6\u6001",!0,!1,r.WFState),e.AddTBString("FK_Flow",null,"FK_Flow",!1,!1,0,12,10,!1),e.AddTBString(r.FK_NY,null,"\u53D1\u8D77\u6708\u4EFD",!0,!0,0,100,150),e.AddTBString("OrgNo",null,"\u7EC4\u7EC7\u7F16\u53F7",!1,!1,0,100,150),w.CCBPMRunModel==k.Single?w.IsAdmin==!1&&e.AddHidden("Starter"," LIKE ","%@WebUser.No%"):(e.AddHidden("OrgNo","=","@WebUser.OrgNo"),w.IsAdmin==!1&&e.AddHidden("Starter"," LIKE ","%@WebUser.No%")),e.DTSearchKey=r.RDT,e.DTSearchWay=E.ByDate,e.AddSearchAttr(r.WFSta),e.AddSearchAttr(r.FK_FlowSort),e.AddGroupMethod("\u5B9E\u4F8B\u8FD0\u7EF4");const t=new d;if(t.Title="\u67E5\u770B\u5DE5\u4F5C",t.ClassMethod="DoTrack",t.Icon="icon-graph",t.Visable=!0,t.Warning="",t.RefMethodType=h.Func,e.AddRefMethod(t),w.IsAdmin){e.AddRM_GL(new g,"\u7BA1\u7406\u5904\u7406\u4EBA","icon-people");const o=new d;o.Title="\u79FB\u4EA4",o.ClassMethod="Shift",o.HisAttrs.AddTBString("p1",null,"\u8981\u79FB\u4EA4\u7684\u4EBA\u5458\u8D26\u53F7\u591A\u4E2A\u7528\u9017\u53F7\u5206\u5F00",!0,!1,0,100,1e3,!0),o.HisAttrs.AddTBString("p2",null,"\u79FB\u4EA4\u539F\u56E0",!0,!1,0,100,1e3,!0),e.AddRefMethod(o),e.AddRM_GPN(new S,"icon-people"),e.AddRM_GL(new M,"\u56DE\u6EDA","icon-people");const u=new d;u.Icon="icon-key",u.Title="\u5F3A\u5236\u7ED3\u675F",u.Warning="\u60A8\u786E\u5B9A\u8981\u7ED3\u675F\u5417\uFF1F",u.ClassMethod="DoFlowOver",u.HisAttrs.AddTBString("BeiZhu",null,"\u5907\u6CE8",!0,!1,0,100,300),e.AddRefMethod(u);const n=new d;n.Title="\u903B\u8F91\u5220\u9664",n.ClassMethod="DoDeleteFlag",n.HisAttrs.AddTBString("Note",null,"\u5220\u9664\u539F\u56E0",!0,!1,0,100,100),n.Icon="icon-close",n.IsForEns=!1,e.AddRefMethod(n);const s=new d;s.Title="\u5F7B\u5E95\u5220\u9664",s.ClassMethod="DoDelete",s.Warning="\u60A8\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F\u5305\u62EC\u8BE5\u6D41\u7A0B\u7684\u6240\u6709\u6570\u636E\u3002",s.Icon="icon-close",s.IsForEns=!1,e.AddRefMethod(s),e.AddGroupMethod("\u9AD8\u7EA7\u529F\u80FD"),e.AddRM_GPN(new T,"icon-people")}return this._enMap=e,this._enMap}Shift(e,t){return i(this,null,function*(){const o=new l("BP.WF.GenerWorkFlow",this.WorkID);return yield o.Retrieve(),(yield o.DoMethodReturnString("Shift",e,t)).replace(/%40/g,"@")})}DoReBack(e,t){return i(this,null,function*(){const o=new l("BP.WF.Data.GenerWorkFlowView",this.WorkID.toString());if(yield o.Init(),o.WorkID=this.WorkID,o.FlowNo=this.FK_Flow,e==null)return new F(D.Error,"\u8BF7\u9009\u62E9\u8282\u70B9");t==null&&(t="\u65E0");const u=yield o.DoMethodReturnString("DoRollback",e,t);return new F(D.Message,u)})}DoTrack(){const e="/#/WF/MyView?WorkID="+this.WorkID+"&FK_Flow="+this.FK_Flow+"&FK_Node="+this.FK_Node;return new F(D.OpenIframeByDrawer75,e)}RepairDataIt(){return i(this,null,function*(){const e=new l("BP.WF.Data.GenerWorkFlowView",this.WorkID.toString());return yield e.Init(),e.WorkID=this.WorkID,e.FlowNo=this.FK_Flow,yield e.DoMethodReturnString("RepairDataIt")})}DoFlowOver(e){return i(this,null,function*(){const t=new l("BP.WF.Data.GenerWorkFlowView",this.WorkID.toString());return yield t.Init(),t.WorkID=this.WorkID,yield t.DoMethodReturnString("DoFlowOver",e)})}DoDeleteFlag(e){return i(this,null,function*(){const t=new l("BP.WF.Data.GenerWorkFlowView",this.WorkID.toString());return yield t.Init(),t.WorkID=this.WorkID,t.FlowNo=this.FK_Flow,e==null&&(e="\u65E0"),yield t.DoMethodReturnString("DoDeleteFlag",e)})}DoDelete(){return i(this,null,function*(){const e=new l("BP.WF.Data.GenerWorkFlowView",this.WorkID.toString());return yield e.Init(),e.WorkID=this.WorkID,e.FlowNo=this.FK_Flow,yield e.DoMethodReturnString("DoDelete")})}DoPress(e){return i(this,null,function*(){const t=new l("BP.WF.Data.GenerWorkFlowView",this.WorkID.toString());return yield t.Init(),t.WorkID=this.WorkID,e==null&&(e="\u65E0"),yield t.DoMethodReturnString("DoPress",e)})}DoFlowShift(){return i(this,null,function*(){const e="/src/WF/Comm/En.vue?EnName=TS.WorkOpt.Shift&WorkID="+this.WorkID+"&FID="+this.FID+"&FK_Flow="+this.FK_Flow+"&FK_Node="+this.FK_Node;return new F(D.OpenUrlByDrawer75,e,"\u79FB\u4EA4")})}}class Ae extends I{get GetNewEntity(){return new R}constructor(){super()}}export{R as GenerWorkFlowView,Ae as GenerWorkFlowViews};
|