| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806 |
- <?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[热轧作业>>钢卷库管理>>钢卷库移垛操作(UIH050700)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <reqData/>
- <resData/>
- <datagrid1>
- </datagrid1>
- <searchData>
- <FROM_ADDR/>
- <TO_ADDR/>
- <TMP_ADDR/>
- </searchData>
- <tempData/>
- <send_flag/>
- <datagrid2/>
- <datagrid3/>
- <COIL_SEARCH>
- <COIL_NO/>
- <COIL_YARD/>
- </COIL_SEARCH>
- <REG_ID/>
- <WK>
- <ENTRY_SHIFT/>
- <ENTRY_GROUP/>
- <ENTRY_REG/>
- <ENTRY_DTIME/>
- </WK>
- </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");
-
- model.removenode("/root/datagrid1");
- model.makeNode("/root/datagrid1");
-
- model.removenode("/root/datagrid2");
- model.makeNode("/root/datagrid2");
-
- model.removenode("/root/datagrid3");
- model.makeNode("/root/datagrid3");
-
- //如果没有输入垛位值的话,给出默认值
- if(model.getValue("/root/searchData/FROM_ADDR") == ""){
- model.setValue("/root/searchData/FROM_ADDR","C1101");
- }
-
- if(model.getValue("/root/searchData/TO_ADDR") == ""){
- model.setValue("/root/searchData/TO_ADDR","C3101");
- }
-
- if(model.getValue("/root/searchData/TMP_ADDR") == ""){
- model.setValue("/root/searchData/TMP_ADDR","C4301");
- }
-
- model.duplicate("/root/reqData","/root/searchData/FROM_ADDR");
- model.duplicate("/root/reqData","/root/searchData/TO_ADDR");
- model.duplicate("/root/reqData","/root/searchData/TMP_ADDR");
-
- commSubmit("UIH050700-service", "find", "glueAction.do");
-
- commAppendData("/root/datagrid1/FromYard_VO","/root/resData/FromYard_VO");
- commAppendData("/root/datagrid3/ToYard_VO","/root/resData/ToYard_VO");
- commAppendData("/root/datagrid2/TmpYard_VO","/root/resData/TmpYard_VO");
-
- model.refresh();
- }
-
- function save(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //给出行状态
- for(var i=0;i<datagrid1.rows;i++){
- datagrid1.rowStatus(i) = 3;
- }
-
- for(var j=0;j<datagrid2.rows;j++){
- datagrid2.rowStatus(j) = 3;
- }
-
- for(var k=0;k<datagrid3.rows;k++){
- datagrid3.rowStatus(k) = 3;
- }
-
- commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
- commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStuts");
- commMultiUpdate(datagrid3,"/root/reqData","A",true,"rowStuts");
-
- //这里加入登录用户名,会不会与已有的initData冲突
- model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));;
-
- commSubmit("UIH050700-service", "save", "glueAction.do");
-
- model.refresh();
-
- }
-
- //获得来源位置垛位
- function call_FROM_UIH05_COIL_YARD(){
- //这里给出正常垛位标志
- model.setValue("/root/send_flag","Y");
- model.refresh();
- window.load("UIH05_SELECT_COIL_YARD.xrw","modal","", "left:400; top:100; width:650px; height:500px; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- model1.setValue("/root/searchData/FROM_ADDR",model1.getValue("/root/tempData"));
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
- input2.refresh();
- find();
- }
-
- //获得去向位置垛位
- function call_TO_UIH05_COIL_YARD(){
- //这里给出正常垛位标志
- model.setValue("/root/send_flag","Y");
- model.refresh();
- window.load("UIH05_SELECT_COIL_YARD.xrw","modal","", "left:400; top:100; width:650px; height:500px; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- model1.setValue("/root/searchData/TO_ADDR",model1.getValue("/root/tempData"));
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
- input1.refresh();
- find();
- }
-
- //获得临时垛位
- function call_TMP_UIH05_COIL_YARD(){
- //这里给出临时垛位标志
- model.setValue("/root/send_flag","N");
- model.refresh();
- window.load("UIH05_SELECT_COIL_YARD.xrw","modal","", "left:400; top:100; width:650px; height:500px; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
- model1.setValue("/root/searchData/TMP_ADDR",model1.getValue("/root/tempData"));
- model1.removenode("/root/tempData");
- model1.makeNode("/root/tempData");
- input3.refresh();
- find();
- }
-
- //来源移动到临时
- function From_Tmp_MoveR(){
- //这里判断来源和去向是否选中
- var nodeSet1 = datagrid1.nodeset;
- var nodeSet2 = datagrid2.nodeset;
-
- //来源变量
- var CHK_FROM = null;
- var FROM_YARD = null;
- var FROM_COIL = null;
- var FROM_ROW = null;
- //临时变量
- var CHK_TMP = null;
- var TMP_YARD = null;
- var TMP_COIL = null;
- var TMP_ROW = null;
-
- //这里取出表格1中的选中行
- for(var i=0;i<datagrid1.selectedRows;i++){
- FROM_ROW = datagrid1.selectedRow(i);
- CHK_FROM = model.getValue(nodeSet1+"["+FROM_ROW+"]/CHK");
-
- if(CHK_FROM == "Y"){
- FROM_YARD = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_YARD");
- FROM_COIL = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO");
- }
- }
-
- //这里取出表格2中的选中行
- for(var j=0;j<datagrid2.selectedRows;j++){
- TMP_ROW = datagrid2.selectedRow(j);
- CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
-
- if(CHK_TMP == "Y"){
- TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
- TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
-
- //这里需要判断去向位置是否存在钢卷,存在的话给于提示
- if(TMP_COIL == ""){
- if(FROM_COIL == ""){
- alert(" 请确认需要移动的原放置位置,再点击移动按钮! ");
- return;
- }else{
- //给去向位置赋值
- model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO",FROM_COIL);
- //清楚来源位置
- model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO","");
- model.refresh();
- }
- }else{
- alert(" 临时垛位存在钢卷,不能进行移动操作! ");
- return;
- }
- }else{
- //这里不选中的行不做处理
- }
- }
- model.refresh();
- }
-
- //这里处理从原堆放位置或者临时堆放位置->到堆放位置
- function FROM_TMP_TO_MOVER(){
- var nodeSet1 = datagrid1.nodeset;
- var nodeSet2 = datagrid2.nodeset;
- var nodeSet3 = datagrid3.nodeset;
-
- //来源变量
- var CHK_FROM = null;
- var FROM_YARD = null;
- var FROM_COIL = null;
- var FROM_ROW = null;
- //临时变量
- var CHK_TMP = null;
- var TMP_YARD = null;
- var TMP_COIL = null;
- var TMP_ROW = null;
- //去向变量
- var CHK_TO = null;
- var TO_YARD = null;
- var TO_COIL = null;
- var TO_ROW = null;
-
- //取出原位置和临时位置的值,这里原位置和临时位置不能同时存在
- for(var i=0;i<datagrid1.selectedRows;i++){
- FROM_ROW = datagrid1.selectedRow(i);
- CHK_FROM = model.getValue(nodeSet1+"["+FROM_ROW+"]/CHK");
- if(CHK_FROM == "Y"){
- FROM_COIL = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO");
- FROM_YARD = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_YARD");
- }
- }
-
- for(var j=0;j<datagrid2.selectedRows;j++){
- TMP_ROW = datagrid2.selectedRow(j);
- CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
- if(CHK_TMP == "Y"){
- TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
- TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
- }
- }
-
- //这里在到放置位置进行判断
- for(var k=0;k<datagrid3.selectedRows;k++){
- TO_ROW = datagrid3.selectedRow(k);
- CHK_TO = model.getValue(nodeSet3+"["+TO_ROW+"]/CHK");
- if(CHK_TO == "Y"){
- TO_YARD = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_YARD");
- TO_COIL = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_NO");
- //判断来源和临时是否同时存在
-
-
- if(CHK_FROM == "Y" && CHK_TMP == "Y"){
- alert(" 原放置位置和临时位置不能同时选中,请确认后重新选择!");
- model.setValue(nodeSet2+"["+TMP_ROW+"]/CHK","N");
- model.setValue(nodeSet1+"["+FROM_ROW+"]/CHK","N");
- model.refresh();
- return;
- }else{
- //判断到位置有没有钢卷存在
- if(TO_COIL == ""){
- //这里需要找到选中的来源位置
- if(CHK_FROM == "Y"){
- //这里处理来源存在的情况
- if(FROM_COIL == ""){
- alert(" 请确认需要移动的原放置位置,再点击移动按钮! ");
- return;
- }else{
- //给去向位置赋值
- model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO",FROM_COIL);
- //清楚来源位置
- model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO","");
- model.refresh();
- }
- }else{
- //如果是临时堆放位置选中的情况
- if(CHK_TMP == "Y"){
- //判断临时位置是否存在钢卷
- if(TMP_COIL == ""){
- alert(" 请确认需要移动的临时堆放位置,再点击移动按钮! ");
- return;
- }else{
- //给去向位置赋值
- model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO",TMP_COIL);
- //清楚来源位置
- model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO","");
- model.refresh();
- }
- }
- }
- }else{
- alert(" 到堆放位置存在钢卷,不能进行移动操作!");
- return;
- }
- }
- }
- }
- model.refresh();
- }
-
- //来源移动到临时
- function TO_Tmp_MoveL(){
- //这里判断来源和去向是否选中
- var nodeSet3 = datagrid3.nodeset;
- var nodeSet2 = datagrid2.nodeset;
-
- //去向变量
- var CHK_TO = null;
- var TO_YARD = null;
- var TO_COIL = null;
- var TO_ROW = null;
- //临时变量
- var CHK_TMP = null;
- var TMP_YARD = null;
- var TMP_COIL = null;
- var TMP_ROW = null;
-
- //这里取出表格1中的选中行
- for(var i=0;i<datagrid3.selectedRows;i++){
- TO_ROW = datagrid3.selectedRow(i);
- CHK_TO = model.getValue(nodeSet3+"["+TO_ROW+"]/CHK");
-
- if(CHK_TO == "Y"){
- TO_YARD = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_YARD");
- TO_COIL = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_NO");
- }
- }
-
- //这里取出表格2中的选中行
- for(var j=0;j<datagrid2.selectedRows;j++){
- TMP_ROW = datagrid2.selectedRow(j);
- CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
-
- if(CHK_TMP == "Y"){
- TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
- TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
-
- //这里需要判断去向位置是否存在钢卷,存在的话给于提示
- if(TMP_COIL == ""){
- if(TO_COIL == ""){
- alert(" 请确认需要移动的到放置位置,再点击移动按钮! ");
- return;
- }else{
- //给去向位置赋值
- model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO",TO_COIL);
- //清楚来源位置
- model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO","");
- model.refresh();
- }
- }else{
- alert(" 临时垛位存在钢卷,不能进行移动操作! ");
- return;
- }
- }else{
- //这里不选中的行不做处理
- }
- }
- model.refresh();
- }
-
- //这里处理从到堆放位置或者临时堆放位置->原堆放位置
- function TO_TMP_FROM_MOVEL(){
- var nodeSet1 = datagrid1.nodeset;
- var nodeSet2 = datagrid2.nodeset;
- var nodeSet3 = datagrid3.nodeset;
-
- //来源变量
- var CHK_FROM = null;
- var FROM_YARD = null;
- var FROM_COIL = null;
- var FROM_ROW = null;
- //临时变量
- var CHK_TMP = null;
- var TMP_YARD = null;
- var TMP_COIL = null;
- var TMP_ROW = null;
- //去向变量
- var CHK_TO = null;
- var TO_YARD = null;
- var TO_COIL = null;
- var TO_ROW = null;
-
- //取出到位置和临时位置的值,这里到位置和临时位置不能同时存在
- for(var i=0;i<datagrid3.selectedRows;i++){
- TO_ROW = datagrid3.selectedRow(i);
- CHK_TO = model.getValue(nodeSet3+"["+TO_ROW+"]/CHK");
- if(CHK_TO == "Y"){
- TO_COIL = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_NO");
- TO_YARD = model.getValue(nodeSet3+"["+TO_ROW+"]/COIL_YARD");
- }
- }
-
- for(var j=0;j<datagrid2.selectedRows;j++){
- TMP_ROW = datagrid2.selectedRow(j);
- CHK_TMP = model.getValue(nodeSet2+"["+TMP_ROW+"]/CHK");
- if(CHK_TMP == "Y"){
- TMP_YARD = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_YARD");
- TMP_COIL = model.getValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO");
- }
- }
-
- //这里在原放置位置进行判断
- for(var k=0;k<datagrid1.selectedRows;k++){
- FROM_ROW = datagrid1.selectedRow(k);
- CHK_FROM = model.getValue(nodeSet1+"["+FROM_ROW+"]/CHK");
- if(CHK_FROM == "Y"){
- FROM_YARD = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_YARD");
- FROM_COIL = model.getValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO");
- //判断来源和临时是否同时存在
-
- if(CHK_TO == "Y" && CHK_TMP == "Y"){
- alert(" 到放置位置和临时位置不能同时选中,请确认后重新选择!");
- model.setValue(nodeSet2+"["+TMP_ROW+"]/CHK","N");
- model.setValue(nodeSet3+"["+TO_ROW+"]/CHK","N");
- model.refresh();
- return;
- }else{
- //判断原位置有没有钢卷存在
- if(FROM_COIL == ""){
- //这里需要找到选中的到放置位置
- if(CHK_TO == "Y"){
- //这里处理来源存在的情况
- if(TO_COIL == ""){
- alert(" 请确认需要移动的到放置位置,再点击移动按钮! ");
- return;
- }else{
- //给去向位置赋值
- model.setValue(nodeSet3+"["+TO_ROW+"]/COIL_NO","");
- //清楚来源位置
- model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO",TO_COIL);
- model.refresh();
- }
- }else{
- //如果是临时堆放位置选中的情况
- if(CHK_TMP == "Y"){
- //判断临时位置是否存在钢卷
- if(TMP_COIL == ""){
- alert(" 请确认需要移动的临时堆放位置,再点击移动按钮! ");
- return;
- }else{
- //给去向位置赋值
- model.setValue(nodeSet1+"["+FROM_ROW+"]/COIL_NO",TMP_COIL);
- //清楚来源位置
- model.setValue(nodeSet2+"["+TMP_ROW+"]/COIL_NO","");
- model.refresh();
- }
- }
- }
- }else{
- alert(" 原堆放位置存在钢卷,不能进行移动操作!");
- return;
- }
- }
- }
- }
- model.refresh();
- }
-
- //清除表格1中的选中的行
- function deleteDatagrid1(){
- var nodeSet1 = datagrid1.nodeset;
- for(var i=0;i<=datagrid1.rows;i++){
- if(model.getValue(nodeSet1+"["+i+"]/CHK") == "Y"){
- model.setValue(nodeSet1+"["+i+"]/CHK","N");
- model.refresh();
- break;
- }
- }
- }
-
- //清除表格2中的选中的行
- function deleteDatagrid2(){
- var nodeSet2 = datagrid2.nodeset;
- for(var i=0;i<=datagrid2.rows;i++){
- if(model.getValue(nodeSet2+"["+i+"]/CHK") == "Y"){
- model.setValue(nodeSet2+"["+i+"]/CHK","N");
- model.refresh();
- break;
- }
- }
- }
-
- //清除表格3中的选中的行
- function deleteDatagrid3(){
- var nodeSet3 = datagrid3.nodeset;
- for(var i=0;i<=datagrid3.rows;i++){
- if(model.getValue(nodeSet3+"["+i+"]/CHK") == "Y"){
- model.setValue(nodeSet3+"["+i+"]/CHK","N");
- model.refresh();
- break;
- }
- }
- }
-
- //加入查询钢卷垛位的方法
- function searchYard(){
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- if(model.getValue("/root/COIL_SEARCH/COIL_NO") == ""){
- alert(" 需要查询垛位的钢卷号信息不能为空,请输入钢卷号信息再点击查询按钮! ");
- return;
- }
-
- model.duplicate("/root/reqData","/root/COIL_SEARCH/COIL_NO");
-
- commSubmit("UIH050600-service", "findCoilYard", "glueAction.do");
-
- model.setValue("/root/COIL_SEARCH/COIL_YARD",model.getValue("root/resData/COIL_SEARCH_VO/COIL_SEARCH_Row/COIL_YARD"));
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <caption id="caption6" class="cell" style="left:615px; top:5px; width:95px; height:20px; "/>
- <caption id="caption5" class="cell" style="left:210px; top:5px; width:65px; height:20px; "/>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/TmpYard_VO/TmpYard_Row" caption="选择^库存位置^钢卷号" colsep="^" colwidth="42, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:360px; top:90px; width:245px; height:525px; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col editable="false" ref="COIL_YARD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <caption id="caption1" class="cell" style="left:10px; top:65px; width:95px; height:20px; ">原堆放位置</caption>
- <input id="input2" ref="/root/searchData/FROM_ADDR" editable="false" style="left:105px; top:65px; width:110px; height:20px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- call_FROM_UIH05_COIL_YARD();
- ]]>
- </script>
- </input>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/FromYard_VO/FromYard_Row" caption="选择^库存位置^钢卷号" colsep="^" colwidth="42, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:90px; width:245px; height:525px; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col editable="false" ref="COIL_YARD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/ToYard_VO/ToYard_Row" caption="选择^库存位置^钢卷号" colsep="^" colwidth="42, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:720px; top:90px; width:245px; height:525px; ">
- <col checkvalue="Y,N" ref="CHK" type="radio"/>
- <col editable="false" ref="COIL_YARD" type="input" style="background-color:#ffffff; "/>
- <col editable="false" ref="COIL_NO" type="input" style="background-color:#ffffff; "/>
- </datagrid>
- <caption id="caption2" class="cell" style="left:360px; top:65px; width:95px; height:20px; ">临时堆放位置</caption>
- <caption id="caption3" class="cell" style="left:720px; top:65px; width:95px; height:20px; ">到堆放位置</caption>
- <input id="input1" ref="/root/searchData/TO_ADDR" editable="false" style="left:815px; top:65px; width:110px; height:20px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- call_TO_UIH05_COIL_YARD();
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/searchData/TMP_ADDR" editable="false" style="left:455px; top:65px; width:110px; height:20px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- call_TMP_UIH05_COIL_YARD();
- ]]>
- </script>
- </input>
- <button id="button4" style="left:295px; top:175px; width:31px; height:31px; background-image:../../images/right.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- From_Tmp_MoveR();
- ]]>
- </script>
- <hint>
- <![CDATA[从原堆放位置->临时堆放位置]]>
- </hint>
- </button>
- <button id="button2" style="left:650px; top:170px; width:30px; height:30px; background-image:../../images/right.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- FROM_TMP_TO_MOVER();
- ]]>
- </script>
- <hint>
- <![CDATA[从原堆放位置->到堆放位置或者从临时堆放位置->到堆放位置]]>
- </hint>
- </button>
- <button id="button3" style="left:290px; top:305px; width:31px; height:31px; background-image:../../images/left.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- TO_TMP_FROM_MOVEL();
- ]]>
- </script>
- <hint>
- <![CDATA[从到堆放位置->原堆放位置或者从临时堆放位置->到原堆放位置]]>
- </hint>
- </button>
- <button id="button5" style="left:645px; top:295px; width:31px; height:31px; background-image:../../images/left.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- TO_Tmp_MoveL();
- ]]>
- </script>
- <hint>
- <![CDATA[从到堆放位置->临时堆放位置]]>
- </hint>
- </button>
- <button id="button6" style="left:220px; top:65px; width:35px; height:20px; background-color:#99ccff; ">
- <caption>取消</caption>
- <hint>
- <![CDATA[清除选中的行]]>
- </hint>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteDatagrid1();
- ]]>
- </script>
- </button>
- <button id="button7" style="left:570px; top:65px; width:35px; height:20px; background-color:#99ccff; ">
- <caption>取消</caption>
- <hint>
- <![CDATA[清除选中的行]]>
- </hint>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteDatagrid2();
- ]]>
- </script>
- </button>
- <button id="button8" style="left:930px; top:65px; width:35px; height:20px; background-color:#99ccff; ">
- <caption>取消</caption>
- <hint>
- <![CDATA[清除选中的行]]>
- </hint>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteDatagrid3();
- ]]>
- </script>
- </button>
- <button id="button1" style="left:210px; top:5px; width:65px; height:20px; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- searchYard();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell" style="left:10px; top:5px; width:95px; height:20px; ">钢卷堆位查询</caption>
- <input id="input4" ref="/root/COIL_SEARCH/COIL_NO" maxlength="13" style="left:105px; top:5px; width:105px; height:20px; background-color:#ffff99; ">
- <hint>
- <![CDATA[输入你需要查询垛位的钢卷号]]>
- </hint>
- </input>
- <input id="input5" ref="/root/COIL_SEARCH/COIL_YARD" editable="true" style="left:275px; top:5px; width:110px; height:20px; background-color:#99ccff; ">
- <hint>
- <![CDATA[显示查询钢卷号的垛位信息]]>
- </hint>
- </input>
- <button id="button9" style="left:615px; top:5px; width:95px; height:20px; ">
- <caption>手工移垛操作</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //判断班次组入库人不能为空,时间不能为空
- if(model.getValue("/root/WK/ENTRY_SHIFT") == ""){
- alert(" 移垛班次信息不能为空,请选择相应的移垛班次! ");
- return;
- }
-
- if(model.getValue("/root/WK/ENTRY_GROUP") == ""){
- alert(" 移垛班组信息不能为空,请选择相应的移垛班组信息!! ");
- return;
- }
-
- if(model.getValue("/root/WK/ENTRY_REG") == ""){
- alert(" 移垛人信息不能为空,请选择相应的移垛人信息!! ");
- return;
- }
-
- if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
- alert(" 移垛时间信息不能为空,请输入相应的移垛时间信息!! ");
- return;
- }
-
- //这里加入双击事件,在同一车号下可以输入多个钢卷号。便于操作
- model.setValue("/root/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
- //把相应的班次,班组,信息上传
- model.refresh();
- window.load("./UIH050710.xrw", "modal", "modalWin", "left:400; top:100; width:650px; height:500px");
-
- find();
- ]]>
- </script>
- </button>
- <caption id="caption21" class="cell" style="left:55px; top:35px; width:95px; height:20px; vertical-align:middle; border-color:#000000; ">移垛班次</caption>
- <select1 id="combo1" ref="/root/WK/ENTRY_REG" appearance="minimal" editmode="input" style="left:395px; top:35px; width:105px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>张永波</label>
- <value>张永波</value>
- </item>
- <item>
- <label>刘小龙</label>
- <value>刘小龙</value>
- </item>
- <item>
- <label>肖小凯</label>
- <value>肖小凯</value>
- </item>
- <item>
- <label>周文刚</label>
- <value>周文刚</value>
- </item>
- <item>
- <label>廖林敏</label>
- <value>廖林敏</value>
- </item>
- <item>
- <label>吴贤寿</label>
- <value>吴贤寿</value>
- </item>
- <item>
- <label>敖艳敏</label>
- <value>敖艳敏</value>
- </item>
- <item>
- <label>李斌</label>
- <value>李斌</value>
- </item>
- <item>
- <label>魏一琦</label>
- <value>魏一琦</value>
- </item>
- <item>
- <label>蔡伟平</label>
- <value>蔡伟平</value>
- </item>
- <item>
- <label>王二松</label>
- <value>王二松</value>
- </item>
- <item>
- <label>邹秋兰</label>
- <value>邹秋兰</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" class="cell" style="left:545px; top:35px; width:95px; height:20px; vertical-align:middle; border-color:#000000; ">移垛班组</caption>
- <caption id="caption7" class="cell" style="left:765px; top:35px; width:95px; height:20px; border-color:#000000; ">移垛时间</caption>
- <select1 id="combo7" ref="/root/WK/ENTRY_SHIFT" appearance="minimal" style="left:150px; top:35px; width:105px; height:20px; background-color:#ffff99; ">
- <choices>
- <item>
- <label>早</label>
- <value>1</value>
- </item>
- <item>
- <label>中</label>
- <value>2</value>
- </item>
- <item>
- <label>晚</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" class="cell" style="left:300px; top:35px; width:95px; height:20px; vertical-align:middle; border-color:#000000; ">移垛人</caption>
- <select1 id="combo8" ref="/root/WK/ENTRY_GROUP" appearance="minimal" style="left:640px; top:35px; width:105px; height:20px; background-color:#ffff99; ">
- <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>
- </choices>
- </select1>
- <input id="input6" ref="/root/WK/ENTRY_DTIME" inputtype="date" format="yyyy-mm-dd" style="left:860px; top:35px; width:105px; height:20px; background-color:#ffff99; "/>
- </xhtml:body>
- </xhtml:html>
|