| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?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[热轧作业>>钢卷库管理>>可发量查询(UIH050900)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <DLIV_TP>T</DLIV_TP>
- <ORD_NO/>
- <COIL_YARD_ADDR/>
- <SPEC_STL_GRD/>
- <TOT_DEC_GRD/>
- <sqlStr>AND CUR_LOAD_LOC IS NOT NULL AND CUR_PROG_CD IN( 'SFA','SGB' ) AND TOT_DEC_GRD = '1'</sqlStr>
- </formData>
- <resData>
- </resData>
- <reqData/>
- <grid1/>
- <searchData>
- <ORD_NO/>
- <ORD_SEQ/>
- </searchData>
- <grid2/>
- <newElement/>
- <totalWgt/>
- <totalWgt2/>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- function find(){
- commSendReq("/root/formData");
- commSubmit("UIH050900-service","find","glueAction.do");
- commAppendData("/root/grid1/UIH050900_ERSULT_VO","/root/resData/UIH050900_ERSULT_VO");
- datagrid1.refresh();
- var totalWgt = 0;
- var totalWgt2 = 0;
- for(var i = datagrid1.fixedRows ; i < datagrid1.rows ; i++){
- totalWgt = totalWgt + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT")));
- totalWgt2 = totalWgt2 + parseFloat(datagrid1.valueMatrix(i,datagrid1.colRef("PLAN_WGT")));
- }
- model.setValue("/root/totalWgt",totalWgt);
- model.setValue("/root/totalWgt2",totalWgt2);
- //datagrid1.addRow();
- //datagrid1.valueMatrix(datagrid1.rows -1,datagrid1.colRef("ACT_WGT")) = totalWgt;
-
- output1.refresh();output2.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption1" class="cell" style="left:159px; top:5px; width:65px; height:20px; ">合同号</caption>
- <caption id="caption11" class="cell" style="left:480px; top:5px; width:65px; height:20px; ">未判可发</caption>
- <caption id="caption4" class="cell" style="left:0px; top:5px; width:65px; height:20px; ">运输方式</caption>
- <caption id="caption5" class="cell" style="left:320px; top:5px; width:65px; height:20px; ">牌号</caption>
- <datagrid id="datagrid1" nodeset="/root/grid1/UIH050900_ERSULT_VO/UIH050900_ERSULT_Row" caption="客户代码^合同号^订单号^交货期^订单预排期^订单重量(T)^可发量(t)^剩余量(t)^已下计划余量^钢号^订单类型^目的地^产品代码^订单规格^判定规格^专用线^运输方式^是否水运|客户代码^合同号^订单号^交货期^订单预排期^订单重量(T)^可发量(t)^剩余量(t)^已下计划余量^钢号^订单类型^目的地^产品代码^订单规格^判定规格^专用线^运输方式^是否水运" colsep="^" colwidth="100, 80, 40, 100, 100, 53, 38, 37, 87, 67, 76, 108, 42, 44, 52, 100, 50, 40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:980px; height:275px; ">
- <col editable="false" ref="CUST_CD" type="input"/>
- <col editable="false" ref="ORD_NO" type="input"/>
- <col editable="false" ref="ORD_SEQ" type="input"/>
- <col editable="false" ref="DEVLMT_DTIME" type="input" format="yyyy-mm-dd"/>
- <col editable="false" ref="ORD_PLAN_DATA" type="input" format="yyyy-mm-dd"/>
- <col editable="false" ref="ORD_WGT" type="input"/>
- <col editable="false" ref="ACT_WGT" type="input"/>
- <col editable="false" ref="LEV_WGT" type="input"/>
- <col editable="false" ref="PLAN_WGT" type="input"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <col editable="false" ref="RCVORD_TP" type="input"/>
- <col editable="false" ref="DEST_PCD" type="input"/>
- <col editable="false" ref="PRODNM_CD" type="input"/>
- <col editable="false" ref="COIL_THK" type="input"/>
- <col editable="false" ref="COIL_WTH" type="input" visible="hidden"/>
- <col editable="false" ref="EXLV_LINE_CD" type="input"/>
- <col editable="false" ref="DLIV_TP" type="combo">
- <choices>
- <item>
- <label>火运</label>
- <value>T</value>
- </item>
- <item>
- <label>汽运</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col disabled="true" editable="false" ref="BY_SEA_YN" type="combo">
- <choices>
- <item>
- <label>是</label>
- <value>TRUE</value>
- </item>
- <item>
- <label>否</label>
- <value>FALSE</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var ordNo = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_NO"));
- var ordSeq = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD_SEQ"));
-
- model.setValue("/root/searchData/ORD_NO",ordNo);
- model.setValue("/root/searchData/ORD_SEQ",ordSeq);
-
- commSendReq("/root/searchData");
- commSubmit("UIH050900-service","click","glueAction.do");
-
- commAppendData("/root/grid2/UIH050900_DBCLICK_ERSULT_VO","/root/resData/UIH050900_DBCLICK_ERSULT_VO");
- datagrid2.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/grid2/UIH050900_DBCLICK_ERSULT_VO/UIH050900_DBCLICK_ERSULT_Row" caption="订单号^钢卷号^综合判定^订单规格^钢卷规格^钢卷长度^钢卷重量^堆放位置^发货进程状态" colsep="^" colwidth="100, 100, 51, 70, 70, 70, 70, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:330px; width:980px; height:270px; ">
- <col editable="false" ref="ORD_NO" type="input"/>
- <col editable="false" ref="OLD_SAMPL_NO" type="input"/>
- <col editable="false" ref="TOT_DEC_GRD" type="input"/>
- <col editable="false" ref="COIL_THK" type="input"/>
- <col editable="false" ref="COIL_WTH" type="input"/>
- <col editable="false" ref="COIL_LTH" type="input"/>
- <col editable="false" ref="ACT_WGT" type="input"/>
- <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
- <col editable="false" ref="SHIP_PROG_CD" type="input"/>
- </datagrid>
- <select1 id="combo1" ref="/root/formData/DLIV_TP" appearance="minimal" style="left:66px; top:5px; width:85px; height:20px; ">
- <choices>
- <item>
- <label>汽运</label>
- <value>C</value>
- </item>
- <item>
- <label>火运</label>
- <value>T</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/formData/SPEC_STL_GRD" style="left:386px; top:5px; width:85px; height:20px; "/>
- <input id="input3" ref="/root/formData/ORD_NO" style="left:225px; top:5px; width:85px; height:20px; "/>
- <bool id="bool1" checkvalue="Y|N" ref="/root/newElement" style="left:550px; top:5px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sqlStr = "";
- if(bool1.value == "true"){
- sqlStr = "".toString();
- }else{
- sqlStr = "AND CUR_LOAD_LOC IS NOT NULL AND CUR_PROG_CD IN( 'SFA','SGB' )AND TOT_DEC_GRD = '1'".toString();
- }
- model.setValue("/root/formData/sqlStr",sqlStr);
-
- ]]>
- </script>
- </bool>
- <caption id="caption2" class="cell" style="left:775px; top:10px; width:65px; height:20px; background-color:#ff9900; ">可发量</caption>
- <output id="output1" ref="/root/totalWgt" style="left:840px; top:10px; width:80px; height:20px; "/>
- <caption id="caption3" class="cell" style="left:614px; top:10px; width:76px; height:20px; background-color:#ff9900; ">已下计划余量</caption>
- <output id="output2" ref="/root/totalWgt2" style="left:690px; top:10px; width:80px; height:20px; "/>
- <button id="button1" visibility="hidden" style="left:935px; top:5px; width:100px; height:20px; ">
- <caption>button1</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|