jprocessDeal.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
  4. <%
  5. String path = request.getContextPath();
  6. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  7. %>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  12. <link rel="stylesheet" href="<%=basePath %>resource/ext/resources/css/ext-all-gray.css" type="text/css"></link>
  13. <link rel="stylesheet" href="<%=basePath %>resource/css/main.css" type="text/css"></link>
  14. <style type="text/css">
  15. .myradio{
  16. border: 0 !important;
  17. /* background-color: #FFFAFA; */
  18. font-size: 15px !important;
  19. font-weight: bold !important;
  20. /* color:#515151; */
  21. }
  22. .x-html-editor-wrap textarea {
  23. background-color: #FAFAFA;
  24. }
  25. </style>
  26. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  27. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  28. <script type="text/javascript">
  29. Ext.Loader.setConfig({
  30. enabled: true,
  31. });//开启动态加载
  32. Ext.application({
  33. name: 'erp',//为应用程序起一个名字,相当于命名空间
  34. appFolder: basePath+'app',//app文件夹所在路径
  35. controllers: [//声明所用到的控制层
  36. 'common.JProcessDeal'
  37. ],
  38. launch: function() {
  39. Ext.create('erp.view.common.JProcess.Viewport');
  40. }
  41. });
  42. var caller = "JProcess";
  43. var dbfinds = [];
  44. var en_uu = '<%=session.getAttribute("en_uu")%>';
  45. var formCondition = '';
  46. var gridCondition = '';
  47. var basestarttime=new Date();
  48. var nodeId='<%=request.getAttribute("jp_nodeId")%>';
  49. var nextnodeId=null;
  50. var requiredFields=null;
  51. var canexecute=false;
  52. var ISexecuted=getUrlParam("_do")==1;
  53. var master=getUrlParam("newMaster");
  54. var ProcessData=null;
  55. function scanAttachs(val){
  56. var attach = new Array();
  57. Ext.Ajax.request({//拿到grid的columns
  58. url : basePath + 'common/getFilePaths.action',
  59. async: false,
  60. params: {
  61. id:val
  62. },
  63. method : 'post',
  64. callback : function(options,success,response){
  65. var res = new Ext.decode(response.responseText);
  66. if(res.exception || res.exceptionInfo){
  67. showError(res.exceptionInfo);
  68. return;
  69. }
  70. attach = res.files != null ? res.files : [];
  71. }
  72. });
  73. var items=new Array();
  74. items.push({
  75. height: 20,
  76. width: 600,
  77. style: 'background:#CDBA96;',
  78. html: '<h3>附件:</h3>',
  79. });
  80. Ext.each(attach, function(item){
  81. var path = item.fp_path;
  82. var name = '';
  83. if(contains(path, '\\', true)){
  84. name = path.substring(path.lastIndexOf('\\') + 1);
  85. } else {
  86. name = path.substring(path.lastIndexOf('/') + 1);
  87. }
  88. items.push({
  89. style: 'background:#C6E2FF;',
  90. html: '<img src="' + basePath + 'resource/images/mainpage/things.png" width=16 height=16/>' +
  91. '<span>文件:' + name + '<a href="' + basePath + "common/download.action?path=" + path + '">下载</a></span>',
  92. });
  93. });
  94. var win = new Ext.window.Window({
  95. title: '附件下载',
  96. id : 'win',
  97. height: "60%",
  98. width: "40%",
  99. items: items,
  100. buttonAlign: 'center',
  101. buttons: [{
  102. text: $I18N.common.button.erpCloseButton,
  103. iconCls: 'x-button-icon-close',
  104. cls: 'x-btn-gray',
  105. handler: function(){
  106. Ext.getCmp('win').close();
  107. }
  108. }]
  109. });
  110. win.show();
  111. }
  112. </script>
  113. </head>
  114. <body style="size: 1">
  115. </body>
  116. </html>