c58de080889bd1ddb596375d29522499bd0cd781.svn-base 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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[统计管理>>现况分析>>成品库出库实际(UIH090090)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <searchData>
  14. <fromTime/>
  15. <COIL_NO>R9-0</COIL_NO>
  16. <STL_GRD/>
  17. <COIL_WTH/>
  18. <COIL_THK/>
  19. <TRANS_CAR_NO/>
  20. </searchData>
  21. <datagrid1/>
  22. <sumData>
  23. <SUM_COILRST_CNT/>
  24. <SUM_COILRST_WGT/>
  25. </sumData>
  26. </root>
  27. </instance>
  28. </model>
  29. <script type="javascript" src="../../js/boaCommon.js"/>
  30. <script type="javascript">
  31. <![CDATA[
  32. function InitParams(node) {
  33. if (typeof node == "undefined" && typeof node != "object") return;
  34. model.removenode("/root/initData/rcvInfo");
  35. model.makeNode("/root/initData/rcvInfo");
  36. var nodeList = node.childNodes;
  37. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  38. for (var i = 0; i < nodeList.length; i++)
  39. node.appendChild(nodeList.item(i));
  40. }
  41. function Init(node)
  42. {
  43. InitParams(node);
  44. }
  45. function find(){
  46. model.removenode("/root/reqData");
  47. model.makeNode("/root/reqData");
  48. model.removenode("/root/datagrid1");
  49. model.makeNode("/root/datagrid1");
  50. //如果入库时间为空的话,默认系统时间
  51. if(model.getValue("/root/searchData/fromTime") == ""){
  52. var TDate = vDate();
  53. model.setValue("/root/searchData/fromTime",TDate);
  54. }
  55. //这里修改库存现况界面,提供相应的查询功能
  56. model.duplicate("/root/reqData","/root/searchData/fromTime");
  57. model.duplicate("/root/reqData","/root/searchData/COIL_NO");
  58. model.duplicate("/root/reqData","/root/searchData/STL_GRD");
  59. model.duplicate("/root/reqData","/root/searchData/COIL_WTH");
  60. model.duplicate("/root/reqData","/root/searchData/COIL_THK");
  61. model.duplicate("/root/reqData","/root/searchData/TRANS_CAR_NO");
  62. commSubmit("UIH090090-service", "find", "glueAction.do");
  63. commAppendData("/root/datagrid1/COILOUTRESULT_VO","/root/resData/COILOUTRESULT_VO");
  64. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  65. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  66. model.refresh();
  67. }
  68. function vDate(){
  69. //获取系统时间 格式yyyymmdd
  70. //获取系统时间
  71. var sysDate = new Date();
  72. var year = sysDate.getYear().toString();
  73. var month = (sysDate.getMonth()+1).toString();
  74. var date = sysDate.getDate().toString();
  75. //var hours = sysDate.getHours().toString();
  76. //var minutes = sysDate.getMinutes().toString();
  77. //这里不精确到秒,用00代替
  78. //var second = sysDate.getMilliseconds().toString();
  79. var zero = 0;
  80. //最终结果时间串
  81. var vSysDate = null;
  82. if(month<10){
  83. if(date<10){
  84. vSysDate = year+zero+month+zero+date;
  85. }else{
  86. vSysDate = year+zero+month+date;
  87. }
  88. }else{
  89. if(date<10){
  90. vSysDate = year+month+zero+date;
  91. }else{
  92. vSysDate = year+month+date;
  93. }
  94. }
  95. return vSysDate;
  96. }
  97. ]]>
  98. </script>
  99. </xhtml:head>
  100. <xhtml:body>
  101. <caption id="caption1" class="cell" style="left:0px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">出库日期</caption>
  102. <input id="input1" ref="/root/searchData/fromTime" inputtype="date" format="yyyy-mm-dd" style="left:77px; top:5px; width:103px; height:20px; background-color:#ffff99; "/>
  103. <datagrid id="datagrid1" nodeset="/root/datagrid1/COILOUTRESULT_VO/COILOUTRESULT_Row" caption="钢卷号^钢号^订单宽度^订单厚度^车厢号^卷重(吨)^综合判定结果^合同号^订单号^收货单位" colsep="^" colwidth="100, 100, 80, 80, 100, 88, 88, 100, 60, 180" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:980px; height:550px; ">
  104. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
  105. <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
  106. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
  107. <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
  108. <col editable="false" ref="TRANS_CAR_NO" type="input" style="background-color:#ffffff; "/>
  109. <col editable="false" ref="ACT_WGT" type="input" style="background-color:#ffffff; "/>
  110. <col editable="false" ref="TOT_DEC_GRD" type="input" style="background-color:#ffffff; "/>
  111. <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
  112. <col editable="false" ref="ORD_SEQ" type="input" style="background-color:#ffffff; "/>
  113. <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
  114. </datagrid>
  115. <caption id="caption3" class="cell" style="left:810px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">车厢号</caption>
  116. <caption id="caption4" class="cell" style="left:190px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
  117. <caption id="caption5" class="cell" style="left:357px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 号</caption>
  118. <caption id="caption6" class="cell" style="left:534px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">宽 度</caption>
  119. <caption id="caption7" class="cell" style="left:671px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">厚度</caption>
  120. <input id="input3" ref="/root/searchData/COIL_NO" style="left:261px; top:5px; width:90px; height:20px; "/>
  121. <input id="input4" ref="/root/searchData/TRANS_CAR_NO" style="left:882px; top:5px; width:93px; height:20px; "/>
  122. <input id="input5" ref="/root/searchData/COIL_WTH" style="left:606px; top:5px; width:59px; height:20px; "/>
  123. <input id="input6" ref="/root/searchData/COIL_THK" style="left:743px; top:5px; width:62px; height:20px; "/>
  124. <input id="input2" ref="/root/searchData/STL_GRD" style="left:430px; top:5px; width:100px; height:20px; "/>
  125. <output id="output5" ref="/root/sumData/SUM_COILRST_WGT" format="#,###" style="left:362px; top:590px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  126. <output id="output6" ref="/root/sumData/SUM_COILRST_CNT" format="#,###" style="left:172px; top:590px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  127. <caption id="caption10" class="cell" style="left:0px; top:589px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">上表统计:</caption>
  128. <caption id="caption11" class="cell" style="left:90px; top:590px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总块数</caption>
  129. <caption id="caption12" class="cell" style="left:265px; top:590px; width:95px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量(吨)</caption>
  130. </xhtml:body>
  131. </xhtml:html>