4c71ee4d10ad7e4dd9a4f0e04d7d3626a8303954.svn-base 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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[热轧作业>>钢卷库管理>>可发量查询(UIH050900)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <DLIV_TP>T</DLIV_TP>
  13. <ORD_NO/>
  14. <COIL_YARD_ADDR/>
  15. <SPEC_STL_GRD/>
  16. <TOT_DEC_GRD/>
  17. <sqlStr>AND CUR_LOAD_LOC IS NOT NULL AND CUR_PROG_CD IN( 'SFA','SGB' ) AND TOT_DEC_GRD = '1'</sqlStr>
  18. </formData>
  19. <resData>
  20. </resData>
  21. <reqData/>
  22. <grid1/>
  23. <searchData>
  24. <ORD_NO/>
  25. <ORD_SEQ/>
  26. </searchData>
  27. <grid2/>
  28. <newElement/>
  29. <totalWgt/>
  30. <totalWgt2/>
  31. </root>
  32. </instance>
  33. </model>
  34. <script type="javascript">
  35. <![CDATA[
  36. function find(){
  37. commSendReq("/root/formData");
  38. commSubmit("UIH050900-service","find","glueAction.do");
  39. commAppendData("/root/grid1/UIH050900_ERSULT_VO","/root/resData/UIH050900_ERSULT_VO");
  40. datagrid1.refresh();
  41. var totalWgt = 0;
  42. var totalWgt2 = 0;
  43. for(var i = datagrid1.fixedRows ; i < datagrid1.rows ; i++){
  44. totalWgt = totalWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT")));
  45. totalWgt2 = totalWgt2 + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("PLAN_WGT")));
  46. }
  47. model.setValue("/root/totalWgt",totalWgt);
  48. model.setValue("/root/totalWgt2",totalWgt2);
  49. //datagrid1.addRow();
  50. //datagrid1.valueMatrix(datagrid1.rows -1,datagrid1.colRef("ACT_WGT")) = totalWgt;
  51. output1.refresh();output2.refresh();
  52. }
  53. ]]>
  54. </script>
  55. <script type="javascript" src="../../js/boaCommon.js"/>
  56. </xhtml:head>
  57. <xhtml:body>
  58. <caption id="caption1" class="cell" style="left:159px; top:5px; width:65px; height:20px; ">合同号</caption>
  59. <caption id="caption11" class="cell" style="left:480px; top:5px; width:65px; height:20px; ">未判可发</caption>
  60. <caption id="caption4" class="cell" style="left:0px; top:5px; width:65px; height:20px; ">运输方式</caption>
  61. <caption id="caption5" class="cell" style="left:320px; top:5px; width:65px; height:20px; ">牌号</caption>
  62. <datagrid id="datagrid1" nodeset="/root/grid1/UIH050900_ERSULT_VO/UIH050900_ERSULT_Row" caption="客户代码^合同号^订单号^交货期^订单预排期^订单重量(T)^可发量(t)^剩余量(t)^已下计划余量^钢号^订单类型^目的地^产品代码^订单规格^判定规格^专用线^运输方式^是否水运|客户代码^合同号^订单号^交货期^订单预排期^订单重量(T)^可发量(t)^剩余量(t)^已下计划余量^钢号^订单类型^目的地^产品代码^订单规格^判定规格^专用线^运输方式^是否水运" colsep="^" colwidth="100, 80, 40, 100, 100, 53, 38, 37, 87, 67, 76, 108, 42, 44, 52, 100, 50, 40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:980px; height:275px; ">
  63. <col editable="false" ref="CUST_CD" type="input"/>
  64. <col editable="false" ref="ORD_NO" type="input"/>
  65. <col editable="false" ref="ORD_SEQ" type="input"/>
  66. <col editable="false" ref="DEVLMT_DTIME" type="input" format="yyyy-mm-dd"/>
  67. <col editable="false" ref="ORD_PLAN_DATA" type="input" format="yyyy-mm-dd"/>
  68. <col editable="false" ref="ORD_WGT" type="input"/>
  69. <col editable="false" ref="ACT_WGT" type="input"/>
  70. <col editable="false" ref="LEV_WGT" type="input"/>
  71. <col editable="false" ref="PLAN_WGT" type="input"/>
  72. <col editable="false" ref="STL_GRD" type="input"/>
  73. <col editable="false" ref="RCVORD_TP" type="input"/>
  74. <col editable="false" ref="DEST_PCD" type="input"/>
  75. <col editable="false" ref="PRODNM_CD" type="input"/>
  76. <col editable="false" ref="COIL_THK" type="input"/>
  77. <col editable="false" ref="COIL_WTH" type="input" visible="hidden"/>
  78. <col editable="false" ref="EXLV_LINE_CD" type="input"/>
  79. <col editable="false" ref="DLIV_TP" type="combo">
  80. <choices>
  81. <item>
  82. <label>火运</label>
  83. <value>T</value>
  84. </item>
  85. <item>
  86. <label>汽运</label>
  87. <value>C</value>
  88. </item>
  89. </choices>
  90. </col>
  91. <col disabled="true" editable="false" ref="BY_SEA_YN" type="combo">
  92. <choices>
  93. <item>
  94. <label>是</label>
  95. <value>TRUE</value>
  96. </item>
  97. <item>
  98. <label>否</label>
  99. <value>FALSE</value>
  100. </item>
  101. </choices>
  102. </col>
  103. <script type="javascript" ev:event="ondblclick">
  104. <![CDATA[
  105. var ordNo = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_NO"));
  106. var ordSeq = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_SEQ"));
  107. model.setValue("/root/searchData/ORD_NO",ordNo);
  108. model.setValue("/root/searchData/ORD_SEQ",ordSeq);
  109. commSendReq("/root/searchData");
  110. commSubmit("UIH050900-service","click","glueAction.do");
  111. commAppendData("/root/grid2/UIH050900_DBCLICK_ERSULT_VO","/root/resData/UIH050900_DBCLICK_ERSULT_VO");
  112. datagrid2.refresh();
  113. ]]>
  114. </script>
  115. </datagrid>
  116. <datagrid id="datagrid2" nodeset="/root/grid2/UIH050900_DBCLICK_ERSULT_VO/UIH050900_DBCLICK_ERSULT_Row" caption="订单号^钢卷号^综合判定^订单规格^钢卷规格^钢卷长度^钢卷重量^堆放位置^发货进程状态" colsep="^" colwidth="100, 100, 51, 70, 70, 70, 70, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:330px; width:980px; height:270px; ">
  117. <col editable="false" ref="ORD_NO" type="input"/>
  118. <col editable="false" ref="OLD_SAMPL_NO" type="input"/>
  119. <col editable="false" ref="TOT_DEC_GRD" type="input"/>
  120. <col editable="false" ref="COIL_THK" type="input"/>
  121. <col editable="false" ref="COIL_WTH" type="input"/>
  122. <col editable="false" ref="COIL_LTH" type="input"/>
  123. <col editable="false" ref="ACT_WGT" type="input"/>
  124. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  125. <col editable="false" ref="SHIP_PROG_CD" type="input"/>
  126. </datagrid>
  127. <select1 id="combo1" ref="/root/formData/DLIV_TP" appearance="minimal" style="left:66px; top:5px; width:85px; height:20px; ">
  128. <choices>
  129. <item>
  130. <label>汽运</label>
  131. <value>C</value>
  132. </item>
  133. <item>
  134. <label>火运</label>
  135. <value>T</value>
  136. </item>
  137. <item>
  138. <label/>
  139. <value/>
  140. </item>
  141. </choices>
  142. </select1>
  143. <input id="input1" ref="/root/formData/SPEC_STL_GRD" style="left:386px; top:5px; width:85px; height:20px; "/>
  144. <input id="input3" ref="/root/formData/ORD_NO" style="left:225px; top:5px; width:85px; height:20px; "/>
  145. <bool id="bool1" checkvalue="Y|N" ref="/root/newElement" style="left:550px; top:5px; width:25px; height:20px; ">
  146. <script type="javascript" ev:event="xforms-value-changed">
  147. <![CDATA[
  148. var sqlStr = "";
  149. if(bool1.value == "true"){
  150. sqlStr = "".toString();
  151. }else{
  152. sqlStr = "AND CUR_LOAD_LOC IS NOT NULL AND CUR_PROG_CD IN( 'SFA','SGB' )AND TOT_DEC_GRD = '1'".toString();
  153. }
  154. model.setValue("/root/formData/sqlStr",sqlStr);
  155. ]]>
  156. </script>
  157. </bool>
  158. <caption id="caption2" class="cell" style="left:775px; top:10px; width:65px; height:20px; background-color:#ff9900; ">可发量</caption>
  159. <output id="output1" ref="/root/totalWgt" style="left:840px; top:10px; width:80px; height:20px; "/>
  160. <caption id="caption3" class="cell" style="left:614px; top:10px; width:76px; height:20px; background-color:#ff9900; ">已下计划余量</caption>
  161. <output id="output2" ref="/root/totalWgt2" style="left:690px; top:10px; width:80px; height:20px; "/>
  162. <button id="button1" visibility="hidden" style="left:935px; top:5px; width:100px; height:20px; ">
  163. <caption>button1</caption>
  164. <script type="javascript" ev:event="onclick">
  165. <![CDATA[
  166. find();
  167. ]]>
  168. </script>
  169. </button>
  170. </xhtml:body>
  171. </xhtml:html>