123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPZHI00200_업체선택.xrw
- * 설 명 : 업체선택
- * 설 계 자 : 서원식
- * 작 성 자 : 서원식
- * 작 성 일 : 2012.11.21
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <cmpylist>
- <item>
- <cmpycd/>
- <cmpynm/>
- <cmpyno/>
- <prsdnm/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <telno/>
- <faxno/>
- <remcnts/>
- <todd/>
- <fromdd/>
- <expireyn/>
- </item>
- </cmpylist>
- </main>
- <send>
- <searchcond>cd</searchcond>
- <searchcdnm/>
- </send>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZHI00201" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send" replace="instance" resultref="/root/main/cmpylist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*
- * SPZHI00200_PARAM1 : 현재화면ID
- * SPZHI00200_PARAM2 : 검색구분(cd/nm)
- * SPZHI00200_PARAM3 : 검색명
- * SPZHI00200_PARAM4 : code값을 setting할 목적노드
- * SPZHI00200_PARAM5 : name값을 setting할 목적노드
- */
- function fInit(){
- model.removeNodeset("/root/main/cmpylist/item");
- if(checkOpener()){
- model.setValue("/root/send/searchcond" , opener.javascript.getParameter("SPZHI00200_PARAM2"));
- model.setValue("/root/send/searchcdnm" , opener.javascript.getParameter("SPZHI00200_PARAM3"));
- if(model.getValue("/root/send/searchcdnm") != ""){
- fGetCmpyList();
- }
- }
- model.setFocus("ipt_cdnm");
- model.refresh();
- }
- /*
- * 업체정보 조회
- */
- function fGetCmpyList(){
- submit("TRZHI00201");
-
- //만료된 기간색 표시
- grd_cmpylist.rebuildStyle();
- for(var i=1; i<grd_cmpylist.rows; i++){
- if(grd_cmpylist.valueMatrix(i, grd_cmpylist.colRef("expireyn")) == "Y"){
- grd_cmpylist.rowStyle(i, "data", "color") = "#ff0000";
- }
- }
- }
-
- /*
- * opener id에 따른 분화
- */
- function fSetData(){
- if(checkOpener()){
- var vOpener = opener.javascript.getParameter("SPZHI00200_PARAM1");
- if(vOpener == "") return;
-
- var idx = grd_cmpylist.row;
- if(idx < 1) return;
-
- var desCd = opener.javascript.getParameter("SPZHI00200_PARAM4");
- var desNm = opener.javascript.getParameter("SPZHI00200_PARAM5");
- opener.model.makeNode(desCd);
- opener.model.makeNode(desNm);
- opener.model.setValue(desCd , model.getValue("/root/main/cmpylist/item[" + idx + "]/cmpycd"));
- opener.model.setValue(desNm , model.getValue("/root/main/cmpylist/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_cmpylist" nodeset="/root/main/cmpylist/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>
- <select1 id="cmb_cond" ref="/root/send/searchcond" 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/searchcdnm" 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>
- <line id="line13" style="x1:429px; y1:11px; x2:429px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- <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[
- fGetCmpyList();
- ]]>
- </script>
- </button>
- </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; ">
- <caption id="caption1" style="left:5px; top:5px; width:360px; height:20px; font-weight:bold; color:#0000ff; ">
- <![CDATA[※ 붉은 글씨는 기간 만료된 기관입니다.
- ]]>
- </caption>
- <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>
- <button id="button9" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="onclick"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|