| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <?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>
- <CUSTCD/>
- <SSTLGRD/>
- <FSTLGRD/>
- <SelectedRadio/>
- <ABBSYM/>
- <TWOSPECSTLGRD/>
- <TWOSTLGRD/>
- </formData>
- <initCustData>
- <CustResult_VO>
- <CustResult_Row>
- <LABEL>---全部---</LABEL>
- <VALUE/>
- </CustResult_Row>
- </CustResult_VO>
- </initCustData>
- <initSpecData>
- </initSpecData>
- <initFacData>
- <FacResult_VO>
- <FacResult_Row>
- <LABEL>---全部---</LABEL>
- <VALUE/>
- </FacResult_Row>
- </FacResult_VO>
- </initFacData>
- <initABBSYMData>
- <ABBSYMRESULT_VO>
- <ABBSYMRESULT_Row>
- <LABEL>---全部---</LABEL>
- <VALUE>ALL</VALUE>
- </ABBSYMRESULT_Row>
- </ABBSYMRESULT_VO>
- </initABBSYMData>
- <datagridX/>
- <initSpecStl>
- <SpecResult_VO>
- <SpecResult_Row>
- <LABEL>--全部--</LABEL>
- <VALUE>ALL</VALUE>
- </SpecResult_Row>
- </SpecResult_VO>
- </initSpecStl>
- </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/b01.js"/>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- InitParams(node);
-
- commSubmit("UIB010020-service", "success" , "glueAction.do");
- // model.makeValue("/root/initData/SpecResult/key" , "---全部---");
- // model.makeValue("/root/initData/SpecResult/value" , "");
- // model.makeValue("/root/initData/FacResult/key" , "---全部---");
- // model.makeValue("/root/initData/FacResult/value" , "");
- // model.makeValue("/root/initData/CustResult/key" , "---全部---");
- // model.makeValue("/root/initData/CustResult/value" , "");
- // appendNode("/root/initData" , "/root/resData/SpecResult");
- // appendNode("/root/initData" , "/root/resData/FacResult");
- // appendNode("/root/initData" , "/root/resData/CustResult");
- model.duplicate("/root/initCustData" , "/root/resData/CustResult_VO");//客户
- model.duplicate("/root/initSpecStl" , "/root/resData/SpecResult_VO");// 标准
- model.duplicate("/root/initFacData" , "/root/resData/FacResult_VO");//厂内
- model.duplicate("/root/initABBSYMData" , "/root/resData/ABBSYMRESULT_VO");//标准号
- model.refresh();
- }
-
- function excelExport()
- {
- excelExport1();
- }
-
- function excelExport1()
- {
- if(radio1.value=="" )
- return;
- //向iviewer1的窗口中传入各参数
-
- var x1 = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
- if(x1 == "") return;
- iviewer1.datagrid1.saveExcel(x1, "sheetname:Transaction;colhiddenextend:true;exportfalserows:0;");
- window.alert("导出成功" + x1 + " !!!");
- }
-
- function find()
- {
- if(switch1.selectedIndex == 0)
- {
- find1();
- }
- else if(switch1.selectedIndex == 1)
- {
- find2();
- }
- }
-
- function find1()
- {
- //若无选择,则返回
- if(radio1.value=="" )
- return;
- //向iviewer1的窗口中传入各参数
- if(radio1.value==1)
- {
- iviewer1.src = "./_010020Cust.xrw";
- }
- if(radio1.value==2)
- {
- iviewer1.src = "./_010020Spec.xrw";
- }
- if(radio1.value==3)
- {
- iviewer1.src = "./_010020Fac.xrw";
- }
- if(radio1.value==4)
- {
- iviewer1.src = "./_010020Fac_1.xrw";
- }
- var mainWindow = iviewer1.window.javaScript;
- var custcd = model.getValue("/root/formData/CUSTCD");
- var sstlgrd = model.getValue("/root/formData/SSTLGRD");
- var fstlgrd = model.getValue("/root/formData/FSTLGRD");
- var radio = model.getValue("/root/formData/SelectedRadio");
- mainWindow.submit(custcd , sstlgrd , fstlgrd , radio);
- }
-
- function find2()
- {
- model.removenode("/root/reqData");
- model.makeValue("/root/reqData/SPECSTLGRD" , combo5.value);
- model.makeValue("/root/reqData/FACSTLGRD" , combo6.value);
- commSubmit("UIB010020-service", "find2" , "glueAction.do");
- model.copyNode("/root/datagridX" , "/root/resData/AllStlGrdResult_VO");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <switch id="switch1" style="left:0px; top:30px; width:978px; height:590px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:975px; height:565px; ">
- <button id="button3" visibility="hidden" style="left:470px; top:0px; width:100px; height:20px; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <iviewer id="iviewer1" src=".\_010020Cfs.xrw" style="left:0px; top:55px; width:969px; height:505px; "/>
- <caption id="caption1" class="cell" style="left:47px; top:5px; width:373px; height:20px; text-align:center; border-style:solid; "/>
- <select1 id="combo1" ref="/root/formData/SSTLGRD" appearance="minimal" cols="3" editmode="input" style="left:550px; top:30px; width:114px; height:20px; text-align:left; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initSpecData/SpecStlGrdResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell" style="left:460px; top:30px; width:85px; height:20px; ">标准钢号</caption>
- <caption id="caption3" class="cell" style="left:0px; top:5px; width:40px; height:20px; border-style:solid; ">选择</caption>
- <select1 id="combo2" ref="/root/formData/CUSTCD" appearance="minimal" cols="3" editmode="input" style="left:100px; top:30px; width:100px; height:20px; text-align:left; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initCustData/CustResult_VO/CustResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="cell" style="left:0px; top:30px; width:95px; height:20px; text-align:center; border-style:solid; ">客户公司代码</caption>
- <select1 id="combo3" ref="/root/formData/FSTLGRD" appearance="minimal" cols="3" editmode="inputsearch" style="left:785px; top:30px; width:95px; height:20px; text-align:left; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initFacData/FacResult_VO/FacResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/formData/SelectedRadio" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:50px; top:7px; width:342px; height:17px; border-style:none; ">
- <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>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(radio1.value==1)
- {
- iviewer1.src = "./_010020Cust.xrw"; //选择客户成分时导入客户成分表
- combo2.disabled = false;
- combo1.disabled = true;
- combo3.disabled = true;
- combo4.disabled = true;
- }
- if(radio1.value==2)
- {
- iviewer1.src = "./_010020Spec.xrw";//选择标准成分时导入标准成分表
- combo2.disabled = true;
- combo1.disabled = false;
- combo4.disabled = false;
- combo3.disabled = true;
- }
- if(radio1.value==3)
- {
- iviewer1.src = "./_010020Fac.xrw";//选择厂内成分时导入厂内成分表
- combo2.disabled = true;
- combo1.disabled = true;
- combo3.disabled = false;
- combo4.disabled = true;
- }
- if(radio1.value==4)
- {
- iviewer1.src = "_010020Fac_1.xrw";//选择厂内成分时导入厂内成分表
- combo2.disabled = true;
- combo1.disabled = true;
- combo3.disabled = false;
- combo4.disabled = true;
- }
- ]]>
- </script>
- </select1>
- <line id="line1" style="x1:0px; y1:0px; x2:969px; y2:0px; "/>
- <caption id="caption5" class="cell" style="left:215px; top:30px; width:85px; height:20px; ">标准号</caption>
- <select1 id="combo4" ref="/root/formData/ABBSYM" appearance="minimal" cols="3" editmode="inputsearch" style="left:305px; top:30px; width:140px; height:20px; text-align:left; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initABBSYMData/ABBSYMRESULT_VO/ABBSYMRESULT_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- commSendReq("/root/formData");
- commSubmit("UIB010020-service", "findSpecStlGrd", "glueAction.do");
- model.copyNode("/root/initSpecData" , "/root/resData/SpecStlGrdResult_VO");// 标准
- model.makeValue("/root/formData/SSTLGRD","");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="cell" style="left:675px; top:30px; width:105px; height:20px; text-align:center; border-style:solid; ">厂内钢号</caption>
- </case>
- <case id="case2">
- <datagrid id="datagrid1" nodeset="/root/datagridX/AllStlGrdResult_Row" caption="元素代码^内控^内控^内控^炼钢放行^炼钢放行^成品放行^成品放行^EXT|元素代码^目标值^最小值^最大值^最小值^最大值^最小值^最大值^EXT" colsep="^" colwidth="207, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:0px; top:25px; width:975px; height:560px; ">
- <col ref="CHEMCD" style="text-align:left; "/>
- <col ref="CHEM_AIM" style="text-align:left; "/>
- <col ref="MIN1" style="text-align:left; "/>
- <col ref="MAX1" style="text-align:left; "/>
- <col ref="MIN2" style="text-align:left; "/>
- <col ref="MAX2" style="text-align:left; "/>
- <col ref="MIN3" style="text-align:left; "/>
- <col ref="MAX3" style="text-align:left; "/>
- <col/>
- </datagrid>
- <select1 id="combo5" ref="/root/formData/TWOSPECSTLGRD" appearance="minimal" editmode="inputsearch" style="left:100px; top:0px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initSpecStl/SpecResult_VO/SpecResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="cell" style="left:0px; top:0px; width:100px; height:20px; ">成品牌号</caption>
- <caption id="caption7" class="cell" style="left:230px; top:0px; width:100px; height:20px; ">炼钢牌号</caption>
- <select1 id="combo6" ref="/root/formData/TWOSTLGRD" appearance="minimal" editmode="inputsearch" style="left:330px; top:0px; width:100px; height:20px; ">
- <choices>
- <itemset nodeset="/root/initFacData/FacResult_VO/FacResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- </case>
- </switch>
- <button id="button1" style="left:0px; top:5px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>现况查询(1)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- ]]>
- </script>
- </button>
- <button id="button2" style="left:110px; top:5px; width:100px; height:20px; background-image:..\..\images\sw_normal.gif; ">
- <caption>现况查询(2)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- ]]>
- </script>
- </button>
- <button id="button4" style="left:790px; top:5px; width:100px; height:20px; background-color:#ffff99; ">
- <caption>导出</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- excelExport1();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|