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
1.6 KiB

var o=(F,r,t)=>new Promise((a,e)=>{var n=d=>{try{s(t.next(d))}catch(c){e(c)}},P=d=>{try{s(t.throw(d))}catch(c){e(c)}},s=d=>d.done?a(d.value):Promise.resolve(d.value).then(n,P);s((t=t.apply(F,r)).next())});import{$ as l}from"./index-f4658ae7.js";class D{static Flow_Start(r,t="",a=""){return o(this,null,function*(){const e=new l("BP.WF.HttpHandler.WF_TSDev2Interface");return e.AddPara("FlowNo",r),e.AddPara("SDKFromPKVal",t),e.AddPara("Paras",a),yield e.DoMethodReturnJson("Flow_Start")})}static Node_CreateBlank(r,t=""){return o(this,null,function*(){const a=new l("BP.WF.HttpHandler.WF_TSDev2Interface");a.AddPara("FlowNo",r),a.AddPara("Paras",t);const e=yield a.DoMethodReturnString("Node_CreateBlankWork");return Number.parseInt(e)})}static Node_SendWork(r,t,a=0,e=""){return o(this,null,function*(){const n=new l("BP.WF.HttpHandler.WF_TSDev2Interface");return n.AddPara("FK_Flow",r),n.AddPara("WorkID",t),n.AddPara("ToNodeID",a),n.AddPara("ToEmps",e),yield n.DoMethodReturnString("Node_SendWork")})}static Flow_DeleteFlow(r,t){return o(this,null,function*(){const a=new l("BP.WF.HttpHandler.WF_TSDev2Interface");return a.AddPara("FK_Flow",r),a.AddPara("WorkID",t),yield a.DoMethodReturnString("Flow_DeleteFlow")})}static Node_ReturnWork(r,t,a){return o(this,null,function*(){const e=new l("BP.WF.HttpHandler.WF_TSDev2Interface");return e.AddPara("WorkID",r),e.AddPara("ToNodeID",t),e.AddPara("Msg",a),yield e.DoMethodReturnString("Node_ReturnWork")})}static Upload_File(r,t){return o(this,null,function*(){const a=new l("BP.WF.HttpHandler.WF_TSDev2Interface");return a.AddFile(r),a.AddPara("fileName",t),yield a.DoMethodReturnString("UploadFile")})}}export{D as default};