| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <COIL_NO/>
- <ORD_NO/>
- <ORD_FL/>
- <FROM_DATE/>
- <TO_DATE/>
- <CUR_LOAD_LOC/>
- <STL_GRD/>
- <COIL_WTH/>
- <COIL_THK/>
- </formData>
- <reqData/>
- <resData/>
- <grid1/>
- <totalData>
- <coilCnt/>
- <coilWgt/>
- </totalData>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- function excelExport(){
- return datagrid1;
- }
- function find()
- {
- commSendReq("/root/formData");
- commSubmit("UIH051200-service","find","glueAction.do");
-
- commAppendData("/root/grid1/UIH051200_RESULT_VO","/root/resData/UIH051200_RESULT_VO");
-
- var slabCnt = 0;
- var slabWgt = 0;
- datagrid1.refresh();
- for(var i = 1 ; i < datagrid1.rows-1 ; i++){
- datagrid1.valueMatrix(i+1,datagrid1.colRef("SEQ")) = i;
- slabCnt = slabCnt + 1;
- var tempWgt = datagrid1.valueMatrix(i+1,datagrid1.colRef("ACT_WGT"));
- if(tempWgt == "" || tempWgt == null)tempWgt = "0";
- slabWgt = slabWgt + parseFloat(tempWgt);
- }
-
- model.setValue("/root/totalData/coilCnt",slabCnt);
- model.setValue("/root/totalData/coilWgt",slabWgt/1000);
- output1.refresh();
- output2.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body>
- <select1 id="combo1" ref="/root/formData/STL_GRD" appearance="minimal" editmode="inputsearch" style="left:239px; top:0px; width:113px; height:20px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/initResult/resData/STL_GRD_SELECT_VO/STL_GRD_SELECT_Row">
- <label ref="FAC_STL_GRD"/>
- <value ref="FAC_CODE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:0px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 卷 号</caption>
- <caption id="caption3" class="cell" style="left:167px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">钢 号</caption>
- <caption id="caption13" class="cell" style="left:530px; top:0px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">出库时间</caption>
- <input id="input1" ref="/root/formData/COIL_NO" style="left:71px; top:0px; width:90px; height:20px; "/>
- <caption id="caption7" class="cell" style="left:360px; top:0px; width:70px; height:20px; font-weight:bold; border-color:#000000; ">合 同 号</caption>
- <line id="line4" style="x1:706px; y1:10px; x2:711px; y2:10px; "/>
- <input id="input3" ref="/root/formData/ORD_NO" style="left:431px; top:0px; width:90px; height:20px; "/>
- <input id="input5" ref="/root/formData/FROM_DATE" class="input" inputtype="date" style="left:618px; top:0px; width:85px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(model.getValue("/root/formData/TO_DATE") == null || model.getValue("/root/formData/TO_DATE") == ""||
- model.getValue("/root/formData/TO_DATE") < model.getValue("/root/formData/FROM_DATE")){
-
- model.setValue("/root/formData/TO_DATE",model.getValue("/root/formData/FROM_DATE"));
-
- input6.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="input6" ref="/root/formData/TO_DATE" class="input" inputtype="date" style="left:715px; top:0px; width:85px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/formData/FROM_DATE") == null || model.getValue("/root/formData/FROM_DATE") == ""||
- model.getValue("/root/formData/FROM_DATE") > model.getValue("/root/formData/TO_DATE")){
-
- model.setValue("/root/formData/FROM_DATE",model.getValue("/root/formData/TO_DATE"));
-
- input5.refresh();
- }
- ]]>
- </script>
- </input>
- <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; ">
- <col ref="SEQ"/>
- <col editable="false" ref="OLD_SAMPL_NO" type="input"/>
- <col editable="false" ref="ORD_NO" type="input"/>
- <col ref="ORD_SEQ"/>
- <col ref="TRNF_DTIME" format="yyyy-mm-dd hh-mm"/>
- <col editable="false" ref="SPEC_STL_GRD" type="input"/>
- <col editable="false" ref="ACT_WGT" type="input"/>
- </datagrid>
- <caption id="caption10" class="cell" style="left:150px; top:585px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
- <caption id="caption11" style="left:130px; top:586px; width:30px; height:20px; font-weight:bold; ">卷</caption>
- <caption id="caption12" style="left:300px; top:585px; width:20px; height:20px; font-weight:bold; ">吨</caption>
- <line id="line2" style="x1:70px; y1:605px; x2:130px; y2:605px; "/>
- <line id="line3" style="x1:220px; y1:605px; x2:300px; y2:605px; "/>
- <caption id="caption9" class="cell" style="left:0px; top:585px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
- <output id="output1" ref="/root/totalData/coilCnt" style="left:70px; top:585px; width:60px; height:20px; text-align:center; "/>
- <output id="output2" ref="/root/totalData/coilWgt" style="left:220px; top:585px; width:80px; height:20px; text-align:center; "/>
- </xhtml:body>
- </xhtml:html>
|