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