123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCCM00200_우편번호검색.xrw
- * Summary : 우편번호검색
- * Programmer : Roger Kim
- * Date Written : 2007.04.02
- * History :
- * Remark :
- -->
- <?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>
- <list>
- <zipcodelist>
- <serialnum/>
- <seqno/>
- <zipcd/>
- <address/>
- <zipcd1/>
- <zipcd2/>
- <zipcdaddr/>
- <citycd/>
- <citycntyareacd/>
- <blokcd/>
- </zipcodelist>
- </list>
- <search>
- <searchcondition>srchzipcd</searchcondition>
- <searchterm/>
- </search>
- </main>
- <send>
- <data>
- </data>
- </send>
- </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 search_condition = opener.window.javascript.getParameter("search_condition");
- var search_term = opener.window.javascript.getParameter("search_term");
- var receive_zipcd1_path = opener.window.javascript.getParameter("receive_zipcd1_path");
- var receive_zipcd2_path = opener.window.javascript.getParameter("receive_zipcd2_path");
- var receive_zipcdseq_path = opener.window.javascript.getParameter("receive_zipcdseq_path");
- var receive_zipcdaddr_path = opener.window.javascript.getParameter("receive_zipcdaddr_path");
- var receive_citycd_path = opener.window.javascript.getParameter("receive_citycd_path");
- var receive_citycntyareacd_path = opener.window.javascript.getParameter("receive_citycntyareacd_path");
- var receive_blokcd_path = opener.window.javascript.getParameter("receive_blokcd_path");
- // 두번째 검색시 첫번째 검색내용을 초기화시킴.
- model.removeNodeset("/root/main/list/zipcodelist");
-
- model.setValue("/root/main/search/searchcondition", search_condition);
- model.setValue("/root/main/search/searchterm", search_term);
-
- model.makeValue("/root/send/data/searchcondition", search_condition);
- model.makeValue("/root/send/data/searchterm", "%"+search_term+"%");
- // 처음 검색 팝업을 띄울 때에는 기본 정보를 안 보여주고, 한번 검색 한 이후에는 최종선택한 정보를 기본적으로 가져옴..
- if ( search_term == "-" ){
- model.setValue("/root/main/search/searchterm", "");
- }
-
- if ( search_term == "-" || search_term == "" || search_term == null ){
- model.setFocus("ipt_search_item");
- } else {
- submit("TRCCM00201");
- model.SetFocus("grd_zipcodelist");
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRCCM00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" add="bottom" resultref="/root/main/list"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="506" pageheight="350" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_Condition" scroll="auto" style="left:0px; top:0px; width:490px; height:305px; ">
- <group id="group2" style="left:0px; top:0px; width:489px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:489px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">검색조건</caption>
- <line id="line1" style="x1:403px; y1:7px; x2:403px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:418px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = model.getValue("/root/main/search/searchcondition");
- var search_term = model.getValue("/root/main/search/searchterm");
- var receive_zipcd1_path = opener.window.javascript.getParameter("receive_zipcd1_path");
- var receive_zipcd2_path = opener.window.javascript.getParameter("receive_zipcd2_path");
- var receive_zipcdseq_path = opener.window.javascript.getParameter("receive_zipcdseq_path");
- var receive_zipcdaddr_path = opener.window.javascript.getParameter("receive_zipcdaddr_path");
- var receive_citycd_path = opener.window.javascript.getParameter("receive_citycd_path");
- var receive_citycntyareacd_path = opener.window.javascript.getParameter("receive_citycntyareacd_path");
- var receive_blokcd_path = opener.window.javascript.getParameter("receive_blokcd_path");
-
- if (isRequiredControls("ipt_search_item")){
- model.removeNodeset("/root/main/list/zipcodelist");
-
- model.makeValue("/root/send/data/searchcondition", search_condition);
- model.makeValue("/root/send/data/searchterm", "%"+search_term+"%");
-
- submit("TRCCM00201");
- model.SetFocus("grd_zipcodelist");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <input id="ipt_search_item" ref="/root/main/search/searchterm" class="input_s_essential" style="left:263px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:150px; height:19px; ">
- <choices>
- <item>
- <label>우편번호</label>
- <value>srchzipcd</value>
- </item>
- <item>
- <label>동명/아파트명/건물명</label>
- <value>srchcombination</value>
- </item>
- <item>
- <label>주소</label>
- <value>srchaddress</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:40px; width:135px; height:14px; vertical-align:middle; ">우편번호 목록</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:55px; x2:489px; y2:55px; "/>
- <datagrid id="grd_zipcodelist" nodeset="/root/main/list/zipcodelist" allowselection="false" caption="번호^우편번호^등록순서^주소^우편번호1^우편번호2^우편번호주소^시코드^구코드^동코드" colwidth="0, 100, 0, 340, 0, 0, 0, 0, 0, 0" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" style="left:0px; top:60px; width:489px; height:243px; ">
- <col ref="serialnum" visibility="hidden"/>
- <col ref="zipcd" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="address"/>
- <col ref="zipcd1" visibility="hidden" style="text-align:center; "/>
- <col ref="zipcd2" visibility="hidden" style="text-align:center; "/>
- <col ref="zipcdaddr" visibility="hidden"/>
- <col ref="citycd" visibility="hidden"/>
- <col ref="citycntyareacd" visibility="hidden"/>
- <col ref="blokcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var receive_zipcd1_path = opener.window.javascript.getParameter("receive_zipcd1_path");
- var receive_zipcd2_path = opener.window.javascript.getParameter("receive_zipcd2_path");
- var receive_zipcdseq_path = opener.window.javascript.getParameter("receive_zipcdseq_path");
- var receive_zipcdaddr_path = opener.window.javascript.getParameter("receive_zipcdaddr_path");
- var receive_citycd_path = opener.window.javascript.getParameter("receive_citycd_path");
- var receive_citycntyareacd_path = opener.window.javascript.getParameter("receive_citycntyareacd_path");
- var receive_blokcd_path = opener.window.javascript.getParameter("receive_blokcd_path");
-
- var row = grd_zipcodelist.row;
- var zipcd1 = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcd1"));
- var zipcd2 = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcd2"));
- var zipcdseq = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("seqno"));
- var zipcdaddr = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcdaddr"));
- var citycd = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("citycd"));
- var citycntyareacd = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("citycntyareacd"));
- var blokcd = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("blokcd"));
-
- if ((grd_zipcodelist.row > 0) && grd_zipcodelist.isCell(event.target)){
- if(receive_zipcd1_path != ""){
- opener.model.setValue(receive_zipcd1_path, zipcd1);
- }
- if(receive_zipcd2_path != ""){
- opener.model.setValue(receive_zipcd2_path, zipcd2);
- }
- if(receive_zipcdseq_path != ""){
- opener.model.makeValue(receive_zipcdseq_path, zipcdseq);
- }
- if(receive_zipcdaddr_path != ""){
- opener.model.setValue(receive_zipcdaddr_path, zipcdaddr);
- }
- if (receive_citycd_path != "") { opener.model.setValue(receive_citycd_path, citycd); }
- if (receive_citycntyareacd_path != "") { opener.model.setValue(receive_citycntyareacd_path, citycntyareacd); }
- if (receive_blokcd_path != "") { opener.model.setValue(receive_blokcd_path, blokcd); }
- opener.model.refresh();
- // opener.model.setFocus("ipt_detladdr");
- window.close();
- } else {
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:305px; width:489px; height:27px; ">
- <button id="button2" class="btn4_letter2" style="left:373px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var receive_zipcd1_path = opener.window.javascript.getParameter("receive_zipcd1_path");
- var receive_zipcd2_path = opener.window.javascript.getParameter("receive_zipcd2_path");
- var receive_zipcdseq_path = opener.window.javascript.getParameter("receive_zipcdseq_path");
- var receive_zipcdaddr_path = opener.window.javascript.getParameter("receive_zipcdaddr_path");
- var receive_citycd_path = opener.window.javascript.getParameter("receive_citycd_path");
- var receive_citycntyareacd_path = opener.window.javascript.getParameter("receive_citycntyareacd_path");
- var receive_blokcd_path = opener.window.javascript.getParameter("receive_blokcd_path");
-
- var row = grd_zipcodelist.row;
- var zipcd1 = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcd1"));
- var zipcd2 = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcd2"));
- var zipcdseq = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("seqno"));
- var zipcdaddr = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcdaddr"));
- var citycd = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("citycd"));
- var citycntyareacd = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("citycntyareacd"));
- var blokcd = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("blokcd"));
-
- if ((grd_zipcodelist.row > 0) && (grd_zipcodelist.col > 1)) {
- if(receive_zipcd1_path != ""){
- opener.model.setValue(receive_zipcd1_path, zipcd1);
- }
- if(receive_zipcd2_path != ""){
- opener.model.setValue(receive_zipcd2_path, zipcd2);
- }
- if(receive_zipcdseq_path != ""){
- opener.model.makeValue(receive_zipcdseq_path, zipcdseq);
- }
- if(receive_zipcdaddr_path != ""){
- opener.model.setValue(receive_zipcdaddr_path, zipcdaddr);
- }
- if (receive_citycd_path != "") { opener.model.setValue(receive_citycd_path, citycd); }
- if (receive_citycntyareacd_path != "") { opener.model.setValue(receive_citycntyareacd_path, citycntyareacd); }
- if (receive_blokcd_path != "") { opener.model.setValue(receive_blokcd_path, blokcd); }
- opener.model.refresh();
- // opener.model.setFocus("ipt_detladdr");
- window.close();
- } else {
- messageBox("조회하신 후 목록을 ","C002");
- model.SetFocus("grd_zipcodelist");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:432px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|