fs-danaus
2024-08-09 7204e3dff0490732e861ccd1338e3e3c31d768c6
提交 | 用户 | age
a6a76f 1   function postT219001(s1,s2,s3,s4,s5){        
F 2         parent.addTab(s1,s2,s3,s4,s5);
3   }        
4   var mygrid@num=null;
5   var gridInt@num={};
6       gridInt@num.InitValue="@initValue";
7       gridInt@num.mastercode="";
707f3d 8   <%
F 9   Integer profile_@id=0;//由于多表,不能取主功能号的formid,应该是取当前功能号来取得权限
10   try{
11       Map<String,Map<String,Object>> perssion_grid=(Map<String,Map<String,Object>>)session.getAttribute(SessionKey.PERSSION);
12       profile_@id=(Integer)perssion_grid.get("@id").get("optype");
13   }catch(Exception e){
14      // e.printStackTrace();
15   }
16   %>
a6a76f 17   function create@num(where,flag,cp){
fd7df7 18      try{
a6a76f 19       if(where!=""){
F 20           if(where.indexOf("|")==0){
21               where = where.substring(where.indexOf("|")+1);
22           }
23           if(where.indexOf("|")>-1){
24               where=where.replace("\\|"," and ");
25           }
26       }
707f3d 27
a6a76f 28       var config@num={
F 29                   AlertError:1,Debug:'',initvalue:gridInt@num.InitValue,refgrid:'@refgrid',foot2:'@foot2',verNO:'@verNo',seInfo:{@setInfo},
7204e3 30                   ycaddnew:@_ycaddnew_@,
a6a76f 31                   attachment_server:'<%=com.yc.action.upload.AttachmentAction.domain%>',
F 32                   dbid:<%=session.getAttribute(com.yc.utils.SessionKey.DATA_BASE_ID)%>,
33                   usercode:"<%=session.getAttribute(com.yc.utils.SessionKey.USERCODE)%>",
34                   username:"<%=session.getAttribute(com.yc.utils.SessionKey.USER_NAME)%>",
707f3d 35                   perssion:'<%=profile_@id+";"+isSuperUser%>',optype:'@optype',fileTime:{d:<%=com.yc.utils.FileUtil.getVerstion(request,"/Grid/Defaults.xml")%>,t:<%=com.yc.utils.FileUtil.getVerstion(request,"/Grid/Text_cnzh.xml")%>,c:<%=com.yc.utils.FileUtil.getVerstion(request,"@fileTime")%>},
a6a76f 36                   Layout:{Url:'@layout',Method:"POST"},
dbf535 37                   isCustomLayout:@_isCustomLayout_@,
a6a76f 38                   Text:{Url:"/Grid/Text_@lang.xml",Method:"POST"},
F 39                   Data:{Url:"/gtGrid.do?firstIndex=1&m=@action&formID=@id&winType=@winType&formdatafilters=@formdatafilters@dataformid&pageSize=@pageSize@isTree@picFild@TBCols@paging",Format:'JSON',Data:'TGData',Timeout:'7200',Repeat:'1',Method:"POST"},
40                   Page:{Url:"/gtGrid.do?m=@action&formID=@id&winType=@winType&formdatafilters=@formdatafilters@dataformid&pageSize=@pageSize@isTree@picFild@TBCols@paging",Format:'JSON',Data:'TGData',Timeout:'7200',Repeat:'1',Method:"POST"},
41                   Upload:{Url:"/gtGrid.do?m=save&formID=@id&winType=@winType@ProcGroupafterSavedoc@DealAfterDocSave@picFild@CancelProc@revokeProc@hasGrid",Format:'JSON',Data:'_gt_json',Timeout:'7200',Repeat:'1',Method:"POST"},
42                   Tran:{Url:"/gtGrid.do?m=tran&formID=@id&winType=@winType&formdatafilters=@formdatafilters@dataformid&pageSize=@pageSize@isTree@picFild@TBCols@paging&trangroup=@trangroup@tranformid@picFild@hasGrid",Format:'JSON', Data:'_gt_json',Timeout:'7200',Repeat:'1',Method:"POST"}
43       };
44       mygrid@num=TreeGrid(GT.setGridContent(config@num,where,flag,cp),"@divID");
45       @create
46       gridId.push("@divID");
47       try{
fd7df7 48            if(';20;30;'.indexOf(';'+top.myFresh.panel[top.tabindex]+';')!=-1){gridHeight();}
a6a76f 49       }catch(e){}
F 50       if(!navigator.userAgent.match(/iPad|iPhone|Android/i)){
51               Grids.OnEndEdit=null;
52       }
53       if(top.myFresh&&top.myFresh.grids){
54              top.myFresh.grids=Grids;//页卡关闭获取格线是否有内容改变。
55       }
fd7df7 56       if(typeof(def)!="undefined"){
X 57              return def;//如果有定义def的才执行,用在8类型时需要调用promise方式返回来执行第三表的加载,其他类型不需要
58       }
59     }catch(e1){
60       closeLoadingButton();
61     }
a6a76f 62   }