123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <zipcd>
- <zipcdhead/>
- <zipcdfoot/>
- <seqno/>
- <city/>
- <citycntyarea/>
- <blok/>
- <mile/>
- <isds/>
- <sanaddrno/>
- <frommainaddrno/>
- <fromsubaddrno/>
- <tomainaddrno/>
- <tosubaddrno/>
- <apt/>
- <fromblok/>
- <toblok/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastrgstdt/>
- <lastrgstrid/>
- <delyon/>
- <deldt/>
- <delemplno/>
- </zipcd>
- </list>
- <mode/>
- <modellabel/>
- <data>
- <zipcdhead/>
- <zipcdfoot/>
- <seqno/>
- <city/>
- <citycntyarea/>
- <blok/>
- <mile/>
- <isds/>
- <sanaddrno/>
- <frommainaddrno/>
- <fromsubaddrno/>
- <tomainaddrno/>
- <tosubaddrno/>
- <apt/>
- <fromblok/>
- <toblok/>
- <delyn/>
- </data>
- <search>
- <searchcondition>addr</searchcondition>
- <searchterm/>
- </search>
- </main>
- <send>
- <data>
- <searchcondition/>
- <searchterm/>
- </data>
- <data>
- <zipcdhead/>
- <zipcdfoot/>
- <seqno/>
- <city/>
- <citycntyarea/>
- <blok/>
- <mile/>
- <isds/>
- <sanaddrno/>
- <frommainaddrno/>
- <fromsubaddrno/>
- <tomainaddrno/>
- <tosubaddrno/>
- <apt/>
- <fromblok/>
- <toblok/>
- <fstrgstrid/>
- <lastrgstrid/>
- </data>
- </send>
- <hidden>
- <temp/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removenode("/root/main/list");
- model.makeNode("/root/main/list");
- fInitMainDataInstance();
- model.refresh();
- fDisableMainDataControls(true);
- ]]>
- </script>
- <submission id="TRZBP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/list">
- <script type="javascript" ev:event="xforms-submit-error">
- <![CDATA[
-
- ]]>
- </script>
- </submission>
- <submission id="TXZBP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZBP00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZBP00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fDisableMainDataControls(disabled){
- ipt_zipcdhead.disabled = disabled;
- ipt_zipcdfoot.disabled = disabled;
- ipt_seqno.disabled = disabled;
- ipt_city.disabled = disabled;
- ipt_citycntyarea.disabled = disabled;
- ipt_mile.disabled = disabled;
- ipt_isds.disabled = disabled;
- ipt_sanaddrno.disabled = disabled;
- ipt_rommainaddrno.disabled = disabled;
- ipt_fromsubaddrno.disabled = disabled;
- ipt_tomainaddrno.disabled = disabled;
- ipt_tosubaddrno.disabled = disabled;
- ipt_apt.disabled = disabled;
- ipt_fromblok.disabled = disabled;
- ipt_toblok.disabled = disabled;
- cmb_delyn.disabled = disabled;
- ipt_blok.disabled = disabled;
- }
-
- function fInitMainDataInstance(){
- model.setValue("/root/main/data/zipcdhead", "");
- model.setValue("/root/main/data/zipcdfoot", "");
- model.setValue("/root/main/data/seqno", "");
- model.setValue("/root/main/data/city", "");
- model.setValue("/root/main/data/citycntyarea", "");
- model.setValue("/root/main/data/blok", "");
- model.setValue("/root/main/data/mile", "");
- model.setValue("/root/main/data/isds", "");
- model.setValue("/root/main/data/sanaddrno", "");
- model.setValue("/root/main/data/frommainaddrno", "");
- model.setValue("/root/main/data/fromsubaddrno", "");
- model.setValue("/root/main/data/tomainaddrno", "");
- model.setValue("/root/main/data/tosubaddrno", "");
- model.setValue("/root/main/data/apt", "");
- model.setValue("/root/main/data/fromblok", "");
- model.setValue("/root/main/data/toblok", "");
- model.setValue("/root/main/data/delyn", "");
- model.setValue("/root/main/modellabel", "");
- model.setValue("/root/main/mode", "");
- }
-
- function fFindZipCodeFromGrid(zipcodehead, zipcodefoot, seqno){
- for(var i=grd_zipcodelist.fixedRows; i<grd_zipcodelist.rows; i++){
- var comp_zipcodehead = grd_zipcodelist.valueMatrix(i, grd_zipcodelist.colRef("zipcdhead"));
- var comp_zipcodefoot = grd_zipcodelist.valueMatrix(i, grd_zipcodelist.colRef("zipcdfoot"));
- var comp_seqno = grd_zipcodelist.valueMatrix(i, grd_zipcodelist.colRef("seqno"));
- if( zipcodehead == comp_zipcodehead && zipcodefoot == comp_zipcodefoot && seqno == comp_seqno ){
- grd_zipcodelist.row = i;
- }
- }
- return grd_zipcodelist.row;
- }
-
- function fCopyGrid2Main(){
- var row = grd_zipcodelist.row;
- var zipcdhead = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcdhead"));
- var zipcdfoot = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcdfoot"));
- var seqno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("seqno"));
- var city = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("city"));
- var citycntyarea = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("citycntyarea"));
- var blok = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("blok"));
- var mile = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("mile"));
- var isds = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("isds"));
- var sanaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("sanaddrno"));
- var frommainaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("frommainaddrno"));
- var fromsubaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fromsubaddrno"));
- var tomainaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("tomainaddrno"));
- var tosubaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("tosubaddrno"));
- var apt = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("apt"));
- var fromblok = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fromblok"));
- var toblok = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("toblok"));
- var fstrgstdt = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fstrgstdt"));
- var fstrgstrid = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fstrgstrid"));
- var lastrgstdt = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("lastrgstdt"));
- var lastrgstrid = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("lastrgstrid"));
- var delyn = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("delyn"));
-
- model.setValue("/root/main/data/zipcdhead", zipcdhead);
- model.setValue("/root/main/data/zipcdfoot", zipcdfoot);
- model.setValue("/root/main/data/seqno", seqno);
- model.setValue("/root/main/data/city", city);
- model.setValue("/root/main/data/citycntyarea", citycntyarea);
- model.setValue("/root/main/data/blok", blok);
- model.setValue("/root/main/data/mile", mile);
- model.setValue("/root/main/data/isds", isds);
- model.setValue("/root/main/data/sanaddrno", sanaddrno);
- model.setValue("/root/main/data/frommainaddrno", frommainaddrno);
- model.setValue("/root/main/data/fromsubaddrno", fromsubaddrno);
- model.setValue("/root/main/data/tomainaddrno", tomainaddrno);
- model.setValue("/root/main/data/tosubaddrno", tosubaddrno);
- model.setValue("/root/main/data/apt", apt);
- model.setValue("/root/main/data/fromblok", fromblok);
- model.setValue("/root/main/data/toblok", toblok);
- model.setValue("/root/main/data/delyn", delyn);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">우편번호 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <line id="line4" class="line_2" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:152px; x2:1194px; y2:152px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
- <group id="group2" style="left:0px; top:14px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">검색조건</caption>
- <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmc_syscd" ref="/root/main/search/searchcondition" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:200px; height:19px; ">
- <choices>
- <item>
- <label>우편번호</label>
- <value>zipcd</value>
- </item>
- <item>
- <label>주소</label>
- <value>addr</value>
- </item>
- <item>
- <label>시군구</label>
- <value>citycntyarea</value>
- </item>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:1120px; top:5px; 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");
- if(search_term==""){
- messageBox("검색어를", "C001");
- return;
- }
-
- model.makeValue("/root/send/data/searchcondition", search_condition);
- model.makeValue("/root/send/data/searchterm", search_term+"%");
- submit("TRZBP00101");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/search/searchterm" class="input_default" appearance="input" style="left:302px; top:8px; width:240px; height:19px; "/>
- </group>
- <caption id="caption1" ref="/root/main/modellabel" class="tit_2" style="left:6px; top:555px; width:139px; height:14px; ">우편번호 입력/수정</caption>
- <line id="line1" class="line_1" style="top:575px; x1:0px; y1:570px; x2:1194px; y2:570px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:600px; width:100px; height:23px; vertical-align:middle; ">시군구</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:575; width:100px; height:23px; vertical-align:middle; ">우편번호 앞자리</caption>
- <caption id="caption9" class="cell_1" style="left:0px; top:625px; width:100px; height:23px; vertical-align:middle; ">산번지</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:650px; width:100px; height:23px; vertical-align:middle; ">끝부번지</caption>
- <caption id="caption20" class="tit_2" style="left:6px; top:62px; width:118px; height:14px; ">우편번호 목록</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:77px; x2:1194px; y2:77px; "/>
- <datagrid id="grd_zipcodelist" nodeset="/root/main/list/zipcd" caption="우편번호 앞자리^우편번호 뒷자리^일련번호^시도^시군구^읍면동^리^도서^산번지^시작주번지^시작부번지^끝주번지^끝부번지^아파트/건물명^동범위시작^동범위끝^권한 부서코드^최초 등록일시^최초 등록자 ID^최종 수정일시^최종 수정자 ID^삭제여부" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" style="left:0px; top:82px; width:1194px; height:465px; border-color:#808080; ">
- <col ref="zipcdhead"/>
- <col ref="zipcdfoot"/>
- <col ref="seqno"/>
- <col ref="city"/>
- <col ref="citycntyarea"/>
- <col ref="blok"/>
- <col ref="mile"/>
- <col ref="isds"/>
- <col ref="sanaddrno"/>
- <col ref="frommainaddrno"/>
- <col ref="fromsubaddrno"/>
- <col ref="tomainaddrno"/>
- <col ref="tosubaddrno"/>
- <col ref="apt"/>
- <col ref="fromblok"/>
- <col ref="toblok"/>
- <col ref="deptcd"/>
- <col ref="fstrgstdt"/>
- <col ref="fstrgstrid"/>
- <col ref="lastrgstdt"/>
- <col ref="lastrgstrid"/>
- <col ref="delyn"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/main/modellabel", "우편번호 상세보기");
- fCopyGrid2Main();
- model.refresh();
- fDisableMainDataControls(true);
- ]]>
- </script>
- </datagrid>
- <input id="ipt_city" ref="/root/main/data/city" class="input_default" appearance="input" style="left:926px; top:576px; width:240px; height:19px; "/>
- <button id="btn_delete" class="btn2_letter2" style="left:1145px; top:549px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/modellabel", "우편번호 삭제");
- model.setValue("/root/main/mode", "delete");
- var row = grd_zipcodelist.row;
- model.copyNode("/root/main/data", "/root/main/list/zipcd["+row+"]");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_update" class="btn2_letter2" style="left:1100px; top:549px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/modellabel", "우편번호 변경");
- model.setValue("/root/main/mode", "update");
- var row = grd_zipcodelist.row;
- model.copyNode("/root/main/data", "/root/main/list/zipcd["+row+"]");
- fDisableMainDataControls(false);
- ipt_zipcdhead.disabled = true;
- ipt_zipcdfoot.disabled = true;
- ipt_seqno.disabled = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter2" style="left:1055px; top:549px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitMainDataInstance();
- model.setValue("/root/main/data/delyn", "N");
- model.setValue("/root/main/modellabel", "우편번호 입력");
- model.setValue("/root/main/mode", "insert");
- model.refresh();
- fDisableMainDataControls(false);
- cmb_delyn.disabled = true;
- ]]>
- </script>
- </button>
- <input id="ipt_sanaddrno" ref="/root/main/data/sanaddrno" class="input_essential" style="left:101px; top:627px; width:172px; height:19px; "/>
- <input id="ipt_isds" ref="/root/main/data/isds" class="input_default" appearance="input" style="left:926px; top:602px; width:240px; height:19px; "/>
- <input id="ipt_citycntyarea" ref="/root/main/data/citycntyarea" class="input_essential" style="left:101px; top:602px; width:172px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:274px; top:650px; width:100px; height:23px; vertical-align:middle; ">아파트/건물명</caption>
- <input id="ipt_rommainaddrno" ref="/root/main/data/frommainaddrno" class="input_essential" style="left:375px; top:627px; width:172px; height:19px; "/>
- <caption id="caption15" class="cell_1" style="left:548px; top:625px; width:100px; height:23px; vertical-align:middle; ">시작부번지</caption>
- <input id="ipt_fromsubaddrno" ref="/root/main/data/fromsubaddrno" class="input_essential" style="left:649px; top:626px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption16" class="cell_1" style="left:825px; top:625px; width:100px; height:23px; vertical-align:middle; ">끝주번지</caption>
- <input id="ipt_tomainaddrno" ref="/root/main/data/tomainaddrno" class="input_default" appearance="input" style="left:926px; top:627px; width:240px; height:19px; "/>
- <input id="ipt_tosubaddrno" ref="/root/main/data/tosubaddrno" class="input_essential" style="left:101px; top:652px; width:172px; height:19px; "/>
- <caption id="caption17" class="cell_1" style="left:274px; top:625px; width:100px; height:23px; vertical-align:middle; ">시작주번지</caption>
- <input id="ipt_apt" ref="/root/main/data/apt" class="input_essential" style="left:375px; top:652px; width:172px; height:19px; "/>
- <caption id="caption18" class="cell_1" style="left:548px; top:650px; width:100px; height:23px; vertical-align:middle; ">동범위시작</caption>
- <input id="ipt_fromblok" ref="/root/main/data/fromblok" class="input_essential" style="left:649px; top:652px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <caption id="caption21" class="cell_1" style="left:825px; top:650px; width:100px; height:23px; vertical-align:middle; ">동범위끝</caption>
- <input id="ipt_toblok" ref="/root/main/data/toblok" class="input_default" appearance="input" style="left:926px; top:652px; width:240px; height:19px; "/>
- <caption id="caption22" class="cell_1" style="left:825; top:575; width:100px; height:23px; vertical-align:middle; ">시도</caption>
- <caption id="caption23" class="cell_1" style="left:548; top:575; width:100px; height:23px; vertical-align:middle; ">일련번호</caption>
- <caption id="caption25" class="cell_1" style="left:274px; top:575px; width:100px; height:23px; vertical-align:middle; ">우편번호 뒷자리</caption>
- <input id="ipt_seqno" ref="/root/main/data/seqno" class="input_essential" format="999999-9999999" style="left:649px; top:576px; width:175px; height:19px; "/>
- <input id="ipt_zipcdfoot" ref="/root/main/data/zipcdfoot" class="input_essential" style="left:375px; top:576px; width:172px; height:19px; "/>
- <select1 id="cmb_delyn" ref="/root/main/data/delyn" class="combo_essential" appearance="minimal" style="left:101px; top:677px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption19" class="cell_1" style="left:0px; top:675px; width:100px; height:23px; vertical-align:middle; ">끝부번지</caption>
- <caption id="caption26" class="cell_1" style="left:548px; top:600px; width:100px; height:23px; vertical-align:middle; ">리</caption>
- <caption id="caption27" class="cell_1" style="left:825px; top:600px; width:100px; height:23px; vertical-align:middle; ">도서</caption>
- <caption id="caption29" class="cell_1" style="left:274px; top:600px; width:100px; height:23px; vertical-align:middle; ">읍면동</caption>
- <input id="ipt_zipcdhead" ref="/root/main/data/zipcdhead" class="input_essential" style="left:101px; top:576px; width:172px; height:19px; "/>
- <input id="ipt_blok" ref="/root/main/data/blok" class="input_essential" style="left:375px; top:602px; width:172px; height:19px; "/>
- <input id="ipt_mile" ref="/root/main/data/mile" class="input_essential" style="left:649px; top:602px; width:175px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <line id="line5" class="line_2" style="x1:0px; y1:598px; x2:1194px; y2:598px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:624px; x2:1194px; y2:624px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:648px; x2:1194px; y2:648px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:673px; x2:1194px; y2:673px; "/>
- <line id="line12" class="line_3" style="x1:0px; y1:698px; x2:1194px; y2:698px; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.dispatch("xforms-ready");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mode = model.getValue("/root/main/mode");
- var success;
- var zipcodehead;
- var zipcodefoot;
- var seqno;
- if(mode=="insert"){
- zipcodehead = model.getValue("/root/main/data/zipcdhead");
- zipcodefoot = model.getValue("/root/main/data/zipcdfoot");
- seqno = model.getValue("/root/main/data/seqno");
- if(zipcodehead==""){
- alert("우편번호 앞자리를 입력하세요!");
- }else if(zipcodefoot==""){
- alert("우편번호 뒷자리를 입력하세요!");
- }else if(seqno==""){
- alert("일련번호를 입력하세요!");
- }
- model.copyNode("/root/send/data", "/root/main/data");
- success = submit("TXZBP00102");
- if(success){
- model.setValue("/root/main/modellabel", "우편번호 상세정보");
- var searchcondition = model.getValue("/root/main/search/searchcondition");
- var searchterm = model.getValue("/root/main/search/searchterm");
- model.makeValue("/root/send/data/searchcondition", searchcondition);
- model.makeValue("/root/send/data/searchterm", "%"+searchterm+"%");
- submit("TRZBP00101");
- fFindZipCodeFromGrid(zipcodehead, zipcodefoot, seqno);
- fCopyGrid2Main();
- model.refresh();
- fDisableMainDataControls(true);
- model.setValue("/root/main/mode", "view");
- }
- }else if(mode=="update"){
- zipcodehead = model.getValue("/root/main/data/zipcdhead");
- zipcodefoot = model.getValue("/root/main/data/zipcdfoot");
- seqno = model.getValue("/root/main/data/seqno");
- model.copyNode("/root/send/data", "/root/main/data");
- success = submit("TXZBP00103");
- if(success){
- model.setValue("/root/main/modellabel", "우편번호 상세정보");
- var searchcondition = model.getValue("/root/main/search/searchcondition");
- var searchterm = model.getValue("/root/main/search/searchterm");
- model.makeValue("/root/send/data/searchcondition", searchcondition);
- model.makeValue("/root/send/data/searchterm", "%"+searchterm+"%");
- submit("TRZBP00101");
- fFindZipCodeFromGrid(zipcodehead, zipcodefoot, seqno);
- fCopyGrid2Main();
- model.refresh();
- fDisableMainDataControls(true);
- model.setValue("/root/main/mode", "view");
- }
- }else if(mode=="delete"){
- model.copyNode("/root/send/data", "/root/main/data");
- success = submit("TXZBP00104");
- if(success){
- model.setValue("/root/main/modellabel", "");
- model.setValue("/root/main/mode", "none");
- var searchcondition = model.getValue("/root/main/search/searchcondition");
- var searchterm = model.getValue("/root/main/search/searchterm");
- model.makeValue("/root/send/data/searchcondition", searchcondition);
- model.makeValue("/root/send/data/searchterm", "%"+searchterm+"%");
- submit("TRZBP00101");
- fInitMainDataInstance();
- model.refresh();
- fDisableMainDataControls(true);
- }
- }else if(mode=="view"){
- alert("상세정보를 보는 상태에서는 저장할수 없습니다.");
- }else{
- alert("처리 모드를 선택하세요!");
- }
-
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|