f517e01c82a00ba0b3aa183faabe7a01a7a4f1ac.svn-base 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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[炼钢作业 >> 板坯库管理 >> 中厚板计划单查询(UIG040130)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <datagrid1/>
  12. <initData>
  13. <L2SCHNO/>
  14. <STIME/>
  15. <ETIME/>
  16. <ORDERNO/>
  17. <ORDERSEQ/>
  18. </initData>
  19. </root>
  20. </instance>
  21. <script type="javascript" ev:event="xforms-ready">
  22. <![CDATA[
  23. if(window.parent==null) Init();
  24. ]]>
  25. </script>
  26. </model>
  27. <script type="javascript" src="../../js/boaCommon.js"/>
  28. <script type="javascript" src="../../js/b01.js"/>
  29. <script type="javascript">
  30. <![CDATA[
  31. function Init(node)
  32. {
  33. datagrid1.colStatus(datagrid1.colRef("CHK"))=false;
  34. input1.value = document.readIniFile("session1" , "UIG040130" , "" , "c:\\WINDOWS\\xgmes3.ini");
  35. }
  36. function find()
  37. {
  38. if(input1.value.Trim().length< 5 && input2.value =="" && input4.value.Trim().length< 12 )
  39. {
  40. window.alert("为防止数据量过大,请输入查询条件" , "提示");
  41. return;
  42. }
  43. document.writeIniFile("session1" , "UIG040130" , input1.value.Trim() , "c:\\WINDOWS\\xgmes3.ini");
  44. model.removenode("/root/reqData");
  45. model.removenode("/root/resData");
  46. model.makeNode("/root/resData");
  47. model.makeValue("/root/reqData/L2SCHNO" , input1.value.Trim());
  48. model.makeValue("/root/reqData/STIME" , input2.value.Trim());
  49. model.makeValue("/root/reqData/ETIME" , input3.value.Trim());
  50. model.makeValue("/root/reqData/ORDERNO" , input4.value.Trim());
  51. model.makeValue("/root/reqData/ORDERSEQ" , input5.value.Trim());
  52. commSubmit("UIG040130-service" , "find" , "glueAction.do");
  53. model.copyNode("/root/datagrid1" , "/root/resData/SCH_Result_VO");
  54. model.refresh();
  55. colorSet();
  56. }
  57. function save()
  58. {
  59. model.removenode("/root/reqData");
  60. model.removenode("/root/resData");
  61. model.makeNode("/root/resData");
  62. for(var i=datagrid1.rows; i >= datagrid1.fixedRows; i--)
  63. {
  64. if(datagrid1.valueMatrix(i, datagrid1.colRef("CHK"))=="Y")
  65. {
  66. datagrid1.addStatus(i , "update");
  67. }
  68. }
  69. b01MultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStuts");
  70. model.makeValue("/root/reqData/L2SCHNO" , input1.value.Trim());
  71. model.makeValue("/root/reqData/STIME" , input2.value.Trim());
  72. model.makeValue("/root/reqData/ETIME" , input3.value.Trim());
  73. model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
  74. commSubmit("UIG040130-service" , "save" , "glueAction.do");
  75. model.copyNode("/root/datagrid1" , "/root/resData/SCH_Result_VO");
  76. model.refresh();
  77. datagrid1.clearStatus();
  78. find();
  79. }
  80. function colorSet()
  81. {
  82. for(var i=datagrid1.rows; i >= datagrid1.fixedRows; i--)
  83. {
  84. if(datagrid1.valueMatrix(i, datagrid1.colRef("SLAB_NO"))==""
  85. && datagrid1.valueMatrix(i, datagrid1.colRef("PROC_STAT")) == "05"
  86. )
  87. {
  88. datagrid1.rowStyle(i , "data" , "color") = "#ff000f";
  89. }
  90. else
  91. {
  92. datagrid1.rowStyle(i , "data" , "color") = "#000000";
  93. }
  94. }
  95. }
  96. ]]>
  97. </script>
  98. </xhtml:head>
  99. <xhtml:body pagewidth="980" pageheight="620">
  100. <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; vertical-align:middle; ">计划号</caption>
  101. <line id="line1" style="x1:0px; y1:30px; x2:965px; y2:30px; "/>
  102. <input id="input1" ref="/root/initData/L2SCHNO" style="left:100px; top:5px; width:100px; height:20px; "/>
  103. <datagrid id="datagrid1" nodeset="/root/datagrid1/SCH_Result_Row" caption="选择^生产号^计划号^计划板坯号^板坯号^状态^炼钢计划接收时间^炼钢计划下发时间^计划牌号^重量^厚度^宽度^长度^合同号^订单号^板坯切割时间^挂单时间^判定结果^判定时间^判定备注^是否允许出库^出库时间|选择^生产号^计划号^计划板坯号^板坯号^状态^炼钢计划接收时间^炼钢计划下发时间^计划牌号^重量^厚度^宽度^长度^合同号^订单号^板坯切割时间^挂单时间^判定结果^判定时间^判定备注^是否允许出库^出库时间" colsep="^" colwidth="59, 79, 100, 100, 100, 100, 100, 100, 100, 49, 53, 49, 52, 89, 52, 88, 85, 100, 100, 100, 91, 92" explorerbar="sortmove" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:35px; width:975px; height:575px; ">
  104. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  105. <col ref="L2_SCH"/>
  106. <col ref="L2_SCH_NO"/>
  107. <col ref="DSN_SLAB_NO"/>
  108. <col ref="SLAB_NO"/>
  109. <col disabled="true" ref="PROC_STAT" type="combo">
  110. <choices>
  111. <item>
  112. <label>计划接收</label>
  113. <value>01</value>
  114. </item>
  115. <item>
  116. <label>坯料设计</label>
  117. <value>02</value>
  118. </item>
  119. <item>
  120. <label>3</label>
  121. <value>03</value>
  122. </item>
  123. <item>
  124. <label>4</label>
  125. <value>04</value>
  126. </item>
  127. <item>
  128. <label>计划完成</label>
  129. <value>05</value>
  130. </item>
  131. <item>
  132. <label>6</label>
  133. <value>06</value>
  134. </item>
  135. </choices>
  136. </col>
  137. <col ref="LGJH_GET_DTIME"/>
  138. <col ref="LGJH_SEED_DTIME"/>
  139. <col ref="FAC_STL_GRD"/>
  140. <col ref="SLAB_WGT"/>
  141. <col ref="SLAB_THK"/>
  142. <col ref="SLAB_WTH"/>
  143. <col ref="SLAB_LEN"/>
  144. <col ref="ORD_NO"/>
  145. <col ref="ORD_SEQ"/>
  146. <col ref="SLAB_CUT_DTIME"/>
  147. <col ref="ZH_GD_DTIME"/>
  148. <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo">
  149. <choices>
  150. <item>
  151. <label>合格</label>
  152. <value>1</value>
  153. </item>
  154. <item>
  155. <label>不合格</label>
  156. <value>2</value>
  157. </item>
  158. <item>
  159. <label>合格</label>
  160. <value>0</value>
  161. </item>
  162. <item>
  163. <label>待判</label>
  164. <value/>
  165. </item>
  166. <item>
  167. <label>化废</label>
  168. <value>3</value>
  169. </item>
  170. </choices>
  171. </col>
  172. <col ref="SLAB_INGR_DEC_DTIME"/>
  173. <col ref="SLAB_DCS_DETAIL"/>
  174. <col ref="SLAB_OUT_TP"/>
  175. <col ref="SLAB_OUT_TP_DTIME"/>
  176. </datagrid>
  177. <button id="button1" visibility="hidden" style="left:810px; top:5px; width:55px; height:20px; ">
  178. <caption>查询</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. find();
  182. ]]>
  183. </script>
  184. </button>
  185. <button id="button2" style="left:870px; top:5px; width:100px; height:20px; background-color:#ff6600; border-style:solid; ">
  186. <caption>解锁</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. save();
  190. ]]>
  191. </script>
  192. <alert>
  193. <![CDATA[只有红色记录可以解锁]]>
  194. </alert>
  195. </button>
  196. <caption id="caption2" class="cell" style="left:215px; top:5px; width:100px; height:20px; vertical-align:middle; ">下发时间</caption>
  197. <input id="input2" ref="/root/initData/STIME" inputtype="date" style="left:315px; top:5px; width:100px; height:20px; "/>
  198. <input id="input3" ref="/root/initData/ETIME" inputtype="date" style="left:420px; top:5px; width:100px; height:20px; "/>
  199. <caption id="caption3" class="cell" style="left:530px; top:5px; width:65px; height:20px; vertical-align:middle; ">合同号</caption>
  200. <caption id="caption4" class="cell" style="left:705px; top:5px; width:65px; height:20px; vertical-align:middle; ">订单号</caption>
  201. <input id="input4" ref="/root/initData/ORDERNO" style="left:595px; top:5px; width:100px; height:20px; "/>
  202. <input id="input5" ref="/root/initData/ORDERSEQ" style="left:770px; top:5px; width:45px; height:20px; "/>
  203. </xhtml:body>
  204. </xhtml:html>