23b759e5194e536970fe9cfe486d162c2f2d72a0.svn-base 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.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[生产管制 >> 炼钢管制 >> 作业路线调整]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <CHARGE_NO/>
  13. <CUR_LD_LOC/>
  14. <CUR_PROC/>
  15. <PRE_WORK_LINE/>
  16. <CUR_WORK_LINE/>
  17. </formData>
  18. <gridData>
  19. <grid1/>
  20. <grid2/>
  21. </gridData>
  22. <searchData>
  23. <CUR_WORK_LINE/>
  24. <CHARGE_NO/>
  25. </searchData>
  26. <resData>
  27. <messages_VO>
  28. <messages_Row/>
  29. </messages_VO>
  30. </resData>
  31. <MESSAGES/>
  32. </root>
  33. </instance>
  34. </model>
  35. <script type="javascript" src="../../js/boaCommon.js"/>
  36. <script type="javascript">
  37. <![CDATA[
  38. function find(){
  39. commSendReq("/root/searchData");
  40. commSubmit("UIF012070-service","findx","glueAction.do");
  41. commAppendData("/root/gridData/grid1/rs1_VO","/root/resData/rs1_VO");
  42. commAppendData("/root/gridData/grid2/rs2_VO","/root/resData/rs2_VO");
  43. model.refresh();
  44. }
  45. function save(){
  46. if(model.getValue("/root/searchData/CUR_WORK_LINE")== ""){
  47. alert("作业路线错误!");
  48. return;
  49. }
  50. model.setValue("/root/searchData/CHARGE_NO",model.getValue("/root/formData/CHARGE_NO"));
  51. commSendReq("/root/searchData");
  52. commSubmit("UIF012070-service","save","glueAction.do");
  53. model.setValue("/root/MESSAGES",model.getValue("/root/resData/messages_VO/messages_Row"));
  54. alert(model.getValue("/root/MESSAGES"));
  55. find();
  56. }
  57. ]]>
  58. </script>
  59. </xhtml:head>
  60. <xhtml:body>
  61. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/rs1_VO/rs1_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^浇次管理号^浇次内顺序^转炉号^炉次管理号^钢号^预定出钢量^处理路径^修改后路径^浇铸^浇铸^订单板坯块数^余材板坯块数^计划出钢开始^进程^状态区分^热送^L2传送^轧制编制^回送^客户特殊要求|选择^浇次管理号^浇次内顺序^转炉号^炉次管理号^钢号^预定出钢量^处理路径^修改后路径^厚度^宽度^订单板坯块数^余材板坯块数^计划出钢开始^进程^状态区分^热送^L2传送^轧制编制^回送^客户特殊要求" colsep="^" colwidth="30, 56, 56, 56, 56, 56, 56, 56, 100, 56, 56, 56, 56, 56, 56, 56, 56, 27, 56, 26, 52" defaultrows="0" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:980px; height:259px; color:#000000; text-align:center; ">
  62. <col ref="CHK" type="radio"/>
  63. <col ref="CAST_MANA_NO" style="text-align:center; "/>
  64. <col ref="CAST_CHARGE_SEQ" style="text-align:right; "/>
  65. <col ref="PRC_LINE" style="text-align:right; "/>
  66. <col editable="false" ref="CHARGE_MANA_NO" type="input" style="text-align:center; "/>
  67. <col editable="false" ref="STL_GRD" type="input" style="text-align:left; "/>
  68. <col ref="PREV_CHARGE_WGT" format="#,##0" style="text-align:right; "/>
  69. <col ref="LINE_PROC_CD" style="text-decoration:underline; color:#ff0000; text-align:left; "/>
  70. <col ref="INSTR_RT" style="text-decoration:underline; color:#ff0000; text-align:left; "/>
  71. <col ref="CCM_THK" format="#,##0" style="text-align:right; "/>
  72. <col ref="CCM_WTH" format="#,##0" style="text-align:right; "/>
  73. <col ref="ORD_SLAB_CNT" format="#,##0" style="text-align:right; "/>
  74. <col ref="NONORD_SLAB_CNT" format="#,##0" style="text-align:right; "/>
  75. <col ref="PRE_BOF_STR_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  76. <col disabled="true" editmode="search" ref="PROG_CD" style="text-align:left; "/>
  77. <col disabled="true" editmode="search" ref="STATUS_CFNM" style="text-align:center; "/>
  78. <col disabled="true" editmode="search" ref="HCR_CLF" style="text-align:center; "/>
  79. <col ref="L2_SEND" style="text-align:center; "/>
  80. <col ref="MILL_FL" style="text-align:center; "/>
  81. <col ref="RTN_CHARGE_CLF" style="text-align:center; "/>
  82. <col ref="DSN_KIND" style="text-decoration:underline; color:#ff0000; "/>
  83. <script type="javascript" ev:event="xforms-select">
  84. <![CDATA[
  85. model.setValue("/root/formData/CHARGE_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CHARGE_MANA_NO")));
  86. model.setValue("/root/formData/CUR_LD_LOC",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("")));
  87. model.setValue("/root/formData/CUR_PROC",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("")));
  88. model.setValue("/root/formData/PRE_WORK_LINE",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("LINE_PROC_CD")));
  89. model.refresh();
  90. ]]>
  91. </script>
  92. </datagrid>
  93. <caption id="caption9" class="cell" style="left:435px; top:310px; width:120px; height:20px; vertical-align:middle; ">原始作业路线</caption>
  94. <input id="input6" ref="/root/formData/PRE_WORK_LINE" disabled="true" style="left:555px; top:310px; width:345px; height:20px; text-align:left; "/>
  95. <caption id="caption1" class="cell" style="left:435px; top:335px; width:120px; height:20px; vertical-align:middle; ">变更后作业路线</caption>
  96. <input id="input1" ref="/root/formData/CUR_WORK_LINE" style="left:555px; top:335px; width:345px; height:20px; text-align:left; "/>
  97. <caption id="caption2" class="cell" style="left:550px; top:265px; width:115px; height:20px; vertical-align:middle; ">当前钢包位置</caption>
  98. <input id="input2" ref="/root/formData/CUR_LD_LOC" disabled="true" style="left:550px; top:285px; width:115px; height:20px; text-align:right; "/>
  99. <caption id="caption4" class="cell" style="left:435px; top:265px; width:115px; height:20px; vertical-align:middle; ">炉号</caption>
  100. <input id="input4" ref="/root/formData/CHARGE_NO" disabled="true" style="left:435px; top:285px; width:115px; height:20px; text-align:right; "/>
  101. <datagrid id="datagrid2" nodeset="/root/gridData/grid2/rs2_VO/rs2_Row" visibility="visible" scroll="auto" backcoloralternate="#f7f9f9" caption="选择^处理编号^处理内容^机号|选择^处理编号^处理内容^机号" colsep="^" colwidth="30, 112, 197, 56" defaultrows="0" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:265px; width:420px; height:259px; color:#000000; text-align:center; ">
  102. <col checkvalue="Y,N" ref="CHK" type="radio"/>
  103. <col ref="SM_CD" style="text-align:center; "/>
  104. <col ref="SM_CFNM" style="text-align:center; "/>
  105. <col ref="CD_SEQ" style="text-align:center; "/>
  106. </datagrid>
  107. <caption id="caption5" class="cell" style="left:665px; top:265px; width:115px; height:20px; vertical-align:middle; ">当前进度</caption>
  108. <input id="input5" ref="/root/formData/CUR_PROC" disabled="true" style="left:665px; top:285px; width:115px; height:20px; text-align:right; "/>
  109. <button id="button1" style="left:435px; top:365px; width:90px; height:20px; background-image:../../images/btn_save1.gif; ">
  110. <caption>选择</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. rows = datagrid2.rows;
  114. firstrow = datagrid2.fixedRows;
  115. for(var i = firstrow ;i < rows;i++){
  116. if(datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "Y"){
  117. var lineProc = model.getValue("/root/formData/CUR_WORK_LINE");
  118. lineProc = lineProc + "" + datagrid2.valueMatrix(i,datagrid2.colRef("SM_CD"))
  119. model.setValue("/root/formData/CUR_WORK_LINE",lineProc);
  120. model.refresh();
  121. }
  122. }
  123. ]]>
  124. </script>
  125. </button>
  126. <button id="button2" style="left:550px; top:365px; width:90px; height:20px; background-image:../../images/btn_save1.gif; ">
  127. <caption>取消</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. model.setValue("/root/formData/CUR_WORK_LINE","");
  131. model.refresh();
  132. ]]>
  133. </script>
  134. </button>
  135. <button id="button4" style="left:670px; top:365px; width:90px; height:20px; background-image:../../images/btn_save1.gif; ">
  136. <caption>确认</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. model.setValue("/root/searchData/CUR_WORK_LINE",model.getValue("/root/formData/CUR_WORK_LINE"));
  140. commSendReq("/root/searchData");
  141. commSubmit("UIF012070-service","chek","glueAction.do");
  142. var msg = model.getValue("/root/resData/rs3_VO/rs3_Row/SM_CD");
  143. if(msg == null || msg == ""){
  144. alert("错误作业路线,或则该作业路线尚未维护");
  145. model.setValue("/root/searchData/CUR_WORK_LINE","");
  146. return;
  147. }else{
  148. model.setValue("/root/searchData/CUR_WORK_LINE",msg);
  149. alert("调整后作业路线 " + msg + " :" + model.getValue("/root/formData/CUR_WORK_LINE"));
  150. return;
  151. }
  152. ]]>
  153. </script>
  154. </button>
  155. </xhtml:body>
  156. </xhtml:html>