UIH052300.xrw 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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[热轧作业>>钢卷库管理>>成品入/出库各钢种查询(UIH052300)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <searchData>
  14. <searchTimeF/>
  15. <searchTimeT/>
  16. <searchF>000000</searchF>
  17. <searchT>235959</searchT>
  18. <ST/>
  19. <SF/>
  20. <COIL_STAT>2</COIL_STAT>
  21. </searchData>
  22. <datagrid1/>
  23. <sumData>
  24. <SUM_COILRST_CNT/>
  25. <SUM_COILRST_WGT/>
  26. </sumData>
  27. </root>
  28. </instance>
  29. </model>
  30. <script type="javascript" src="../../js/boaMsg.js"/>
  31. <script type="javascript" src="../../js/boaCommon.js"/>
  32. <script type="javascript">
  33. <![CDATA[
  34. function Init(node) {
  35. InitParams(node);
  36. input1.value = commCurDate();
  37. input2.value = commCurDate();
  38. }
  39. //调用公共的初始化方法获得登录用户名
  40. function InitParams(node) {
  41. if (typeof node == "undefined" && typeof node != "object") return;
  42. model.removenode("/root/initData/rcvInfo");
  43. model.makeNode("/root/initData/rcvInfo");
  44. var nodeList = node.childNodes;
  45. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  46. for (var i = 0; i < nodeList.length; i++)
  47. node.appendChild(nodeList.item(i));
  48. }
  49. function excelExport(){
  50. return datagrid1;
  51. }
  52. function find(){
  53. if(commDiffDay(input1.value,input2.value)>90)
  54. {
  55. alert(" 查询时间过长,请重新选择三个月内数据查询!! ");
  56. return;
  57. }
  58. if(model.getValue("/root/searchData/COIL_STAT") == "2"){
  59. model.removenode("/root/reqData");
  60. model.makeNode("/root/reqData");
  61. var searchTimeF = model.getValue("/root/searchData/searchTimeF");
  62. var searchTimeT = model.getValue("/root/searchData/searchTimeT");
  63. var searchF = model.getValue("/root/searchData/searchF");
  64. var searchT = model.getValue("/root/searchData/searchT");
  65. var SF = null;
  66. var ST = null;
  67. SF = searchTimeF+searchF;
  68. ST = searchTimeT+searchT;
  69. model.setValue("/root/searchData/ST",ST);
  70. model.setValue("/root/searchData/SF",SF);
  71. model.refresh();
  72. commSendReq("/root/searchData");
  73. commSubmit("UIH052300-service", "findIn", "glueAction.do");
  74. commAppendData("/root/datagrid1/coilResult_VO","/root/resData/coilResult_VO");
  75. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  76. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  77. model.refresh();
  78. //计算总数目和总重量
  79. }else if(model.getValue("/root/searchData/COIL_STAT") == "3"){
  80. model.removenode("/root/reqData");
  81. model.makeNode("/root/reqData");
  82. commSendReq("/root/searchData");
  83. commSubmit("UIH052300-service", "findOut", "glueAction.do");
  84. commAppendData("/root/datagrid1/coilResult_VO","/root/resData/coilResult_VO");
  85. model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
  86. model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
  87. model.refresh();
  88. }
  89. }
  90. ]]>
  91. </script>
  92. </xhtml:head>
  93. <xhtml:body>
  94. <select1 id="combo1" ref="/root/searchData/COIL_STAT" appearance="minimal" style="left:365px; top:0px; width:100px; height:20px; ">
  95. <choices>
  96. <item>
  97. <label>入库时间查询</label>
  98. <value>2</value>
  99. </item>
  100. <item>
  101. <label>出库时间查询</label>
  102. <value>3</value>
  103. </item>
  104. </choices>
  105. </select1>
  106. <caption id="caption2" class="cell" style="left:0px; top:0px; width:50px; height:20px; font-weight:bold; border-color:#000000; ">时 间</caption>
  107. <datagrid id="datagrid1" nodeset="/root/datagrid1/coilResult_VO/coilResult_Row" caption="钢种^钢卷厚度^钢卷宽度^数目^重量(吨)" colsep="^" colwidth="196, 196, 195, 195, 195" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:980px; height:585px; ">
  108. <col ref="SPEC_STL_GRD"/>
  109. <col ref="INSTR_COIL_THK"/>
  110. <col ref="INSTR_COIL_WTH"/>
  111. <col ref="COIL_SUM"/>
  112. <col ref="COIL_WGT"/>
  113. </datagrid>
  114. <output id="output5" ref="/root/sumData/SUM_COILRST_WGT" style="left:887px; top:5px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  115. <output id="output6" ref="/root/sumData/SUM_COILRST_CNT" style="left:697px; top:5px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  116. <caption id="caption11" class="cell" style="left:615px; top:5px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总块数</caption>
  117. <caption id="caption12" class="cell" style="left:790px; top:5px; width:95px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量(吨)</caption>
  118. <input id="input1" ref="/root/searchData/searchTimeF" inputtype="date" format="yyyy-mm-dd" style="left:50px; top:0px; width:90px; height:20px; background-color:#ffff99; "/>
  119. <input id="input2" ref="/root/searchData/searchTimeT" inputtype="date" format="yyyy-mm-dd" style="left:210px; top:0px; width:88px; height:20px; background-color:#ffff99; "/>
  120. <input id="input3" ref="/root/searchData/searchF" format="hh:nn:ss" style="left:140px; top:0px; width:65px; height:20px; text-align:center; background-color:#ffff99; "/>
  121. <input id="input4" ref="/root/searchData/searchT" format="hh:nn:ss" style="left:298px; top:0px; width:65px; height:20px; text-align:center; background-color:#ffff99; "/>
  122. </xhtml:body>
  123. </xhtml:html>