| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- <?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[热轧作业>>钢卷库管理>>钢卷库现况查询(UIH050201)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <FROM_ADDR1/>
- <YARD_AREA_1/>
- </formData>
- <resData/>
- <reqData/>
- <comboxData>
- <YARD_AREA_1/>
- </comboxData>
- <searchData/>
- <tempData/>
- <childPagesYardArr/>
- <childPages50200/>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript">
- <![CDATA[
- //字符串补空格
- function unRightTrim(str,length){
- var strlen = str.length;
-
- if(strlen <= length)
- {
- for(var i = 0;i < length - strlen;i++)
- {
- str += " ";
- }
- }
- else
- {
- str = str.substr(0,length);
- }
-
- return str;
- }
- //查询方法
- function find(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.removenode("/root/resData");
- model.makeNode("/root/resData");
-
- if(model.getValue("/root/formData/FROM_ADDR1") == "" || model.getValue("/root/formData/YARD_AREA_1") == ""){
- alert(" 库区跨不能为空,请选择相应的跨! ");
- return;
- }
-
- model.duplicate("/root/reqData","/root/formData/FROM_ADDR1");
- model.duplicate("/root/reqData","/root/formData/YARD_AREA_1");
-
- commSubmit("UIH050201-service","find","glueAction.do");
- commAppendData("/root/searchData/YardCoilCnt_VO","/root/resData/YardCoilCnt_VO");
-
- var testnode = instance1.selectSingleNode("/root/resData/YardResult_VO");
- if(testnode == null || testnode.childNodes.length == 0)
- {
- return;
- }
-
- if(document.controls("group1") != null)
- {
- body.removeChild("group1");
- }
- var groupObj = body.createChild("xforms:group","id:group1;left:0px; top:57px; width:975px; height:548px; scroll:auto;" );
- //获取钢卷库地址,以及每个地址所存钢卷块数,并跟界面中的datagrid绑定
- var YardAreaNodeset = instance1.selectSingleNode("/root/resData/YardResult_VO").childNodes.length;
- var row,col,layer,columnHead = 0, rowHead = 0;
- var yard = "",coilNo = "",flag = 0,imgSrc = "../../images/yard/coil1.gif";
-
- for(var i = 1;i<=YardAreaNodeset;i++)
- {
- //行
- row = parseInt(model.getValue("/root/resData/YardResult_VO/YardResult_Row[" + i + "]/SROW"),10);
- //列
- col = parseInt(model.getValue("/root/resData/YardResult_VO/YardResult_Row[" + i + "]/SCOL"),10);
- //层
- layer = parseInt(model.getValue("/root/resData/YardResult_VO/YardResult_Row[" + i + "]/SLAYER"),10);
-
- if (row > rowHead)
- {
- rowHead++;
- document.controls("group1").createChild("xforms:output", "id:row"+rowHead+";left:10px;top:"+ ((rowHead * 85) + 30) +"px;width:"+ 20 +"px; height:"+ 20 +"px; text:" + rowHead + ";background-color:#ffffff");
- }
-
- if (col > columnHead)
- {
- columnHead++;
- document.controls("group1").createChild("xforms:output", "id:col"+columnHead+";left:"+((columnHead * 50)+20)+"px;top:20px;width:30px; height:20px; text:" + columnHead + ";background-color:#ffffff");
- //(columnHead * 60 - (columnHead % 2 == 1 ? 0 : 20))
- }
-
- if (layer == 1)
- {
- document.controls("group1").createChild("xforms:img", "id:yard|" + row + "-" + col + ";src:../../images/yard/yard.gif;navindex:-1;left:"+ (col * 50) +"px;top:"+ (row * 85 + 5) +"px;width:"+ 50 +"px; height:"+ 50 +"px;background-stretch:stretch;");
- //(col * 60 - (1-col%2)*20 + 8)
- }
- }
-
- testnode = instance1.selectSingleNode("/root/resData/CoilResult_VO");
- if(testnode == null || testnode.childNodes.length == 0)
- {
- return;
- }
- var coilNodeset = instance1.selectSingleNode("/root/resData/CoilResult_VO").childNodes.length;
-
- for(var i = 1;i<=coilNodeset;i++)
- {
- //行
- row = parseInt(model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/SROW"),10);
- //列
- col = parseInt(model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/SCOL"),10);
- //层
- layer = parseInt(model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/SLAYER"),10);
- // 垛位
- yard = model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/YARD");
- //钢卷号
- coilNo = model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/COIL_NO");
- //钢卷状态标识
- flag = model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/FLAG");
-
- if (coilNo != null && coilNo != "")
- {
- var text = unRightTrim("钢卷详细信息\r\n");
- text += unRightTrim("钢卷号 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/COIL_NO"),30) + "\r\n";
- text += unRightTrim("垛 位 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/YARD"),30) + "\r\n";
- text += unRightTrim("牌 号 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/SPEC_STL_GRD"),30) + "\r\n";
- text += unRightTrim("厚 度 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/COIL_THK"),30) + "\r\n";
- text += unRightTrim("宽 度 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/COIL_WTH"),30) + "\r\n";
- text += unRightTrim("重 量 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/ACT_WGT"),30) + "\r\n";
- text += unRightTrim("合同号 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/ORD_NO"),30) + "\r\n";
- text += unRightTrim("订单号 : " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/ORD_SEQ"),30) + "\r\n";
- text += unRightTrim("入库日期: " + model.getValue("/root/resData/CoilResult_VO/CoilResult_Row[" + i + "]/YARD_ENTRY_DTIME"),30) + "\r\n";
- //alert(text.length);
- if(flag == '1'){
- imgSrc = "../../images/yard/coil1.gif";
- }
- else if(flag == '2'){
- imgSrc = "../../images/yard/coil2.gif";
- }
- else if(flag == '3'){
- imgSrc = "../../images/yard/coil4.gif";
- }
- else if(flag == '4'){
- imgSrc = "../../images/yard/coil3.gif";
- }
-
- ///钢卷悬空时自动下降,如不需要自动下降时屏蔽此代码
- ///begin
- while(layer > 1)
- {
- if(!document.controls(row + "-" + col + "-" + (layer - 1)) && document.controls("yard|"+ row + "-" + col))
- {
- layer -= 1;
- continue;
- }
- else if(!document.controls(row + "-" + (col + 1) + "-" + (layer - 1)))
- {
- layer -= 1;
- col += 1;
- continue;
- }
- else
- {
- break;
- }
- }
-
- var coilObj = document.controls("group1").createChild("xforms:img", "id:" + row + "-"+ col + "-" + layer +";src:"+imgSrc+";left:"+ (col * 50 + (layer - 1) * 25) +"px;top:"+ (row * 85 - (layer - 1) * 20) +"px;width:"+ 50 +"px; height:"+ 50 +"px;background-stretch:stretch;text-align:left;");
- ///end
- //var coilObj = document.controls("group1").createChild("xforms:img", "id:" + coilNo + "-" + layer +";src:"+imgSrc+";left:"+ (col * 50 + (layer - 1) * 25) +"px;top:"+ (row * 85 - (layer - 1) * 20) +"px;width:"+ 50 +"px; height:"+ 50 +"px;background-stretch:stretch;text-align:left;");
-
- //(col * 60 - (1-col%2)*20 - (layer - 1) * 5)
- coilObj.hint = text;
- }
- }
- model.refresh();
-
- }
-
- //清除节点下内容,包括子节点 或 值
- function clearNode(xPath){
- model1.removenode(xPath);
- model1.makeNode(xPath);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <output id="output4" ref="/root/searchData/YardCoilCnt_VO/YardCoilCnt_Row/SPM_YN_T_CNT" style="left:921px; top:5px; width:55px; height:20px; background-color:#dddddd; border-color:#000000; "/>
- <output id="output5" ref="/root/searchData/YardCoilCnt_VO/YardCoilCnt_Row/YARD_CLF_SPM_CNT" style="left:921px; top:30px; width:55px; height:20px; background-color:#dddddd; border-color:#000000; "/>
- <output id="output6" ref="/root/searchData/YardCoilCnt_VO/YardCoilCnt_Row/YARD_CLF_GRD_CNT" style="left:758px; top:30px; width:55px; height:20px; background-color:#dddddd; border-color:#000000; "/>
- <caption id="caption1" class="cell" style="left:494px; top:5px; width:100px; height:20px; border-color:#000000; ">钢卷总个数</caption>
- <select1 id="combo1" ref="/root/formData/FROM_ADDR1" appearance="minimal" style="left:102px; top:5px; width:83px; height:20px; border-color:#000000; ">
- <choices>
- <item>
- <label>C1跨</label>
- <value>C1</value>
- </item>
- <item>
- <label>C2跨</label>
- <value>C2</value>
- </item>
- <item>
- <label>C3跨</label>
- <value>C3</value>
- </item>
- <item>
- <label>临时跨</label>
- <value>C4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert(document.controls("combo2").attribute("id"));
- //具体仓库位置的情况
- clearNode("/root/reqData");
- clearNode("/root/comboxData/YARD_AREA_1");
-
- model.duplicate("/root/reqData","/root/formData/FROM_ADDR1");
-
- commSubmit("UIH050020-service","selectC2","glueAction.do");
-
- commAppendData("/root/comboxData/YARD_AREA_1/FROMADDR2_VO","/root/resData/FROMADDR2_VO");
- //document.controls("combo2").navindex = 1;
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="cell" style="left:0px; top:5px; width:100px; height:20px; font-size:14pt; font-weight:bold; border-color:#000000; ">库区跨</caption>
- <caption id="caption4" class="cell" style="left:494px; top:30px; width:100px; height:20px; border-color:#000000; ">跨内个数</caption>
- <caption id="caption5" class="cell" style="left:655px; top:5px; width:100px; height:20px; border-color:#000000; ">综合判定总个数</caption>
- <caption id="caption6" class="cell" style="left:819px; top:5px; width:100px; height:20px; border-color:#000000; ">平整分卷个数</caption>
- <caption id="caption7" class="cell" style="left:655px; top:31px; width:100px; height:20px; border-color:#000000; ">跨内判定个数</caption>
- <caption id="caption8" class="cell" style="left:819px; top:30px; width:100px; height:20px; border-color:#000000; ">跨内分卷个数</caption>
- <output id="output1" ref="/root/searchData/YardCoilCnt_VO/YardCoilCnt_Row/ALL_T_CNT" style="left:596px; top:5px; width:55px; height:20px; background-color:#dddddd; border-color:#000000; "/>
- <output id="output2" ref="/root/searchData/YardCoilCnt_VO/YardCoilCnt_Row/YARD_CLF_CNT" style="left:596px; top:30px; width:55px; height:20px; background-color:#dddddd; border-color:#000000; "/>
- <output id="output3" ref="/root/searchData/YardCoilCnt_VO/YardCoilCnt_Row/ALL_GRD_T_CNT" style="left:758px; top:5px; width:55px; height:20px; background-color:#dddddd; border-color:#000000; "/>
- <line id="line1" style="x1:0px; y1:55px; x2:980px; y2:55px; "/>
- <select1 id="combo2" ref="/root/formData/YARD_AREA_1" appearance="minimal" style="left:190px; top:5px; width:80px; height:20px; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/comboxData/YARD_AREA_1/FROMADDR2_VO/FROMADDR2_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <group id="group1" scroll="auto" style="left:0px; top:57px; width:975px; height:548px; "/>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //find();
- ]]>
- </script>
- <caption id="caption3" class="cell" style="left:65px; top:30px; width:60px; height:20px; font-size:14pt; font-weight:bold; background-color:#87B787; ">移送板加</caption>
- <caption id="caption9" class="cell" style="left:130px; top:30px; width:60px; height:20px; font-size:14pt; font-weight:bold; background-color:#8797B7; ">移送冷轧</caption>
- <caption id="caption10" class="cell" style="left:195px; top:30px; width:60px; height:20px; font-size:14pt; font-weight:bold; background-color:#B7A787; ">余材</caption>
- <caption id="caption11" class="cell" style="left:0px; top:30px; width:60px; height:20px; font-size:14pt; font-weight:bold; background-color:#A3A4A5; ">热轧销售</caption>
- </xhtml:body>
- </xhtml:html>
|