| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/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[热轧作业>>钢卷库管理>>钢卷库移垛操作(UIH050700)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <FROM_COIL>R</FROM_COIL>
- <FROM_YARD/>
- <TO_COIL/>
- <TO_YARD>C</TO_YARD>
- <TMP_YARD/>
- <REG_ID/>
- <WK>
- <ENTRY_SHIFT/>
- <ENTRY_GROUP/>
- <ENTRY_REG/>
- <ENTRY_DTIME/>
- </WK>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //获取钢卷号,在界面显示
- var opp1 = window.opener;
- var ENTRY_SHIFT = opp1.model1.getValue("/root/WK/ENTRY_SHIFT");
- var ENTRY_GROUP = opp1.model1.getValue("/root/WK/ENTRY_GROUP");
- var ENTRY_REG = opp1.model1.getValue("/root/WK/ENTRY_REG");
- var ENTRY_DTIME = opp1.model1.getValue("/root/WK/ENTRY_DTIME");
-
- model.setValue("/root/WK/ENTRY_SHIFT",ENTRY_SHIFT);
- model.setValue("/root/WK/ENTRY_GROUP",ENTRY_GROUP);
- model.setValue("/root/WK/ENTRY_REG",ENTRY_REG);
- model.setValue("/root/WK/ENTRY_DTIME",ENTRY_DTIME);
-
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="650" pageheight="500">
- <caption id="caption6" class="cell" style="left:260px; top:290px; width:95px; height:20px; "/>
- <caption id="caption1" class="cell" style="left:90px; top:85px; width:95px; height:20px; ">钢卷号</caption>
- <input id="input1" ref="/root/FROM_COIL" style="left:185px; top:85px; width:105px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[输入你需要查询垛位的钢卷号]]>
- </hint>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //这里需要使用键盘事件在处理
- if(event.keyCode==13){
- //查询出当前卷在系统中的位置
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- input1.disabled = true;
-
- model.duplicate("/root/reqData","/root/FROM_COIL");
-
- commSubmit("UIH050700-service", "Fyard", "glueAction.do");
-
- //alert(model.getValue("/root/resData/FyardL_VO/FyardL_Row/F_YARD_L"));
-
- model.setValue("/root/FROM_YARD",model.getValue("/root/resData/FyardL_VO/FyardL_Row/F_YARD_L"));
-
- model.setFocus("input3" , true);//设置焦点
- model.refresh();
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- input1.disabled = false;
- ]]>
- </script>
- </input>
- <caption id="caption2" class="cell" style="left:330px; top:85px; width:95px; height:20px; ">当前位置</caption>
- <input id="input2" ref="/root/FROM_YARD" disabled="true" maxlength="9" style="left:425px; top:85px; width:105px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[输入你需要查询垛位的钢卷号]]>
- </hint>
- </input>
- <caption id="caption5" class="cell" style="left:330px; top:170px; width:95px; height:20px; ">当前卷号</caption>
- <caption id="caption3" class="cell" style="left:90px; top:170px; width:95px; height:20px; ">目标垛位</caption>
- <input id="input5" ref="/root/TO_COIL" disabled="true" maxlength="13" style="left:425px; top:170px; width:105px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[输入你需要查询垛位的钢卷号]]>
- </hint>
- </input>
- <input id="input3" ref="/root/TO_YARD" style="left:185px; top:170px; width:105px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[输入你需要查询垛位的钢卷号]]>
- </hint>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //这里需要使用键盘事件在处理
- if(event.keyCode==13){
- //查出目标垛位上的钢卷号
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- input3.disabled = true;
-
- //这里给出体术,输入长度不对不允许进行查询
- if(model.getValue("/root/TO_YARD").length == 9){
-
- model.duplicate("/root/reqData","/root/TO_YARD");
-
- commSubmit("UIH050700-service", "Tcoil", "glueAction.do");
-
- model.setValue("/root/TO_COIL",model.getValue("/root/resData/TcoilL_VO/TcoilL_Row/T_COIL_L"));
-
- model.setFocus("input4" , true);//设置焦点
- model.refresh();
- }else{
- alert(" 输入的目标垛位长度不为9,不符合库内垛位编排规则! ");
- return;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- input3.disabled = false;
- ]]>
- </script>
- </input>
- <caption id="caption4" class="cell" style="left:210px; top:235px; width:95px; height:20px; ">希望替换的垛位</caption>
- <input id="input4" ref="/root/TMP_YARD" maxlength="9" style="left:305px; top:235px; width:105px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[输入你需要查询垛位的钢卷号]]>
- </hint>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //这里需要使用键盘事件在处理
- if(event.keyCode==13){
- if(model.getValue("/root/TMP_YARD").length == 9 || model.getValue("/root/TMP_YARD").length == 0){
- input4.disabled = true;
- model.setFocus("button1" , true);//设置焦点
- model.refresh();
- }else{
- alert(" 输入的希望替换垛位长度不为9或者为空,不符合库内垛位编排规则! ");
- return;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- input4.disabled = false;
- ]]>
- </script>
- </input>
- <button id="button1" style="left:260px; top:290px; width:95px; height:20px; ">
- <caption>确认移动按钮</caption>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //把希望移动卷,进行移动
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- if(model.getValue("/root/TO_COIL") != ""){
- var isUse = commComfirmBox("是否确定将目标垛位的当前卷移动到希望替换的位置?","提示");
-
- if(isUse == "0"){
- return;
- }
- }
-
- var opp1 = window.opener;
- model.setValue("/root/REG_ID",opp1.model.getValue("/root/REG_ID"));
-
- model.refresh();
-
- model.duplicate("/root/reqData","/root/REG_ID");
- model.duplicate("/root/reqData","/root/FROM_COIL");
- model.duplicate("/root/reqData","/root/FROM_YARD");
- model.duplicate("/root/reqData","/root/TO_COIL");
- model.duplicate("/root/reqData","/root/TO_YARD");
- model.duplicate("/root/reqData","/root/TMP_YARD");
- model.duplicate("/root/reqData","/root/WK/ENTRY_SHIFT");
- model.duplicate("/root/reqData","/root/WK/ENTRY_GROUP");
- model.duplicate("/root/reqData","/root/WK/ENTRY_REG");
- model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
-
- commSubmit("UIH050700-service", "saveTwo", "glueAction.do");
- model.refresh();
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERROR_TMP"){
- alert(" 去向位置存在钢卷,请给出希望替换的垛位信息!!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERROR"){
- alert(" 希望替换的垛位上面存在钢卷,请确认后重新输入!!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERROR_TO"){
- alert(" 去向的垛位没有输入,请确认后重新输入!!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "CUR_PROG_CD"){
- alert(" 希望移动的卷已经发货完成,不能进行移垛操作!!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "FROM_YARD"){
- alert(" 来源卷的垛位信息不正确,不能进行移垛操作!!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "XX"){
- alert(" 输入垛位信息不满足垛位编排规则,不能进行移垛操作!!! ");
- return;
- }
- //这里调用主界面的查询方法
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|