123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHA00500.xrw
- * 설 명 : 기관코드선택
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.05.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>
- <cdlst>
- <item>
- <cmpycd/>
- <cmpynm/>
- <cmpyid/>
- <cmpyno/>
- <inducsid/>
- <zipcd1/>
- <zipcd2/>
- <addr/>
- <detladdr/>
- <telno/>
- <remcnts/>
- </item>
- </cdlst>
- </main>
- <send>
- <srchcdnm/>
- <srchinstcd/>
- <srchcond>cd</srchcond>
- <srchflag/>
- </send>
- <init/>
- <hidden>
- </hidden>
- <target>
- <srchflag/>
- <srchcond/>
- <srchcdnm/>
- <srchinstcd/>
- <openerid/>
- <desxpathcd/>
- <desxpathnm/>
- </target>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRAHA00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cdlst"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /**
- * SPAHA00500_PARAM1 : 코드구분 공통코드 A0114참조
- * SPAHA00500_PARAM2 : 검색구분(cd/nm)
- * SPAHA00500_PARAM3 : 검색조건(코드/명칭)
- * SPAHA00500_PARAM4 : 기관코드
- * SPAHA00500_PARAM5 : openerid
- * SPAHA00500_PARAM6 : code값을 setting할 목적노드
- * SPAHA00500_PARAM7 : name값을 setting할 목적노드
- */
- function fInit(){
- model.removeNodeset("/root/main/cdlst/item");
- if( checkOpener() ){
- model.setValue("/root/send/srchflag" , opener.javascript.getParameter("SPAHA00500_PARAM1"));
- model.setValue("/root/send/srchcond" , opener.javascript.getParameter("SPAHA00500_PARAM2"));
- model.setValue("/root/send/srchcdnm" , opener.javascript.getParameter("SPAHA00500_PARAM3"));
- model.setValue("/root/send/srchinstcd" , opener.javascript.getParameter("SPAHA00500_PARAM4"));
-
- if(model.getValue("/root/send/srchcdnm") != "" ) {
- fGetComCdList();
- }
- }
- model.setFocus("ipt_cdnm");
- model.refresh();
- }
- /**
- ** srchflag : 검색구분 공통코드 A0114참조
- ** 01 판정의
- ** 02 건강보험공단
- ** 03 관할군병원
- ** 04 산업안전공단
- ** 05 보건소
- ** 06 노동청
- ** 07 지도원
- ** 08 사업체
- */
- function fGetComCdList(){
- var vFlag = model.getValue("/root/send/srchflag");
- if( vFlag == "" ){
- model.setValue("/root/send/srchflag", "08");
- }
- if( model.getValue("/root/send/srchinstcd") == ""){
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
- }
- submit("TRAHA00105");
-
- //만료된 기간 색 표시
- grd_cdlst.rebuildStyle();
- for(var i = 1; i<grd_cdlst.rows; i++){
- if(grd_cdlst.valueMatrix(i, grd_cdlst.colRef("expireyn")) == "Y"){
- grd_cdlst.rowStyle(i, "data", "color") = "#ff0000";
- }
- }
- }
- /**
- * opener id에 따른 분화
- */
- function fSetData(){
- if( checkOpener() ){
- var vOpener = opener.javascript.getParameter("SPAHA00500_PARAM5") ;
- if( vOpener == "" ) return ;
-
- var idx = grd_cdlst.row;
- if( idx < 1) return ;
-
- var vFg = model.getValue("/root/send/srchflag");
- if(( vOpener == "SMAHB00500") && ( vFg == "08" ) )//사업장계약정보
- {
- copyNodesetType("/root/main/coninfo/cmpyinfo/item", "/root/main/cdlst/item[" + idx + "]", "replace", opener.model, model );
- }
- else{
- var desCd = opener.javascript.getParameter("SPAHA00500_PARAM6") ;
- var desNm = opener.javascript.getParameter("SPAHA00500_PARAM7") ;
- opener.model.makeNode(desCd);
- opener.model.makeNode(desNm);
- opener.model.setValue( desCd , model.getValue("/root/main/cdlst/item[" + idx + "]/cmpycd" ) );
- opener.model.setValue(desNm, model.getValue("/root/main/cdlst/item[" + idx + "]/cmpynm" ) );
- }
- opener.model.refresh();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="534" pageheight="543" guideline="1,1194;1,517;" 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:515px; ">
- <datagrid id="grd_cdlst" nodeset="/root/main/cdlst/item" caption="코드^코드명^기관종료여부" colsep="^" colwidth="83, 384, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:49px; width:517px; height:463px; ">
- <col ref="cmpycd"/>
- <col ref="cmpynm"/>
- <col ref="expireyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fSetData();
- window.close();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:517px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComCdList();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:429px; y1:11px; x2:429px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_srchcond2" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:105px; top:11px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>코드</label>
- <value>cd</value>
- </item>
- <item>
- <label>명칭</label>
- <value>nm</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setFocus("ipt_cdnm");
- ]]>
- </script>
- </select1>
- <input id="ipt_cdnm" ref="/root/send/srchcdnm" class="input_search" style="left:188px; top:11px; width:227px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:46px; x2:517px; y2:46px; "/>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:515px; width:517px; height:28px; ">
- <button id="button9" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="onclick"/>
- </button>
- <button id="button4" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetData();
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:5px; top:5px; width:360px; height:20px; font-weight:bold; color:#0000ff; ">
- <![CDATA[※ 붉은 글씨는 기간 만료된 기관입니다.
- ]]>
- </caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|