createForm.jsp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>创建表单</title>
  9. <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  10. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/bpm/form/form.js"></script>
  18. <script type="text/javascript">
  19. var win1 = null;
  20. var win_old = null;
  21. var comboBox = null;
  22. var grid = null;
  23. $(document).ready(function(){
  24. var hasGen = "${requestScope.formInfo.hasGen.value}";
  25. if(hasGen != ""){
  26. $("#hasGen").val(hasGen);
  27. }
  28. //$("#hasGen").ligerComboBox();
  29. comboBox=$("#version").ligerComboBox({
  30. width: 150,
  31. onBeforeOpen: f_selectContact,
  32. // slide: false,
  33. // selectBoxWidth: 600,
  34. //selectBoxHeight: 10
  35. // grid: getGridOptions(false)
  36. });
  37. var formVid = "${requestScope.formInfo.formVid }";
  38. grid = $("#maingrid4").ligerGrid({
  39. columns: [
  40. { display: '版本', name: 'version', width: 50 },
  41. { display: '备注', name: 'remark', width: 100 },
  42. { display: '创建人', name: 'creator.username', width: 100,
  43. render: function (row){
  44. var html = row.creator.username;
  45. return html;
  46. }},
  47. { display: '创建时间', name: 'createdate', width: 150 },
  48. { display: '在办流程数量', name: 'flowCount', width: 100 },
  49. {
  50. display: '操作', isAllowHide: false,width: 150,
  51. render: function (row)
  52. {
  53. var html = '';
  54. if(row.state.value == "0" || row.state.value == "1"){
  55. html = '<font color="red">当前默认版本</font>';
  56. } else if (row.state.value == "2") {
  57. html += '<a href=\"#\" onclick=\"openOldVerWin('+row.formId+');\">查看</a>&nbsp;';
  58. html += '<a href=\"#\" onclick=\"changeVersion('+row.formId+');\">切换</a>&nbsp;';
  59. html += '<a href=\"#\" onclick=\"if(confirm(\'确定删除该表单?\')){beforedeleteForm('+row.flowCount+','+row.formId+');}\">删除</a>&nbsp;';
  60. }
  61. return html;
  62. }
  63. }
  64. ],
  65. pageSize:20,
  66. url: 'FormAction.do?task=listVersion&formVid='+formVid+'&time=' + new Date().getTime(),
  67. parms: [{name: "formName", value: ""}],
  68. pageParmName: 'p', //页索引参数名,(提交给服务器)
  69. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  70. width: '99.9%',
  71. height: 200,
  72. enabledSort: true,
  73. // usePager:false,
  74. onError: function(){alert("数据加载失败,请刷新页面!");}
  75. });
  76. });
  77. function setFrame() {
  78. var iformIns = document.getElementById("formIns");
  79. iformIns.height = "100px";
  80. iformIns.height = formIns.document.body.scrollHeight;
  81. }
  82. function openWin(){
  83. var formId = $("#formId").val();
  84. var formVid = $("#formVid").val();
  85. win1 = $.ligerDialog.open({ width : 500, height: 250,url: '/ynet/FormAction.do?task=toUpload&formId='+formId+'&formVid='+formVid});
  86. }
  87. function closeWin(formId){
  88. win1.close();
  89. var oldTabid = "${param.tabid }";
  90. if (oldTabid.length > 0) {
  91. window.parent.f_reloadTab(oldTabid);
  92. //window.parent.f_addTab(new Date().getTime(), '编辑表单', '${pageContext.request.contextPath }/FormAction.do?task=toCreate&formId=' + formId + '&tabid='+oldTabid);
  93. var tabid = getCurrentTabId();
  94. window.parent.f_addTab('create'+new Date().getTime(), '编辑表单', '${pageContext.request.contextPath }/FormAction.do?task=toCreate&formId=' + formId + '&tabid='+oldTabid);
  95. window.parent.f_closeTab(tabid);
  96. }
  97. }
  98. function openOldVerWin(formId){
  99. //var formId = $("#oldFormId").val();
  100. var dialogId = formId + new Date().getTime();
  101. //win_old = $.ligerDialog.open({ width : 900, height: 400,url: '/ynet/FormAction.do?task=toSeeOld&formId='+formId });
  102. //+'&tabid='+getCurrentTabId()+'&dialogId=' + dialogId });
  103. openODialog('/ynet/FormAction.do?task=toSeeOld&formId='+formId+'&tabid='+getCurrentTabId()+'&dialogId=' + dialogId, '查看版本', dialogId);
  104. }
  105. function refreshWindow(formId,dialogId){
  106. if(dialogId != ''){
  107. closeODialog(dialogId);
  108. }
  109. if(formId != ''){
  110. var oldTabid = "${param.tabid }";
  111. if (oldTabid.length > 0) {
  112. window.parent.f_reloadTab(oldTabid);
  113. }
  114. var tabid = getCurrentTabId();
  115. window.parent.f_addTab("create"+new Date().getTime(), '编辑表单', '${pageContext.request.contextPath }/FormAction.do?task=toCreate&formId=' + formId + '&tabid='+oldTabid);
  116. window.parent.f_closeTab(tabid);
  117. }
  118. }
  119. <%--
  120. function getGridOptions(checkbox)
  121. {
  122. var formVid = "${requestScope.formInfo.formVid }";
  123. var options = {
  124. columns: [
  125. { display: '表单版本', name: 'version', width: 150 },
  126. { display: '备注', name: 'remark', width: 150 },
  127. { display: '状态', name: 'state.dataName', width: 120,
  128. render: function (row){
  129. var html = row.state.dataName;
  130. return html;
  131. }},
  132. { display: '创建人', name: 'creator.username', width: 120,
  133. render: function (row){
  134. var html = row.creator.username;
  135. return html;
  136. }},
  137. { display: '创建时间', name: 'createdate', width: 200 },
  138. {
  139. display: '操作', isAllowHide: false,width: 200,
  140. render: function (row)
  141. {
  142. var html = '';
  143. if(row.state.value == "0" || row.state.value == "1"){
  144. html = '<font color="red">当前默认版本,不允许操作</font>';
  145. } else if (row.state.value == "2") {
  146. html = '<a href=\"#\" onclick=\"\">查看</a>&nbsp;';
  147. html += '<a href=\"#\" onclick=\"if(confirm(\'确定删除该表单?\')){deleteForm('+row.formId+');}\">删除</a>';
  148. }
  149. return html;
  150. }
  151. }
  152. ], switchPageSizeApplyComboBox: false,
  153. pageSize:10,
  154. url: 'FormAction.do?task=listVersion&formVid='+formVid+'&time=' + new Date().getTime(),
  155. pageParmName: 'p', //页索引参数名,(提交给服务器)
  156. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  157. width: '99.9%',
  158. height: '99%',
  159. checkbox: checkbox,
  160. onError: function(){alert("数据加载失败,请刷新页面!");}
  161. };
  162. return options;
  163. }
  164. --%>
  165. function f_selectContact()
  166. {
  167. $.ligerDialog.open({ title: '版本信息', width: 700, height: 200, target: $("#maingrid4"), buttons: [
  168. { text: '关闭', onclick: f_selectContactCancel }
  169. ]
  170. });
  171. return false;
  172. }
  173. function f_selectContactCancel(item, dialog)
  174. {
  175. dialog.hide();
  176. }
  177. function changeVersion(formId) {
  178. if(confirm('确定将表单版本切换为该版本?')){
  179. $.ajax({
  180. url : 'FormAction.do',
  181. async : true,
  182. type : "post",
  183. data : {"task": "changeVersion", "formId": formId},
  184. success : function(data) {
  185. if (data == "10010") {
  186. addError("切换失败!");
  187. } else if (data == "10011") {
  188. addInfo("切换成功!");
  189. refreshWindow(formId,'${param.dialogId }');
  190. //window.parent.frames['${param.tabid }'].closeODialog('${param.dialogId }');
  191. } else if (data == "10017") {
  192. addInfo("版本切换成功!部分动作无法关联,请检查后重新配置相关动作!");
  193. refreshWindow(formId,'${param.dialogId }');
  194. //window.parent.frames['${param.tabid }'].refreshWindow(formId,'${param.dialogId }');
  195. } else {
  196. addError(data);
  197. }
  198. },
  199. error : function() {
  200. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  201. }
  202. });
  203. }
  204. }
  205. function beforedeleteForm(flowcount,formId){
  206. /*
  207. $.ajax({
  208. url : 'FormAction.do',
  209. async : true,
  210. type : "post",
  211. data : {"task": "getCountOfDealingFlowByFormId", "formId": formId},
  212. success : function(data) {
  213. if (data > 0) {
  214. addError("该表单还有未办结流程与其关联,不可删除!");
  215. } else {
  216. deleteForm(formId);
  217. }
  218. },
  219. error : function() {
  220. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  221. }
  222. });
  223. */
  224. if (flowcount > 0) {
  225. addError("该表单还有未办结流程与其关联,不可删除!");
  226. } else {
  227. deleteForm(formId);
  228. }
  229. }
  230. </script>
  231. <style type="text/css">
  232. .l-dialog-content{
  233. overflow:hidden;
  234. }
  235. </style>
  236. </head>
  237. <body>
  238. <form action="FormAction.do" method="post" id="cform" name="cform">
  239. <div id="title" class="form-button" style="width: 100%;">
  240. <input type="button" onclick="save();" class="l-button" value="保存" />
  241. <c:if test="${requestScope.formInfo.state.value != '3' }">
  242. <input onclick="openWin();" type="button" value="创建新版本" class="l-button">
  243. </c:if>
  244. <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
  245. </div>
  246. <div class="container-layout">
  247. <div class="forum-container">
  248. <center>
  249. <table class="l-table-edit line" style="width: 100%;">
  250. <tr>
  251. <th colspan="2">创建表单</th>
  252. </tr>
  253. <tr>
  254. <td class="l-table-edit-text">表单名称<FONT COLOR="red">*</FONT>:</td>
  255. <td class="l-table-edit-td">
  256. <input type="text" class="width_150" id="formName" name="formName" value="${requestScope.formInfo.formName }">
  257. </td>
  258. </tr>
  259. <tr>
  260. <td class="l-table-edit-text">表单备注:</td>
  261. <td class="l-table-edit-td">
  262. <textarea id="remark" name="remark" rows="5" cols="50">${requestScope.formInfo.remark }</textarea>
  263. </td>
  264. </tr>
  265. <tr>
  266. <td class="l-table-edit-text">是否启用印章<FONT COLOR="red">*</FONT>:</td>
  267. <td class="l-table-edit-td">
  268. <select name="hasGen" class="width_150" id="hasGen" >
  269. <c:forEach items="${requestScope.hasGens }" var="state">
  270. <option value="${state.value }" >${state.dataName }</option>
  271. </c:forEach>
  272. </select>
  273. </td>
  274. </tr>
  275. <%--
  276. <tr>
  277. <td class="l-table-edit-text">现在使用版本:</td>
  278. <td class="l-table-edit-td">${requestScope.formInfo.version }
  279. </td>
  280. </tr>
  281. <tr>
  282. <td class="l-table-edit-text">历史版本:</td>
  283. <td class="l-table-edit-td">
  284. <c:choose>
  285. <c:when test="${requestScope.size != '' }">
  286. <select name="oldFormId" class="width_150" id="oldFormId" >
  287. <c:forEach items="${requestScope.oldFormInfos }" var="oldFormInfo">
  288. <option value="${oldFormInfo.formId }" >${oldFormInfo.version }</option>
  289. </c:forEach>
  290. </select>&nbsp;<input type="button" onclick="openOldVerWin();" class="l-button" value="查看该版本" />
  291. </c:when>
  292. <c:otherwise>
  293. 没有其它历史版本
  294. </c:otherwise>
  295. </c:choose>
  296. </td>
  297. </tr>
  298. --%>
  299. <tr>
  300. <td class="l-table-edit-text">版本信息:</td>
  301. <td class="l-table-edit-td">
  302. <input type="text" class="width_150" id="version" name="version" value="${requestScope.formInfo.version }" readonly="readonly">
  303. </td>
  304. </tr>
  305. <tr>
  306. <td class="l-table-edit-text">表单保存方式<FONT COLOR="red">*</FONT>:</td>
  307. <td class="l-table-edit-td">
  308. <c:choose>
  309. <c:when test="${requestScope.formInfo.saveType.value == null }">
  310. <select name="saveType" class="width_150" id="saveType" >
  311. <c:forEach items="${requestScope.saveTypes }" var="state">
  312. <option value="${state.value }" >${state.dataName }</option>
  313. </c:forEach>
  314. </select>
  315. </c:when>
  316. <c:otherwise>
  317. ${requestScope.formInfo.saveType.dataName}
  318. <input type="hidden" id="saveType" name="saveType" value="${requestScope.formInfo.saveType.value }">
  319. </c:otherwise>
  320. </c:choose>
  321. </td>
  322. </tr>
  323. </table>
  324. <input type="hidden" id="formId" name="formId" value="${requestScope.formInfo.formId }">
  325. <input type="hidden" id="formVid" name="formVid" value="${requestScope.formInfo.formVid }">
  326. <input type="hidden" id="isCreate" name="isCreate" value="${requestScope.formInfo.isCreate.value }">
  327. <%-- <input type="hidden" id="version" name="version" value="${requestScope.formInfo.version }"> --%>
  328. <input type="hidden" id="fileId" name="fileId" value="${requestScope.formInfo.fileId.universalid }">
  329. <input type="hidden" id="task" name="task" value="edit">
  330. <input type="hidden" id="dept" name="dept" value="${session.unit.id }">
  331. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  332. <c:choose>
  333. <c:when test="${requestScope.formInfo.state.value != '3' }">
  334. <input type="hidden" id="state" name="state" value="${requestScope.formInfo.state.value }">
  335. </c:when>
  336. <c:otherwise>
  337. <input type="hidden" id="state" name="state" value="1">
  338. </c:otherwise>
  339. </c:choose>
  340. </center>
  341. </div>
  342. <div class="forum-container">
  343. <center>
  344. <table style="width: 100%;">
  345. <tbody>
  346. <tr>
  347. <th style="width: 15%; text-align: center;">字段名称</th>
  348. <th style="width: 15%; text-align: center;">字段标题</th>
  349. <th style="width: 20%; text-align: center;">展示内容</th>
  350. <th style="width: 15%; text-align: center;">字段类型</th>
  351. <!-- <th style="width: 20%; text-align: center;">默认值</th> -->
  352. <!-- <th style="width: 5%; text-align: center;">非空验证</th> -->
  353. <th style="width: 10%; text-align: center;">长度验证</th>
  354. </tr>
  355. </tbody>
  356. <tbody>
  357. <c:forEach items="${requestScope.formElementList }" var="formElement">
  358. <input name="elementId" value="${formElement.elementId }" type="hidden">
  359. <input name="tableField${formElement.elementId }" id="tableField${formElement.elementId }"
  360. value="${formElement.tableField }" type="hidden">
  361. <input name="elementCode${formElement.elementId }" id="elementCode${formElement.elementId }"
  362. value="${formElement.elementCode }" type="hidden">
  363. <tr style="height: ">
  364. <td style="text-align: center;">${formElement.elementCode }</td>
  365. <td style="text-align: center;">
  366. <input name="elementName${formElement.elementId }" id="elementName${formElement.elementId }"
  367. value="${formElement.elementName }" type="text">
  368. </td>
  369. <td style="text-align: center;">
  370. <select id="type${formElement.elementId }" name="type${formElement.elementId }">
  371. <c:forEach items="${requestScope.types }" var="type">
  372. <option value="${type.value }">${type.dataName }</option>
  373. </c:forEach>
  374. </select>&nbsp;&nbsp;
  375. <span id="xlkSpan${formElement.elementId }">
  376. <select name="xlk${formElement.elementId }" id="xlk${formElement.elementId }">
  377. <option value="">请选择</option>
  378. <c:forEach items="${requestScope.xlks }" var="xlk">
  379. <option value="${xlk.enumId }">${xlk.enumName }</option>
  380. </c:forEach>
  381. </select>
  382. </span>
  383. <span id="skjSpan${formElement.elementId }">
  384. <select name="skj${formElement.elementId }" id="skj${formElement.elementId }">
  385. <option value="">请选择</option>
  386. <c:forEach items="${requestScope.skjs }" var="skj">
  387. <option value="${skj.value }">${skj.dataName }</option>
  388. </c:forEach>
  389. </select>
  390. </span>
  391. <span id="pluginSpan${formElement.elementId }">
  392. <select name="plugin${formElement.elementId }" id="plugin${formElement.elementId }">
  393. <option value="">请选择</option>
  394. <c:forEach items="${requestScope.pluginInfos }" var="plugin">
  395. <option value="${plugin.pluginId }">${plugin.pluginName }</option>
  396. </c:forEach>
  397. </select>
  398. </span>
  399. <span id="dxkSpan${formElement.elementId }">
  400. <select name="dxk${formElement.elementId }" id="dxk${formElement.elementId }">
  401. <option value="">请选择</option>
  402. <c:forEach items="${requestScope.dxks }" var="dxk">
  403. <option value="${dxk.enumId }">${dxk.enumName }</option>
  404. </c:forEach>
  405. </select>
  406. </span>
  407. <span id="fxkSpan${formElement.elementId }">
  408. <select name="fxk${formElement.elementId }" id="fxk${formElement.elementId }">
  409. <option value="">请选择</option>
  410. <c:forEach items="${requestScope.fxks }" var="fxk">
  411. <option value="${fxk.enumId }">${fxk.enumName }</option>
  412. </c:forEach>
  413. </select>
  414. </span>
  415. <%-- <span id="cxlkSpan${formElement.elementId }"> --%>
  416. <%-- <select name="cxlk${formElement.elementId }" id="cxlk${formElement.elementId }"> --%>
  417. <!-- <option value="">请选择</option> -->
  418. <%-- <c:forEach items="${requestScope.cxlks }" var="cxlk"> --%>
  419. <%-- <option value="${cxlk.pluginId }">${cxlk.pluginName }</option> --%>
  420. <%-- </c:forEach> --%>
  421. <!-- </select> -->
  422. <!-- </span> -->
  423. <script type="text/javascript">
  424. $("#type${formElement.elementId }").val("${formElement.type.value }");
  425. if("${formElement.type.value }" != 2){
  426. $("#xlkSpan${formElement.elementId }").hide();
  427. } else {
  428. $("#xlk${formElement.elementId }").val("${formElement.typeDetail }");
  429. }
  430. if("${formElement.type.value }" != 7){
  431. $("#skjSpan${formElement.elementId }").hide();
  432. } else {
  433. $("#skj${formElement.elementId }").val("${formElement.typeDetail }");
  434. }
  435. if("${formElement.type.value }" != 11){
  436. $("#pluginSpan${formElement.elementId }").hide();
  437. } else {
  438. $("#plugin${formElement.elementId }").val("${formElement.typeDetail }");
  439. }
  440. if("${formElement.type.value }" != 4){
  441. $("#dxkSpan${formElement.elementId }").hide();
  442. } else {
  443. $("#dxk${formElement.elementId }").val("${formElement.typeDetail }");
  444. }
  445. if("${formElement.type.value }" != 5){
  446. $("#fxkSpan${formElement.elementId }").hide();
  447. } else {
  448. $("#fxk${formElement.elementId }").val("${formElement.typeDetail }");
  449. }
  450. // if("${formElement.type.value }" != 16){
  451. // $("#cxlkSpan${formElement.elementId }").hide();
  452. // } else {
  453. // $("#cxlk${formElement.elementId }").val("${formElement.typeDetail }");
  454. // }
  455. $("#type${formElement.elementId }").change(function(){
  456. var value = $(this).val();
  457. if(value == 2){
  458. $("#xlkSpan${formElement.elementId }").show();
  459. } else {
  460. $("#xlkSpan${formElement.elementId }").hide();
  461. }
  462. if(value == 7){
  463. $("#skjSpan${formElement.elementId }").show();
  464. } else {
  465. $("#skjSpan${formElement.elementId }").hide();
  466. }
  467. if(value == 11){
  468. $("#pluginSpan${formElement.elementId }").show();
  469. } else {
  470. $("#pluginSpan${formElement.elementId }").hide();
  471. }
  472. if(value == 4){
  473. $("#dxkSpan${formElement.elementId }").show();
  474. } else {
  475. $("#dxkSpan${formElement.elementId }").hide();
  476. }
  477. if(value == 5){
  478. $("#fxkSpan${formElement.elementId }").show();
  479. } else {
  480. $("#fxkSpan${formElement.elementId }").hide();
  481. }
  482. // if(value == 16){
  483. // $("#cxlkSpan${formElement.elementId }").show();
  484. // } else {
  485. // $("#cxlkSpan${formElement.elementId }").hide();
  486. // }
  487. });
  488. </script>
  489. </td>
  490. <td style="text-align: center;">
  491. <select id="fieldType${formElement.elementId }" name="fieldType${formElement.elementId }">
  492. <c:forEach items="${requestScope.fieldTypes }" var="fieldType">
  493. <option value="${fieldType.value }">${fieldType.dataName }</option>
  494. </c:forEach>
  495. </select>
  496. <script type="text/javascript">
  497. $("#fieldType${formElement.elementId }").val("${formElement.fieldType.value }");
  498. </script>
  499. </td>
  500. <td style="text-align: center;" >
  501. <input style="width: 30px;" type="text" name="long${formElement.elementId }" id="long${formElement.elementId }" value="${formElement.length }">
  502. </td>
  503. <input type="hidden" name="elementId${formElement.elementId }"
  504. id="elementId${formElement.elementId }" value="${formElement.elementId }">
  505. </tr>
  506. </c:forEach>
  507. </tbody>
  508. </table>
  509. </center>
  510. </div>
  511. <div class="forum-container">
  512. <center>
  513. <table class="l-table-edit line" style="width: 100%;">
  514. <tr>
  515. <th>表单预览</th>
  516. </tr>
  517. </table>
  518. </center>
  519. <iframe width="100%" onload="setFrame();" id="formIns" name="formIns" frameborder="0" scrolling="no" style="width:100%;"
  520. src="bpmFormInstanceAction.do?task=previewIns&formId=${requestScope.formInfo.formId}&version=${requestScope.formInfo.version}" >
  521. </iframe>
  522. </div>
  523. <div id="maingrid4" style="display:none;">
  524. </div>
  525. </div>
  526. </form>
  527. <%@ include file="/include/message.jsp"%>
  528. </body>
  529. </html>