| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446 |
- <?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[生产管制 >> 热轧管理 >> CCR料轧辊编制结果查询与指示确定]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <detailData>
- <dgrid1>
- <ROLL_SLAB_SEQ/>
- <CUR_LOAD_LOC/>
- <ORD_WTH/>
- <SLAB_LEN/>
- <ORD_THK/>
- <ORD_WTH/>
- <ORD_WGT/>
- <HOT_THK_AIM/>
- <HOT_THK_MIN/>
- <HOT_THK_MAX/>
- <WTH_AIM/>
- <WTH_MIN/>
- <WTH_MAX/>
- <MILL_LEN/>
- <MILL_WGT/>
- <SPEC_ABBSYM/>
- <ORD_NO/>
- <ORD_SEQ/>
- <CUST_CD/>
- <STL_GRD/>
- <ROUTE/>
- </dgrid1>
- </detailData>
- <tempreqData>
- <ROLL_SLAB_SEQ/>
- <Position/>
- </tempreqData>
- <formData>
- <OPERATE/>
- <FIRSTPOSITION/>
- <AIMPOSITION/>
- <POSITION/>
- <LASTPOSITION/>
- </formData>
- <tempData/>
- <g1Data/>
- <initResult/>
- <resData/>
- <optData>
- <ROLL_SLAB_CNT/>
- <ROLL_SLAB_WGT/>
- <MILL_LEN/>
- </optData>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (window.parent == null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- var V_ERR_FL = false;
- var cur_slab = 0;
- var slab_row_path = "/root/resData/rs_VO/rs_Row";
- var tempData_path = "/root/tempData/rs_VO/rs_Row";
- // var slabWth_row_path = "/root/initResult/resData/resultkey1_VO/resultkey1_Row";
- // var coilThk_row_path = "/root/initResult/resData/resultkey2_VO/resultkey2_Row";
-
- var slabCnt = 0;
-
- var coordinateY = 40;
- var coordinateX = 228;
- var groupTop1 = 136;
-
- var wthHighRate = 1/18;
- var thkHighRate = 5;
- var lineBorder = 1;
-
- var slabUnitHigh = 100;
- var slabUnitWidth = 8;//控制板坯的显示宽度比率
- var RollUnitHigh = 20;//控制板坯的显示高度的比率
- var rollUnitTop = 300;//控制板坯的显示TOP的位置
- var rollUnitLeftInit = 20;//控制板坯的LEFT开始位置
-
- var ORD_WTH_List = new Array(slabCnt);
- var coil_thk_List = new Array(slabCnt);
- var slab_no_list= new Array(slabCnt);
- var rectangle_left = rollUnitLeftInit;
- var input_hight = 5;
-
- var y1str = lineY.attribute("y2");
- var y1 = parseInt(y1str.substr(0,y1str.length-2));
- var y2str = lineY.attribute("y1");
- var y2 = parseInt(y2str.substr(0,y2str.length-2))
- var y = (y1 + y2)/2;
- function save()
- {
- removeChild();
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSendReq("/root/formData");
- commSubmit("UIF023020-service","save","glueAction.do");
- alertError();
- if(!V_ERR_FL) return;
- model.removenode("/root/tempData/rs_VO");
- model.removenode("/root/tempData/rs2_VO");
- commAppendData("/root/tempData/rs_VO","/root/resData/rs_VO");
- commAppendData("/root/tempData/rs2_VO","/root/resData/rs2_VO");
- }
- function setTitle()
- {
- return "热轧管制 >> 热轧管制指示 >> CCR料轧辊编制结果查询与指示确定"; // 如:return "进程管理 >> 订单进程现况查询";
- }
-
- //2. 页面初始化函数(必须)
- function Init(node)
- {
- // commSubmit("UIF023020-service","success","glueAction.do");//提交服务
- // model.duplicate("/root/initResult","/root/resData");//复制结点
- // model.refresh();
- InitParams(node);
- }
- function InitParams(node) {
- if (typeof node == "undefined" && typeof node != "object") return;
- model.removenode("/root/initData/rcvInfo");
- model.makeNode("/root/initData/rcvInfo");
- var nodeList = node.childNodes;
- node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
- for (var i = 0; i < nodeList.length; i++) {
- node.appendChild(nodeList.item(i));
- }
- model.makeValue("/root/formData/searchForm/USER_NAME",model.getValue("/root/initData/rcvInfo/REG_ID"));
- }
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSubmit("UIF023020-service","findSchMill","glueAction.do");
- display();
- commAppendData("/root/tempData/rs_VO","/root/resData/rs_VO");
- commAppendData("/root/tempData/rs2_VO","/root/resData/rs2_VO");
- model.refresh();
- }
- function initRsList() {
- var slab_nodeList = root.selectNodes(slab_row_path);
- // var ORD_WTHList = root.selectNodes(slabWth_row_path);
- // var coil_thkList = root.selectNodes(coilThk_row_path);
- slabCnt = slab_nodeList.length;
- for(var i=1;i<=slabCnt;i++ )
- {
- ORD_WTH_List[i] = model.getValue(slab_row_path+"["+i+"]/WTH_AIM");
- coil_thk_List[i] = model.getValue(slab_row_path+"["+i+"]/HOT_THK_AIM");
- slab_no_list[i] = model.getValue(slab_row_path+"["+i+"]/SLAB_EDT_SEQ");
- }
- }
- function display()
- {
- initRsList();
- displayLine();
- coilDisplay();
- coilMeasurement();
- }
- function removeChild()
- {
- coilRemove();
- lineRemove();
- }
-
- function coilRemove()
- {
- for(var i = slabCnt;i>0;i--)
- {
- group1.removeChild("optwth"+i)
- group1.removeChild("optthk"+i);
- }
- }
-
- function lineRemove()
- {
- group1.removeChild("line1");
- }
- function coilDisplay()
- {
- for(var i = 1;i<=slabCnt;i++)
- {
- if(i == 1) {
- rectangle_left = coordinateY + lineBorder;
- }else {
- rectangle_left += slabUnitWidth;
- }
- group1.createChild("xforms:output","id:optwth"+ i + ";left:"+ (rectangle_left) + "px;top:" + (y-ORD_WTH_List[i] * wthHighRate)+ "px;width:" +slabUnitWidth+ "px; height:" + ORD_WTH_List[i] * wthHighRate+ "px; background-color:#c0c0c0;border-color:#000000;border-style:solid;ref :" +tempData_path+"["+ i +"]/ROLL_SLAB_SEQ");
- group1.createChild("xforms:output","id:optthk"+ i + ";left:"+ (rectangle_left) + "px;top:" + (y + lineBorder)+ "px;width: "+slabUnitWidth+ "px; height:" + coil_thk_List[i] * thkHighRate + "px;background-color:#c0c0c0;border-color:#000000;border-style:solid;ref :" +tempData_path+"["+ i +"]/ROLL_SLAB_SEQ");
- }
- }
- function displayLine() {
- group1.createChild("xforms:line","id:line1;x1:"+(coordinateY+lineBorder)+"px; y1:"+ (y) +"px; x2:"+(slabCnt*slabUnitWidth + 100)+"px; y2:"+ (y) +"px; border-color:#ff00ff; border-width:2px; ");
- }
- function coilMeasurement()
- {
- group1.createChild("xforms:line","id:lineWth+"+(1)+";x1:40px; y1:" + (coordinateX- groupTop1-lineBorder-1000 * wthHighRate)+"px; x2:30px; y2:" + (coordinateX- groupTop1-lineBorder-1000 * wthHighRate)+ "px;");
- group1.createChild("xforms:line","id:lineWth+"+(2)+";x1:40px; y1:" + (coordinateX- groupTop1-lineBorder-1500 * wthHighRate)+"px; x2:30px; y2:" + (coordinateX- groupTop1-lineBorder-1500 * wthHighRate)+ "px;");
- group1.createChild("xforms:caption","id:capintionWth+"+(1)+";left:"+5+"px; top:"+(coordinateX- groupTop1-lineBorder-1000 * wthHighRate-5)+"px; width:35px; height:15px; font-size:2pt;vertical-align:middle;value:"+1000+"");
- group1.createChild("xforms:caption","id:capintionWth+"+(2)+";left:"+5+"px; top:"+(coordinateX- groupTop1-lineBorder-1500 * wthHighRate-5)+"px; width:35px; height:15px; font-size:7pt;vertical-align:middle;value:"+1500+"");
-
- group1.createChild("xforms:line","id:lineThk+"+(1)+";x1:40px; y1:"+(coordinateX- groupTop1+input_hight/2+ 5*thkHighRate)+"px; x2:30px; y2:"+ (coordinateX- groupTop1+input_hight/2+ 5*thkHighRate)+ "px;");
- group1.createChild("xforms:caption","id:capintionThk+"+(1)+";left:5px; top:"+(coordinateX- groupTop1+input_hight/2+ 4*thkHighRate)+"px; width:35px; height:15px; vertical-align:middle;value:"+5+"");
- group1.createChild("xforms:line","id:lineThk+"+(2)+";x1:40px; y1:"+(coordinateX- groupTop1+input_hight/2+ 10*thkHighRate)+"px; x2:30px; y2:"+ (coordinateX- groupTop1+input_hight/2+ 10*thkHighRate)+ "px;");
- group1.createChild("xforms:caption","id:capintionThk+"+(2)+";left:5px; top:"+(coordinateX- groupTop1+input_hight/2+ 9*thkHighRate)+"px; width:35px; height:15px; vertical-align:middle;value:"+10+"");
- group1.createChild("xforms:line","id:lineThk+"+(3)+";x1:40px; y1:"+(coordinateX- groupTop1+input_hight/2+ 16*thkHighRate)+"px; x2:30px; y2:"+ (coordinateX- groupTop1+input_hight/2+ 16*thkHighRate)+ "px;");
- group1.createChild("xforms:caption","id:capintionThk+"+(3)+";left:5px; top:"+(coordinateX- groupTop1+input_hight/2+ 14*thkHighRate)+"px; width:35px; height:15px; vertical-align:middle;value:"+16.0+"");
- }
-
- function setEditableOption (v_radio)
- {
- switch (v_radio)
- {
- case 'M': output3.disabled = false;radio2.disabled = false;break;
- case 'D': output3.disabled = true; radio2.disabled = true;break;
- }
- }
-
- function indicationsave() {
- coilRemove();
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- sendUserinfo();
- commSubmit("UIF023020-service","indicationsave","glueAction.do");//提交服务
- alertError();
- if(!V_ERR_FL) return;
- find();
- }
-
- function locRep() {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- sendUserinfo();
- commSubmit("UIF023020-service","locRep","glueAction.do");//提交服务
- alertError();
- if(!V_ERR_FL) return;
- find();
- }
-
- function alertError() {
- V_ERR_FL = false;
- if (model.getValue("/root/resData/errorData") != "") {
- alert(model.getValue("/root/resData/errorData"));
- V_ERR_FL = false;
- } else {
- V_ERR_FL = true;
- }
- }
- function excelExport() {
- return datagrid1;
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/F.js"/>
- </xhtml:head>
- <xhtml:body overflow="scroll" pagewidth="980" pageheight="620" guideline="2,228;2,36;1,980;" style="background-color:#ffffff; ">
- <group id="group1" overflow="scroll" scroll="horizontal" style="left:0px; top:33px; width:980px; height:201px; ">
- <line id="lineY" style="x1:40px; y1:0px; x2:40px; y2:184px; background-color:#0000ff; border-color:#0000ff; border-width:2px; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var currentTarget = event.target;//当前的点击控件事件
- var oc = document.controls(currentTarget);//获取控件
- if(oc.elementName == "xforms:output") {
- cur_slab = oc.value;
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.setValue("/root/tempreqData/ROLL_SLAB_SEQ",oc.value);
- commSendReq("/root/tempreqData");
- commSubmit("UIF023020-service","onClick","glueAction.do");
- model.refresh();
- }else
- {
- alert("请点击板坯");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- var currentTarget = event.target;//当前的点击控件事件
- var oc = document.controls(currentTarget);//获取控件
- if(oc.elementName == "xforms:output") {
- var valuePath = oc.attribute("ref");
- pathRef = valuePath.replace("/ROLL_SLAB_SEQ", "");
- RollManaNo = model.getValue(pathRef+"/ROLL_MANA_NO");
- WTH_AIM = model.getValue(pathRef+"/WTH_AIM");
- HOT_THK_AIM = model.getValue(pathRef+"/HOT_THK_AIM");
- var slab_no_hint = model.getValue(pathRef+"/SLAB_NO");
- group1.hint = "板坯号:" +slab_no_hint + "\n轧制宽度:" +WTH_AIM + "\n轧制厚度:" + HOT_THK_AIM;
- }else {
- group1.hint = "";
- }
- ]]>
- </script>
- </group>
- <line id="line3" style="x1:1px; y1:238px; x2:980px; y2:238px; border-color:#ff00ff; "/>
- <caption id="caption1" class="cell" style="left:154px; top:5px; width:80px; height:20px; text-align:center; border-style:solid; ">调整对象</caption>
- <datagrid id="datagrid1" nodeset="/root/resData/rs1_VO/rs1_Row" scroll="auto" backcoloralternate="#f7f9f9" caption="顺序^堆置位置^板坯管理号^板坯^板坯^板坯^板坯^订单^订单^轧制^轧制^轧制^轧制^轧制^轧制^轧制^轧制^钢号^标准号^合同号^订单号^客户公司^交货期^紧急材^去向^发货方式^去向|顺序^堆置位置^板坯管理号^厚度^宽度^长度^重量^厚度^宽度^目标厚度^厚度下限^厚度上限^目标宽度^宽度下限^宽度上限^长度^重量^钢号^标准号^合同号^订单号^客户公司^交货期^紧急材^去向^发货方式^去向" colsep="^" colwidth="35, 60, 90, 60, 60, 60, 61, 50, 50, 74, 56, 67, 63, 57, 62, 38, 38, 56, 82, 67, 67, 60, 100, 100, 63, 100" defaultrows="0" extendlastcol="false" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:242px; width:980px; height:343px; ">
- <col editable="false" ref="ROLL_SLAB_SEQ" style="left:80px; top:40px; width:285px; height:20px; text-align:right; background-color:#ffffff; border-color:#ffffff; "/>
- <col ref="CUR_LOAD_LOC" style="text-align:center; "/>
- <col editable="false" ref="SLAB_NO" type="input" style="text-align:center; "/>
- <col ref="SLAB_THK" format="#,##0" style="text-align:right; "/>
- <col ref="SLAB_WTH" format="#,##0" style="text-align:right; "/>
- <col ref="SLAB_LEN" format="#,##0" style="text-align:right; "/>
- <col ref="SLAB_WGT" format="#,##0" style="text-align:right; "/>
- <col ref="ORD_THK" format="#.##0" style="text-align:right; "/>
- <col ref="ORD_WTH" format="#,##0" style="text-align:right; "/>
- <col ref="HOT_THK_AIM" format="#.##0" style="text-align:right; "/>
- <col ref="HOT_THK_MIN" format="#.##0" style="text-align:right; "/>
- <col ref="HOT_THK_MAX" format="#.##0" style="text-align:right; "/>
- <col ref="WTH_AIM" format="#,##0" style="text-align:right; "/>
- <col ref="WTH_MIN" format="#,##0" style="text-align:right; "/>
- <col ref="WTH_MAX" format="#,##0" style="text-align:right; "/>
- <col ref="MILL_LEN" format="#,##0" style="text-align:right; "/>
- <col ref="MILL_WGT" format="#,##0" style="text-align:right; "/>
- <col disabled="true" editmode="search" ref="STL_GRD" style="text-align:left; "/>
- <col ref="SPEC_ABBSYM" style="text-align:left; "/>
- <col ref="ORD_NO" style="text-align:center; "/>
- <col ref="ORD_SEQ" style="text-align:center; "/>
- <col disabled="true" editmode="search" ref="CUST_CD" style="text-align:left; "/>
- <col ref="DEL_TO_DATE" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="EMGMTR_NMG_CLF"/>
- <col disabled="true" editmode="search" ref="ROUTE" style="text-align:center; "/>
- <col ref="DLIV_TP"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- cur_slab = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ROLL_SLAB_SEQ"));
- ]]>
- </script>
- </datagrid>
- <select1 id="radio1" ref="/root/formData/OPERATE" appearance="full" cols="2" overflow="visible" style="left:45px; top:5px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>移动</label>
- <value>M</value>
- </item>
- <item>
- <label>删除</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- output1.value = "";
- output2.value = "";
- output3.value = "";
- radio2.value = "false";
- setEditableOption(radio1.value);
- ]]>
- </script>
- </select1>
- <output id="output1" ref="/root/formData/FIRSTPOSITION" style="left:236px; top:5px; width:100px; height:20px; border-color:#c0c0c0; border-style:solid; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- output1.value = cur_slab;
- ]]>
- </script>
- </output>
- <output id="output2" ref="/root/formData/LASTPOSITION" style="left:360px; top:5px; width:100px; height:20px; border-color:#c0c0c0; border-style:solid; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- output2.value = cur_slab;
- ]]>
- </script>
- </output>
- <caption id="caption2" style="left:340px; top:12px; width:15px; height:9px; text-align:center; vertical-align:middle; ">~</caption>
- <caption id="caption3" class="cell" style="left:461px; top:5px; width:80px; height:20px; text-align:center; border-style:solid; ">移动位置</caption>
- <output id="output3" ref="/root/formData/AIMPOSITION" style="left:543px; top:5px; width:100px; height:20px; border-color:#c0c0c0; border-style:solid; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(radio1.value== "D")
- {
- alert("当进行删除操作时候,无需指定移动位置");
- output3.value = "";
- }else {
- output3.value = cur_slab;
- }
- ]]>
- </script>
- </output>
- <select1 id="radio2" ref="/root/formData/POSITION" appearance="full" cols="2" overflow="visible" style="left:648px; top:5px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>前</label>
- <value>B</value>
- </item>
- <item>
- <label>后</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(radio1.value== "D")
- {
- alert("当进行删除操作时候,无需指定移动位置");
- radio2.value = "";
- }
- ]]>
- </script>
- </select1>
- <button id="button1" style="left:723px; top:5px; width:90px; height:20px; background-image:../../images/save.gif; ">
- <caption>顺序调整</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- find();
- ]]>
- </script>
- </button>
- <button id="button3" style="left:890px; top:5px; width:71px; height:20px; text-align:right; background-image:../../images/save.gif; ">
- <caption>指示确定</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- indicationsave();
-
-
- ]]>
- </script>
- </button>
- <button id="button2" style="left:805px; top:5px; width:74px; height:20px; text-align:right; background-image:../../images/save.gif; ">
- <caption>跺位转换</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- locRep();
- find();
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:15px; top:590px; width:74px; height:20px; background-color:#ccffff; ">编制板坯总数</caption>
- <output id="output4" ref="/root/tempData/rs2_VO/rs2_Row/ROLL_SLAB_CNT" format="#,###" style="left:90px; top:590px; width:110px; height:20px; "/>
- <output id="output5" ref="/root/tempData/rs2_VO/rs2_Row/ROLL_SLAB_WGT" format="#,###" style="left:285px; top:590px; width:110px; height:20px; "/>
- <caption id="caption5" style="left:210px; top:590px; width:74px; height:20px; background-color:#ccffff; ">编制总重量</caption>
- <output id="output6" ref="/root/tempData/rs2_VO/rs2_Row/MILL_LEN" format="#,###" style="left:479px; top:590px; width:110px; height:20px; "/>
- <caption id="caption6" style="left:404px; top:590px; width:74px; height:20px; background-color:#ccffff; ">编制总长度</caption>
- </xhtml:body>
- </xhtml:html>
|