| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868 |
- <?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[品质判定>>成分判定>>炼钢综合判定]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <formData>
- <INGR/>
- <EXGD/>
- <TOTL/>
- <TIME_TYPE>2</TIME_TYPE>
- <SDTIME/>
- <EDTIME/>
- <ORD_YN/>
- <SLABOUT/>
- <TSLX/>
- <SBZT/>
- <IS_INGR_DCS>False</IS_INGR_DCS>
- <IS_EXTSHAPE_DCS>False</IS_EXTSHAPE_DCS>
- <IS_TOT_DCS>False</IS_TOT_DCS>
- <RESULTHOT/>
- <RESULTLENGTH/>
- <CHECKED1>Y</CHECKED1>
- <CHECKED2>Y</CHECKED2>
- <CHARGE_NO/>
- <sfMethod/>
- <cfMethod/>
- </formData>
- <datagrid2/>
- <datagrid3/>
- <reqData/>
- <comboData>
- <PROC_Row/>
- </comboData>
- <datagrid1/>
- <comboData1>
- <IngrStatus_Row/>
- <HotSong_Row/>
- </comboData1>
- <comboData2>
- <HotSong_Row/>
- </comboData2>
- <initMome>
- <ComboMome_Row>
- <LABEL/>
- <VALUE/>
- </ComboMome_Row>
- </initMome>
- <initChem>
- <ComboChem_Row>
- <LABEL/>
- <VALUE/>
- </ComboChem_Row>
- </initChem>
- <LHResult_Row>
- <SLH/>
- <XLH/>
- </LHResult_Row>
- <comboData3>
- <LengthSong_Row/>
- </comboData3>
- <dcsdatil/>
- <dcsdatil2/>
- <dcsdatil3/>
- <dategrid3/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if(window.parent==null) Init();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/boaMsg.js"/>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- input2.value = commCurDate();
- input3.value = commCurDate();
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//进行全选操作
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commSubmit("UIB020221-service","success","glueAction.do");
- model.copyNode("/root/comboData" , "/root/resData/PROC_VO");
- model.copyNode("/root/comboData1" , "/root/resData/IngrStatus_VO");
- model.copyNode("/root/comboData2" , "/root/resData/HotSong_VO");
- model.copyNode("/root/comboData3" , "/root/resData/LengthSong_VO");
- model.copyNode("/root/datagrid3" , "/root/resData/MomeContent_VO");
- model.copyNode("/root/initMome" , "/root/resData/ComboMome_VO");
- model.copyNode("/root/datagrid2" , "/root/resData/ChemContent_VO");
- model.copyNode("/root/initChem" , "/root/resData/ComboChem_VO");
- model.refresh();
- combo1.select(0);
- combo2.select(0);
- combo3.select(0);
- combo10.select(0);
- combo11.select(0);
-
- checkbox1.value = "";
- checkbox2.value = "";
-
- }
-
- function excelExport1()
- {
- var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
- if(x1 == "") return;
- datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
- window.alert("导出成功" + x1 + " !!!");
- }
-
- function find()
- {
- if(commDiffDay(input2.value,input3.value)>30)
- {
- window.alert("查询时间不能超过30天");
- return;
- }
- model.removenode("/root/reqData");
- commSendReq("/root/formData");
- // if(input1.value == "")
- // {
- // model.setValue("/root/reqData/CHARGE_NO" , "%");
- // }
- model.setValue("/root/reqData/CHARGE_NO" , input1.value);
- model.setValue("/root/reqData/SDTIME" , input2.value+"0000");
- model.setValue("/root/reqData/EDTIME" , input3.value+"9999");
- model.makeValue("/root/reqData/IS_INGR_DCS" , model.getValue("/root/formData/IS_INGR_DCS"));
- model.makeValue("/root/reqData/IS_EXTSHAPE_DCS" , model.getValue("/root/formData/IS_EXTSHAPE_DCS"));
- model.makeValue("/root/reqData/IS_TOT_DCS" , model.getValue("/root/formData/IS_TOT_DCS"));
- commSubmit("UIB020221-service","find","glueAction.do");
- model.copyNode("/root/datagrid1","/root/resData/SlabTotDcs_VO");
- datagrid1.clearStatus();
- datagrid1.fixedcellischeck(0,datagrid1.colRef("CHK"))=false;
- var str = datagrid1.children;
- //commGridInit(datagrid1);
- model.refresh();
- setColor();
- //pageInit();
- }
-
- function save()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commMultiUpdate(datagrid1,"/root/reqData" ,"A", true, "rowStatus");
- model.makeValue("/root/reqData/XX" , "UIB020221");
- model.makeValue("/root/reqData/REG_NM" , model.getValue("/root/initData/rcvInfo/REG_NM"));
- commSubmit("UIB020221-service","save","glueAction.do");
- find();
- }
- //检查错误,改变颜色
- function setColor()
- {
- datagrid1.rebuildStyle();
- for(var i = datagrid1.fixedRows ; i < datagrid1.rows; i ++)
- {
- if(datagrid1.valueMatrix(i , datagrid1.colRef("ERROR_YN")) == "XX")
- {
- datagrid1.rowstyle(i, "data", "color") = "#ff0000";
- }
- }
- }
-
- //设置等级
- function setGrd(comboSelect)
- {
- var col ;
- if(comboSelect == combo1)//成分
- {
- col = datagrid1.colRef("SLAB_INGR_DEC_GRD_EXT");
- }
- else if(comboSelect == combo2)
- {
- col = datagrid1.colRef("EXTSHAPE_GRD_EXT");
- }
- else if(comboSelect == combo3)
- {
- col = datagrid1.colRef("SLAB_TOT_DEC_GRD");
- }
- else if(comboSelect == combo5)
- {
- col = datagrid1.colRef("POPORD_YN");
- }
- else if(comboSelect == combo6)
- {
- col = datagrid1.colRef("SLAB_OUT_TP");
- }
- else if(comboSelect == combo10)
- {
- col = datagrid1.colRef("NO_HOT_REASON");
- }
- else if(comboSelect == combo11)
- {
- col = datagrid1.colRef("NO_DIRECT_REASON");
- }
- else if(comboSelect == checkbox1)
- {
- col = datagrid1.colRef("NO_HOT_STEELNAME");
- }
- else if(comboSelect == checkbox2)
- {
- col = datagrid1.colRef("NO_CRAFT_STEELNAME");
- }
- else if(comboSelect == textarea1)
- {
- col = datagrid1.colRef("SLAB_DCS_DETAIL");
- }
- for(var i = datagrid1.fixedRows; i < datagrid1.rows; i++)
- {
- if(datagrid1.valueMatrix( i , datagrid1.colRef("CHK")) == "Y")
- {
- datagrid1.valueMatrix(i , col) = comboSelect.value;
- }
- }
- }
-
- /*
- function apply()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- if(combo6.value=='Y')
- {
- window.alert("申报项目不允许出库","提示");
- return;
- }
- var iRow=datagrid1.rows; //grid的行数
- //alert(iRow);
- var flag=false; //用于判断行是否被选中
- var lh=new Array();
- var j=0;
- for(var i=1;i<iRow;i++)
- {
- if(datagrid1.valueMatrix(i,1)=="Y") //这个checkbox设置的值为Y,N,不是默认的true,fasle。
- {
- flag= true;
- lh[j]=datagrid1.valueMatrix(i,2).substr(0,10);
- j=j+1;
- model.makeValue("/root/reqData["+i+"]/REG_NM",model.getValue("/root/initData/rcvInfo/REG_NM")); //操作人
- model.makeValue("/root/reqData["+i+"]/SLH" , input4.value); //上炉号
- model.makeValue("/root/reqData["+i+"]/XLH" , input5.value); //下炉号
- model.makeValue("/root/reqData["+i+"]/TSLX" ,model.getValue("/root/formData/TSLX")); //特殊放行
- model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2)); //板坯号
- }
- }
- if(flag==false)
- {
- window.alert("请选择你要确定的项","提示");
- return;
- }
- for(var i=0;i<j;i++)
- {
- if(lh[i]!=lh[i+1]&&i+1<j)
- {
- window.alert("所选择的项不是同一炉号,不能批量申报","提示");
- return;
- }
- }
- commSubmit("UIB020221-service", "Apply", "glueAction.do");
- model.refresh();
- }
-
- function CancleApply()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- var flag=false;
- for(var i=0;i<datagrid1.rows;i++)
- {
- if(datagrid1.valueMatrix(i,1)=="Y")
- {
- flag= true;
- model.makeValue("/root/reqData["+i+"]/SLAB_NO",datagrid1.valueMatrix(i,2));
- }
- }
- if(flag==false)
- {
- window.alert("请选择你要取消的项","提示");
- return;
- }
- if(commComfirmBox("确定要取消吗?","提示")==0)
- return;
- commSubmit("UIB020221-service", "CancleApply", "glueAction.do");
- }*/
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="700" guideline="1,987;1,980;">
- <line id="line2" style="x1:0px; y1:1px; x2:962px; y2:1px; "/>
- <line id="line1" style="x1:0px; y1:30px; x2:964px; y2:30px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/SlabTotDcs_Row" caption="选择^板坯号^进程状态^判定方式^允许出库^操作时间^错误检查^计划规格^磅重^不可热送钢钟^流程不可热送钢种^不可热送原因^非直送原因^说明^实际规格^实际牌号^合同号^余材区分^系统成分等级^系统外观等级^解除合同^成分等级^外观等级^综合等级^操作人^操作时间" colsep="^" colwidth="43, 86, 79, 79, 39, 58, 31, 76, 48, 100, 59, 86, 84, 76, 96, 72, 37, 47, 55, 65, 96, 96, 99, 99, 99, 99" explorerbar="sortshow" frozencols="3" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" tooltip="label" style="left:0px; top:35px; width:978px; height:475px; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="SLAB_NO" style="left:63px; top:35px; width:86px; height:21px; text-align:left; "/>
- <col disabled="true" ref="CUR_PROG_CD" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/comboData/PROC_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_INGR_DEC_KIND" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>内控判定</label>
- <value>1</value>
- </item>
- <item>
- <label>炼钢放行(订单材)</label>
- <value>2</value>
- </item>
- <item>
- <label>正常流转</label>
- <value>3</value>
- </item>
- <item>
- <label>成品放行</label>
- <value>4</value>
- </item>
- <item>
- <label>改判</label>
- <value>5</value>
- </item>
- <item>
- <label>判次</label>
- <value>6</value>
- </item>
- <item>
- <label>强制合格</label>
- <value>7</value>
- </item>
- <item>
- <label>炼钢放行(余材)</label>
- <value>8</value>
- </item>
- <item>
- <label>化废</label>
- <value>10</value>
- </item>
- <item>
- <label>流转申请中</label>
- <value>11</value>
- </item>
- <item>
- <label>流转申请取消</label>
- <value>12</value>
- </item>
- <item>
- <label>流转确认成功</label>
- <value>13</value>
- </item>
- <item>
- <label>手动充当</label>
- <value>14</value>
- </item>
- </choices>
- </col>
- <col ref="SLAB_OUT_TP"/>
- <col ref="SLAB_OUT_TP_DTIME" visibility="hidden"/>
- <col ref="ERROR_YN" visibility="hidden" style="text-align:left; "/>
- <col ref="INSTR_TWL" visibility="visible" style="text-align:left; "/>
- <col ref="WEIGHT_WGT" style="text-align:left; "/>
- <col ref="NO_HOT_STEELNAME" visibility="hidden" style="text-align:left; "/>
- <col ref="NO_CRAFT_STEELNAME" visibility="visible" style="text-align:left; "/>
- <col disabled="true" ref="NO_HOT_REASON" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/comboData2/HotSong_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="NO_DIRECT_REASON" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/comboData3/LengthSong_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col editable="false" ref="SLAB_DCS_DETAIL" type="input" style="text-align:left; "/>
- <col ref="TWL" visibility="visible" style="text-align:left; "/>
- <col ref="STL_GRD" style="text-align:left; "/>
- <col ref="ORD_NO" style="text-align:left; "/>
- <col disabled="true" ref="ORD_FL" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>订单材</label>
- <value>1</value>
- </item>
- <item>
- <label>余材</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_INGR_DEC_GRD" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- <item>
- <label>待判定</label>
- <value/>
- </item>
- <item>
- <label>化废</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="EXTSHAPE_GRD" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>合格</label>
- <value>1</value>
- </item>
- <item>
- <label>不合格</label>
- <value>2</value>
- </item>
- <item>
- <label>待修磨</label>
- <value>3</value>
- </item>
- <item>
- <label>待判</label>
- <value/>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="POPORD_YN" type="combo" visibility="hidden" style="text-align:left; ">
- <choices>
- <item>
- <label>是</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_INGR_DEC_GRD_EXT" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/comboData1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="EXTSHAPE_GRD_EXT" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/comboData1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="SLAB_TOT_DEC_GRD" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/comboData1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="SLAB_TOT_DEC_GRD_ID" style="text-align:left; "/>
- <col ref="SLAB_TOT_DEC_GRD_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
- <!--<script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow=datagrid1.row; //点击了哪一行,标题行算第0行。
- if(iRow==0)
- return;
- var BPNO=datagrid1.valueMatrix(iRow,2).substr(0,10); //板坯号,前10位就是炉号。如J91-00338A,
- var ChargeNo=BPNO.substr(0,10);
- //alert(ChargeNo);
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/CHNO",ChargeNo);
- commSubmit("UIB020221-service","returnselect","glueAction.do");
- model.copyNode("/root/LHResult_Row","/root/resData/LHResult_VO/LHResult_Row");
- //model.copyNode("/root/LHResult_Row","/root/resData/LHResult_VO/LHResult_Row");
- model.refresh();
- ]]>
- </script>
- -->
- </datagrid>
- <caption id="caption1" class="cell" style="left:40px; top:565px; width:70px; height:20px; ">成分等级</caption>
- <caption id="caption2" class="cell" style="left:275px; top:565px; width:80px; height:20px; ">外观等级</caption>
- <caption id="caption3" class="cell" style="left:500px; top:565px; width:75px; height:20px; ">综合等级</caption>
- <select1 id="combo1" ref="/root/formData/INGR" appearance="minimal" style="left:110px; top:565px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/comboData1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(combo1);
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/formData/EXGD" appearance="minimal" style="left:355px; top:565px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/comboData1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(combo2);
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/formData/TOTL" appearance="minimal" style="left:575px; top:565px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/comboData1/IngrStatus_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(combo3);
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="cell" style="left:0px; top:5px; width:55px; height:20px; ">炉 号</caption>
- <input id="input1" ref="/root/formData/CHARGE_NO" style="left:55px; top:5px; width:90px; height:20px; "/>
- <select1 id="combo4" ref="/root/formData/TIME_TYPE" appearance="minimal" style="left:150px; top:5px; width:75px; height:20px; ">
- <choices>
- <item>
- <label>判定日期</label>
- <value>1</value>
- </item>
- <item>
- <label>生产日期</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="input2" ref="/root/formData/SDTIME" inputtype="date" style="left:225px; top:5px; width:85px; height:20px; "/>
- <line id="line3" style="x1:310px; y1:15px; x2:320px; y2:15px; "/>
- <input id="input3" ref="/root/formData/EDTIME" inputtype="date" style="left:320px; top:5px; width:85px; height:20px; "/>
- <caption id="caption5" class="cell" visibility="hidden" style="left:785px; top:470px; width:100px; height:20px; ">是否解除订单</caption>
- <select1 id="combo5" ref="/root/formData/ORD_YN" visibility="hidden" appearance="minimal" style="left:885px; top:470px; width:55px; height:20px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>是</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(combo5.value == "Y")
- {
- if(commComfirmBox("订单一经解除,将无法还原,操作将被详细记录,确认操作?","提示")=="0") return;
- }
- setGrd(combo5);
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="cell" visibility="visible" style="left:745px; top:565px; width:70px; height:20px; ">允许出库</caption>
- <select1 id="combo6" ref="/root/formData/SLABOUT" appearance="minimal" style="left:815px; top:565px; width:100px; height:20px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>是</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(combo6);
- ]]>
- </script>
- </select1>
- <button id="button1" visibility="hidden" style="left:745px; top:5px; width:45px; height:20px; background-color:#00ccff; ">
- <caption>查询</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button2" visibility="hidden" style="left:800px; top:5px; width:62px; height:20px; background-color:#00ff00; ">
- <caption>申报待判</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- apply();
- find();
- ]]>
- </script>
- </button>
- <button id="button3" visibility="hidden" style="left:860px; top:5px; width:68px; height:20px; background-color:#00ff00; ">
- <caption>取消申报</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- CancleApply();
- find();
- ]]>
- </script>
- </button>
- <select1 id="combo7" ref="/root/formData/IS_EXTSHAPE_DCS" appearance="minimal" style="left:465px; top:5px; width:50px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value>False</value>
- </item>
- <item>
- <label>待判</label>
- <value>True</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="cell" style="left:410px; top:5px; width:55px; height:20px; ">外观判定</caption>
- <caption id="caption8" class="cell" style="left:520px; top:5px; width:55px; height:20px; ">成分判定</caption>
- <select1 id="combo8" ref="/root/formData/IS_INGR_DCS" appearance="minimal" style="left:575px; top:5px; width:50px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value>False</value>
- </item>
- <item>
- <label>待判</label>
- <value>True</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell" style="left:630px; top:5px; width:55px; height:20px; ">综合判定</caption>
- <select1 id="combo9" ref="/root/formData/IS_TOT_DCS" appearance="minimal" style="left:685px; top:5px; width:50px; height:20px; ">
- <choices>
- <item>
- <label>全部</label>
- <value>False</value>
- </item>
- <item>
- <label>待判</label>
- <value>True</value>
- </item>
- </choices>
- </select1>
- <select id="checkbox1" ref="/root/formData/CHECKED1" visibility="hidden" overflow="hidden" appearance="full" style="left:880px; top:590px; width:18px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(checkbox1);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setGrd(checkbox1);
- ]]>
- </script>
- </select>
- <select id="checkbox2" ref="/root/formData/CHECKED2" overflow="visible" appearance="full" style="left:45px; top:592px; width:18px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(checkbox2);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setGrd(checkbox2);
- ]]>
- </script>
- </select>
- <caption id="caption10" class="cell" visibility="hidden" style="left:900px; top:590px; width:80px; height:20px; ">不可热送钢钟</caption>
- <caption id="caption11" class="cell" style="left:70px; top:590px; width:140px; height:20px; ">流程不可热送钢种</caption>
- <caption id="caption12" class="cell" style="left:275px; top:590px; width:90px; height:20px; ">不可热送的原因</caption>
- <select1 id="combo10" ref="/root/formData/RESULTHOT" appearance="minimal" style="left:365px; top:590px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/comboData2/HotSong_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(combo10);
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="cell" style="left:500px; top:590px; width:90px; height:20px; ">非直送的原因</caption>
- <select1 id="combo11" ref="/root/formData/RESULTLENGTH" appearance="minimal" style="left:585px; top:590px; width:90px; height:20px; ">
- <choices>
- <itemset nodeset="/root/comboData3/LengthSong_Row">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- setGrd(combo11);
- ]]>
- </script>
- </select1>
- <button id="button4" visibility="hidden" style="left:935px; top:5px; width:45px; height:20px; background-color:#00ccff; ">
- <caption>保存</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/dcsdatil" style="left:35px; top:510px; width:420px; height:50px; "/>
- <button id="button5" style="left:915px; top:515px; width:35px; height:40px; background-color:#00ccff; ">
- <caption>提交说明</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setGrd(textarea1);
- ]]>
- </script>
- </button>
- <caption id="caption14" class="cell" style="left:500px; top:530px; width:75px; height:20px; ">备注内容</caption>
- <datagrid id="datagrid3" nodeset="/root/datagrid3/MomeContent_Row" visibility="hidden" allowuserresize="false" caption="选择^备注内容^SM_CD" colsep="^" colwidth="40, 220, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:455px; top:165px; width:240px; height:365px; ">
- <col checkvalue="Y,N" ref="CHK1" type="checkbox"/>
- <col disabled="true" ref="SM_CFNM" type="combo">
- <choices>
- <itemset nodeset="/root/initMome/ComboMome_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- 通过循环判断表3中是否有选中的行,只对表3中选中的行进行操作
- */
- var mome="";
- for(var i=1 ; i <= datagrid3.rows; i++)
- {
- if(datagrid3.valueMatrix(i , datagrid3.colRef("CHK1"))=="Y")
- {
- if(mome=="")
- {
- mome=datagrid3.valueMatrix(i , datagrid3.colRef("SM_CFNM"));
- }
- else
- {
- mome=mome +","+ datagrid3.valueMatrix(i , datagrid3.colRef("SM_CFNM"));
- }
- }
- }
- textarea2.value=mome;
- if(textarea2.value=="")
- {
- textarea1.value=textarea3.value;
- }
- else
- {
- textarea1.value=textarea2.value+","+ textarea3.value;
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <input id="input4" ref="/root/formData/sfMethod" inputtype="button" style="left:575px; top:530px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid3.visible = !datagrid3.visible;
- for(var i=1; i <= datagrid3.rows; i++)
- {
- datagrid3.valueMatrix(i , 0)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption15" class="cell" style="left:745px; top:530px; width:70px; height:20px; ">成分内容</caption>
- <input id="input5" ref="/root/formData/cfMethod" inputtype="button" style="left:815px; top:530px; width:100px; height:20px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid2.visible = !datagrid2.visible;
- for(var i=1; i <= datagrid2.rows; i++)
- {
- datagrid2.valueMatrix(i , 0)="N";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <datagrid id="datagrid2" nodeset="/root/datagrid2/ChemContent_Row" visibility="hidden" allowuserresize="false" caption="选择^成分内容^SM_CD" colsep="^" colwidth="40, 220, 100" defaultrows="12" mergecellsfixedrows="bycolrec" rowsep="|" style="left:695px; top:165px; width:220px; height:365px; ">
- <col checkvalue="Y,N" ref="CHK1" type="checkbox"/>
- <col disabled="true" ref="SM_CFNM" type="combo">
- <choices>
- <itemset nodeset="/root/initChem/ComboChem_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </col>
- <col ref="SM_CD" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- 通过循环判断表2中是否有选中的行,只对表2中选中的行进行操作
- */
- var chem="";
- for(var i=1 ; i <= datagrid2.rows; i++)
- {
- if(datagrid2.valueMatrix(i , datagrid2.colRef("CHK1"))=="Y")
- {
- if(chem=="")
- {
- chem=datagrid2.valueMatrix(i , datagrid2.colRef("SM_CFNM"));
- }
- else
- {
- chem=chem +","+ datagrid2.valueMatrix(i , datagrid2.colRef("SM_CFNM"));
- }
- }
- }
- textarea3.value=chem;
- if(textarea2.value=="")
- {
- textarea1.value=textarea3.value;
- }
- else
- {
- textarea1.value=textarea2.value+","+ textarea3.value;
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <textarea id="textarea2" ref="/root/dcsdatil2" visibility="hidden" style="left:745px; top:590px; width:40px; height:15px; "/>
- <textarea id="textarea3" ref="/root/dcsdatil3" visibility="hidden" style="left:790px; top:590px; width:40px; height:15px; "/>
- <button id="button6" visibility="visible" style="left:760px; top:5px; width:70px; height:20px; background-color:#00ccff; ">
- <caption>导出</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- excelExport1();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|