| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <?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[热轧作业>>钢卷库管理>>钢卷信息录入(UIH051500)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <searchData>
- <coil_y/>
- <coil_n/>
- <coil_h/>
- <coil_no/>
- </searchData>
- <datagrid1>
- </datagrid1>
- <COIL_IN/>
- <COIL_OUT/>
- <CUR_LOAD_LOC/>
- <COIL_SALE/>
- <COIL_END/>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript">
- <![CDATA[
- //页面初始化的时候需要获取登录的相关用户信息
- function Init(node) {
- 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));
- }
-
- function find(){
- //查询出当前卷在系统中的位置
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- input3.disabled = true;
- input2.disabled = true;
- input1.disabled = true;
-
- var coil_y = model.getValue("/root/searchData/coil_y");
- var coil_n = model.getValue("/root/searchData/coil_n");
- var coil_h = model.getValue("/root/searchData/coil_h");
-
- var coil_no = "R"+coil_y+coil_n+"A"+coil_h;
-
- model.setValue("/root/searchData/coil_no",coil_no);
-
- model.duplicate("/root/reqData","/root/searchData/coil_no");
-
- commSubmit("UIH051600-service", "find", "glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_IO_VO","/root/resData/COIL_IO_VO");
-
- model.refresh();
- }
-
- function save(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- if(model.getValue("/root/searchData/coil_no") == ""){
- alert(" 钢卷详细信息不能为空,请先回车查询出钢卷信息在进行盘入盘出操作!! ");
- return;
- }
-
- //判断是盘入操作还是盘出操作,并做出相应的处理
- var coil_in = model.getValue("/root/COIL_IN");
- var coil_out = model.getValue("/root/COIL_OUT");
-
- //这里还需要给出相应的提示
-
- model.duplicate("/root/reqData","/root/COIL_IN");
- model.duplicate("/root/reqData","/root/COIL_OUT");
- model.duplicate("/root/reqData","/root/COIL_SALE");
- model.duplicate("/root/reqData","/root/COIL_END");
- model.duplicate("/root/reqData","/root/searchData/coil_no");
- model.duplicate("/root/reqData","/root/CUR_LOAD_LOC");
-
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
-
- commSubmit("UIH051600-service", "save", "glueAction.do");
-
- model.refresh();
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "ERR0R"){
- alert(" 钢卷数据输入异常,请仔细核对!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "CUR_LOAD_LOC"){
- alert(" 输入的垛位上面存在钢卷,请核对后再进行操作!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "CUR_PROG_CD"){
- alert(" 此钢卷已做下车计划,请核对后再进行操作!! ");
- return;
- }
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "CUR_PROG_CD1"){
- alert(" 此钢卷尚未判废,请核对后再进行操作! ");
- return;
- }
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "CUR_LOAD_LOC_NO"){
- alert(" 需要盘入的卷没有输入垛位数据,请核对后再进行操作!! ");
- return;
- }
-
- if(model.getValue("/root/resData/rs_VO/rs_Row") == "FAHUO"){
- alert(" 该卷已经正常出库,如需要盘入请联系管理员!! ");
- return;
- }
-
- find();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:80px; height:20px; ">钢卷号</caption>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/COIL_IO_VO/COIL_IO_Row" visibility="visible" caption="牌号^成品规格^订单规格^合同号^订单号^当前进程状态^综合判定等级^caption1^长度^重量(磅重)^理论重量^是否余材^钢卷状态^盘出人^盘出时间^盘入人^盘入时间|牌号^成品规格^订单规格^合同号^订单号^当前进程状态^综合判定等级^caption1^长度^重量(磅重)^理论重量^是否余材^钢卷状态^盘出人^盘出时间^盘入人^盘入时间" colsep="^" colwidth="70, 80, 80, 90, 50, 71, 53, 100, 55, 51, 49, 39, 53, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:35px; width:980px; height:565px; ">
- <col ref="SPEC_STL_GRD"/>
- <col ref="T_W"/>
- <col ref="IT_IW"/>
- <col ref="ORD_NO"/>
- <col ref="ORD_SEQ"/>
- <col ref="CUR_PROG_CD"/>
- <col ref="TOT_DEC_GRD"/>
- <col ref="EXTSHAPE_DEC_GRD"/>
- <col ref="COIL_LEN"/>
- <col ref="ACT_WGT" format="#,###"/>
- <col ref="CAL_WGT" format="#,###"/>
- <col ref="ORD_FL"/>
- <col ref="COIL_STAT"/>
- <col ref="COIL_OUT_REG"/>
- <col ref="COIL_OUT_DTIME"/>
- <col ref="COIL_IN_REG"/>
- <col ref="COIL_IN_DTIME"/>
- </datagrid>
- <caption id="caption2" class="cell" style="left:85px; top:5px; width:20px; height:20px; ">R</caption>
- <input id="input1" ref="/root/searchData/coil_y" maxlength="2" style="left:105px; top:5px; width:35px; height:20px; background-color:#ffff99; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //向右
- if(event.keyCode==39){
- model.setFocus("input2" , true);//设置焦点
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- input1.disabled = false;
- ]]>
- </script>
- </input>
- <caption id="caption3" class="cell" visibility="hidden" style="left:535px; top:5px; width:20px; height:20px; ">-</caption>
- <input id="input2" ref="/root/searchData/coil_n" maxlength="6" style="left:145px; top:5px; width:55px; height:20px; background-color:#ffff99; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //向右
- if(event.keyCode==39){
- model.setFocus("input3" , true);//设置焦点
- }
- //向左
- if(event.keyCode==37){
- model.setFocus("input1" , true);//设置焦点
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- input2.disabled = false;
- ]]>
- </script>
- </input>
- <caption id="caption6" class="cell" style="left:200px; top:5px; width:20px; height:20px; ">A</caption>
- <input id="input3" ref="/root/searchData/coil_h" style="left:220px; top:5px; width:30px; height:20px; background-color:#ffff99; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //这里需要使用键盘事件在处理
- if(event.keyCode==13){
- //查询出当前卷在系统中的位置
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- input3.disabled = true;
- input2.disabled = true;
- input1.disabled = true;
-
- var coil_y = model.getValue("/root/searchData/coil_y");
- var coil_n = model.getValue("/root/searchData/coil_n");
- var coil_h = model.getValue("/root/searchData/coil_h");
-
- //var coil_no = "R"+coil_y+"-"+coil_n+"A"+coil_h;
- var coil_no = "R"+coil_y+coil_n+"A"+coil_h;
-
- model.setValue("/root/searchData/coil_no",coil_no);
-
- model.duplicate("/root/reqData","/root/searchData/coil_no");
-
- commSubmit("UIH051600-service", "find", "glueAction.do");
-
- commAppendData("/root/datagrid1/COIL_IO_VO","/root/resData/COIL_IO_VO");
-
- model.refresh();
- }
-
- if(event.keyCode==37){
- //如果按左键,移动焦点到input2
- model.setFocus("input2" , true);//设置焦点
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- input3.disabled = false;
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/COIL_IN" visibility="hidden" overflow="visible" appearance="full" style="left:575px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>盘入操作</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var coil_in = model.getValue("/root/COIL_IN");
-
- if(coil_in == "1"){
- model.setValue("/root/COIL_OUT","");
- model.setValue("/root/COIL_SALE","");
- model.setValue("/root/COIL_END","");
- model.refresh();
- }
- ]]>
- </script>
- <hint>
- <![CDATA[盘入操作需要输入垛位信息,请在后面的输入框输入]]>
- </hint>
- </select>
- <select id="checkbox2" ref="/root/COIL_OUT" visibility="hidden" overflow="visible" appearance="full" style="left:790px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>盘出操作</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var coil_out = model.getValue("/root/COIL_OUT");
- if(coil_out == "2"){
- model.setValue("/root/COIL_IN","");
- model.setValue("/root/COIL_SALE","");
- model.setValue("/root/COIL_END","");
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <input id="input4" ref="/root/CUR_LOAD_LOC" visibility="hidden" maxlength="9" style="left:650px; top:5px; width:90px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[盘入操作需要垛位信息,请输入相应的垛位信息]]>
- </hint>
- </input>
- <select id="checkbox3" ref="/root/COIL_SALE" visibility="hidden" overflow="visible" appearance="full" style="left:900px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>外卖盘出</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var coil_sale = model.getValue("/root/COIL_SALE");
- if(coil_sale == "3"){
- model.setValue("/root/COIL_IN","");
- model.setValue("/root/COIL_OUT","");
- model.setValue("/root/COIL_END","");
- model.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="checkbox4" ref="/root/COIL_END" overflow="visible" appearance="full" style="left:285px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>废钢盘出</label>
- <value>4</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var coil_end = model.getValue("/root/COIL_END");
- if(coil_end == "4"){
- model.setValue("/root/COIL_IN","");
- model.setValue("/root/COIL_OUT","");
- model.setValue("/root/COIL_SALE","");
- model.refresh();
- }
- ]]>
- </script>
- </select>
- </xhtml:body>
- </xhtml:html>
|