926315273fc70af411515872f3fe8043f52bf64d.svn-base 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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[统计管理>>物料分析>>成品库库存实际(UIH090040)]]>
  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. <CUR_LOAD_LOC/>
  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/CUR_LOAD_LOC");
  62. commSubmit("UIH090040-service", "find", "glueAction.do");
  63. commAppendData("/root/datagrid1/COILYARD_VO","/root/resData/COILYARD_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 save(){
  69. model.removenode("/root/reqData");
  70. model.makeNode("/root/reqData");
  71. for(var i=0;i<datagrid1.rows;i++){
  72. datagrid1.rowStatus(i) = 3;
  73. }
  74. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
  75. //这里加入登录用户名,会不会与已有的initData冲突
  76. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  77. commSubmit("UIH090040-service", "save", "glueAction.do");
  78. model.refresh();
  79. //再查询一次
  80. find();
  81. }
  82. function vDate(){
  83. //获取系统时间 格式yyyymmdd
  84. //获取系统时间
  85. var sysDate = new Date();
  86. var year = sysDate.getYear().toString();
  87. var month = (sysDate.getMonth()+1).toString();
  88. var date = sysDate.getDate().toString();
  89. //var hours = sysDate.getHours().toString();
  90. //var minutes = sysDate.getMinutes().toString();
  91. //这里不精确到秒,用00代替
  92. //var second = sysDate.getMilliseconds().toString();
  93. var zero = 0;
  94. //最终结果时间串
  95. var vSysDate = null;
  96. if(month<10){
  97. if(date<10){
  98. vSysDate = year+zero+month+zero+date;
  99. }else{
  100. vSysDate = year+zero+month+date;
  101. }
  102. }else{
  103. if(date<10){
  104. vSysDate = year+month+zero+date;
  105. }else{
  106. vSysDate = year+month+date;
  107. }
  108. }
  109. return vSysDate;
  110. }
  111. ]]>
  112. </script>
  113. </xhtml:head>
  114. <xhtml:body>
  115. <caption id="caption1" class="cell" style="left:0px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">入库日期</caption>
  116. <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; "/>
  117. <datagrid id="datagrid1" nodeset="/root/datagrid1/COILYARD_VO/COILYARD_Row" caption="选择^钢卷号^钢号^订单宽度^订单厚度^成品宽度^成品厚度^卷重(吨)^交货状态^堆置垛位^综合判定结果^入库时间^合同号^订单号^收货单位" colsep="^" colwidth="50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 60, 180" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:980px; height:550px; ">
  118. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  119. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
  120. <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
  121. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
  122. <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
  123. <col editable="false" ref="COIL_WTH" type="input" style="background-color:#ffffff; "/>
  124. <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
  125. <col ref="ACT_WGT" type="input" format="#,###" maxlength="9" style="background-color:#ffff99; "/>
  126. <col editable="false" ref="PRODNM_CD" type="input" style="background-color:#ffffff; "/>
  127. <col editable="false" ref="CUR_LOAD_LOC" type="input" style="background-color:#ffffff; "/>
  128. <col ref="TOT_DEC_GRD"/>
  129. <col ref="REG_DTIME"/>
  130. <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
  131. <col editable="false" ref="ORD_SEQ" type="input" style="background-color:#ffffff; "/>
  132. <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
  133. </datagrid>
  134. <caption id="caption3" class="cell" style="left:810px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">垛 位</caption>
  135. <caption id="caption4" class="cell" style="left:190px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
  136. <caption id="caption5" class="cell" style="left:357px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 号</caption>
  137. <caption id="caption6" class="cell" style="left:534px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">宽 度</caption>
  138. <caption id="caption7" class="cell" style="left:671px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">厚度</caption>
  139. <input id="input3" ref="/root/searchData/COIL_NO" style="left:261px; top:5px; width:90px; height:20px; "/>
  140. <input id="input4" ref="/root/searchData/CUR_LOAD_LOC" style="left:882px; top:5px; width:93px; height:20px; "/>
  141. <input id="input5" ref="/root/searchData/COIL_WTH" style="left:606px; top:5px; width:59px; height:20px; "/>
  142. <input id="input6" ref="/root/searchData/COIL_THK" style="left:743px; top:5px; width:62px; height:20px; "/>
  143. <input id="input2" ref="/root/searchData/STL_GRD" style="left:430px; top:5px; width:100px; height:20px; "/>
  144. <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; "/>
  145. <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; "/>
  146. <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>
  147. <caption id="caption11" class="cell" style="left:90px; top:590px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总块数</caption>
  148. <caption id="caption12" class="cell" style="left:265px; top:590px; width:95px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量(吨)</caption>
  149. </xhtml:body>
  150. </xhtml:html>