UIH051200.xrw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <formData>
  10. <COIL_NO/>
  11. <ORD_NO/>
  12. <ORD_FL/>
  13. <FROM_DATE/>
  14. <TO_DATE/>
  15. <CUR_LOAD_LOC/>
  16. <STL_GRD/>
  17. <COIL_WTH/>
  18. <COIL_THK/>
  19. </formData>
  20. <reqData/>
  21. <resData/>
  22. <grid1/>
  23. <totalData>
  24. <coilCnt/>
  25. <coilWgt/>
  26. </totalData>
  27. </root>
  28. </instance>
  29. </model>
  30. <script type="javascript">
  31. <![CDATA[
  32. function excelExport(){
  33. return datagrid1;
  34. }
  35. function find()
  36. {
  37. commSendReq("/root/formData");
  38. commSubmit("UIH051200-service","find","glueAction.do");
  39. commAppendData("/root/grid1/UIH051200_RESULT_VO","/root/resData/UIH051200_RESULT_VO");
  40. var slabCnt = 0;
  41. var slabWgt = 0;
  42. datagrid1.refresh();
  43. for(var i = 1 ; i < datagrid1.rows-1 ; i++){
  44. datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
  45. slabCnt = slabCnt + 1;
  46. var tempWgt = datagrid1.valueMatrix(i+1,datagrid1.colRef("ACT_WGT"));
  47. if(tempWgt == "" || tempWgt == null)tempWgt = "0";
  48. slabWgt = slabWgt + parseFloat(tempWgt);
  49. }
  50. model.setValue("/root/totalData/coilCnt",slabCnt);
  51. model.setValue("/root/totalData/coilWgt",slabWgt/1000);
  52. output1.refresh();
  53. output2.refresh();
  54. }
  55. ]]>
  56. </script>
  57. <script type="javascript" src="../../js/boaCommon.js"/>
  58. </xhtml:head>
  59. <xhtml:body>
  60. <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:239px; top:0px; width:113px; height:20px; text-align:left; ">
  61. <choices>
  62. <itemset nodeset="/root/initResult/resData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
  63. <label ref="FAC_STL_GRD"/>
  64. <value ref="FAC_CODE"/>
  65. </itemset>
  66. </choices>
  67. </select1>
  68. <caption id="caption2" class="cell" style="left:0px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
  69. <caption id="caption3" class="cell" style="left:167px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 号</caption>
  70. <caption id="caption13" class="cell" style="left:530px; top:0px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">出库时间</caption>
  71. <input id="input1" ref="/root/formData/COIL_NO" style="left:71px; top:0px; width:90px; height:20px; "/>
  72. <caption id="caption7" class="cell" style="left:360px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">合 同 号</caption>
  73. <line id="line4" style="x1:706px; y1:10px; x2:711px; y2:10px; "/>
  74. <input id="input3" ref="/root/formData/ORD_NO" style="left:431px; top:0px; width:90px; height:20px; "/>
  75. <input id="input5" ref="/root/formData/FROM_DATE" class="input" inputtype="date" style="left:618px; top:0px; width:85px; height:20px; ">
  76. <script type="javascript" ev:event="xforms-value-changed">
  77. <![CDATA[
  78. if(model.getValue("/root/formData/TO_DATE") == null || model.getValue("/root/formData/TO_DATE") == ""||
  79. model.getValue("/root/formData/TO_DATE") < model.getValue("/root/formData/FROM_DATE")){
  80. model.setValue("/root/formData/TO_DATE",model.getValue("/root/formData/FROM_DATE"));
  81. input6.refresh();
  82. }
  83. ]]>
  84. </script>
  85. </input>
  86. <input id="input6" ref="/root/formData/TO_DATE" class="input" inputtype="date" style="left:715px; top:0px; width:85px; height:20px; ">
  87. <script type="javascript" ev:event="xforms-value-changed">
  88. <![CDATA[
  89. if(model.getValue("/root/formData/FROM_DATE") == null || model.getValue("/root/formData/FROM_DATE") == ""||
  90. model.getValue("/root/formData/FROM_DATE") > model.getValue("/root/formData/TO_DATE")){
  91. model.setValue("/root/formData/FROM_DATE",model.getValue("/root/formData/TO_DATE"));
  92. input5.refresh();
  93. }
  94. ]]>
  95. </script>
  96. </input>
  97. <datagrid id="datagrid1" nodeset="/root/grid1/UIH051200_RESULT_VO/UIH051200_RESULT_Row" caption="序号^钢卷号^合同号^订单号^出库时间^钢种^重量|序号^钢卷号^合同号^订单号^出库时间^钢种^重量" colsep="^" colwidth="38, 100, 113, 120, 111, 113, 60" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:980px; height:555px; ">
  98. <col ref="SEQ"/>
  99. <col editable="false" ref="OLD_SAMPL_NO" type="input"/>
  100. <col editable="false" ref="ORD_NO" type="input"/>
  101. <col ref="ORD_SEQ"/>
  102. <col ref="TRNF_DTIME" format="yyyy-mm-dd hh-mm"/>
  103. <col editable="false" ref="SPEC_STL_GRD" type="input"/>
  104. <col editable="false" ref="ACT_WGT" type="input"/>
  105. </datagrid>
  106. <caption id="caption10" class="cell" style="left:150px; top:585px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  107. <caption id="caption11" style="left:130px; top:586px; width:30px; height:20px; font-weight:bold; ">卷</caption>
  108. <caption id="caption12" style="left:300px; top:585px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  109. <line id="line2" style="x1:70px; y1:605px; x2:130px; y2:605px; "/>
  110. <line id="line3" style="x1:220px; y1:605px; x2:300px; y2:605px; "/>
  111. <caption id="caption9" class="cell" style="left:0px; top:585px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
  112. <output id="output1" ref="/root/totalData/coilCnt" style="left:70px; top:585px; width:60px; height:20px; text-align:center; "/>
  113. <output id="output2" ref="/root/totalData/coilWgt" style="left:220px; top:585px; width:80px; height:20px; text-align:center; "/>
  114. </xhtml:body>
  115. </xhtml:html>