| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?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>
- <qlty/>
- <custCD/>
- <spec/>
- <SpecStlGrd/>
- </formData>
- <initCustCD>
- <CustCD_VO>
- <CustCD_Row>
- <LABEL>---------</LABEL>
- <VALUE/>
- </CustCD_Row>
- </CustCD_VO>
- </initCustCD>
- <initSpecAbbsym>
- <SpecAbbsym_VO>
- <SpecAbbsym_Row>
- <LABEL>---------</LABEL>
- <VALUE/>
- </SpecAbbsym_Row>
- </SpecAbbsym_VO>
- </initSpecAbbsym>
- <initSpecStlGrd/>
- </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" src="../../js/mesCommon.js"/>
- <script type="javascript">
- <![CDATA[
- function Init(node)
- {
- InitParams(node);
- commSubmit("UIB010120-service" , "success" , "glueAction.do");
- model.duplicate("/root/initCustCD" , "/root/resData/CustCD_VO");
- model.duplicate("/root/initSpecAbbsym" , "/root/resData/SpecAbbsym_VO");
- model.refresh();
- combo1.select(0);
- combo2.select(0);
- }
- function excelExport()
- {
- excelExport();
- }
- function find()
- {
- if(radio1.value=="")//若无任何选择,则不能做查询,直接返回
- return;
- if(radio1.value==1)//若选择的是客户材质
- {
- iviewer1.src = "./_010120Cust.xrw"; //载入客户材质窗口
- }
- if(radio1.value==2)//若选择的是标准材质
- {
- iviewer1.src="./_010120Spec.xrw";//载入标准材质窗口
- }
- var mainWindow = iviewer1.window.javaScript;
- var qltyNumber = model.getValue("/root/formData/qlty");//选择的是客户材质或者标准材质,JAVA类中用于分辨
- var cust = combo1.value;
- var spec = model.getValue("/root/formData/spec");//标准号
- var SpecStlGrd = model.getValue("/root/formData/SpecStlGrd");//标准号
- mainWindow.submit(qltyNumber ,cust+"%" , spec+"%",SpecStlGrd+"%");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:200px; height:20px; text-align:left; border-color:#000000; border-style:solid; ">选择</caption>
- <caption id="caption2" class="cell" style="left:0px; top:30px; width:100px; height:20px; border-color:#000000; border-style:solid; ">客户公司代码</caption>
- <select1 id="radio1" ref="/root/formData/qlty" class="cell" appearance="full" cellspacing="13" cols="2" overflow="visible" style="left:32px; top:7px; width:165px; height:18px; text-align:left; border-style:none; ">
- <choices>
- <item>
- <label>客户材质</label>
- <value>1</value>
- </item>
- <item>
- <label>标准材质</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radio1.value==1)//若选择的是客户材质
- {
- // iviewer1.src = "./_010120Cust.xrw"; //载入客户材质窗口
- combo2.disabled = true;
- combo3.disabled = true;
- combo1.disabled = false;
- }
- if(radio1.value==2)//若选择的是标准材质
- {
- // iviewer1.src="./_010120Spec.xrw";//载入标准材质窗口
- combo1.disabled = true;
- combo2.disabled = false;
- combo3.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo1" ref="/root/formData/custCD" appearance="minimal" editmode="inputsearch" style="left:105px; top:30px; width:95px; height:20px; border-color:#000000; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initCustCD/CustCD_VO/CustCD_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell" style="left:210px; top:30px; width:100px; height:20px; border-color:#000000; border-style:solid; ">标准号</caption>
- <select1 id="combo2" ref="/root/formData/spec" appearance="minimal" editmode="inputsearch" style="left:315px; top:30px; width:251px; height:20px; border-color:#000000; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initSpecAbbsym/SpecAbbsym_VO/SpecAbbsym_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("UIB010120-service", "findS", "glueAction.do");//按计划刚号查询
- model.copyNode("/root/initSpecStlGrd","/root/resData/SpecStlGrdResult_VO");
- model.makeValue("/root/formData/SpecStlGrd","");
- model.refresh();
- ]]>
- </script>
- </select1>
- <iviewer id="iviewer1" src=".\_010120CS.xrw" style="left:0px; top:65px; width:980px; height:555px; "/>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line1" style="x1:0px; y1:65px; x2:980px; y2:65px; "/>
- <select1 id="combo3" ref="/root/formData/SpecStlGrd" appearance="minimal" editmode="inputsearch" style="left:680px; top:30px; width:251px; height:20px; border-color:#000000; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initSpecStlGrd/SpecStlGrdResult_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="cell" style="left:575px; top:30px; width:100px; height:20px; border-color:#000000; border-style:solid; ">标准钢号</caption>
- <button id="button1" visibility="visible" style="left:300px; top:5px; width:100px; height:20px; ">
- <caption>FIND</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- excelExport();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|