123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHR00400.xrw
- * 설 명 : 결과예문선택
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.08.13
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <rsltexmpcdlst>
- <item>
- <sel/>
- <rsltexmpcd/>
- <rsltexmpcnts/>
- </item>
- </rsltexmpcdlst>
- </main>
- <send>
- <srchrsltexmpcd/>
- <srchrsltexmpcnts/>
- <srchinstcd/>
- <srchhealexamflag/>
- </send>
- <init/>
- <hidden/>
- <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="TRAHB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltexmpcdlst"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 초기화
- * SPAHR00400_PARAM1: 다중선택여부(Y/N)
- * SPAHR00400_PARAM2: 목적노드Set
- * SPAHR00400_PARAM3: 코드 목적노드
- * SPAHR00400_PARAM4: 내용 목적노드
- * SPAHR00400_PARAM5: 검색코드
- * SPAHR00400_PARAM6: 검색내용
- * SPAHR00400_PARAM7: 건진구분
- */ function fInit(){
- model.removeNodeset(grd_exmplst.nodeset);
- if( checkOpener() ){
- model.setValue("/root/send/srchrsltexmpcd" ,opener.javascript.getParameter("SPAHR00400_PARAM5"));
- model.setValue("/root/send/srchrsltexmpcnts" ,opener.javascript.getParameter("SPAHR00400_PARAM6"));
- model.setValue("/root/send/srchhealexamflag" ,opener.javascript.getParameter("SPAHR00400_PARAM7"));
- model.refresh();
-
- if( (model.getValue("/root/send/srchrsltexmpcd") == "") && (model.getValue("/root/send/srchrsltexmpcnts") == "") ){
- return ;
- }
- }
- fGetRsltExmpList();
- }
- /**
- * 결과예문(소견) 조회
- */
- function fGetRsltExmpList(){
- model.removeNodeset(grd_exmplst.nodeset);
- //alert(getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
- submit("TRAHB00701");
- }
- /**
- * 선택 결과문구 set
- */ function fSetData(){
- if( checkOpener() ){
- var vDestNodeSet = opener.javascript.getParameter("SPAHR00400_PARAM2"); //목적노드Set
- var vDestNodeCd = opener.javascript.getParameter("SPAHR00400_PARAM3"); //코드 목적노드
- var vDestNodeNm = opener.javascript.getParameter("SPAHR00400_PARAM4"); //내용 목적노드
- var vMulti = opener.javascript.getParameter("SPAHR00400_PARAM1");// 다중선택여부(Y/N)
- if( vMulti == "N" ){
- var idx = grd_exmplst.row;
- if( idx < 1) return ;
- opener.model.setValue(vDestNodeCd , grd_exmplst.valueMatrix(idx, 1)) ;
- opener.model.setValue(vDestNodeNm , grd_exmplst.valueMatrix(idx, 2)) ;
- }
- else {
- var nodeList = instance1.selectNodes(grd_exmplst.nodeset + "[sel='Y']");
- var rCSV = getNodeListCSV(nodeList);
- setCSVToNode("/root/temp", rCSV);
- copyNodeListType(vDestNodeSet, "/root/temp/list", "replace", opener.model , model);
- }
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag", "ok");
- opener.model.refresh();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="542" pageheight="495" guideline="1,1194;1,518;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:460px; ">
- <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_rsltexmpnm" ref="/root/send/srchrsltexmpcnts" class="input_search" style="left:230px; top:8px; width:190px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_rsltexmpcd" ref="/root/send/srchrsltexmpcd" class="input_search" style="left:65px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:170px; top:8px; width:65px; height:17px; ">내용 :</caption>
- <caption id="caption2" class="search_name" style="left:6px; top:8px; width:64px; height:17px; ">코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRsltExmpList();
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:517px; y2:38px; "/>
- <datagrid id="grd_exmplst" nodeset="/root/main/rsltexmpcdlst/item" caption="V^예문코드^결과예문내용" colsep="^" colwidth="28, 56, 382" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:45px; width:517px; height:410px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox" visibility="hidden"/>
- <col ref="rsltexmpcd"/>
- <col ref="rsltexmpcnts"/>
- </datagrid>
- </group>
- <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();
- var idx = grd_exmplst.row;
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag", "ok");
- opener.model.makeNode("/root/temp/value");
- opener.model.setValue("/root/temp/value", model.getValue("/root/main/rsltexmpcdlst/item["+idx+"]/rsltexmpcnts" ) );
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.model.makeNode("/root/temp/okflag");
- opener.model.setValue("/root/temp/okflag", "");
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|