| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538 |
- <?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[炼钢作业 >> 板坯库管理 >> 台车行车命令制定(UIG040045)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <menu>
- <item>
- <label> FstSlab</label>
- <func>firstSlab</func>
- </item>
- <item>
- <label> ScdSlab</label>
- <func>secondSlab</func>
- </item>
- <item>
- <label> ThdSlab</label>
- <func>thirdSlab</func>
- </item>
- <item>
- <label>GoBack</label>
- <func>goBack</func>
- </item>
- <item>
- <label>CANCEL</label>
- <func>slabCancel</func>
- </item>
- </menu>
- <formData>
- <FST_YARD_ADDR/>
- <SCD_YARD_ADDR/>
- <TRANS_CAR>TO1</TRANS_CAR>
- <SLAB_NO/>
- <SLAB_SIZE/>
- <STL_GRD/>
- <SLAB_WGT/>
- <QLFD_YN/>
- </formData>
- <crainOrder>
- <fromAddr>T01</fromAddr>
- <toAddr/>
- <crainNo>1-1</crainNo>
- <fstSlab/>
- <scdSlab/>
- <thdSlab/>
- <slabCnt>0</slabCnt>
- </crainOrder>
- <grid/>
- <reqData/>
- <resData/>
- <fstYardAddr/>
- <scdYardAddr/>
- <thdYardAddr/>
- <leftTransCar/>
- <rightTransCar/>
- <tempData/>
- <MESSAGES/>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- var SELECTED_SLAB = null;
- var SELECTED_SLAB_TAG = null;
-
- var MOVE_SLAB = null;
- var MOVE_SLAB_TAG = null;
- var MENU_VALUE = null;
- var SLAB_ARRAY = new Array();
-
- function call_addr_UIG040044()
- {
- // 设置跺位查询的默认跺位为 L 开头的炼钢板坯库
- model.setValue("/root/tempData","Z");
-
- window.load("UIG040026.xrw","modal","", "left:228; top:78; width:980; height:660; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
-
- model1.setValue("/root/crainOrder/toAddr",model1.getValue("/root/tempData"));
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
- // input1.refresh();
-
- find();
-
- }
-
- function call_left_UIG040044()
- {
- // 设置跺位查询的默认跺位为 L 开头的炼钢板坯库
- model.setValue("/root/tempData","L");
-
- window.load("UIG040044.xrw","modal","", "left:228; top:78; width:320; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
-
- if(model.getValue("/root/tempData") == model.getValue("/root/formData/SCD_YARD_ADDR"))return;
-
- model1.setValue("/root/formData/FST_YARD_ADDR",model1.getValue("/root/tempData"));
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
- // input1.refresh();
-
- find();
-
- }
-
- function call_righ_UIG040044()
- {
- // 设置跺位查询的默认跺位为 L 开头的炼钢板坯库
- model.setValue("/root/tempData","L");
- window.load("UIG040044.xrw","modal","", "left:600; top:78; width:320; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
-
- if(model.getValue("/root/tempData") == model.getValue("/root/formData/FST_YARD_ADDR"))return;
-
-
- model1.setValue("/root/formData/SCD_YARD_ADDR",model1.getValue("/root/tempData"));
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
-
-
-
- find();
- }
-
- function createOrder(){
- if(input4.value == ""|| input5.value == "" || (input7.value == "" && input8.value == "" && input9.value == "")){
- alert(" 错误 行车命令选项有空 ");
- return;
- }
- var slabCnt = 0;
- if(input7.value != "")slabCnt = slabCnt + 1;
- if(input8.value != "")slabCnt = slabCnt + 1;
- if(input9.value != "")slabCnt = slabCnt + 1;
- model.setValue("/root/crainOrder/slabCnt",slabCnt);
-
- commSendReq("/root/crainOrder");
- commSubmit("UIG040045-service","save","glueAction.do");
-
- commAppendData("/root/grid/SearchCrOrderResult_VO","/root/resData/SearchCrOrderResult_VO");
- input5.value = "";input7.value = "";input8.value = "";input9.value = "";
-
- model.refresh();
- }
-
- function find(){
- model.removenode("/root/fstYardAddr");
- model.makeNode("/root/fstYardAddr");
- model.removenode("/root/scdYardAddr");
- model.makeNode("/root/scdYardAddr");
- model.removenode("/root/thdYardAddr");
- model.makeNode("/root/thdYardAddr");
-
- var slabNoNode = null;
- var yardAddrNode = null;
- var storeLayNode = null;
- var slabYardAreaNodeset = null;
-
- commSendReq("/root/formData");
- commSubmit("UIG040045-service","find","glueAction.do");
-
- if(instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO") != null){
-
- slabYardAreaNodeset = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO").childNodes;
- var i = 1;
- while(childNode = slabYardAreaNodeset.nextNode()){
-
- slabNoNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO/SearchYardAddrResultFst_Row[" + i + "]/SLAB_NO");
- yardAddrNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO/SearchYardAddrResultFst_Row[" + i + "]/YARD_ADDR");
- storeLayNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultFst_VO/SearchYardAddrResultFst_Row[" + i + "]/STORELAY");
-
- SLAB_ARRAY[i] = yardAddrNode.value + storeLayNode.value + slabNoNode.value;
-
- model.makeValue("/root/fstYardAddr/outputL" + storeLayNode.value,slabNoNode.value);
- i = i + 1;
- }
- }
- if(instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO") != null){
- slabYardAreaNodeset = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO").childNodes;
- var i = 1;
- while(childNode = slabYardAreaNodeset.nextNode())
- {
- slabNoNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO/SearchYardAddrResultScd_Row[" + i + "]/SLAB_NO");
- yardAddrNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO/SearchYardAddrResultScd_Row[" + i + "]/YARD_ADDR");
- storeLayNode = instance1.selectSingleNode("/root/resData/SearchYardAddrResultScd_VO/SearchYardAddrResultScd_Row[" + i + "]/STORELAY");
- SLAB_ARRAY[i + 16] = yardAddrNode.value + storeLayNode.value + slabNoNode.value;
-
- model.makeValue("/root/scdYardAddr/outputR" + storeLayNode.value,slabNoNode.value);
-
- i = i+ 1;
- }
- }
-
- if(instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO").hasChildNodes()){
- slabYardAreaNodeset = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO").childNodes;
- for(var i = 1;i<=slabYardAreaNodeset.length;i++)
- {
- slabNoNode = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO/SearchCarYardResult_Row[" + i + "]/SLAB_NO");
- storeLayNode = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO/SearchCarYardResult_Row[" + i + "]/STORELAY");
- ordFlagNode = instance1.selectSingleNode("/root/resData/SearchCarYardResult_VO/SearchCarYardResult_Row[" + i + "]/ORD_FLAG");
-
- var storelay = parseInt(storeLayNode.value,10);
- if(storelay <= 16){
- if(ordFlagNode.value == "1"){
- document.all("outputCL" + storelay).attribute("background-color") = "#99cc00";
- }else{
- document.all("outputCL" + storelay).attribute("background-color") = "#ffffff";
- }
- model.makeValue("/root/thdYardAddr/outputCL" + storelay,slabNoNode.value);
- }
- else{
- if(ordFlagNode.value == "1"){
- document.all("outputCR" + (storelay - 16)).attribute("background-color") = "#99cc00";
- }else {
- document.all("outputCR" + (storelay - 16)).attribute("background-color") = "#ffffff";
- }
- model.makeValue("/root/thdYardAddr/outputCR" + (storelay - 16),slabNoNode.value);
- }
- }
- }
- commAppendData("/root/grid/SearchCrOrderResult_VO","/root/resData/SearchCrOrderResult_VO");
- model1.refresh();
- }
-
- function save(){
- var slabValue = null;
- var fromStorelay = null;
- var fromYardAddr = null;
- var slabNo = null;
- var toStorelay = null;
- var toYardAddr = "T01";
- var rowTag = 0;
-
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- for(var i = 1 ; i <= 32 ; i++){
-
-
- if(i > 16){
- slabValue = model.getValue("/root/thdYardAddr/outputCR" + (i-16));
- }
- else{
- slabValue = model.getValue("/root/thdYardAddr/outputCL" + i);
- }
- if(slabValue == ""){
- continue;
- }
-
- var tempSr = "";
- var boolTag = false;
- for(var j = 1 ; j <= 32 ; j++){
- tempSr = SLAB_ARRAY[j] + "";
- var tempSrValue ;
- if(tempSr.substr(0,1) == "L"){
- tempSrValue = tempSr.substr(7,13);
- fromStorelay = tempSr.substr(5,2);
- fromYardAddr = tempSr.substr(0,5);
- }
- else if(tempSr.substr(0,1) == "Z"){
- tempSrValue = tempSr.substr(8,13);
- fromStorelay = tempSr.substr(6,2);
- fromYardAddr = tempSr.substr(0,6);
- }
- if(tempSrValue == (slabValue + "")){
- boolTag = true;
- break;
- }
- }
- if(boolTag == false) continue;
- slabNo = slabValue;
- toStorelay = i;
-
-
-
- rowTag = rowTag +1;
- model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_BEF_STORE_LOC",fromYardAddr);
- model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_SLAB_NO",slabNo);
- model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_YARD_ADDR",toYardAddr);
- model.makeValue("/root/reqData/ToYard/ITEM[" + rowTag + "]/TO_STORELAY",toStorelay);
-
- model.makeValue("/root/reqData/FromYard/ITEM[" + rowTag + "]/FROM_YARD_ADDR",fromYardAddr);
- model.makeValue("/root/reqData/FromYard/ITEM[" + rowTag + "]/FROM_STORELAY",fromStorelay);
-
-
- }
- model.refresh();
- //var node = instance1.selectSingleNode("/root/example");
- commSubmit("UIG040045-service","save2","glueAction.do");
- model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- model.refresh();
- alert(model.getValue("/root/MESSAGES"));
- }
-
-
- function move(){
- commSendReq("/root/crainOrder");
- commSubmit("UIG040045-service","move","glueAction.do");
- model.setValue("/root/MESSAGES",model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row"));
- find();
- model.refresh();
- input7.value = "";
- input5.value = "";
- alert(model.getValue("/root/MESSAGES"));
- MOVE_SLAB_TAG = null;
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,615;">
- <output id="outputL16" ref="/root/fstYardAddr/outputL16" style="left:50px; top:144px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL15" ref="/root/fstYardAddr/outputL15" style="left:50px; top:170px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL14" ref="/root/fstYardAddr/outputL14" style="left:50px; top:196px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL13" ref="/root/fstYardAddr/outputL13" style="left:50px; top:222px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL09" ref="/root/fstYardAddr/outputL09" style="left:50px; top:326px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL12" ref="/root/fstYardAddr/outputL12" style="left:50px; top:248px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL11" ref="/root/fstYardAddr/outputL11" style="left:50px; top:274px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL10" ref="/root/fstYardAddr/outputL10" style="left:50px; top:300px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL05" ref="/root/fstYardAddr/outputL05" style="left:50px; top:430px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL01" ref="/root/fstYardAddr/outputL01" style="left:50px; top:534px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL04" ref="/root/fstYardAddr/outputL04" style="left:50px; top:456px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL03" ref="/root/fstYardAddr/outputL03" style="left:50px; top:482px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL02" ref="/root/fstYardAddr/outputL02" style="left:50px; top:508px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL08" ref="/root/fstYardAddr/outputL08" style="left:50px; top:352px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL07" ref="/root/fstYardAddr/outputL07" style="left:50px; top:378px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputL06" ref="/root/fstYardAddr/outputL06" style="left:50px; top:404px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR13" ref="/root/scdYardAddr/outputR13" style="left:265px; top:222px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR09" ref="/root/scdYardAddr/outputR09" style="left:265px; top:326px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR01" ref="/root/scdYardAddr/outputR01" style="left:265px; top:534px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR12" ref="/root/scdYardAddr/outputR12" style="left:265px; top:248px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR04" ref="/root/scdYardAddr/outputR04" style="left:265px; top:456px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR11" ref="/root/scdYardAddr/outputR11" style="left:265px; top:274px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR03" ref="/root/scdYardAddr/outputR03" style="left:265px; top:482px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR10" ref="/root/scdYardAddr/outputR10" style="left:265px; top:300px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR02" ref="/root/scdYardAddr/outputR02" style="left:265px; top:508px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR05" ref="/root/scdYardAddr/outputR05" style="left:265px; top:430px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR08" ref="/root/scdYardAddr/outputR08" style="left:265px; top:352px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR07" ref="/root/scdYardAddr/outputR07" style="left:265px; top:378px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR06" ref="/root/scdYardAddr/outputR06" style="left:265px; top:404px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR16" ref="/root/scdYardAddr/outputR16" style="left:265px; top:144px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR15" ref="/root/scdYardAddr/outputR15" style="left:265px; top:170px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputR14" ref="/root/scdYardAddr/outputR14" style="left:265px; top:196px; width:150px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <shape id="rectangle1" appearance="rectangle" style="left:510px; top:600px; width:460px; height:10px; background-color:#333333; "/>
- <output id="outputCL4" ref="/root/thdYardAddr/outputCL4" style="left:530px; top:496px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL3" ref="/root/thdYardAddr/outputCL3" style="left:530px; top:522px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL2" ref="/root/thdYardAddr/outputCL2" style="left:530px; top:548px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL5" ref="/root/thdYardAddr/outputCL5" style="left:530px; top:470px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL1" ref="/root/thdYardAddr/outputCL1" style="left:530px; top:574px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR4" ref="/root/thdYardAddr/outputCR4" style="left:775px; top:496px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR3" ref="/root/thdYardAddr/outputCR3" style="left:775px; top:522px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR2" ref="/root/thdYardAddr/outputCR2" style="left:775px; top:548px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR5" ref="/root/thdYardAddr/outputCR5" style="left:775px; top:470px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR1" ref="/root/thdYardAddr/outputCR1" style="left:775px; top:574px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <shape id="rectangle2" appearance="rectangle" style="left:18px; top:560px; width:215px; height:10px; background-color:#333333; "/>
- <shape id="rectangle3" appearance="rectangle" style="left:235px; top:560px; width:215px; height:10px; background-color:#333333; "/>
- <input id="input1" ref="/root/formData/FST_YARD_ADDR" style="left:65px; top:585px; width:120px; height:25px; text-align:center; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- call_left_UIG040044();
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/formData/SCD_YARD_ADDR" style="left:280px; top:585px; width:120px; height:25px; text-align:center; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- call_righ_UIG040044();
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/formData/TRANS_CAR" style="left:705px; top:570px; width:65px; height:25px; text-align:center; "/>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; ">自动命令制定</caption>
- <input id="input4" ref="/root/crainOrder/fromAddr" disabled="true" style="left:0px; top:61px; width:50px; height:20px; text-align:center; background-color:#ffffff; "/>
- <line id="line3" style="x1:0px; y1:0px; x2:979px; y2:0px; "/>
- <input id="input5" ref="/root/crainOrder/toAddr" style="left:50px; top:61px; width:53px; height:20px; text-align:center; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- call_addr_UIG040044();
- ]]>
- </script>
- </input>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var nodeName = document.all(event.target);
- var nodeName2 = event.target.toString();
-
- if((nodeName2.substr(0,7) == "outputL" || nodeName2.substr(0,7) == "outputR") && nodeName != SELECTED_SLAB){
- SELECTED_SLAB_TAG = null;
-
-
- if(nodeName.value == "")
- return;
-
-
- nodeName.attribute("background-color") = "#ffffff";
- if(SELECTED_SLAB != null) SELECTED_SLAB.attribute("background-color") = "#ff6600";
- SELECTED_SLAB = nodeName;
- }
-
-
- else if(nodeName2.substr(0,7) == "outputC" && nodeName != SELECTED_SLAB_TAG ){
- if(document.all(nodeName2).value == ""){
- if(SELECTED_SLAB_TAG == null && SELECTED_SLAB != null){
-
- var tg = parseInt(nodeName2.substr(8,1)) - 1;
- if( tg != 0){
- if(document.all(nodeName2.substr(0,8) + tg).value == "" ){
- alert(" 错误,下层没有板坯!");
- return;
- }
- }
-
- var slabvalue = (SELECTED_SLAB.value).toString();
-
- model.makeValue("/root/thdYardAddr/outputC" + nodeName2.substr(7,3),slabvalue);
- nodeName.attribute("background-color") = "#ffffff";
- SELECTED_SLAB_TAG = nodeName;
-
- SELECTED_SLAB.value = "";
- SELECTED_SLAB.attribute("background-color") = "#ff6600";
-
- SELECTED_SLAB = null;
- }
- }else{
- if(MOVE_SLAB_TAG != null){
-
- //MOVE_SLAB_TAG.value = MOVE_SLAB;
- model.setValue("/root/thdYardAddr/" + MOVE_SLAB_TAG,MOVE_SLAB,true);
- }
- MOVE_SLAB_TAG = nodeName2;
- MOVE_SLAB = nodeName.value;
-
- model.setValue("/root/thdYardAddr/" + MOVE_SLAB_TAG,"",true);
- input7.value = MOVE_SLAB;
- model.setValue("/root/formData/SLAB_NO",MOVE_SLAB);
- commSendReq("/root/formData");
- commSubmit("UIG040045-service","slabInfo","glueAction.do");
- model.setValue("/root/formData/SLAB_SIZE",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/SLAB_SIZE"));
- model.setValue("/root/formData/SLAB_WGT",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/SLAB_WGT"));
- model.setValue("/root/formData/STL_GRD",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/STL_GRD"));
- model.setValue("/root/formData/QLFD_YN",model.getValue("root/resData/SLAB_INFO_RES_VO/SLAB_INFO_RES_Row/QLFD_YN"));
- input6.refresh();input7.refresh();input8.refresh();input9.refresh();input10.refresh();
- if(input10.value == "QQ")
- {
- //input7.currentStyle("background-color" , i ,datagrid1.colRef("SLAB_NO")) = "#ff0000";
- input7.attribute("background-color") = "#ff0000";
- //成份不合格的情况在图型栏中给出红色提示
- }else{
- input7.attribute("background-color") = "#ffffff";
- }
- }
- }
- ]]>
- </script>
- <datagrid id="datagrid1" nodeset="/root/grid/SearchCrOrderResult_VO/SearchCrOrderResult_Row" caption="原位置^目的位置^行车命令^板坯号1" colwidth="50, 100, 56, 100" defaultrows="5" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:525px; top:5px; width:445px; height:150px; ">
- <col ref="FROM_ADDR"/>
- <col ref="TO_ADDR"/>
- <col ref="CR_NO"/>
- <col ref="ORD_SLAB_NO1"/>
- </datagrid>
- <input id="input7" ref="/root/crainOrder/fstSlab" style="left:160px; top:61px; width:98px; height:20px; text-align:center; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
-
- /*
- var nodeName = document.all(event.target);
- if(event.focus.substr(0,7) == "outputC" && event.target.substr(0,7) == "outputC" && nodeName.value != ""){
-
- MENU_VALUE = nodeName;
- window.setPopupMenu(true, "/root/menu/item", "label", "func", false);
- }*/
- ]]>
- </script>
- <select1 id="combo1" ref="/root/crainOrder/crainNo" appearance="minimal" style="left:104px; top:61px; width:55px; height:20px; ">
- <choices>
- <item>
- <label>1-1</label>
- <value>1-1</value>
- </item>
- <item>
- <label>1-2</label>
- <value>1-2</value>
- </item>
- </choices>
- </select1>
- <button id="button4" class="butt_3" style="left:105px; top:5px; width:52px; height:19px; background-color:#9999ff; ">
- <caption>强制移位</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- move();
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- find();
- }
- ]]>
- </script>
- <input id="input6" ref="/root/formData/SLAB_SIZE" style="left:334px; top:61px; width:98px; height:20px; text-align:center; "/>
- <input id="input8" ref="/root/formData/STL_GRD" style="left:259px; top:61px; width:73px; height:20px; text-align:center; "/>
- <input id="input9" ref="/root/formData/SLAB_WGT" style="left:433px; top:61px; width:78px; height:20px; text-align:center; "/>
- <output id="outputCL9" ref="/root/thdYardAddr/outputCL9" style="left:530px; top:366px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL10" ref="/root/thdYardAddr/outputCL10" style="left:530px; top:340px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL6" ref="/root/thdYardAddr/outputCL6" style="left:530px; top:444px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL7" ref="/root/thdYardAddr/outputCL7" style="left:530px; top:418px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL8" ref="/root/thdYardAddr/outputCL8" style="left:530px; top:392px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL12" ref="/root/thdYardAddr/outputCL12" style="left:530px; top:288px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL13" ref="/root/thdYardAddr/outputCL13" style="left:530px; top:262px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL14" ref="/root/thdYardAddr/outputCL14" style="left:530px; top:236px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL15" ref="/root/thdYardAddr/outputCL15" style="left:530px; top:210px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL11" ref="/root/thdYardAddr/outputCL11" style="left:530px; top:314px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCL16" ref="/root/thdYardAddr/outputCL16" style="left:530px; top:184px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR7" ref="/root/thdYardAddr/outputCR7" style="left:775px; top:418px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR8" ref="/root/thdYardAddr/outputCR8" style="left:775px; top:392px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR11" ref="/root/thdYardAddr/outputCR11" style="left:775px; top:314px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR12" ref="/root/thdYardAddr/outputCR12" style="left:775px; top:288px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR16" ref="/root/thdYardAddr/outputCR16" style="left:775px; top:184px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR13" ref="/root/thdYardAddr/outputCR13" style="left:775px; top:262px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR14" ref="/root/thdYardAddr/outputCR14" style="left:775px; top:236px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR15" ref="/root/thdYardAddr/outputCR15" style="left:775px; top:210px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR9" ref="/root/thdYardAddr/outputCR9" style="left:775px; top:366px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR10" ref="/root/thdYardAddr/outputCR10" style="left:775px; top:340px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <output id="outputCR6" ref="/root/thdYardAddr/outputCR6" style="left:775px; top:444px; width:170px; height:25px; text-align:center; background-color:#ff6600; border-color:#000000; border-style:solid; "/>
- <caption id="caption2" class="cell" style="left:0px; top:40px; width:50px; height:20px; ">原位置</caption>
- <caption id="caption3" class="cell" style="left:50px; top:40px; width:53px; height:20px; ">到位置</caption>
- <caption id="caption4" class="cell" style="left:104px; top:40px; width:55px; height:20px; ">到位置</caption>
- <caption id="caption5" class="cell" style="left:160px; top:40px; width:98px; height:20px; ">板坯号</caption>
- <caption id="caption6" class="cell" style="left:259px; top:40px; width:73px; height:20px; ">钢种</caption>
- <caption id="caption7" class="cell" style="left:334px; top:40px; width:98px; height:20px; ">板坯尺寸</caption>
- <caption id="caption8" class="cell" style="left:433px; top:40px; width:78px; height:20px; ">板坯重量</caption>
- <input id="input10" ref="/root/formData/QLFD_YN" style="left:430px; top:106px; width:78px; height:20px; text-align:center; "/>
- <caption id="caption9" class="cell" style="left:430px; top:85px; width:78px; height:20px; ">成分检查</caption>
- </xhtml:body>
- </xhtml:html>
|