| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?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[炼钢作业 >> 炼钢标准 >> 包修理录入与查询(UIG010040)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <resData/>
- <reqData/>
- <searchData>
- <ld_type/>
- <ld_no/>
- </searchData>
- <selectedData>
- </selectedData>
- <formData/>
- <datagrid1>
- <LadelStatResult_VO>
- <LadelStatResult_Row>
- <LD_REP_STA_DTIME/>
- <LD_REP_END_DTIME/>
- <LD_REP_TYPE/>
- <LD_REP_CD/>
- <LD_REP_WORKER/>
- <LD_MID_BEF_CYC_CNT/>
- <LD_MID_AFT_CYC_CNT/>
- <LD_CYCLIC_CNT/>
- <LD_JG_CYCLIC_CNT/>
- <LD_NO/>
- </LadelStatResult_Row>
- </LadelStatResult_VO>
- </datagrid1>
- <datagrid3/>
- <datagrid2>
- <LD_EMP_WGT/>
- <LD_CYC_CNT_LIMIT/>
- <LD_CYCLIC_CNT/>
- <REP_CNT/>
- <LD_GRADE/>
- <LD_STAT/>
- </datagrid2>
- <tempData/>
- <checkData/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function init(node){
- if (window.parent != null) {
- var java = window.parent.javaScript;
- var node = java.getInitDataNode();
- if (node != null) {
- model.copyNode("/root/searchData",node);
- commSendReq("/root/searchData");
- commSubmit("UIG010040-service","find","glueAction.do");
-
- //返回包现况的接点集绑定到datagrid3
- commAppendData("/root/datagrid3/LadelStatResult_VO","/root/resData/LadelStatResult_VO");
- model.refresh();
- }
- }
- }
- function find(){
- commSendReq("/root/searchData");
- commSubmit("UIG010040-service","find","glueAction.do");
-
- //返回包现况的接点集绑定到datagrid3
- var t = model.getValue("/root/searchData/ld_no");
- if(t!=""){
- commAppendData("/root/datagrid1/LadelStatResult_VO","/root/resData/LadelStatResult_VO");
- }
- commAppendData("/root/datagrid3/LadelStatResult_VO","/root/resData/LadelStatResult_VO");
- model.refresh();
- }
-
- //保存,要分修理级别的保存
- function save(){
- //检查包号是否为空
- if(model.getValue("/root/searchData/ld_no") == "" )
- {
- alert(" 包号不能为空! ");
- return;
- }else{
- //非空提示 输入框的,选择的暂不考虑 TL
- //空包重量
- var STA_DTIME = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_STA_DTIME");
- var END_DTIME = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_END_DTIME");
- var REP_TYPE = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_TYPE");
- var REP_CD = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_CD");
- var REP_WORKER = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_WORKER");
- var BEF_CYC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_MID_BEF_CYC_CNT");
- var AFT_CYC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_MID_AFT_CYC_CNT");
- var CYCLIC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_CYCLIC_CNT");
- var JG_CYCLIC_CNT = model.getValue("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_JG_CYCLIC_CNT");
-
- if(STA_DTIME == "" || END_DTIME == "" || REP_TYPE == "" || REP_CD == "" || REP_WORKER == "" || BEF_CYC_CNT == "" || AFT_CYC_CNT == "" || CYCLIC_CNT == "" || JG_CYCLIC_CNT == "")
- {
- alert(" 录入项不能为空 ");
- return;
- }
-
- commSendReq("/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row");
- commSubmit("UIG010040-service","save","glueAction.do");
- alert("操作成功!");
- find();
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,980;2,615;" style="font-family:宋体; font-size:14pt; ">
- <caption id="caption11" class="cell" style="left:0px; top:5px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">包种类</caption>
- <select1 id="combo9" ref="/root/searchData/ld_type" appearance="minimal" style="left:102px; top:5px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <item>
- <label>钢包</label>
- <value>R%</value>
- </item>
- <item>
- <label>铁水包</label>
- <value>S%</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //传入模糊R%条件
- model.removenode("/root/reqData");
- //每次选择条件后重建接点,初始化值
- model.removenode("/root/selectedData");
- model.makeNode("/root/selectedData");
-
- model.removenode("/root/datagrid1/REP1");
- model.makeNode("/root/datagrid1/REP1");
-
- model.removenode("/root/datagrid1/REP2");
- model.makeNode("/root/datagrid1/REP2");
-
- model.removenode("/root/datagrid1/REP3");
- model.makeNode("/root/datagrid1/REP3");
-
- model.removenode("/root/datagrid2/LD_STAT");
- model.makeNode("/root/datagrid2/LD_STAT");
-
- model.removenode("/root/datagrid3");
- model.makeNode("/root/datagrid3");
-
- //每次选择包种类的时候,清空包号
- model.setValue("/root/searchData/ld_no","");
-
- //把发送条件放入reqData
- //commSendReq("/root/searchData");
-
- model.makeNode("/root/reqData");
- model.duplicate("/root/reqData","/root/searchData/ld_type");
- commSubmit("UIG010040-service","selectedss","glueAction.do");
-
- //返回结果放入包号选择栏位
- model1.duplicate("/root/selectedData","/root/resData/LadelNoResult_VO");
-
- //返回结果放入修理内容栏位
- var repNodeLen = instance1.selectSingleNode("/root/resData/REPResult_VO").childNodes.length;
- for( var i = 1;i <= repNodeLen; i++)
- {
- // //把修理内容的label和value一起取value的值
- var value =model.getValue("/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
- if(value == ""){
- //如果value为空的话,会报缺少对象。所以给予提示,让操作员重新操作就可以了
- //目前遇到的都是IOException
- alert(" IOException,请重新选择需要的包种类! ");
- return;
- }
-
- model1.duplicate("/root/datagrid1/REP1","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/LABEL");
- model1.duplicate("/root/datagrid1/REP1","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
- model1.duplicate("/root/datagrid1/REP2","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/LABEL");
- model1.duplicate("/root/datagrid1/REP2","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
- model1.duplicate("/root/datagrid1/REP3","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/LABEL");
- model1.duplicate("/root/datagrid1/REP3","/root/resData/REPResult_VO/REPResult_Row[" + i + "]/VALUE");
- }
-
- //返回结果放入钢包状态栏位
- var statNodeLen = instance1.selectSingleNode("/root/resData/STATResult_VO").childNodes.length;
- for( var i = 1;i <= statNodeLen; i++)
- {
- model1.duplicate("/root/datagrid2/LD_STAT","/root/resData/STATResult_VO/STATResult_Row[" + i + "]/LABEL");
- model1.duplicate("/root/datagrid2/LD_STAT","/root/resData/STATResult_VO/STATResult_Row[" + i + "]/VALUE");
- }
- //把返回结果放入钢包现况查询栏位
- model1.duplicate("/root/datagrid3","/root/resData/LadelStatResult_VO");
- model1.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="cell" style="left:217px; top:5px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">包号</caption>
- <select1 id="combo1" ref="/root/searchData/ld_no" appearance="minimal" editmode="input" style="left:319px; top:5px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/selectedData/LadelNoResult_VO/LadelNoResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="cell" style="left:0px; top:35px; width:110px; height:20px; font-weight:bold; border-color:#000000; ">包修理登录</caption>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row" caption="修理开始时刻^修理结束时刻^修补类别^修补内容(多选)^修补队^中修前炉数^中修后炉数^总使用次数^机构炉数^" colsep="^" colwidth="156, 160, 57, 140, 120, 70, 70, 70, 70, 6" defaultrows="1" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:55px; width:980px; height:49px; border-color:#000000; ">
- <col ref="LD_REP_STA_DTIME" type="inputdate" visibility="visible" format="yyyy-mm-dd hh:nn:ss" showmask="true" navindex="6" style="background-color:#ffff99; "/>
- <col ref="LD_REP_END_DTIME" type="inputdate" showmask="true" navindex="6" style="background-color:#ffff99; "/>
- <col ref="LD_REP_TYPE" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>小修</label>
- <value>1</value>
- </item>
- <item>
- <label>中修</label>
- <value>2</value>
- </item>
- <item>
- <label>大修</label>
- <value>3</value>
- </item>
- <item>
- <label>全修</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="LD_REP_CD" type="inputbutton" style="text-align:left; "/>
- <col ref="LD_REP_WORKER" type="combo">
- <choices>
- <item>
- <label>明业</label>
- <value>A</value>
- </item>
- <item>
- <label>苏嘉</label>
- <value>B</value>
- </item>
- <item>
- <label>武耐</label>
- <value>C</value>
- </item>
- <item>
- <label>濮耐</label>
- <value>D</value>
- </item>
- <item>
- <label>新耐</label>
- <value>E</value>
- </item>
- <item>
- <label>华鑫</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="LD_MID_BEF_CYC_CNT" type="input" style="background-color:#ffff99; "/>
- <col ref="LD_MID_AFT_CYC_CNT" type="input" style="background-color:#ffff99; "/>
- <col ref="LD_CYCLIC_CNT" type="input" style="background-color:#ffff99; "/>
- <col ref="LD_JG_CYCLIC_CNT" type="input" style="background-color:#ffff99; "/>
- <col ref="LD_NO" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(datagrid1.colRef("LD_REP_CD") == datagrid1.col){
- group1.visible = true;
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="cell" style="left:0px; top:115px; width:110px; height:20px; font-weight:bold; border-color:#000000; ">包现况查询</caption>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/LadelStatResult_VO/LadelStatResult_Row" scroll="both" allowuserresize="false" caption="包号^修理开始时刻^修理结束时刻^修补类别^修补内容^修补队^中修前炉数^中修后炉数^总使用次数^机构炉数|包号^修理开始时刻^修理结束时刻^修补类别^修补内容^修补队^中修前炉数^中修后炉数^总使用次数^机构炉数" colsep="^" colwidth="54, 86, 87, 100, 100, 100, 59, 53, 56, 34" defaultrows="20" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:135px; width:980px; height:465px; border-color:#000000; ">
- <col ref="LD_NO" type="output" style="text-decoration:underline; color:#ff00ff; cursor:hand; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // var openWindow = window.opener;
- //
- // openWindow.model.setValue("/root/value", newValue.value);
- model.setValue("/root/tempData",datagrid3.valueMatrix(datagrid3.row,datagrid3.colRef("LD_NO")));
-
- window.load("UIG010042.xrw","modal","", "left:50; top:78; width:950; height:580; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
-
- ]]>
- </script>
- </col>
- <col ref="LD_REP_STA_DTIME" style="cursor:hand; "/>
- <col ref="LD_REP_END_DTIME"/>
- <col ref="LD_REP_TYPE"/>
- <col ref="LD_REP_CD1"/>
- <col ref="LD_REP_WORKER"/>
- <col ref="LD_MID_BEF_CYC_CNT" style="left:800px; top:21px; width:100px; height:21px; "/>
- <col ref="LD_MID_AFT_CYC_CNT"/>
- <col ref="LD_CYCLIC_CNT"/>
- <col ref="LD_JG_CYCLIC_CNT"/>
- </datagrid>
- <line id="line1" style="x1:0px; y1:110px; x2:980px; y2:110px; "/>
- <line id="line2" style="x1:0px; y1:110px; x2:980px; y2:110px; "/>
- <button id="button2" class="butt_3" style="left:928px; top:5px; width:52px; height:19px; ">
- <caption>空包初期</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("UIG010041.xrw","modal","", "left:228; top:78; width:480; height:580; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
-
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/searchData/ld_no" appearance="minimal" editmode="input" style="left:305px; top:-100px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/selectedData/LadelNoResult_VO/LadelNoResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <line id="line3" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line4" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <group id="group1" visibility="hidden" style="left:400px; top:100px; width:145px; height:185px; ">
- <select id="checkbox1" ref="/root/datagrid1/LadelStatResult_VO/LadelStatResult_Row/LD_REP_CD" overflow="visible" appearance="full" style="left:20px; top:5px; width:100px; height:145px; border-style:none; ">
- <choices>
- <item>
- <label>修渣线</label>
- <value>A</value>
- </item>
- <item>
- <label>补包底</label>
- <value>B</value>
- </item>
- <item>
- <label>挖溶池</label>
- <value>C</value>
- </item>
- <item>
- <label>换水口座砖</label>
- <value>D</value>
- </item>
- <item>
- <label>换整体透气砖</label>
- <value>E</value>
- </item>
- <item>
- <label>换水口机构</label>
- <value>F</value>
- </item>
- <item>
- <label>倾翻器</label>
- <value>G</value>
- </item>
- <item>
- <label>自动吹氩装置</label>
- <value>H</value>
- </item>
- </choices>
- </select>
- <button id="button1" style="left:25px; top:155px; width:85px; height:20px; background-image:D:\workspace\xgmes3\WebContents\images\btn_save1.gif; ">
- <caption>确 认</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption3" style="left:340px; top:35px; width:640px; height:20px; background-color:#ff9900; ">A:修渣线 B:补包底 C:挖溶池 D:换水口座砖 E:换整体透气砖 F:换水口机构 G:倾翻器 H:自动吹氩装置</caption>
- </xhtml:body>
- </xhtml:html>
|