9e2737e81c46787ef7d3687f9fe3d0c39345c9c8.svn-base 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[进程管理 >> JOB管理 >> JOB管理对象查询与录入]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <searchInfo>
  13. <LG_CD>F01002,Z01001</LG_CD>
  14. </searchInfo>
  15. </initData>
  16. <codeData>
  17. </codeData>
  18. <formData>
  19. <searchInfo>
  20. <PLT_M/>
  21. </searchInfo>
  22. <searchInfo2>
  23. <PLT/>
  24. <MAIN_PGMID/>
  25. </searchInfo2>
  26. </formData>
  27. <gridData>
  28. </gridData>
  29. </root>
  30. </instance>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. if (window.parent == null) Init();
  34. ]]>
  35. </script>
  36. </model>
  37. <script type="javascript" src="../../js/boaCommon.js"/>
  38. <script type="javascript" src="../../js/boaMsg.js"/>
  39. <script type="javascript" src="../../js/mesCommon.js">
  40. <![CDATA[
  41. submitID = "UIE041010-service";
  42. function Init(node) {
  43. InitParams(node);
  44. exec("/root/initData/searchInfo", "", "", "/root/codeData/ListResult_0_VO");
  45. pageInit();
  46. }
  47. function pageInit(refresh) {
  48. model.removenode("/root/reqData");
  49. model.removenode("/root/resData");
  50. model.refresh();
  51. if (typeof refresh == "undefined") {
  52. var datagrid = datagrid1;
  53. datagrid.rebuild();
  54. datagrid.isReadOnly(0, 0, datagrid.rows-1, datagrid.cols-1) = true;
  55. }
  56. var datagrid = datagrid2;
  57. datagrid.rebuild();
  58. colStyle(datagrid, "PRC_STS");
  59. }
  60. function find() {
  61. exec("/root/formData/searchInfo", "", "find", "/root/gridData/ListResult_0_VO");
  62. model.setValue("/root/formData/searchInfo2/PLT", "");
  63. model.removenode("/root/gridData/ListResult_1_VO");
  64. pageInit();
  65. }
  66. function save() {
  67. /*
  68. H: 保留, C: 结束, A: 等待, B: 进行, D: 取消
  69. */
  70. if (model.getValue("/root/formData/searchInfo2/PLT") == "") return;
  71. datagrid = datagrid2;
  72. var isH = false;
  73. var isC = true;
  74. var rows = datagrid.rows;
  75. var col = datagrid.colRef("PRC_STS");
  76. for (var i=datagrid.fixedRows; i<rows; i++) {
  77. if (datagrid.valueMatrix(i, col) == "H") {
  78. isH = true;
  79. break;
  80. }
  81. if (datagrid.valueMatrix(i, col) != "C")
  82. isC = false;
  83. }
  84. datagrid = datagrid1;
  85. var row = datagrid.row;
  86. col = datagrid.colRef("PRC_STS");
  87. if (isH) {
  88. if (datagrid.valueMatrix(row, col) != "H") {
  89. datagrid.addStatus(row, "update");
  90. datagrid.valueMatrix(row, col) = "H";
  91. }
  92. } else if (isC){
  93. if (datagrid.valueMatrix(row, col) != "C") {
  94. datagrid.addStatus(row, "update");
  95. datagrid.valueMatrix(row, col) = "C";
  96. }
  97. } else {
  98. if (datagrid.valueMatrix(row, col) != "B") {
  99. datagrid.addStatus(row, "update");
  100. datagrid.valueMatrix(row, col) = "B";
  101. }
  102. }
  103. exec("/root/formData", "datagrid1,datagrid2", "save", true,
  104. "/root/gridData/ListResult_0_VO", "/root/gridData/ListResult_1_VO");
  105. pageInit();
  106. datagrid.row = row;
  107. }
  108. function create() {}
  109. function remove() {}
  110. var onrowchanged = false;
  111. ]]>
  112. </script>
  113. </xhtml:head>
  114. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  115. <group id="group1" overflow="hidden" style="left:0px; top:0px; width:980px; height:35px; ">
  116. <line id="line2" style="x1:0px; y1:29px; x2:980px; y2:29px; "/>
  117. <caption id="caption1" class="cell" style="left:0px; top:5px; width:90px; height:20px; ">工厂</caption>
  118. <select1 id="combo1" ref="/root/formData/searchInfo/PLT_M" appearance="minimal" style="left:92px; top:5px; width:110px; height:20px; ">
  119. <choices>
  120. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='F01002' or LG_CD = 'A']">
  121. <label ref="SM_CFNM"/>
  122. <value ref="SM_CD"/>
  123. </itemset>
  124. </choices>
  125. </select1>
  126. </group>
  127. <datagrid id="datagrid1" nodeset="/root/gridData/ListResult_0_VO/ListResult_0_Row" caption="工厂^主程序ID^主程序名称^进程状态^主要处理内容^处理开始时间^处理完毕时间^申请处理人" colsep="^" colwidth="90, 100, 150, 70, 210, 120, 120, 100" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="42" rowsep="|" style="left:0px; top:34px; width:980px; height:260px; ">
  128. <col key="false" ref="PLT" type="combo" style="text-align:left; ">
  129. <choices>
  130. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='F01002']">
  131. <label ref="SM_CFNM"/>
  132. <value ref="SM_CD"/>
  133. </itemset>
  134. </choices>
  135. </col>
  136. <col key="false" ref="MAIN_PGMID"/>
  137. <col key="false" ref="MAIN_PGMNAME" style="text-align:left; "/>
  138. <col ref="PRC_STS" type="combo">
  139. <choices>
  140. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='Z01001']">
  141. <label ref="SM_CFNM"/>
  142. <value ref="SM_CD"/>
  143. </itemset>
  144. </choices>
  145. </col>
  146. <col key="false" ref="PRC_DESCRIPTION" style="text-align:left; "/>
  147. <col key="false" ref="PRC_SDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
  148. <col key="false" ref="PRC_EDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
  149. <col key="false" ref="PRC_NEED_EMP" style="text-align:left; "/>
  150. <script type="javascript" ev:event="onclick">
  151. <![CDATA[
  152. if (!onrowchanged) return;
  153. var datagrid = datagrid1;
  154. var row = datagrid.row;
  155. model.setValue("/root/formData/searchInfo2/PLT", datagrid.valueMatrix(row, datagrid.colRef("PLT")));
  156. model.setValue("/root/formData/searchInfo2/MAIN_PGMID", datagrid.valueMatrix(row, datagrid.colRef("MAIN_PGMID")));
  157. exec("/root/formData/searchInfo2", "", "onclick", "/root/gridData/ListResult_1_VO");
  158. pageInit(false);
  159. datagrid.row = row;
  160. onrowchanged = false;
  161. ]]>
  162. </script>
  163. <script type="javascript" ev:event="onrowchanged">
  164. <![CDATA[
  165. onrowchanged = true;
  166. ]]>
  167. </script>
  168. <script type="javascript" ev:event="ondblclick">
  169. <![CDATA[
  170. var datagrid = datagrid1;
  171. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <datagrid id="datagrid2" nodeset="/root/gridData/ListResult_1_VO/ListResult_1_Row" caption="顺序^子程序ID^子程序名称^进程状态^处理开始时间^处理完毕时间^错误内容" colsep="^" colwidth="100, 100, 150, 70, 120, 120, 220" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="42" rowsep="|" style="left:0px; top:300px; width:980px; height:320px; ">
  176. <col ref="SEQ"/>
  177. <col key="false" ref="SUB_PGMID"/>
  178. <col key="false" ref="SUB_PGMNAME" style="text-align:left; "/>
  179. <col ref="PRC_STS" type="combo">
  180. <choices>
  181. <itemset nodeset="/root/codeData/ListResult_0_VO/ListResult_0_Row[LG_CD='Z01001']">
  182. <label ref="SM_CFNM"/>
  183. <value ref="SM_CD"/>
  184. </itemset>
  185. </choices>
  186. </col>
  187. <col key="false" ref="PRC_SDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
  188. <col key="false" ref="PRC_EDTIME" format="yyyy-mm-dd hh:nn:ss" mask="exclude"/>
  189. <col key="false" ref="ERR_DESCRIPTION" style="text-align:left; "/>
  190. <script type="javascript" ev:event="ondblclick">
  191. <![CDATA[
  192. var datagrid = datagrid2;
  193. window.clipboardData = datagrid.valueMatrix(datagrid.row, datagrid.col);
  194. ]]>
  195. </script>
  196. </datagrid>
  197. </xhtml:body>
  198. </xhtml:html>