| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <?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[热轧作业>>轧辊/热轧标准>>轧辊废弃实绩登录与查询(UIH040050)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <ROLL_NO/>
- </formData>
- <resData/>
- <reqData/>
- <datagrid2/>
- <datagrid1/>
- <ROLL_DISUSE_DTIME/>
- <ROLL_DISUSE_CAUSE_CD/>
- <ROLL_DISUSE_EMP_ID/>
- <roll_dcc/>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- //查询
- function find(){
- //清空reqData接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //清空废弃轧辊接点
- model.removenode("/root/datagrid2");
- model.makeNode("/root/datagrid2");
-
- //清空轧辊现况信息
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- //清空废弃原因代码
- model.removenode("/root/ROLL_DISUSE_CAUSE_CD");
- model.makeNode("/root/ROLL_DISUSE_CAUSE_CD");
-
- //把查询结果放入查询条件中
- model.duplicate("/root/reqData","/root/formData/ROLL_NO");
-
- commSubmit("UIH040050-service","find","glueAction.do");
-
- //把取出的特定轧辊号的信息绑定在datagrid1中
- model.duplicate("/root/datagrid1","/root/resData/RollNoResultList_VO");
- model.duplicate("/root/datagrid2","/root/resData/RollNoDisuseList_VO");
- model.duplicate("/root/ROLL_DISUSE_CAUSE_CD","/root/resData/ROLL_DISUSE_CAUSE_CD_VO");
- model.refresh();
- }
- //保存
- function save(){
- //清空reqData接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //获取需要发送的数据
- //把查询结果放入查询条件中
- model.duplicate("/root/reqData","/root/roll_dcc");
- model.duplicate("/root/reqData","/root/ROLL_DISUSE_DTIME");
- model.duplicate("/root/reqData","/root/ROLL_DISUSE_EMP_ID");
- model.duplicate("/root/reqData","/root/formData/ROLL_NO");
-
- //判断相关输入框不能为空
- if(model.getValue("/root/roll_dcc") == ""){
- alert(" 废弃原因代码不能为空,请选择相应的废弃代码! ");
- return;
- }else if(model.getValue("/root/ROLL_DISUSE_DTIME") == ""){
- alert(" 废弃时间信息不能为空,请选择相应的废弃时间! ");
- return;
- }else if(model.getValue("/root/ROLL_DISUSE_EMP_ID") == ""){
- alert(" 废弃处理人信息不能为空,请输入废弃处理人信息! ");
- return;
- }
- commSubmit("UIH040050-service","save","glueAction.do");
-
- model.refresh();
-
- //取出后台返回的轧辊号不存在的情况
- if(model.getValue("root/resData/rs_VO/rs_Row")=="error")
- {
- window.alert("输入的轧辊号不存在,请确定后再保存!");
- return;
- }
-
- //清空datagrid2的代码
- model.removenode("/root/datagrid2");
- model.makeNode("/root/datagrid2");
-
- //清空废弃原因代码
- model.removenode("/root/ROLL_DISUSE_CAUSE_CD");
- model.makeNode("/root/ROLL_DISUSE_CAUSE_CD");
-
- //把相关的结果取出,放在相应的位置上
- model.duplicate("/root/datagrid2","/root/resData/RollNoDisuseList_VO");
- model.duplicate("/root/ROLL_DISUSE_CAUSE_CD","/root/resData/ROLL_DISUSE_CAUSE_CD_VO");
- model.refresh();
-
- }
- ]]>
- </script>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- </xhtml:head>
- <xhtml:body guideline="2,0;">
- <caption id="caption6" class="cell" style="left:0px; top:40px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">轧辊现况</caption>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/RollNoResultList_VO/RollNoResultList_Row" disabled="true" caption="轧辊类别^入库直径^废弃直径^现在直径^轧辊状态^替换时间^磨削时间^磨削次数^入库时间" colsep="^" colwidth="110, 110, 110, 110, 107, 110, 110, 86, 123" defaultrows="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:980px; height:44px; ">
- <col ref="ROLL_TYPE" type="output"/>
- <col ref="ENT_DIA" type="output" style="text-align:right; "/>
- <col ref="DISUSE_DIA" type="output" style="text-align:right; "/>
- <col ref="CUR_DIA" type="output" style="text-align:right; "/>
- <col ref="ROLL_STAT" type="output"/>
- <col ref="CHANG_DTIME" type="output" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="GRIND_DTIME" type="output" style="text-align:right; "/>
- <col ref="GRIND_STEPNO" type="output"/>
- <col ref="ENT_DTIME" type="output" format="yyyy-mm-dd hh:mm:ss"/>
- </datagrid>
- <caption id="caption1" class="cell" style="left:0px; top:115px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃原因代码</caption>
- <select1 id="combo1" visibility="hidden" appearance="minimal" style="left:105px; top:145px; width:185px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/ROLL_DISUSE_CAUSE_CD/ROLL_DISUSE_CAUSE_CD_VO/ROLL_DISUSE_CAUSE_CD_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:567px; top:115px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃时间</caption>
- <input id="input1" ref="/root/ROLL_DISUSE_DTIME" inputtype="date" style="left:659px; top:115px; width:110px; height:20px; background-color:#ffff99; "/>
- <caption id="caption3" class="cell" style="left:774px; top:115px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃处理人</caption>
- <input id="input2" ref="/root/ROLL_DISUSE_EMP_ID" style="left:866px; top:115px; width:110px; height:20px; background-color:#ffff99; "/>
- <caption id="caption4" class="cell" style="left:0px; top:145px; width:90px; height:20px; font-weight:bold; border-color:#000000; ">废弃轧辊</caption>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/RollNoDisuseList_VO/RollNoDisuseList_Row" disabled="true" caption="轧辊号^轧辊类别^入库直径^废弃直径^轧辊单价^轧辊材质^厂家标志^废弃时间^废弃原因代码^废弃处理人" colsep="^" colwidth="100, 112, 112, 112, 112, 112, 100, 112, 111, 95" defaultrows="22" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:165px; width:980px; height:435px; ">
- <col ref="ROLL_NO"/>
- <col ref="ROLL_TYPE"/>
- <col ref="ENT_DIA" style="text-align:right; "/>
- <col ref="DISUSE_DIA" style="text-align:right; "/>
- <col ref="ROLL_UCOST"/>
- <col ref="ROLL_MAT_QLTY"/>
- <col ref="ROLL_MAKER"/>
- <col ref="ROLL_DISUSE_DTIME" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="ROLL_DISUSE_CAUSE_CD"/>
- <col ref="ROLL_DISUSE_EMP_ID"/>
- </datagrid>
- <caption id="caption8" class="cell" style="left:0px; top:5px; width:90px; height:23px; font-weight:bold; ">轧辊号:</caption>
- <caption id="caption5" ref="/root/formData/ROLL_NO" class="cell" style="left:93px; top:5px; width:114px; height:23px; vertical-align:middle; "/>
- <input id="input3" ref="/root/formData/ROLL_NO" style="left:95px; top:8px; width:110px; height:17px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- window.load("./UIH04_SELECT_ROLLNO.xrw", "modal", "modalWin", "left:400; top:100; width:400px; height:400px");
- ]]>
- </script>
- </input>
- <line id="line1" style="x1:0px; y1:35px; x2:980px; y2:35px; "/>
- <line id="line2" style="x1:0px; y1:110px; x2:980px; y2:110px; "/>
- <line id="line3" style="x1:0px; y1:140px; x2:980px; y2:140px; "/>
- <input id="input4" ref="/root/roll_dcc" maxlength="100" style="left:90px; top:115px; width:475px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[废弃原因的输入不能超过50个汉字]]>
- </hint>
- </input>
- <button id="button1" style="left:890px; top:35px; width:85px; height:25px; ">
- <caption>废弃轧辊回退</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //这里把输入的废弃轧辊改为磨削待机,取消废弃原因代码等相关信息
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- model.duplicate("/root/reqData","/root/formData/ROLL_NO");
-
- commSubmit("UIH040050-service","return","glueAction.do");
-
- model.refresh();
-
- //取出后台返回的轧辊号不存在的情况
- if(model.getValue("root/resData/rs_VO/rs_Row")=="return")
- {
- window.alert("输入的轧辊号不存在,请确定后再保存!");
- return;
- }
-
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|