workfloweditor2.jsp 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
  11. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  12. <title>UAS-ERP工作流设计器</title>
  13. <style>
  14. .x-grid3-row{border-width:1px 0;border-color:#ededed;border-style:solid;border-top-color:#fafafa;overflow:hidden}
  15. .x-grid-rowwrap-div{border-width:1px 0;border-color:#ededed;border-style:solid;border-top-color:#fafafa;overflow:hidden}
  16. .x-grid3-row-alt .x-grid3-cell,.x-grid-row3-alt .x-grid3-rowwrap-div{background-color:#EAEAEA}
  17. .x-grid3-row-over .x-grid3-cell,.x-grid3-row-over .x-grid3-rowwrap-div{border-color:#EAEAEA;background-color:#BCD2EE}
  18. .x-grid3-row-focus .x-grid3-cell,.x-grid3-row-focused .x-grid3-rowwrap-div{border-color:#dddddd;background-color:#efefef}
  19. </style>
  20. <link rel="stylesheet" type="text/css" href="./scripts/loading/loading.css" />
  21. <div id="loading-mask"></div>
  22. <div id="loading">
  23. <div class="loading-indicator"><img src="scripts/loading/extanim32.gif" align="absmiddle"/>正在加载数据...</div>
  24. </div>
  25. <link rel="stylesheet" type="text/css" href="scripts/ext-2.0.2/resources/css/ext-all.css" />
  26. <script type="text/javascript" src="scripts/ext-2.0.2/ext-base.js"></script>
  27. <script type="text/javascript" src="scripts/ext-2.0.2/ext-all.js"></script>
  28. <script type="text/javascript" src="scripts/ext-2.0.2/ext-lang-zh_CN.js"></script>
  29. <script type="text/javascript">
  30. Ext.BLANK_IMAGE_URL = 'scripts/ext-2.0.2/resources/images/default/s.gif';
  31. </script>
  32. <script type="text/javascript" >
  33. /* var xmlInfo=''; */
  34. var basePath = (function() {
  35. var fullPath = window.document.location.href;
  36. var path = window.document.location.pathname;
  37. var subpos = fullPath.indexOf('//');
  38. var subpath = subpos > -1 ? fullPath.substring(0, subpos + 2) : '';
  39. if (subpos > -1)
  40. fullPath = fullPath.substring(subpos + 2);
  41. var pos = fullPath.indexOf(path), sname = path.substring(0, path.substr(1).indexOf('/') + 1);
  42. return subpath + fullPath.substring(0, pos) + (sname == '/mes' ? '/mes/' : '/');
  43. })();
  44. function getUrlParam(name) {
  45. var reg=new RegExp("(^|&)"+name+"=([^&]*)(&|$)");
  46. var r=window.location.search.substr(1).match(reg);
  47. if(r!=null)
  48. return decodeURI(r[2]);
  49. return null;
  50. };
  51. function loadingData(jdId)
  52. {
  53. /* var jdId =getUrlParam('jdId'); */
  54. var xmlInfo='';
  55. Ext.Ajax.request({
  56. url: basePath + 'common/getJProcessDeployInfo.action',
  57. params: {
  58. jdId: jdId,
  59. _noc:1
  60. },
  61. success: function(response){
  62. var text = new Ext.decode(response.responseText);
  63. xmlInfo = text.xmlInfo;
  64. }
  65. });
  66. return xmlInfo; /* 回调函数 不执行 这行代码 **/
  67. };
  68. var comboxdata="";
  69. Ext.Ajax.request({
  70. url : basePath +"common/getAllJrocessButton.action",
  71. method : 'post',
  72. params:{
  73. _noc:1
  74. },
  75. callback : function(options,success,response){
  76. var localJson = new Ext.decode(response.responseText);
  77. comboxdata=localJson.buttons;
  78. }
  79. });
  80. </script>
  81. </head>
  82. <script type="text/javascript" >
  83. </script>
  84. <body id="body" >
  85. <link rel="stylesheet" type="text/css" href="scripts/ux/ext-patch.css" />
  86. <script type="text/javascript" src="scripts/gef/scripts/jquery-1.4.2.min.js"></script>
  87. <script type="text/javascript" src="scripts/gef/scripts/all-core.js"></script>
  88. <script type="text/javascript">
  89. Gef.IMAGE_ROOT = 'scripts/gef/images/activities/48/';
  90. </script>
  91. <script type="text/javascript" src="scripts/gef/all-editor.js"></script>
  92. <script type="text/javascript" src="scripts/all-workflow2.js"></script>
  93. <script type="text/javascript" src="scripts/validation/all-validation.js"></script>
  94. <script type="text/javascript" src="scripts/form/all-forms.js"></script>
  95. <script type='text/javascript' src='scripts/property/all-property.js'></script>
  96. <script type='text/javascript' src='scripts/ux/checkboxtree/Ext.lingo.JsonCheckBoxTree.js'></script>
  97. <link rel='stylesheet' type='text/css' href='scripts/ux/checkboxtree/Ext.lingo.JsonCheckBoxTree.css' />
  98. <script type="text/javascript" src="scripts/org/OrgField.js"></script>
  99. <link rel="stylesheet" type="text/css" href="./styles/jbpm4.css" />
  100. <link rel="stylesheet" type="text/css" href="./styles/org.css" />
  101. <script type='text/javascript' src='scripts/ux/treefield/Ext.lingo.TreeField.js'></script>
  102. <script type='text/javascript' src='scripts/ux/localXHR.js'></script>
  103. <!-- <script type='text/javascript' src='../app/util/BaseUtil.js'></script> -->
  104. <script type='text/javascript'>
  105. Gef.ORG_URL = 'org.json';
  106. var en_uu = '<%=session.getAttribute("en_uu")%>';
  107. </script>
  108. <style type="text/css">
  109. #pageh1{
  110. font-size:36px;
  111. font-weight:bold;
  112. background-color:#C3D5ED;
  113. padding:5px;
  114. }
  115. </style>
  116. <!-- <script type="text/javascript">
  117. /* var xmlInfo = "<process xmlns='http://jbpm.org/4.4/jpdl'>"+
  118. "<start g='253,67,48,48' name='start 1'>"+
  119. "<transition to='end 1'/></start>"+
  120. "<end g='247,239,48,48' name='end 1'/></process>"; */
  121. /* var xmlInfo = "<process xmlns='http://jbpm.org/4.4/jpdl'>"+
  122. "<start g='253,67,48,48' name='start 1'>" +
  123. "<transition name='同意' to='审批'/>"+
  124. "</start>"+
  125. "<end g='213,330,48,48' name='end 1'/>"+
  126. "<task assignee='王锡爵' g='95,161,90,50' name='审批'>"+
  127. "<description>鸟才</description>"+
  128. "<transition name='同意' to='查询'/>"+
  129. "</task>"+
  130. "<sql var='v' unique='true' g='312,191,90,50' name='查询'>"+
  131. "<query>select *</query>"+
  132. "<parameters><object name='hah'; expr='dddd'></object></parameters>"+
  133. "<description>雕塑</description>"+
  134. "<transition name='同意' to='end 1'/>"+
  135. "</sql>"+
  136. "</process>"; */
  137. /* var xmlInfo = "<process xmlns='http://jbpm.org/4.4/jpdl' name='Purchase'><start g='241,61,48,48' name='start 1'><transition to='task 1'/></start> <end g='250,298,48,48' name='end 1'/><task g='266,157,90,50' name='task 1'><transition name='同意' to='end 1'/><transition name='不同意' to='cancel 1'/></task><end-cancel g='125,181,48,48' name='cancel 1'/></process>"; */
  138. function getUrlParam(name) {
  139. var reg=new RegExp("(^|&)"+name+"=([^&]*)(&|$)");
  140. var r=window.location.search.substr(1).match(reg);
  141. if(r!=null)
  142. return decodeURI(r[2]);
  143. return null;
  144. };
  145. var jdId =getUrlParam('jdId');
  146. console.log(jdId);
  147. console.log(typeof(jdId));
  148. console.log(jdId);
  149. var xmlInfo='';
  150. Ext.Ajax.request({
  151. url: basePath + 'common/getJProcessDeployInfo.action',
  152. params: {
  153. jdId: jdId
  154. },
  155. success: function(response){
  156. var text = new Ext.decode(response.responseText);
  157. console.log(text);
  158. xmlInfo = text.xmlInfo;
  159. console.log(xmlInfo);
  160. }
  161. });
  162. </script>
  163. -->
  164. </body>
  165. </html>