| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?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[热轧作业>>热轧作业实绩>>废钢处理登录与查询(UIH020060)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <resData/>
- <reqData/>
- <searchData>
- <SCRAP_CAUSE_CD/>
- <COIL_NO/>
- <SCRAP_WGT/>
- <SCRAP_TREATE_DTIME/>
- <SCRAP_EMP_NO/>
- <SCRAP_WKSHIFT/>
- <SCRAP_WKGROUP/>
- </searchData>
- <datagrid1>
- </datagrid1>
- <scrapCauseCdList/>
- <sum>
- <SUMCOILNO/>
- <SUMSCRAPWGT/>
- </sum>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //清空发送接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- commSubmit("UIH020060-service","init","glueAction.do");
-
- //废钢原因
- model.duplicate("/root/scrapCauseCdList","/root/resData/scrapCauseCdList_VO");
- //废钢块数
- var SUMCOILNO = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMCOILNO");
- model.setValue("/root/sum/SUMCOILNO",SUMCOILNO);
- //废钢量
- var SUMSCRAPWGT = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMSCRAPWGT");
- model.setValue("/root/sum/SUMSCRAPWGT",SUMSCRAPWGT);
- //废钢查询处理
- model.duplicate("/root/datagrid1","/root/resData/searchDisuseCoilNoList_VO");
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- //查询方法,条件是废钢原因
- function find(){
- //清空发送接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //清空废钢查询处理接点
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- //清空废钢块数和废钢量字段
- model.removenode("/root/sum/SUMCOILNO");
- model.makeNode("/root/sum/SUMCOILNO");
-
- model.removenode("/root/sum/SUMSCRAPWGT");
- model.makeNode("/root/sum/SUMSCRAPWGT");
-
- //修改流程,初始化和查询都是查询全部的信息。因此调用初始化方法,屏蔽原来的带废钢原因的查询方法
- commSubmit("UIH020060-service","init","glueAction.do");
-
- //废钢查询处理
- model.duplicate("/root/datagrid1","/root/resData/searchDisuseCoilNoList_VO");
- //分别取出废钢块数和废钢量
- var SUMCOILNO = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMCOILNO");
- var SUMSCRAPWGT = model.getValue("/root/resData/sumCoil_No_VO/sumCoil_No_Row/SUMSCRAPWGT");
- model.setValue("/root/sum/SUMCOILNO",SUMCOILNO);
- model.setValue("/root/sum/SUMSCRAPWGT",SUMSCRAPWGT);
-
- model.refresh();
- }
-
- //保存方法
- function save(){
- //判断废钢原因是否为空
- var SCRAP_CAUSE_CD = model.getValue("/root/searchData/SCRAP_CAUSE_CD");
- //判断钢卷号不能为空
- var COIL_NO = model.getValue("/root/searchData/COIL_NO");
- //判断废钢处理重量
- var SCRAP_WGT = model.getValue("/root/searchData/SCRAP_WGT");
- //判断废钢处理时间
- var SCRAP_TREATE_DTIME = model.getValue("/root/searchData/SCRAP_TREATE_DTIME");
- //判断班次
- var SCRAP_WKSHIFT = model.getValue("/root/searchData/SCRAP_WKSHIFT");
- //判断组
- var SCRAP_WKGROUP = model.getValue("/root/searchData/SCRAP_WKGROUP");
- //判断废钢登录人
- var SCRAP_EMP_NO = model.getValue("/root/searchData/SCRAP_EMP_NO");
- if(COIL_NO == ""){
- alert(" 钢卷号不能为空,请输入相应的钢卷号 ");
- return;
- }else if(SCRAP_WGT == ""){
- alert(" 钢卷重量信息不能为空,请输入相关的钢卷重量信息! ");
- return;
- }else if(SCRAP_CAUSE_CD == ""){
- alert(" 废钢原因不能为空,请选择相应的废钢原因选项! ");
- return;
- }else if(SCRAP_TREATE_DTIME == ""){
- alert(" 废钢处理时间不能为空,请选择相应的时间! ");
- return;
- }else if(SCRAP_WKSHIFT == ""){
- alert(" 班次信息不能为空,请选择相应的班次信息! ");
- return;
- }else if(SCRAP_WKGROUP == ""){
- alert(" 组信息不能为空,请选择相应的组! ");
- return;
- }else if(SCRAP_EMP_NO == ""){
- alert(" 废钢登录人信息不能为空,请输入相映的废钢登录人信息! ");
- return;
- }
-
- //清空发送接点
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //清空废钢查询处理接点
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- //清空废钢块数和废钢量字段
- model.removenode("/root/sum/SUMCOILNO");
- model.makeNode("/root/sum/SUMCOILNO");
-
- model.removenode("/root/sum/SUMSCRAPWGT");
- model.makeNode("/root/sum/SUMSCRAPWGT");
-
- //传入废钢处理原因
- model.duplicate("/root/reqData","/root/searchData/SCRAP_CAUSE_CD");
- //传入钢卷号
- model.duplicate("/root/reqData","/root/searchData/COIL_NO");
- //传入废钢处理重量
- model.duplicate("/root/reqData","/root/searchData/SCRAP_WGT");
- //传入废钢处理时间
- model.duplicate("/root/reqData","/root/searchData/SCRAP_TREATE_DTIME");
- //传入班次
- model.duplicate("/root/reqData","/root/searchData/SCRAP_WKSHIFT");
- //传入组
- model.duplicate("/root/reqData","/root/searchData/SCRAP_WKGROUP");
- //传入废钢登录人
- model.duplicate("/root/reqData","/root/searchData/SCRAP_EMP_NO");
-
- commSubmit("UIH020060-service","save","glueAction.do");
-
- model.refresh();
-
- //取出后台返回的钢卷号不存在的情况
- if(model.getValue("root/resData/rs_VO/rs_Row")=="error")
- {
- window.alert("输入的钢卷号不存在,请确定后再保存!");
- return;
- }
-
- find();
-
- 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="caption1" class="cell" style="left:207px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢处理重量</caption>
- <input id="input1" ref="/root/searchData/SCRAP_WGT" maxlength="9" format="9999999999999" style="left:299px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
- <caption id="caption3" class="cell" style="left:430px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢原因</caption>
- <select1 id="combo1" ref="/root/searchData/SCRAP_CAUSE_CD" appearance="minimal" editmode="input" style="left:522px; top:5px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <itemset nodeset="/root/scrapCauseCdList/scrapCauseCdList_VO/scrapCauseCdList_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" style="left:410px; top:5px; width:35px; height:20px; ">Kg</caption>
- <caption id="caption5" class="cell" style="left:637px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢处理时间</caption>
- <input id="input2" ref="/root/searchData/SCRAP_TREATE_DTIME" inputtype="date" style="left:729px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
- <select1 id="combo3" ref="/root/searchData/SCRAP_WKSHIFT" appearance="minimal" style="left:92px; top:35px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <item>
- <label>a</label>
- <value>a</value>
- </item>
- <item>
- <label>b</label>
- <value>b</value>
- </item>
- <item>
- <label>c</label>
- <value>c</value>
- </item>
- </choices>
- </select1>
- <caption id="caption6" class="cell" style="left:0px; top:35px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">班次</caption>
- <select1 id="combo4" ref="/root/searchData/SCRAP_WKGROUP" appearance="minimal" style="left:299px; top:35px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="cell" style="left:207px; top:35px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">班组</caption>
- <caption id="caption8" class="cell" style="left:429px; top:35px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢登录人</caption>
- <input id="input3" ref="/root/searchData/SCRAP_EMP_NO" maxlength="10" style="left:521px; top:35px; width:110px; height:20px; background-color:#ffff99; "/>
- <caption id="caption9" class="cell" style="left:0px; top:70px; width:90px; height:20px; font-weight:bold; text-align:left; border-color:#000000; border-style:solid; ">废钢查询处理</caption>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/searchDisuseCoilNoList_VO/searchDisuseCoilNoList_Row" allowuserresize="false" caption="钢卷号^生产流水号^外径^内径^实重量^合同号^废钢原因^废钢处理时间^废钢处理重量" colsep="^" colwidth="100, 110, 110, 110, 110, 110, 110, 110, 107" defaultrows="24" rowsep="|" ergecellsfixedrows="bycolrec" style="left:0px; top:90px; width:980px; height:505px; ">
- <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_NO_L" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_OUTDIA" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="COIL_INDIA" type="input" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="ACT_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- <col editable="false" ref="ORG_ORD_NO1" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SCRAP_CAUSE_CD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="SCRAP_TREATE_DTIME" type="input" format="yyyy-mm-dd hh:mm:ss" style="background-color:#ffffff; "/>
- <col editable="false" ref="SCRAP_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
- </datagrid>
- <caption id="caption10" class="cell" style="left:570px; top:65px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢块数</caption>
- <input id="input4" ref="/root/sum/SUMCOILNO" style="left:662px; top:65px; width:110px; height:20px; background-color:#ffff99; "/>
- <caption id="caption11" class="cell" style="left:777px; top:65px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">废钢量</caption>
- <input id="input5" ref="/root/sum/SUMSCRAPWGT" style="left:869px; top:65px; width:110px; height:20px; background-color:#ffff99; "/>
- <caption id="caption12" class="cell" style="left:0px; top:5px; width:90px; height:20px; font-weight:bold; text-align:center; border-color:#000000; border-style:solid; ">钢卷号</caption>
- <input id="input6" ref="/root/searchData/COIL_NO" maxlength="13" style="left:92px; top:5px; width:110px; height:20px; background-color:#ffff99; "/>
- <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <line id="line2" style="x1:0px; y1:60px; x2:980px; y2:60px; "/>
- </xhtml:body>
- </xhtml:html>
|