fs-danaus
2024-07-02 dbf53543a56970c7e10b6e274ff682ff4ebdaebe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  function postT219001(s1,s2,s3,s4,s5){        
        parent.addTab(s1,s2,s3,s4,s5);
  }        
  var mygrid@num=null;
  var gridInt@num={};
      gridInt@num.InitValue="@initValue";
      gridInt@num.mastercode="";
  function create@num(where,flag,cp){
     try{
      if(where!=""){
          if(where.indexOf("|")==0){
              where = where.substring(where.indexOf("|")+1);
          }
          if(where.indexOf("|")>-1){
              where=where.replace("\\|"," and ");
          }
      }
      var config@num={
                  AlertError:1,Debug:'',initvalue:gridInt@num.InitValue,refgrid:'@refgrid',foot2:'@foot2',verNO:'@verNo',seInfo:{@setInfo},
                  ycaddnew:"@_ycaddnew_@",
                  attachment_server:'<%=com.yc.action.upload.AttachmentAction.domain%>',
                  dbid:<%=session.getAttribute(com.yc.utils.SessionKey.DATA_BASE_ID)%>,
                  usercode:"<%=session.getAttribute(com.yc.utils.SessionKey.USERCODE)%>",
                  username:"<%=session.getAttribute(com.yc.utils.SessionKey.USER_NAME)%>",
                  perssion:'<%=profile+";"+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")%>},
                  Layout:{Url:'@layout',Method:"POST"},
                  isCustomLayout:@_isCustomLayout_@,
                  Text:{Url:"/Grid/Text_@lang.xml",Method:"POST"},
                  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"},
                  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"},
                  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"},
                  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"}
      };
      mygrid@num=TreeGrid(GT.setGridContent(config@num,where,flag,cp),"@divID");
      @create
      gridId.push("@divID");
      try{
           if(';20;30;'.indexOf(';'+top.myFresh.panel[top.tabindex]+';')!=-1){gridHeight();}
      }catch(e){}
      if(!navigator.userAgent.match(/iPad|iPhone|Android/i)){
              Grids.OnEndEdit=null;
      }
      if(top.myFresh&&top.myFresh.grids){
             top.myFresh.grids=Grids;//页卡关闭获取格线是否有内容改变。
      }
      if(typeof(def)!="undefined"){
             return def;//如果有定义def的才执行,用在8类型时需要调用promise方式返回来执行第三表的加载,其他类型不需要
      }
    }catch(e1){
      closeLoadingButton();
    }
  }