| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?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[炼钢作业 >> 板坯库管理 >> 板坯库垛位信息查询(UIG040030)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <YARD_ADDR/>
- <STORELAY/>
- <SLAB_NO/>
- </formData>
- <gridDAta/>
- <resData/>
- <reqData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var parentWindow = window.opener;
- var tempYardAddr = parentWindow.model.getValue("/root/tempData/selectCaption");
- var searchType = parentWindow.model.getValue("/root/tempData/searchType");
- var tempStr = "";
- if(searchType == "mill_fl"){
- tempStr = "RHF_SCH_YN";
- }else if(searchType == "order_fl"){
- tempStr = "ORD_FL";
- }
- model.setValue("/root/formData/YARD_ADDR",tempYardAddr);
- model.refresh();
- model.removenode("/root/reqData");
- commSendReq("/root/formData");
- commSubmit("UIG040030-service","find","glueAction.do");
-
- commAppendData("/root/gridDAta/yardAddrDetailResult_VO","/root/resData/yardAddrDetailResult_VO");
-
- model.refresh();
-
- var nodeset = datagrid1.nodeset;
- var nodeCnt2 = parseInt(model.getXPathValue("count(" + nodeset + ")"));
- var jj = 0;
- for(var ii = 2;ii<=nodeCnt2+1;ii++)
- {
- jj = ii - 1;
-
- var RhfSch = model.getValue("/root/gridDAta/yardAddrDetailResult_VO/yardAddrDetailResult_Row["+jj+"]/" + tempStr);
-
-
- if ( RhfSch != null && (RhfSch == "Y" || RhfSch == "2") ) {
-
- datagrid1.cellstyle("background-color", jj, 1, jj, 5) = "#ff00ff";
- }
- }
-
-
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript">
- <![CDATA[
- function save()
- {
- commSendReq("/root/formData");
- commSubmit("UIG040030-service","save","glueAction.do");
- var errorMsg = model.getValue("/root/resData/ConfMsg_VO/ConfMsg_Row/ERROR_MSG");
- if(errorMsg != ""){
- alert(errorMsg);
- }
- }
-
- function find(){
- commSendReq("/root/formData");
- commSubmit("UIG040030-service","find","glueAction.do");
-
- commAppendData("/root/gridDAta/yardAddrDetailResult_VO","/root/resData/yardAddrDetailResult_VO");
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,615;">
- <datagrid id="datagrid1" nodeset="/root/gridDAta/yardAddrDetailResult_VO/yardAddrDetailResult_Row" allowuserresize="false" caption="块^板坯号^厚度^宽度^长度^重量^牌号^合同号^订单号^产品名称^余材区分^精整有无^装炉指示" colwidth="32, 100, 71, 68, 70, 62, 100, 95, 90, 100, 65, 65, 60" defaultrows="30" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:37px; width:980px; height:578px; border-color:#000000; ">
- <col ref="STORELAY"/>
- <col ref="SLAB_NO" type="input"/>
- <col ref="SLAB_THK" type="input" editable="false"/>
- <col ref="SLAB_WTH" type="input" editable="false"/>
- <col ref="SLAB_LEN" type="input" editable="false"/>
- <col ref="SLAB_WGT" type="input" editable="false"/>
- <col ref="STL_GRD" type="input" editable="false"/>
- <col ref="ORD_NO" type="input" editable="false"/>
- <col ref="ORD_SEQ" type="input" disabled="true" editable="false"/>
- <col ref="PRODNM_CD" type="input" editable="false"/>
- <col ref="ORD_FL" type="combo" disabled="true">
- <choices>
- <item>
- <label>正常材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="CORRECT_END_CLF"/>
- <col ref="RHF_SCH_YN" type="combo" disabled="true">
- <choices>
- <item>
- <label>指示装炉</label>
- <value>Y</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/formData/STORELAY",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("STORELAY")));
- model.setValue("/root/formData/SLAB_NO",datagrid1.valueMatrix(datagrid1.row,datagrid1.col));
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; ">存放位置</caption>
- <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <input id="input1" ref="/root/formData/YARD_ADDR" style="left:102px; top:5px; width:100px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; border-color:#000000; ">存放位置</caption>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <input id="input2" ref="/root/formData/YARD_ADDR" style="left:102px; top:5px; width:100px; height:20px; "/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- save();
- find();
- }
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|