| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?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>
- <ABBSYM/>
- <ROWNUM/>
- </formData>
- <comboData>
- </comboData>
- <initData/>
- <datagrid1/>
- <interface>
- <SPEC_ABBSYM/>
- <SPEC_STL_GRD/>
- </interface>
- </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[
- var isInit = false;
- function Init(node)
- {
- InitParams(node);
- if(!isInit)
- {
- commSubmit("UIB010340-service", "find_spec", "glueAction.do");
- model.copyNode("/root/initData" , "/root/resData/ABBSYM_RESULTS_VO");
- model.refresh();
- combo1.select(0);
- isInit = true;
- }
- }
-
- function find()
- {
- model.removenode("/root/reqData");
- model.makeNode("/root/reqData");
-
- //查询前两个订单
- model.setValue("/root/formData/ROWNUM","2");
-
- commSendReq("/root/formData");
- commSubmit("UIB010340-service", "find", "glueAction.do");
- model.copyNode("/root/datagrid1","/root/resData/SPEC_STATUS_RESULTS_VO");
- model.refresh();
-
- setRowColor();
- }
-
- function setRowColor()
- {
- for(var i = 2;i < datagrid1.rows;i++)
- {
- var flag = datagrid1.valueMatrix(i,datagrid1.colRef("FLAG"));
- if(flag == "1")
- {
- datagrid1.rowStyle(i, "data", "background-color") = "#ffff99";
- }
- if(flag == "2")
- {
- datagrid1.rowStyle(i, "data", "background-color") = "#f56009";
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="980" pageheight="620" style="font-family:宋体; ">
- <caption id="caption1" class="cell" style="left:0px; top:5px; width:86px; height:20px; text-align:left; border-color:#000000; border-style:solid; ">·标准号</caption>
- <select1 id="combo1" ref="/root/formData/ABBSYM" appearance="minimal" editmode="input" showvalue="false" style="left:88px; top:5px; width:372px; height:20px; border-color:#000000; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/initData/ABBSYM_RESULTS_Row">
- <label ref="LABEL"/>
- <value ref="VALUE"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" style="x1:0px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line3" style="x1:0px; y1:30px; x2:980px; y2:30px; "/>
- <datagrid id="datagrid1" nodeset="/root/datagrid1/SPEC_STATUS_RESULTS_Row" allowuserresize="false" caption="标准号^标准钢号^是否有设计规格标准^是否有设计规格标准^是否有设计规格标准^是否有设计规格标准^接收的订单号^代码(隐)|标准号^标准钢号^标准成分^标准材质^标准交付条件^Design key^接收的订单号^代码(隐)" colsep="^" colwidth="245, 140, 60, 60, 60, 60, 100, 100" defaultrows="30" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:34px; width:980px; height:586px; border-color:#000000; border-style:solid; ">
- <col ref="SPEC_ABBSYM"/>
- <col ref="SPEC_STL_GRD"/>
- <col ref="SI"/>
- <col ref="SQ"/>
- <col ref="KD"/>
- <col ref="KP"/>
- <col editable="false" ref="ORD" type="inputbutton"/>
- <col ref="FLAG" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("ORD")) == "")
- return;
- model.makeValue("/root/interface/SPEC_ABBSYM",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SPEC_ABBSYM")));
- model.makeValue("/root/interface/SPEC_STL_GRD",datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("SPEC_STL_GRD")));
- var vleft = window.screenLeft + window.width/2+150; //- 355;
- var vtop = window.screenTop + window.height/2- 150; //- 250;
- window.load("./_UIB010340.xrw",
- "modal",
- "",
- "left:"+vleft+"; top:"+vtop+"; width:310; height:410; sysmenu:visible; min:visible; max:true; resize:true; caption:hidden;",
- "/root/interface", "/root/initData");
- Init();
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|