123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * 제 목 : SPAHR00600.xrw
- * 설 명 : 결과치출력항목선택
- * 설 계 자 : 윤찬우
- * 작 성 자 : 윤찬우
- * 작 성 일 : 2008.07.07
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>결과치출력항목선택</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <resultcheck>
- <item>
- <sel/>
- <testcd/>
- <testhannm/>
- <tstengnm/>
- <todd/>
- <instcd/>
- </item>
- </resultcheck>
- </main>
- <send>
- <srchinstcd/>
- <save>
- <req/>
- </save>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRAHR00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resultcheck"/>
- <submission id="TXAHR00600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/req" replace="instance" resultref="/root/temp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- if( checkOpener() ){
- model.removeNodeset("/root/main/resultcheck/item");
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
- submit("TRAHR00600");
- }
- }
-
- function fSetData(){
- // var nodeList = instance1.selectNodes(grd_testlst.nodeset + "[sel='Y']");
- // for( var i = 0 ; i <= nodeList.length ; i++){
- // copyNodeListType("/root/send/save/req", "/root/main/resultcheck/item["+ i +"]", "after");
- // }
- //
- for( var i = 0 ; i <= grd_testlst.rows ; i++){
- if(grd_testlst.valueMatrix(i,grd_testlst.colRef("sel")) == "Y") {
- var idx = i -1;
- copyNodeListType("/root/send/save/req", "/root/main/resultcheck/item["+ i +"]", "after");
- }
- }
- submit("TXAHR00600");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="542" pageheight="495" guideline="1,1194;1,557;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:461px; width:518px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetData();
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="onclick"/>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:460px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:0px; x2:517px; y2:0px; "/>
- <datagrid id="grd_testlst" nodeset="/root/main/resultcheck/item" caption="선택^테스트코드^테스트명(한)^테스트명(영)" colsep="^" colwidth="31, 91, 182, 189" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:0px; width:517px; height:425px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="testcd"/>
- <col ref="testhannm"/>
- <col ref="testengnm"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|