| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <?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="">
- <datagrid1/>
- <formData>
- <LG_CD/>
- <SPECABBSYM_/>
- <QLTYCD_/>
- <SPEC_ABBSYM/>
- <QLTY_CD/>
- </formData>
- <comboData>
- <QLTYCD>
- <QLTYCDRESULT_Row>
- <QLTY_CD/>
- <QLTY_CD_CFNM/>
- </QLTYCDRESULT_Row>
- </QLTYCD>
- <LOTCD>
- <LOTCDRESULT_Row>
- <SMP_LOT_CD/>
- <SMP_LOT_DETAIL/>
- </LOTCDRESULT_Row>
- </LOTCD>
- <SPECABBSYM>
- <SPECABBSYMRESULT_Row>
- <SM_CD/>
- <SM_CFNM/>
- </SPECABBSYMRESULT_Row>
- </SPECABBSYM>
- <ORDUSETP>
- <ORDUSETPRESULT_Row>
- <SM_CD/>
- <SM_CFNM/>
- </ORDUSETPRESULT_Row>
- </ORDUSETP>
- </comboData>
- <reqData/>
- <resData/>
- <test>1</test>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- 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);
- datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;
- datagrid1.colStatus(0)=false;
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.setValue("/root/formData/LG_CD","B01001");
- commSendReq("/root/formData");
- commSubmit("UIB010190-service","QLTYCD","glueAction.do");
- model.copyNode("/root/comboData/QLTYCD","/root/resData/QLTYCDRESULT_VO");
- model.copyNode("/root/comboData/LOTCD","/root/resData/LOTCDRESULT_VO");
- model.copyNode("/root/comboData/SPECABBSYM","/root/resData/SPECABBSYMRESULT_VO");
- model.copyNode("/root/comboData/ORDUSETP","/root/resData/ORDUSETPRESULT_VO");
- model.refresh();
- }
-
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.makeValue("/root/formData/SPEC_ABBSYM",model.getValue("/root/formData/SPECABBSYM_")+"%");
- model.makeValue("/root/formData/QLTY_CD",model.getValue("/root/formData/QLTYCD_")+"%");
- commSendReq("/root/formData");
- commSubmit("UIB010190-service" , "DEF" , "glueAction.do");
- model.copyNode("/root/datagrid1" , "/root/resData/DEFRESULT_VO");
- model.refresh();
- }
-
- function setDatagrid()
- {
- var row = datagrid1.rows;
- var flag = 1;
- for(var i=1;i<row;i++)
- {
- if(i==1)
- {
- datagrid1.rowStyle(i, "data", "background-color") = "#ccffff";
- continue;
- }
-
- if(datagrid1.valueMatrix(i-1,datagrid1.colRef("SPEC_ABBSYM")) != datagrid1.valueMatrix(i,datagrid1.colRef("SPEC_ABBSYM")))
- {
- alert(flag);
- if(flag == 1)
- {
- flag=2;
- }
- if(flag == 2)
- {
- flag=1;
- }
- }
-
- if(flag == 1)
- {
- datagrid1.rowStyle(i, "data", "background-color") = "#ccffff";
- }
-
- if(flag == 2)
- {
- datagrid1.rowStyle(i, "data", "background-color") = "#ffffff";
- }
- }
- }
- function save()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- commMultiUpdate(datagrid1 , "/root/reqData" , "A" , true , "rowStatus");//对应表格1
- commSubmit("UIB010190-service" , "save" , "glueAction.do");
- datagrid1.clearStatus();//注意要清除表格的修改状态
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620">
- <button id="button2" style="left:825px; top:40px; width:76px; height:20px; background-image:../../images/btn_add.gif; ">
- <caption>增加</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addRow();
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PRDNM_CD"))="AR";
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("DEF_QLTY_TP"))="Y";
- datagrid1.colDisabled(datagrid1.colRef("QLTY_CD")) = true;
- ]]>
- </script>
- </button>
- <button id="button3" style="left:905px; top:40px; width:70px; height:20px; background-image:../../images/btn_move.gif; ">
- <caption>删除</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=datagrid1.rows-1; i >= 1; i--)
- {
- if(datagrid1.valueMatrix(i , 0)=="Y")
- {
- datagrid1.deleteRow(i , false);
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:100px; height:20px; border-color:#000000; border-style:solid; ">标准号</caption>
- <caption id="caption2" class="cell" style="left:385px; top:5px; width:100px; height:20px; border-color:#000000; border-style:solid; ">材质代码</caption>
- <select1 id="combo1" ref="/root/formData/SPECABBSYM_" appearance="minimal" editmode="inputsearch" showvalue="false" style="left:102px; top:5px; width:275px; height:20px; border-color:#000000; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/comboData/SPECABBSYM/SPECABBSYMRESULT_Row">
- <label ref="SM_CD"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/DEFRESULT_Row" caption="选择^交货状态^标准号^材质代码^材质代码说明^试样批次代码^使用是否" colsep="^" colwidth="47, 50, 428, 60, 200, 120, 60, 100, 100, 100, 100, 100" defaultrows="40" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:980px; height:555px; border-color:#000000; border-style:solid; ">
- <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
- <col ref="PRDNM_CD" type="input"/>
- <col ref="SPEC_ABBSYM" showvalue="true" type="combo">
- <choices>
- <itemset nodeset="/root/comboData/SPECABBSYM/SPECABBSYMRESULT_Row">
- <label ref="SM_CD"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="QLTY_CD" showvalue="false" type="combo">
- <choices>
- <itemset nodeset="/root/comboData/QLTYCD/QLTYCDRESULT_Row">
- <label ref="QLTY_CD"/>
- <value ref="QLTY_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="QLTY_CD_CFNM" type="combo">
- <choices>
- <itemset nodeset="/root/comboData/QLTYCD/QLTYCDRESULT_Row">
- <label ref="QLTY_CD_CFNM"/>
- <value ref="QLTY_CD"/>
- </itemset>
- </choices>
- </col>
- <col ref="SMP_LOT_CD" type="combo" style="background-color:#ffff99; ">
- <choices>
- <itemset nodeset="/root/comboData/LOTCD/LOTCDRESULT_Row">
- <label ref="SMP_LOT_DETAIL"/>
- <value ref="SMP_LOT_CD"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="DEF_QLTY_TP" type="checkbox"/>
- <col ref="BEF_PRDNM_CD" visibility="hidden"/>
- <col ref="BEF_QLTY_CD" visibility="hidden"/>
- <col ref="BEF_SPEC_STL_GRD" visibility="hidden"/>
- <col ref="BEF_ORD_USE_TP" visibility="hidden"/>
- <col ref="BEF_SPEC_ABBSYM" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(datagrid1.col == datagrid1.colRef("QLTY_CD_CFNM")){
- datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("QLTY_CD")) = datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("QLTY_CD_CFNM"));
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*if(datagrid1.col == datagrid1.colRef("SPEC_ABBSYM"))
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
- model.setValue("/root/formData/SPEC_ABBSYM",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SPEC_ABBSYM")));
- commSendReq("/root/formData");
- commSubmit("UIB010190-service","SYM","glueAction.do");
- model.copyNode("/root/comboData/QLTYCD","/root/resData/QLTYCDRESULT_VO");
- model.copyNode("/root/comboData/ORDUSETP","/root/resData/ORDUSETPRESULT_VO");
- model.refresh();
- }*/
- ]]>
- </script>
- </datagrid>
- <select1 id="combo2" ref="/root/formData/QLTYCD_" appearance="minimal" editmode="input" showvalue="true" style="left:487px; top:5px; width:220px; height:20px; border-color:#000000; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/comboData/QLTYCD/QLTYCDRESULT_Row">
- <label ref="QLTY_CD_CFNM"/>
- <value ref="QLTY_CD"/>
- </itemset>
- </choices>
- </select1>
- <line id="line2" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line1" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- </xhtml:body>
- </xhtml:html>
|