123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPCHT00800.xrw
- * 설 명 : 판정코드검색
- * 설 계 자 : 차재훈
- * 작 성 자 : 차재훈
- * 작 성 일 : 2008.08.20
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <etclst>
- <item>
- <etccdkey/>
- <etccd/>
- <etcdetlnm/>
- </item>
- </etclst>
- <detlcodelst>
- <item>
- <etcdetlcd/>
- <etcdetlnm/>
- </item>
- </detlcodelst>
- </main>
- <send>
- <clscd/>
- <req>
- <clscd/>
- <etccd/>
- </req>
- </send>
- <init>
- <selectinput>
- <item>
- <etcdetlnm/>
- <etcdetlcd/>
- </item>
- </selectinput>
- </init>
- <hidden>
- <item/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var rsltflag = opener.window.javascript.getParameter("rsltflag");
- if( rsltflag == "O"){
- cmb_clscd.visible = false;
- cmb_clscd2.disabled = true;
- model.setValue("/root/send/clscd", "R");//선택형
- fGetEtcList();
- }else{
- cmb_clscd.visible = true;
- cmb_clscd2.visible = false;
- }
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRCHT00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/etclst"/>
- <submission id="TRCHT00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detlcodelst"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 분류코드 리스트 조회
- */
- function fGetEtcList(){
- model.removeNodeset("/root/main/etclst/item");
- model.removeNodeset("/root/main/detlcodelst/item");
- var ret = submit("TRCHT00801");
- return ret;
- }
-
- /**
- * 상세코드 리스트 조회
- */
- function fGetDetlCodeList(){
- var idx = grd_etclst.row;
- if( idx < 1) return ;
- model.removeNodeset("/root/main/detlcodelst/item");
- model.setValue("/root/send/req/clscd", model.getValue("/root/send/clscd"));
- model.setValue("/root/send/req/etccd", grd_etclst.valueMatrix(idx, grd_etclst.colRef("etccd")));
- var ret = submit("TRCHT00802");
- return ret;
- }
-
- //=========================//
- //선택된 값 부모창에 넘김 //
- //=========================//
- function fGetOpenerSend(){
- var grid = grd_detlcodelst;
- var rsltflag = opener.window.javascript.getParameter("rsltflag");
- var judgcdpath = opener.window.javascript.getParameter("receive_judgcd_path");
- var judgnmpath = opener.window.javascript.getParameter("receive_judgnm_path");
-
- var clscd_path = opener.window.javascript.getParameter("receive_clscd_path");
- var etccd_path = opener.window.javascript.getParameter("receive_etccd_path");
- var etcdetlcd_path = opener.window.javascript.getParameter("receive_etcdetlcd_path");
- var etcdetlnm_path = opener.window.javascript.getParameter("receive_etcdetlnm_path");
- if (grid.row > 0){
- var clscd = model.getValue("/root/send/req/clscd");
- var etccd = model.getValue("/root/send/req/etccd");
- var etcdetlcd = grid.valueMatrix( grid.row, grid.colRef("etcdetlcd"));
- var etcdetlnm = grid.valueMatrix( grid.row, grid.colRef("etcdetlnm"));
- var joincd = clscd + etccd + etcdetlcd;
- if(rsltflag == "joincode"){//code합하기
- opener.model.setValue(judgcdpath, joincd);
- opener.model.setValue(judgnmpath, etcdetlnm);
- }else if(rsltflag == "O"){//선택형
- opener.model.setValue(judgnmpath, etcdetlnm);
- }else if(rsltflag == "4code"){//4code
- opener.model.setValue(clscd_path, clscd);
- opener.model.setValue(etccd_path, etccd);
- opener.model.setValue(etcdetlcd_path, etcdetlcd);
- opener.model.setValue(etcdetlnm_path, etcdetlnm);
- }
- opener.model.refresh();
- window.close();
- } else {
- messageBox("조회하신 후 목록을 ","C002");
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="780" pageheight="520" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:755px; height:465px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:40px; width:78px; height:13px; ">분류코드</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:55px; x2:360px; y2:55px; "/>
- <group id="grp_sea" style="left:0px; top:0px; width:750px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:750px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">대분류 :</caption>
- <line id="line13" class="line_4" style="x1:662px; y1:7px; x2:662px; y2:29px; "/>
- <select1 id="cmb_clscd" ref="/root/send/clscd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>1차건진</label>
- <value>F</value>
- </item>
- <item>
- <label>2차건진</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetEtcList();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_clscd2" ref="/root/send/clscd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>선택형결과</label>
- <value>R</value>
- </item>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:678px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetEtcList();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption3" class="tit_2" style="left:371px; top:40px; width:78px; height:13px; ">상세코드</caption>
- <line id="line2" class="line_1" style="x1:366px; y1:55px; x2:750px; y2:55px; "/>
- <datagrid id="grd_etclst" nodeset="/root/main/etclst/item" caption="caption1^코드^분류코드명" colsep="^" colwidth="0, 100, 214" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:60px; width:360px; height:400px; ">
- <col ref="etccdkey" visibility="hidden"/>
- <col ref="etccd" maxlength="12"/>
- <col ref="etcdetlnm" maxlength="50"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetDetlCodeList();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_detlcodelst" nodeset="/root/main/detlcodelst/item" caption="코드^상세코드명" colsep="^" colwidth="100, 240" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:366px; top:60px; width:384px; height:400px; ">
- <col ref="etcdetlcd" maxlength="6"/>
- <col ref="etcdetlnm" maxlength="50"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetOpenerSend();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:465px; width:755px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:699px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_conform" class="btn4_letter2" style="left:640px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetOpenerSend();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|