| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[统计管理>>物料分析>>成品库库存实际(UIH090040)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <searchData>
- <fromTime/>
- <COIL_NO>R9-0</COIL_NO>
- <STL_GRD/>
- <COIL_WTH/>
- <COIL_THK/>
- <CUR_LOAD_LOC/>
- </searchData>
- <datagrid1/>
- <sumData>
- <SUM_COILRST_CNT/>
- <SUM_COILRST_WGT/>
- </sumData>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function InitParams(node) {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
- for (var i = 0; i < nodeList.length; i++)
- node.appendChild(nodeList.item(i));
- }
-
- function Init(node)
- {
- InitParams(node);
- }
-
- function find(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- //如果入库时间为空的话,默认系统时间
- if(model.getValue("/root/searchData/fromTime") == ""){
- var TDate = vDate();
- model.setValue("/root/searchData/fromTime",TDate);
- }
-
- //这里修改库存现况界面,提供相应的查询功能
- model.duplicate("/root/reqData","/root/searchData/fromTime");
- model.duplicate("/root/reqData","/root/searchData/COIL_NO");
- model.duplicate("/root/reqData","/root/searchData/STL_GRD");
- model.duplicate("/root/reqData","/root/searchData/COIL_WTH");
- model.duplicate("/root/reqData","/root/searchData/COIL_THK");
- model.duplicate("/root/reqData","/root/searchData/CUR_LOAD_LOC");
-
- commSubmit("UIH090040-service", "find", "glueAction.do");
-
- commAppendData("/root/datagrid1/COILYARD_VO","/root/resData/COILYARD_VO");
- model.setValue("/root/sumData/SUM_COILRST_CNT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_CNT"));
- model.setValue("/root/sumData/SUM_COILRST_WGT",model.getValue("/root/resData/SumCoil_VO/SumCoil_Row/COIL_WGT"));
-
- model.refresh();
- }
-
- function save(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- for(var i=0;i<datagrid1.rows;i++){
- datagrid1.rowStatus(i) = 3;
- }
-
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
-
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- commSubmit("UIH090040-service", "save", "glueAction.do");
-
- model.refresh();
-
- //再查询一次
- find();
- }
-
- function vDate(){
- //获取系统时间 格式yyyymmdd
- //获取系统时间
- var sysDate = new Date();
- var year = sysDate.getYear().toString();
- var month = (sysDate.getMonth()+1).toString();
- var date = sysDate.getDate().toString();
- //var hours = sysDate.getHours().toString();
- //var minutes = sysDate.getMinutes().toString();
- //这里不精确到秒,用00代替
- //var second = sysDate.getMilliseconds().toString();
- var zero = 0;
-
- //最终结果时间串
- var vSysDate = null;
-
- if(month<10){
- if(date<10){
- vSysDate = year+zero+month+zero+date;
- }else{
- vSysDate = year+zero+month+date;
- }
- }else{
- if(date<10){
- vSysDate = year+month+zero+date;
- }else{
- vSysDate = year+month+date;
- }
- }
- return vSysDate;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">入库日期</caption>
- <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; "/>
- <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; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="false" ref="OLD_SAMPL_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SPEC_STL_GRD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_WTH" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
- <col ref="ACT_WGT" type="input" format="#,###" maxlength="9" style="background-color:#ffff99; "/>
- <col editable="false" ref="PRODNM_CD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input" style="background-color:#ffffff; "/>
- <col ref="TOT_DEC_GRD"/>
- <col ref="REG_DTIME"/>
- <col editable="false" ref="ORD_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="ORD_SEQ" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="CUST_NM" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <caption id="caption3" class="cell" style="left:810px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">垛 位</caption>
- <caption id="caption4" class="cell" style="left:190px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
- <caption id="caption5" class="cell" style="left:357px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 号</caption>
- <caption id="caption6" class="cell" style="left:534px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">宽 度</caption>
- <caption id="caption7" class="cell" style="left:671px; top:5px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">厚度</caption>
- <input id="input3" ref="/root/searchData/COIL_NO" style="left:261px; top:5px; width:90px; height:20px; "/>
- <input id="input4" ref="/root/searchData/CUR_LOAD_LOC" style="left:882px; top:5px; width:93px; height:20px; "/>
- <input id="input5" ref="/root/searchData/COIL_WTH" style="left:606px; top:5px; width:59px; height:20px; "/>
- <input id="input6" ref="/root/searchData/COIL_THK" style="left:743px; top:5px; width:62px; height:20px; "/>
- <input id="input2" ref="/root/searchData/STL_GRD" style="left:430px; top:5px; width:100px; height:20px; "/>
- <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; "/>
- <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; "/>
- <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>
- <caption id="caption11" class="cell" style="left:90px; top:590px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总块数</caption>
- <caption id="caption12" class="cell" style="left:265px; top:590px; width:95px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量(吨)</caption>
- </xhtml:body>
- </xhtml:html>
|