openExcelDesign_wev8.js
1.45 KB
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
/**
* Dialog弹窗打开表单设计器
* 用于表单上、节点上打开设计器
* @param modeid 已有模板id,新建则为0
* @param needreload 关闭是否需要刷新父页面
*/
function openDesignDialog(wfid, nodeid, formid, isbill, layouttype, modeid, needreload){
var dlg = new window.top.Dialog(); //定义Dialog对象
dlg.currentWindow = window;
dlg.Model = true;
if ($.browser.msie && parseInt($.browser.version, 10) < 9) { //run for ie7/8
dlg.maxiumnable = false;
dlg.Width = 1000;
dlg.Height = 600;
dlg.URL="/wui/common/page/sysRemind.jsp?labelid=124796";
dlg.hideDraghandle = false;
}else{
dlg.maxiumnable = true;
dlg.Width = $(window.top).width()-60;
dlg.Height = $(window.top).height()-80;
dlg.URL = "/workflow/exceldesign/excelMain.jsp?wfid="+wfid+"&nodeid="+nodeid+"&formid="+formid+"&isbill="+isbill
+"&layouttype="+layouttype+"&modeid="+modeid;
dlg.hideDraghandle = true;
}
dlg.Title = "Design";
dlg.closeHandle = function (paramobj, datas){
if(needreload)
window.location.reload();
}
dlg.show();
}
/**
* 预览表单设计器模板
* @param {} layoutid 模板ID
*/
function preViewExcelDesignLayout(wfid, nodeid, formid, isbill, layouttype, layoutid){
var url = "/workflow/exceldesign/excelPreView.jsp?wfid="+wfid+"&nodeid="+nodeid+"&formid="+formid+"&isbill="+isbill
+"&layouttype="+layouttype+"&modeid="+layoutid+"&fromwhere=viewdblayout";
window.open(url);
}