UIG020700.xrw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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[炼钢作业 >> 炼钢作业实绩 >> 连铸日浇钢量查询(UIG020700)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <searchData>
  12. <fromDate/>
  13. <toDate/>
  14. <ccmNo/>
  15. <shift/>
  16. <group/>
  17. <lzh/>
  18. </searchData>
  19. <gridData>
  20. <grid1/>
  21. </gridData>
  22. <initData>
  23. <LG_CD>G02003,Z05001,Z05002</LG_CD>
  24. </initData>
  25. <codeData/>
  26. </root>
  27. </instance>
  28. <script type="javascript" ev:event="xforms-ready">
  29. <![CDATA[
  30. initPage();
  31. ]]>
  32. </script>
  33. </model>
  34. <script type="javascript" src="../../js/G02.js"/>
  35. <script type="javascript" src="../../js/boaCommon.js"/>
  36. <script type="javascript">
  37. <![CDATA[
  38. function initPage(){
  39. model.setValue("/root/searchData/fromDate",CurentDate());
  40. model.setValue("/root/searchData/toDate",CurentDate());
  41. //model.setValue("/root/searchData/lzh",input3.value);
  42. commSendReq("/root/initData");
  43. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  44. model.copyNode("/root/codeData","/root/resData");
  45. model.refresh();
  46. }
  47. function totalRow(){
  48. var colValue = new Array();
  49. var cols = datagrid1.cols;
  50. for(var i = 0 ; i < cols ; i++){ colValue[i] = 0;}
  51. for(var i = datagrid1.fixedRows ;i < datagrid1.rows; i++){
  52. for(var j = 0 ; j < datagrid1.cols ; j++){
  53. colValue[j] = colValue[j] + parseInt(datagrid1.valueMatrix(i,j));
  54. }
  55. }
  56. datagrid1.addRow(true,true);
  57. datagrid1.rebuildStyle();
  58. datagrid1.rowstyle(datagrid1.rows - 1, "data", "background-color") = "#FFF000";
  59. for(var i = 0 ; i < cols ; i++){
  60. if(colValue[i] > 0)
  61. datagrid1.valueMatrix(datagrid1.rows - 1,i) = colValue[i];
  62. }
  63. }
  64. function find()
  65. {
  66. if(commDiffDay(input1.value,input2.value)>30)
  67. {
  68. window.alert("查询时间不能超过30天");
  69. return;
  70. }
  71. commSendReq("/root/searchData");
  72. commSubmit("UIG020700-service","find","glueAction.do");
  73. commAppendData("/root/gridData/grid1/rst1_VO","/root/resData/rst1_VO");
  74. model.refresh();
  75. totalRow();
  76. }
  77. function excelExport(){
  78. return datagrid1;
  79. }
  80. ]]>
  81. </script>
  82. </xhtml:head>
  83. <xhtml:body>
  84. <datagrid id="datagrid1" nodeset="/root/gridData/grid1/rst1_VO/rst1_Row" caption="班次^班组^钢种^炉号^铸机号^大包开浇前重量^大包浇完重量^大包开浇时间^大包关闭时间^钢水浇铸量^备注|班次^班组^钢种^炉号^铸机号^大包开浇前重量^大包浇完重量^大包开浇时间^大包关闭时间^钢水浇铸量^备注" colsep="^" colwidth="100, 100, 100, 100, 50, 55, 55, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:980px; height:575px; ">
  85. <col ref="WKSHIFT"/>
  86. <col ref="WKGROUP"/>
  87. <col ref="STL_GRD"/>
  88. <col ref="CHARGE_NO"/>
  89. <col ref="CC_DEVNO"/>
  90. <col ref="STLMELT_WGT" format="#,###"/>
  91. <col ref="REM_WGT_IN_TD" format="#,###"/>
  92. <col ref="LD_OPEN_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  93. <col ref="LD_CLOSE_DTIME" format="yyyy-mm-dd hh:nn:ss"/>
  94. <col ref="CC_END_STLMELT_USE_WGT" format="#,###"/>
  95. <col ref="REMARK"/>
  96. </datagrid>
  97. <caption id="caption11" class="cell" style="left:0px; top:0px; width:80px; height:20px; font-weight:bold; border-color:#000000; ">生 产 时 间</caption>
  98. <line id="line1" style="x1:175px; y1:10px; x2:180px; y2:10px; "/>
  99. <input id="input1" ref="/root/searchData/fromDate" class="input" inputtype="date" style="left:80px; top:0px; width:95px; height:20px; "/>
  100. <input id="input2" ref="/root/searchData/toDate" class="input" inputtype="date" style="left:180px; top:0px; width:95px; height:20px; "/>
  101. <caption id="caption101" class="cell" style="left:445px; top:0px; width:80px; height:20px; ">铸机号</caption>
  102. <select1 id="combo8" ref="/root/searchData/ccmNo" appearance="minimal" style="left:525px; top:0px; width:95px; height:20px; ">
  103. <choices>
  104. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[(SM_CD = 'J1' or SM_CD = 'J2' or SM_CD = 'J3' or SM_CD = 'J4' ) and LG_CD = 'G02003' or LG_CD ='A']">
  105. <label ref="SM_CFNM"/>
  106. <value ref="SM_CD"/>
  107. </itemset>
  108. </choices>
  109. </select1>
  110. <select1 id="combo1" ref="/root/searchData/shift" appearance="minimal" style="left:705px; top:0px; width:95px; height:20px; ">
  111. <choices>
  112. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[ LG_CD = 'Z05001' or LG_CD ='A']">
  113. <label ref="SM_CFNM"/>
  114. <value ref="SM_CD"/>
  115. </itemset>
  116. </choices>
  117. </select1>
  118. <caption id="caption1" class="cell" style="left:625px; top:0px; width:80px; height:20px; ">班次</caption>
  119. <caption id="caption2" class="cell" style="left:805px; top:0px; width:80px; height:20px; ">班组</caption>
  120. <select1 id="combo2" ref="/root/searchData/group" appearance="minimal" style="left:885px; top:0px; width:95px; height:20px; ">
  121. <choices>
  122. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[ LG_CD = 'Z05002' or LG_CD ='A']">
  123. <label ref="SM_CFNM"/>
  124. <value ref="SM_CD"/>
  125. </itemset>
  126. </choices>
  127. </select1>
  128. <caption id="caption3" class="cell" style="left:310px; top:0px; width:80px; height:20px; ">炉座号</caption>
  129. <input id="input3" ref="/root/searchData/lzh" style="left:390px; top:0px; width:35px; height:20px; "/>
  130. </xhtml:body>
  131. </xhtml:html>