| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?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[热轧板坯中间品登记(UIH090160) ]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <searchData>
- <SLAB_NO/>
- <FROM/>
- <TO/>
- </searchData>
- <saveData>
- <REG_ID/>
- </saveData>
- <datagrid1/>
- <resData/>
- <reqData/>
- <Updata>
- <rowStuts>u</rowStuts>
- </Updata>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/b01.js"/>
- <script type="javascript">
- <![CDATA[
- //查询待登记的热轧中间品信息
-
- function find(){
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/SLAB_NO" , input1.value);
- model.makeValue("/root/reqData/FROM" , input3.value);
- model.makeValue("/root/reqData/TO" , input4.value);
- //这里加入出库时间条件,减少数据量
- if(model.getValue("/root/searchData/FROM") == ""||model.getValue("/root/searchData/TO") == ""){
- alert(" 出库时间需要选择,否则将导致数据量过大。不便于查找!!! ");
- return;
- }
- commSubmit("UIH090160-service" , "find" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/Result0_VO");
- model.refresh();
- }
-
- //中间品登记
- function save(){
-
- // 表格中的行数
- var gridRows = datagrid1.rows - datagrid1.fixedRows;
-
- //清空发送接点
-
-
- //控制输入数据不能为空,前提是该行已经CHK 选择
- for(var i = datagrid1.fixedRows ; i < (gridRows + datagrid1.fixedRows) ; i++){
-
- if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y" &&
- datagrid1.valueMatrix(i,datagrid1.colRef("REASON")) == ""&&
- datagrid1.valueMatrix(i,datagrid1.colRef("LOCALTION")) == ""&&
- datagrid1.valueMatrix(i,datagrid1.colRef("CUR_LOAD_LOC")) == ""&&
- datagrid1.valueMatrix(i,datagrid1.colRef("COUNT")) == ""){
- alert(" 提交数据有误,不能有空值 ");
- return;
- }
- datagrid1.valueMatrix(i,datagrid1.colRef("REG_ID")) = model.getValue("/root/initData/rcvInfo/REG_NM");
- }
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM"));
- model.makeNode("/root/reqData");
- for(var i=0;i<datagrid1.rows;i++){
- datagrid1.rowStatus(i) = 2;
- }
- model.refresh();
- b01MultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");//获得修改、插入、删除参数
- commSubmit("UIH090160-service","save","glueAction.do");
- datagrid1.clearStatus();
- find1();
-
- }
-
-
- function find1(){
- if(commDiffDay(input3.value,input4.value)>180)
- {
- alert(" 查询时间过长,请重新选择六个月内数据查询!! ");
- return;
- }
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/SLAB_NO" , input1.value);
- model.makeValue("/root/reqData/FROM" , input3.value);
- model.makeValue("/root/reqData/TO" , input4.value);
- //这里加入出库时间条件,减少数据量
- if(model.getValue("/root/searchData/FROM") == ""||model.getValue("/root/searchData/TO") == ""){
- alert(" 出库时间需要选择,否则将导致数据量过大。不便于查找!!! ");
- return;
- }
- commSubmit("UIH090160-service" , "find1" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/Result0_VO");
- model.refresh();
- }
-
- function xformSelect(){
- // if( //datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_CAR_NO")) == "" ||
- //datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) == "" ||
- //datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) == ""
- // ) //return;
- if(datagrid1.row != datagrid1.fixedRows){
- //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_CAR_NO")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_CAR_NO"));
- //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL"));
- //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_PLANT_ARRV_LOC"));
-
- }
- }
-
-
-
- function xformDeselect(){
- //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_CAR_NO")) = "";
- //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) = "";
- //datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) = "";
-
- //datagrid1.rowStatus(datagrid1.row) = 0;
-
- }
-
- ]]>
- </script>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript" src="../../js/mesCommon.js"/>
- </xhtml:head>
- <xhtml:body style="font-family:SimSun-ExtB; font-size:12pt; color:#000000; vertical-align:middle; ">
- <datagrid id="datagrid1" nodeset="/root/datagrid1/Result0_Row" scroll="both" allowuserresize="true" caption="选择^坯料号^产生原因^产生位置^摆放位置^块数^生产时间^班次^班组^牌号^计划厚度^计划宽度^轧制单元号^理论重量^登记时间^登记人|选择^坯料号^产生原因^产生位置^摆放位置^块数^生产时间^班次^班组^牌号^计划厚度^计划宽度^轧制单元号^理论重量^登记时间^登记人" colsep="^" colwidth="35, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:65px; width:975px; height:535px; border-color:#000000; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col editable="true" ref="SLAB_NO" type="input" visibility="visible" style="background-color:transparent; "/>
- <col editable="true" ref="REASON" type="input" visibility="visible" style="color:#993300; background-color:transparent; border-color:#993300; border-style:solid; "/>
- <col editable="true" ref="LOCALTION" type="input" visibility="visible" style="color:#993300; background-color:transparent; border-color:#993300; border-style:solid; "/>
- <col editable="true" ref="CUR_LOAD_LOC" type="input" visibility="visible" style="color:#993300; background-color:transparent; border-color:#993300; border-style:solid; "/>
- <col ref="COUNT" type="combo" visibility="visible">
- <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>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- <item>
- <label>7</label>
- <value>7</value>
- </item>
- <item>
- <label>8</label>
- <value>8</value>
- </item>
- <item>
- <label>9</label>
- <value>9</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- <item>
- <label>13</label>
- <value>13</value>
- </item>
- <item>
- <label>14</label>
- <value>14</value>
- </item>
- <item>
- <label>15</label>
- <value>15</value>
- </item>
- <item>
- <label>16</label>
- <value>16</value>
- </item>
- <item>
- <label>17</label>
- <value>17</value>
- </item>
- <item>
- <label>18</label>
- <value>18</value>
- </item>
- </choices>
- </col>
- <col ref="MILL_DTIME"/>
- <col ref="REG_SHIFT" type="combo" visibility="visible" style="color:#993300; border-style:solid; ">
- <choices>
- <item>
- <label>早</label>
- <value>1</value>
- </item>
- <item>
- <label>中</label>
- <value>2</value>
- </item>
- <item>
- <label>晚</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="REG_GROUP" type="combo" visibility="visible" style="color:#993300; border-style:solid; ">
- <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>
- </choices>
- </col>
- <col ref="SPEC_STL_GRD"/>
- <col ref="THK_AIM"/>
- <col ref="WTH_AIM"/>
- <col ref="ROLL_MANA_NO"/>
- <col ref="ACT_WGT"/>
- <col ref="REG_DTIME"/>
- <col ref="REG_ID"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- xformSelect();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- xformDeselect();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" style="left:0px; top:20px; width:55px; height:25px; background-color:#99ccff; border-color:#000000; border-style:solid; ">坯料号</caption>
- <input id="input1" ref="/root/searchData/SLAB_NO" style="left:55px; top:20px; width:105px; height:25px; "/>
- <caption id="caption2" style="left:220px; top:20px; width:55px; height:25px; background-color:#99ccff; border-style:solid; ">生产时间</caption>
- <input id="input3" ref="/root/searchData/FROM" inputtype="date" style="left:275px; top:20px; width:95px; height:25px; "/>
- <input id="input4" ref="/root/searchData/TO" inputtype="date" style="left:385px; top:20px; width:90px; height:25px; "/>
- <caption id="caption3" style="left:370px; top:20px; width:15px; height:25px; background-color:#99ccff; border-color:#000000; border-style:solid; ">-</caption>
- <button id="button1" style="left:795px; top:20px; width:94px; height:25px; background-color:#99ccff; border-color:#000000; border-style:solid; ">
- <caption>查询录入结果</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find1();
- ]]>
- </script>
- </button>
- <button id="button2" visibility="visible" style="left:610px; top:25px; width:75px; height:20px; ">
- <caption>button2</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <button id="button3" visibility="hidden" style="left:360px; top:210px; width:90px; height:25px; ">
- <caption>button3</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|