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.

8 lines
6.7 KiB

var h=Object.defineProperty;var p=(s,a,t)=>a in s?h(s,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[a]=t;var u=(s,a,t)=>(p(s,typeof a!="symbol"?a+"":a,t),t);var c=(s,a,t)=>new Promise((r,e)=>{var i=g=>{try{o(t.next(g))}catch(n){e(n)}},l=g=>{try{o(t.throw(g))}catch(n){e(n)}},o=g=>g.done?r(g.value):Promise.resolve(g.value).then(i,l);o((t=t.apply(s,a)).next())});import{Groups as w,Group as N}from"./Group-ab70f402.js";import{Pages as B,Page as d}from"./Page-34b19d96.js";import{PageModelNew as m}from"./EnumLab-d43291c1.js";import{W as f}from"./index-f4658ae7.js";var D=(s=>(s[s.Message=0]="Message",s[s.Error=1]="Error",s[s.GoToUrl=2]="GoToUrl",s[s.Close=3]="Close",s[s.CloseAndReload=4]="CloseAndReload",s[s.Reload=5]="Reload",s[s.OpenUrlByDrawer75=6]="OpenUrlByDrawer75",s[s.OpenUrlByDrawer30=7]="OpenUrlByDrawer30",s[s.OpenUrlByDrawer90=8]="OpenUrlByDrawer90",s[s.OpenUrlByDrawer100=9]="OpenUrlByDrawer100",s[s.OpenUrlByDrawer=10]="OpenUrlByDrawer",s[s.OpenIframeByDrawer=11]="OpenIframeByDrawer",s[s.OpenIframeByDrawer30=12]="OpenIframeByDrawer30",s[s.OpenIframeByDrawer75=13]="OpenIframeByDrawer75",s[s.OpenIframeByDrawer90=14]="OpenIframeByDrawer90",s[s.OpenIframeByDrawer100=15]="OpenIframeByDrawer100",s[s.OpenIframeByModal=16]="OpenIframeByModal",s[s.OpenUrlByModal=17]="OpenUrlByModal",s[s.OpenUrlByModalFull=18]="OpenUrlByModalFull",s[s.OpenUrlByNewWindow=19]="OpenUrlByNewWindow",s[s.OpenUrlByTab=20]="OpenUrlByTab",s[s.ReBind=21]="ReBind",s[s.DoWhatParas=22]="DoWhatParas",s[s.DoNothing=23]="DoNothing",s[s.Update=24]="Update",s[s.Replace=25]="Replace",s))(D||{}),S=(s=>(s[s.SinglePage=0]="SinglePage",s[s.StepPage=1]="StepPage",s))(S||{});class b{constructor(a=3,t="",r="\u9A70\u9A8B\u8F6F\u4EF6"){u(this,"data","");u(this,"ReturnType",3);u(this,"title","");this.data=t,this.ReturnType=a,this.title=r}}class O{constructor(a){u(this,"params",{});u(this,"stepFormParams",{});u(this,"UploadFile");u(this,"SubPages");u(this,"Groups");u(this,"classID","");u(this,"entity",null);u(this,"PageTitle","");u(this,"_refClassId","");u(this,"_groupNo","");u(this,"WorkModel",1);u(this,"CurrPageNo","");u(this,"ShowSteps","");u(this,"HelpUn",`
#### \u5E2E\u52A9
- \u5E2E\u52A9\u6587\u4EF6\u672A\u7F16\u5199\u5B8C\u6210,\u656C\u8BF7\u671F\u5F85.
`);u(this,"HelpTodo",`
#### \u5E2E\u52A9
- \u8BE5\u529F\u80FD\u5DF2\u7ECF\u89C4\u5212\u5728\u8BBE\u8BA1\u4E2D,\u5C1A\u672A\u5B8C\u6210,\u656C\u8BF7\u671F\u5F85.
`);a&&(this.classID=a),this.SubPages=new B,this.Groups=new w}AddIcon(a,t=""){if(!t&&this.SubPages.length>0){this.SubPages[this.SubPages.length-1].Icon=a;return}const r=this.SubPages.find(e=>e.No===t);r&&(r.Icon=a)}ClearCache(){this.stepFormParams={}}GetPageName(a){for(const t of this.SubPages)if(t.No===a)return t.Name;return a}GetPageIcon(a){for(const t of this.SubPages)if(t.No===a)return t.Icon;return"icon-drop"}GetSortName(a){return c(this,null,function*(){const t=yield this.GenerSorts();for(const r of t)if(r.No===a)return r.Name;return a})}get RefPKVal(){return this.RequestVal("RefPKVal")}get PKVal(){return this.RequestVal("PKVal")}get RefPK(){return this.RequestVal("RefPK")}setUploadFile(a){this.UploadFile=a}get RefMainEnName(){return this.RequestVal("EnClassID")}get RefDtlEnName(){return this.RequestVal("RefDtlEnName")}setParams(a){this.params=a}RequestVal(a,t=""){if(t!=null&&t.length>3,t){const r=a+"_"+t,e=this.stepFormParams[r];return e?typeof e=="function"?e():e:""}return this.params[a]||f(a)}SetRequestVal(a,t,r=""){if(r){const e=a+"_"+r;this.stepFormParams[e]=t;return}this.params[a]=t}get ForEntityClassID(){return this._refClassId}set ForEntityClassID(a){this._refClassId=a}AddGroup(a,t,r=""){const e=new N;e.No=a,e.Name=t,e.Icon=r,this.Groups.Add(e),this._groupNo=a}SelfComponent(a,t,r){const e=new d;e.No=a,e.Name=t,e.GroupNo=this._groupNo,e.Component=r,this.SubPages.Add(e)}AddBlank(a,t,r){const e=new d;e.No=a,e.Name=t,e.GroupNo=this._groupNo,e.HelpDocs=r,e.HisPageModelNew=m.Blank,this.SubPages.Add(e)}AddHelp(a,t,r){const e=new d;e.No=a,e.Name=t,e.GroupNo=this._groupNo,e.HelpDocs=r,e.HisPageModelNew=m.Help,this.SubPages.Add(e)}SelectItemsByList(a,t,r,e=!1,i){const l=new d;l.No=a,l.Name=t,l.GroupNo=this._groupNo,l.HelpDocs=r,l.HisPageModelNew=m.SelectItemsByList,l.IsMultiSelect=e,l.Tag0=i,this.SubPages.Add(l)}Table(a,t,r,e=!1,i){const l=new d;l.No=a,l.Name=t,l.GroupNo=this._groupNo,l.HelpDocs=r,l.HisPageModelNew=m.SelectItemsByTable,l.IsMultiSelect=e,l.Tag0=i,this.SubPages.Add(l)}AddFunction(a,t,r){const e=new d;e.No=a,e.Name=t,e.GroupNo=this._groupNo,e.BindFunction=r,e.HisPageModelNew=m.Func,this.SubPages.Add(e)}AddGoToUrl(a,t,r){const e=new d;e.No=a,e.Name=t,e.GroupNo=this._groupNo,e.BindFunction=r,e.HisPageModelNew=m.GoToUrl,this.SubPages.Add(e)}AddGoToIFrm(a,t,r){const e=new d;e.No=a,e.Name=t,e.GroupNo=this._groupNo,e.BindFunction=r,this.SubPages.Add(e)}SelectItemsByGroupList(a,t,r,e=!1,i,l){const o=new d;o.No=a,o.Name=t,o.GroupNo=this._groupNo,o.HelpDocs=r,o.HisPageModelNew=m.SelectItemsByGroupList,o.IsMultiSelect=e,o.Tag0=i,o.Tag1=l,this.SubPages.Add(o)}SelectItemsByTree(a,t,r,e=!1,i,l){const o=new d;o.No=a,o.Name=t,o.GroupNo=this._groupNo,o.HelpDocs=r,o.HisPageModelNew=m.SelectItemsByTree,o.IsMultiSelect=e,o.Tag0=i,o.Tag1=l,this.SubPages.Add(o)}SelectItemsByTreeEns(a,t,r,e=!1,i,l,o,g){const n=new d;n.No=a,n.Name=t,n.GroupNo=this._groupNo,n.HelpDocs=r,n.HisPageModelNew=m.SelectItemsByTreeEns,n.IsMultiSelect=e,n.Tag0=i,n.Tag1=l,n.Tag2=o,n.Tag3=g,this.SubPages.Add(n)}TextSQL(a,t,r,e,i,l=""){const o=new d;o.No=a,o.Name=t,o.GroupNo=this._groupNo,o.HelpDocs=r,o.HisPageModelNew=m.TextSQL,o.Tag0="",o.Tag1="",o.Tag2=e,o.DefaultVal=i,o.Tag3=l,this.SubPages.Add(o)}TextUrl(a,t,r,e,i,l=""){const o=new d;o.No=a,o.Name=t,o.GroupNo=this._groupNo,o.HelpDocs=r,o.HisPageModelNew=m.TextUrl,o.Tag0="",o.Tag1="",o.Tag2=e,o.DefaultVal=i,o.Tag3=l,this.SubPages.Add(o)}TextArea(a,t,r,e,i,l=""){const o=new d;o.No=a,o.Name=t,o.GroupNo=this._groupNo,o.HelpDocs=r,o.HisPageModelNew=m.Text1Name,o.Tag0="",o.Tag1="",o.Tag2=e,o.DefaultVal=i,o.Tag3=l,this.SubPages.Add(o)}TextBox1_Name(a,t,r,e,i,l=""){const o=new d;o.No=a,o.Name=t,o.GroupNo=this._groupNo,o.HelpDocs=r,o.HisPageModelNew=m.Text1Name,o.Tag0="",o.Tag1="",o.Tag2=e,o.DefaultVal=i,o.Tag3=l,this.SubPages.Add(o)}TextBox2_NameNo(a,t,r,e,i,l,o){const g=new d;g.No=a,g.Name=t,g.GroupNo=this._groupNo,g.HelpDocs=r,g.HisPageModelNew=m.Text2NoName,g.Tag0=e,g.Tag1=i,g.Tag2=l,g.DefaultVal=o,this.SubPages.Add(g)}TextBox3_NameNoNote(a,t,r,e,i,l,o,g){const n=new d;n.No=a,n.Name=t,n.GroupNo=this._groupNo,n.HelpDocs=r,n.HisPageModelNew=m.Text3NoNameNote,n.Tag0=e,n.Tag1=i,n.Tag2=l,n.Tag3=o,n.DefaultVal=g,this.SubPages.Add(n)}FileUpload(a,t,r,e){const i=new d;i.No=a,i.Name=t,i.GroupNo=this._groupNo,i.Tag0=r,i.HelpDocs=e,i.HisPageModelNew=m.FileUpload,this.SubPages.Add(i)}}export{b as GPNReturnObj,D as GPNReturnType,O as PageBaseGroupNew,S as WorkModelGPN};