LaunchProcess.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. #sidebar a:link {
  16. color:#00688B;
  17. text-decoration:none;
  18. }
  19. #sidebar a:visited {
  20. color:#00688B;
  21. text-decoration:none;
  22. }
  23. #sidebar a:hover {
  24. color:#CD2626;
  25. text-decoration:none;
  26. }
  27. #sidebar a:active {
  28. color:#00688B;
  29. text-decoration:none;
  30. }
  31. .x-livesearch-matchbase{
  32. font-weight: bold;
  33. //background-color:#EE6A50;
  34. color:#EE6A50;
  35. }
  36. .process {
  37. background-image: url("<%=basePath%>resource/images/add.png") ;
  38. float:left;
  39. color:gray;
  40. font-size:13px;
  41. padding-left:2px;
  42. cursor:pointer;
  43. width:23px;
  44. height:23px;
  45. border: none
  46. }
  47. .custom .x-grid-cell{
  48. background-color: #EEE8CD;
  49. }
  50. .custom-alt .x-grid-cell{
  51. background-color: #EAEAEA;
  52. }
  53. .custom-first .x-grid-cell{
  54. border-top-color: #999;
  55. border-top-style: dashed;
  56. background-color: #EEE8CD;
  57. }
  58. .custom-alt-first .x-grid-cell{
  59. border-top-color: #999;
  60. border-top-style: dashed;
  61. background-color: #EAEAEA;
  62. }
  63. .custom-grid .x-grid-row-over .x-grid-cell {
  64. background-color: #BCD2EE;
  65. border-bottom-color: #999;
  66. border-top-color: #999;
  67. }
  68. .custom-grid .x-grid-row-selected .x-grid-cell {
  69. background-color: #BCD2EE !important;
  70. }
  71. .x-grid-row-selected .x-grid-cell,.x-grid-row-selected .x-grid-rowwrap-div
  72. {
  73. border-style: dotted;
  74. border-color: #a3bae9;
  75. background-color:#C1CDC1 !important;
  76. color: #C1CDC1;
  77. font-weight: normal
  78. }
  79. </style>
  80. <script type="text/javascript" src="<%=basePath %>resource/ext/ext-all.js"></script>
  81. <script type="text/javascript" src="<%=basePath %>resource/i18n/i18n.js"></script>
  82. <script type="text/javascript" src="<%=basePath %>resource/ux/grid/GridHeaderFilters.js"></script>
  83. <script type="text/javascript" src="<%=basePath %>app/util/FormUtil.js"></script>
  84. <script type="text/javascript">
  85. Ext.Loader.setConfig({
  86. enabled: true
  87. });//开启动态加载
  88. Ext.application({
  89. name: 'erp',//为应用程序起一个名字,相当于命名空间
  90. appFolder: basePath+'app',//app文件夹所在路径
  91. controllers: [//声明所用到的控制层
  92. 'common.LaunchProcess'
  93. ],
  94. launch: function() {
  95. Ext.create('erp.view.common.JProcess.LaunchProcess');
  96. }
  97. });
  98. var height = window.innerHeight;
  99. var width=window.innerWidth;
  100. var canAdd=getUrlParam('canAdd');
  101. function open(val,meta,record){
  102. return '<div id="sidebar"><a style="text-decoration: none;text-align:left;" href="javascript:opennewpanel(\''+ record.data['jd_caller'] + '\',' +'\''+ record.data['js_formurl']+'\''+');">' + val + '</a></div>';
  103. }
  104. function opennewpanel(caller,url){
  105. Ext.create('erp.util.FormUtil').onAdd(caller, '发起流程('+caller+')',url);
  106. }
  107. function operate(val, meta, record) {
  108. meta.tdCls = "cell";
  109. if(!Ext.isEmpty(val)){
  110. var sd_id = 0;
  111. return "<input type='button' name='detailbutton' " +
  112. "class='process' stlye='background-color:"+meta.tdCls+";' onClick='window.open(\"" + basePath +
  113. "jsps/scm/sale/saleDetail.jsp?formCondition=sd_id="+sd_id+"&gridCondition=sdd_sdid="+sd_id+"\", \"测试\", \"width=800,height=600,top=30,left=200\")'/>";
  114. }
  115. }
  116. function openTable(title, url,caller){
  117. var panel = Ext.getCmp('datalist' + caller);
  118. var main = parent.Ext.getCmp("content-panel");
  119. if(!panel){
  120. panel = {
  121. title : title,
  122. tag : 'iframe',
  123. tabConfig:{tooltip: title},
  124. frame : true,
  125. border : false,
  126. layout : 'fit',
  127. iconCls : 'x-tree-icon-tab-tab',
  128. html : '<iframe id="iframe_maindetail_pageSet" src="' + basePath + url + '" height="100%" width="100%" frameborder="0" scrolling="no"></iframe>',
  129. closable : true,
  130. listeners : {
  131. close : function(){
  132. main.setActiveTab(main.getActiveTab().id);
  133. }
  134. }
  135. };
  136. var p = main.add(panel);
  137. main.setActiveTab(p);
  138. }else{
  139. main.setActiveTab(panel);
  140. }
  141. }
  142. </script>
  143. </head>
  144. <body>
  145. </body>
  146. </html>