| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <?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[炼钢作业 >> 板坯库管理 >> 辊道行车命令制定(UIG040060)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <YARD_ADDR/>
- <SLAB_NO/>
- <SLAB_THK/>
- <SLAB_WTH/>
- <SLAB_LEN/>
- <SLAB_WGT/>
- <STL_GRD/>
- <FROM_ADDR/>
- <TO_ADDR/>
- <CR_NO/>
- <ORD_SEQ/>
- <WK_ROLLER_G/>
- <YARD_NAME/>
- </formData>
- <gridData/>
- <tempData/>
- <reqData/>
- <resData/>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function pageInit() {
- model.removenode("/root/reqData");
- model.removenode("/root/resData");
- model.refresh();
- var datagrid = datagrid1;
- datagrid.rebuild();
- for (var i = datagrid.fixedRows; i < datagrid.rows; i++) {
- datagrid.valueMatrix(i, datagrid.colRef("CHK")) = "N";
-
- var MillSch = datagrid.valueMatrix(i, datagrid.colRef("MILL_SCH_STAT"));
-
- if (MillSch != null && MillSch == "A7T") {
- datagrid.cellStyle("background-color",i,3,i,3) = "#ff00ff";
- }
-
- }
-
-
- }
-
- submitID = "UIG040060-service";
- function find(){
-
-
- exec("/root/formData/WK_ROLLER_G", "", "find", "/root/gridData/RollerTable_VO");
-
-
- pageInit();
- }
-
- function cr_comm(cmdKind){
-
- var knd = cmdKind;
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
-
- if (knd == "1" ) {
- commSubmit("UIG040060-service","crcommand","glueAction.do");
- } else if (knd == "2" ) {
- commSubmit("UIG040060-service","crcmddel","glueAction.do");
- } else if (knd == "3" ) {
-
- commSubmit("UIG040060-service","yardmove","glueAction.do");
- }
-
- commAppendData("/root/gridData/RollerTable_VO","/root/resData/RollerTable_VO");
- pageInit();
- }
- function save(){
- var row = datagrid1.row;
- var chk = datagrid1.valueMatrix(row, datagrid1.colRef("CHK"));
-
- if (chk != "Y") {
- alert(" @@@@@ Non Selected 选择 @@@@@ ");
- return;
- }
-
- var crno = datagrid1.valueMatrix(row, datagrid1.colRef("CR_NO"));
-
- if (crno == "") {
- alert(" @@@@@ 行车编号为空 @@@@@ ");
- return;
- }
-
- var millsch = datagrid1.valueMatrix(row, datagrid1.colRef("MILL_SCH_STAT"));
-
-
- if (millsch == "A7T") {
- // alert(" @@@@@ HCR, MILL SCHEDULE @@@@@ ");
- var answer = window.alert("@@@@@ HCR, MILL SCHEDULE @@@@@ " ,"Conform", 1 | 32);
-
- if (answer == "2") {
- return;
- }
-
- }
-
- exec("", datagrid1, "save", "/root/gridData/RollerTable_VO");
-
- alert("@@@@ 录入记录成功 @@@@");
-
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,615;">
- <datagrid id="datagrid1" nodeset="/root/gridData/RollerTable_VO/RollerTable_Row" caption="存放位置^辊道位置^板坯号^厚度^宽度^长度^重量^钢号^命令制定^命令制定^命令制定^选择^SEQ^^|存放位置^辊道位置^板坯号^厚度^宽度^长度^重量^钢号^原放置位置^到放置位置^行车^选择^SEQ^^" colsep="^" colwidth="57, 120, 106, 53, 56, 51, 49, 103, 69, 95, 47, 49, 104, 100, 30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:980px; height:585px; ">
- <col editable="false" ref="YARD_ADDR" type="input"/>
- <col editable="false" ref="YARD_NAME" type="input"/>
- <col editable="false" ref="SLAB_NO" type="input"/>
- <col editable="false" ref="SLAB_THK" type="input"/>
- <col editable="false" ref="SLAB_WTH" type="input"/>
- <col editable="false" ref="SLAB_LEN" type="input"/>
- <col editable="false" ref="SLAB_WGT" type="input"/>
- <col editable="false" ref="STL_GRD" type="input"/>
- <col editable="false" ref="FROM_ADDR" type="input"/>
- <col ref="TO_ADDR" type="inputbutton" style="background-color:#ffff99; "/>
- <col ref="CR_NO" type="input" style="background-color:#ffff99; "/>
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col ref="ORD_SEQ" type="input" visibility="hidden"/>
- <col ref="MILL_SCH_STAT" visibility="hidden"/>
- <col ref="BEF_STORE_LOC" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (datagrid1.col == datagrid1.colRef("TO_ADDR")) {
- var row = datagrid1.row;
- var rollingArea = datagrid1.valueMatrix(row, datagrid1.colRef("YARD_ADDR"));
- var BefStoreLoc = datagrid1.valueMatrix(row, datagrid1.colRef("BEF_STORE_LOC"));
- var yardAddr ;
-
- if (BefStoreLoc == "L" || BefStoreLoc == "Z" ) {
-
- alert(" @@@@@ Can't Command creation this is moving to RHF @@@@@ ");
- return;
- }
-
- if ( rollingArea.substring(0,2) == "A1" || rollingArea.substring(0,2) == "A2" ) {
- yardAddr = "Z1";
- } else if ( rollingArea.substring(0,2) == "A3" || rollingArea.substring(0,2) == "A4" ) {
- yardAddr = "Z2";
- } else if ( rollingArea.substring(0,2) == "A5" || rollingArea.substring(0,2) == "A6" ) {
- yardAddr = "Z3";
- } else if (rollingArea.substring(0,2) == "A0" || rollingArea.substring(0,2) == "C0") {
- yardAddr = "L";
- }
-
- model1.setValue("/root/tempData", yardAddr);
-
- window.load("UIG040026.xrw","modal","", "left:228; top:78; width:980; height:680; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
-
-
- datagrid1.valueMatrix(row, datagrid1.colRef("TO_ADDR")) = model1.getValue("/root/tempData");
-
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
- model1.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="combo1" ref="/root/formData/WK_ROLLER_G" appearance="minimal" style="left:102px; top:5px; width:110px; height:20px; ">
- <choices>
- <item>
- <label>A</label>
- <value>A</value>
- </item>
- <item>
- <label>C</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">存放位置</caption>
- <caption id="caption1" class="cell" visibility="hidden" style="left:650px; top:6px; width:86px; height:20px; background-color:#6699ff; ">
- <![CDATA[自动命令制定]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- cr_comm("1");
- ]]>
- </script>
- </caption>
- <caption id="caption3" class="cell" style="left:775px; top:6px; width:70px; height:20px; background-color:#6699ff; ">
- <![CDATA[命令解除]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- cr_comm("2");
- ]]>
- </script>
- </caption>
- <line id="line2" style="x1:0px; y1:0px; x2:979px y2:0px; "/>
- <line id="line1" style="x1:0px; y1:30px; x2:979px; y2:30px; "/>
- <caption id="caption4" class="cell" style="left:880px; top:6px; width:70px; height:20px; background-color:#6699ff; ">
- <![CDATA[强制移位 ]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var answer = window.alert("@@@ 是否真的执行强制移位,如是HCR有可能变成CCR。 @@@ " ,"Conform", 1 | 32);
-
- if (answer == "2") {
- return;
- }
-
-
- cr_comm("3");
- find();
- ]]>
- </script>
- </caption>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- find();
- }
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|