c2e629b9bacbdb27c0adb362d28c768633f05758.svn-base 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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[生产管制 >> 炼钢管理 >> 在线板坯实绩现况]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <reqData/>
  12. <resData/>
  13. <formData>
  14. </formData>
  15. <gridData>
  16. <EmpListResult_VO/>
  17. </gridData>
  18. <initResult/>
  19. <initData>
  20. <LG_CD>E01002</LG_CD>
  21. </initData>
  22. <codeData/>
  23. <searchData>
  24. <MAT_PROC/>
  25. <FROM_DATE/>
  26. <END_DATE/>
  27. </searchData>
  28. <totalData>
  29. <slabCnt/>
  30. <slabWgt/>
  31. </totalData>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. if (window.parent == null) Init();//无父窗口 进行初始化结点
  37. commSendReq("/root/initData");
  38. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  39. model.copyNode("/root/codeData","/root/resData");
  40. model.refresh();
  41. ]]>
  42. </script>
  43. <script type="javascript" src="../../js/boaMsg.js"/>
  44. <script type="javascript" src="../../js/boaCommon.js"/>
  45. <script type="javascript" src="../../js/dCommon.js"/>
  46. <script type="javascript" src="../../js/F.js"/>
  47. <script type="javascript">
  48. <![CDATA[
  49. function excelExport(){
  50. return datagrid1;
  51. }
  52. //1、获取用户登录信息,只能在页面初始化函数中调用
  53. function InitParams(node)
  54. {
  55. if (typeof node == "undefined" && typeof node != "object") return;
  56. model.removenode("/root/initData/rcvInfo");
  57. model.makeNode("/root/initData/rcvInfo");
  58. var nodeList = node.childNodes;
  59. for (var i = 0; i < nodeList.length; i++)
  60. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  61. model.refresh();
  62. }
  63. //2. 页面初始化函数(必须)
  64. function Init(node)
  65. {
  66. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  67. // 在程序中会重建该节点,最好不要重名
  68. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  69. //...
  70. }
  71. //3、页面标题
  72. function setTitle()
  73. {
  74. return "炼钢管制 >> 作业进程现状 >> 在线板坯实绩现况"; // 如:return "进程管理 >> 订单进程现况查询";
  75. }
  76. //4. 页面按键动作
  77. // 查询按键
  78. function find()
  79. {
  80. commSendReq("/root/searchData");
  81. commSubmit("UIF013030-service","findSlabComm","glueAction.do");
  82. model.copyNode("/root/gridData/EmpListResult_VO","/root/resData/EmpListResult_VO");
  83. model.removenode("/root/resData/EmpListResult_VO");
  84. var slabCnt = 0;
  85. var slabWgt = 0;
  86. datagrid1.refresh();
  87. for(var i = datagrid1.fixedRows ; i < datagrid1.rows ; i++){
  88. slabCnt = slabCnt + 1;
  89. slabWgt = slabWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_WGT")));
  90. }
  91. model.setValue("/root/totalData/slabCnt",slabCnt);
  92. model.setValue("/root/totalData/slabWgt",slabWgt/1000);
  93. output1.refresh();
  94. output2.refresh();
  95. }
  96. ]]>
  97. </script>
  98. </model>
  99. </xhtml:head>
  100. <xhtml:body pagewidth="980" pageheight="620">
  101. <datagrid id="datagrid1" nodeset="/root/gridData/EmpListResult_VO/EmpListResult_Row" caption="板坯号^切割时间^物料进程^HCR区分^位置^板坯^板坯^板坯^板坯^合同号^订单号^交货期^钢号^板坯去向|板坯号^切割时间^物料进程^HCR区分^位置^厚度^长度^宽度^重量^合同号^订单号^交货期^钢号^板坯去向" colwidth="111, 100, 100, 83, 100, 55, 72, 65, 74, 133, 61, 100, 100, 100" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" ckcoloralternate="#f7f9f9" style="left:0px; top:30px; width:980px; height:590px; text-align:center; ">
  102. <col ref="SLAB_NO"/>
  103. <col ref="SLAB_CUT_DTIME"/>
  104. <col ref="CUR_PROG_CD"/>
  105. <col ref="HCR_CLF" disabled="true" editmode="search"/>
  106. <col ref="CUR_LOAD_LOC"/>
  107. <col ref="SLAB_THK" style="text-align:right; "/>
  108. <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
  109. <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
  110. <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
  111. <col ref="ORD_NO"/>
  112. <col ref="ORD_SEQ"/>
  113. <col ref="DEL_TO_DATE"/>
  114. <col ref="STL_GRD" style="text-align:left; "/>
  115. <col ref="SLAB_RT"/>
  116. </datagrid>
  117. <select1 id="combo21" ref="/root/searchData/MAT_PROC" appearance="minimal" style="left:60px; top:5px; width:85px; height:20px; ">
  118. <choices>
  119. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'E01002' or LG_CD ='A']">
  120. <label ref="SM_CFNM"/>
  121. <value ref="SM_CD"/>
  122. </itemset>
  123. </choices>
  124. </select1>
  125. <caption id="caption28" class="cell" style="left:0px; top:5px; width:58px; height:20px; font-weight:bold; border-color:#000000; ">物料进程</caption>
  126. <caption id="caption11" style="left:815px; top:6px; width:20px; height:20px; font-weight:bold; ">块</caption>
  127. <caption id="caption13" style="left:955px; top:5px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  128. <line id="line2" style="x1:725px; y1:25px; x2:785px; y2:25px; "/>
  129. <caption id="caption16" class="cell" style="left:715px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">块数合计</caption>
  130. <line id="line3" style="x1:875px; y1:25px; x2:955px; y2:25px; "/>
  131. <caption id="caption8" class="cell" style="left:830px; top:5px; width:60px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  132. <output id="output1" ref="/root/totalData/slabCnt" style="left:775px; top:5px; width:40px; height:20px; text-align:center; "/>
  133. <output id="output2" ref="/root/totalData/slabWgt" style="left:890px; top:5px; width:65px; height:20px; text-align:center; "/>
  134. <caption id="caption1" class="cell" style="left:150px; top:5px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">切割时间</caption>
  135. <input id="input5" ref="/root/searchData/FROM_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:210px; top:5px; width:90px; height:20px; ">
  136. <script type="javascript" ev:event="xforms-value-changed">
  137. <![CDATA[
  138. if(model.getValue("/root/searchData/END_DATE") == null || model.getValue("/root/searchData/END_DATE") == ""||
  139. model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/END_DATE")){
  140. model.setValue("/root/searchData/END_DATE",model.getValue("/root/searchData/FROM_DATE"));
  141. input6.refresh();
  142. }
  143. ]]>
  144. </script>
  145. </input>
  146. <input id="input6" ref="/root/searchData/END_DATE" class="input" inputtype="date" format="yyyy-mm-dd" style="left:301px; top:5px; width:90px; height:20px; ">
  147. <script type="javascript" ev:event="xforms-value-changed">
  148. <![CDATA[
  149. if(model.getValue("/root/searchData/FROM_DATE") == null || model.getValue("/root/searchData/FROM_DATE") == ""||
  150. model.getValue("/root/searchData/FROM_DATE") > model.getValue("/root/searchData/END_DATE")){
  151. model.setValue("/root/searchData/FROM_DATE",model.getValue("/root/searchData/END_DATE"));
  152. input5.refresh();
  153. }
  154. ]]>
  155. </script>
  156. </input>
  157. </xhtml:body>
  158. </xhtml:html>