123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>도로명주소자료등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <previewinfo/>
- </main>
- <send>
- <search>
- <basedd/>
- <regflag/>
- <allflag/>
- <filenm/>
- <file/>
- </search>
- <save>
- <basedd/>
- <regflag/>
- <allflag/>
- <filenm/>
- <file/>
- </save>
- </send>
- <init/>
- <hidden>
- <cmb_regflag>
- <list>
- <label>도로명코드</label>
- <value>1</value>
- </list>
- <list>
- <label>주소</label>
- <value>2</value>
- </list>
- <list>
- <label>지번</label>
- <value>3</value>
- </list>
- <list>
- <label>부가정보</label>
- <value>4</value>
- </list>
- </cmb_regflag>
- <cmb_allflag>
- <list>
- <label>전체</label>
- <value>0</value>
- </list>
- <list>
- <label>변경</label>
- <value>1</value>
- </list>
- </cmb_allflag>
- </hidden>
- <temp/>
- </root>
- </instance>
- <submission id="TRZBP00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/search" resultref="/root/main/previewinfo"/>
- <submission id="TXZBP00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/search"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.toggle("case_empty");
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fFileAdd() {
- var upObj = upload1;
- var iptObj = ipt_attfilenm;
- var RFILE = "/root/send/search/file";
-
- var RFILENM=iptObj.attribute("ref");
-
- //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
- //파일의 크기를 측정한다.
- var maxsize = upObj.attribute("filesize");
-
- var name = model.getValue(RFILENM);
-
- //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
- var fileopen = window.fileDialog("open","|","false");
- //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
- model.makeValue(RFILENM, fileopen);
- var name = fileopen;
- //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
- var filename = name.lastIndexOf("\\");
- //open 파일명를 input박스에 넣는다.
- iptObj.value = fileopen.substring(filename + 1);
-
- //파일 인스턴스에 파일주소를 저장해 둔다.
- model.makeValue(RFILE, name);
- model.refresh();
-
- /*
- //파일 크기가 너무 큰경우 메세지를 띄운다.
- if (!checkFileSize(upObj)){
-
- iptObj.value = "";
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- model.resetInstanceNode(RFILE);
- }
- */
- }
-
- function fSearchPreView(){
- var regflag = model.getValue("/root/send/search/regflag");
- if(regflag == "1"){
- model.toggle("case1");
- }else if(regflag == "2"){
- model.toggle("case2");
- }else if(regflag == "3"){
- model.toggle("case3");
- }else if(regflag == "4"){
- model.toggle("case4");
- }
- submit("TRZBP00201",false);
- }
-
- function fSave(){
-
- submit("TXZBP00201",false);
- }
-
- function fCheckPreView(){
- var basedd = model.getValue("/root/send/search/basedd");
- var regflag = model.getValue("/root/send/search/regflag");
- var allflag = model.getValue("/root/send/search/allflag");
- var filenm = model.getValue("/root/send/search/filenm");
-
- if(isNull(basedd)){
- messageBox("기준일자는 ","I003");
- return false;
- }
-
- if(isNull(regflag)){
- messageBox("등록구분은 ","I003");
- return false;
- }
-
- if(isNull(allflag)){
- messageBox("전체/변경은 ","I003");
- return false;
- }
-
- if(isNull(filenm)){
- messageBox("파일은 ","I003");
- return false;
- }
-
- return true;
- }
-
- function fCheckSave(){
- var basedd = model.getValue("/root/send/save/basedd");
- var regflag = model.getValue("/root/send/save/regflag");
- var allflag = model.getValue("/root/send/save/allflag");
- var filenm = model.getValue("/root/send/save/filenm");
-
- if(isNull(basedd)){
- messageBox("기준일자는 ","I003");
- return false;
- }
-
- if(isNull(regflag)){
- messageBox("등록구분은 ","I003");
- return false;
- }
-
- if(isNull(allflag)){
- messageBox("전체/변경은 ","I003");
- return false;
- }
-
- if(isNull(filenm)){
- messageBox("파일은 ","I003");
- return false;
- }
-
- var rtn = messageBox("동일한 조건의 기존데이터는 삭제됩니다. ", "Q003");
- if(rtn != 6){
- return false;
- }
-
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1195px" pageheight="780px">
- <switch id="switch1" style="left:0px; top:125px; width:1185px; height:645px; ">
- <case id="case1">
- <datagrid id="grd_streetcode" nodeset="/root/main/previewinfo/previewlist" caption="도로명코드^도로명^도로명로마자^읍면동일련번호^시도명^시도로마자^시군구명^시군구로마자^읍면동명^읍면동로마자^읍면동구분^읍면동코드^사용여부^변경사유^변경이력정보^고시일자^말소일자^등록자^등록일시" colsep="^" colwidth="87, 96, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:1175px; height:630px; ">
- <col ref="stcd"/>
- <col ref="stnm"/>
- <col ref="stenm"/>
- <col ref="dongseq"/>
- <col ref="citynm"/>
- <col ref="cityenm"/>
- <col ref="gunm"/>
- <col ref="guenm"/>
- <col ref="dongnm"/>
- <col ref="dongenm"/>
- <col ref="dongflag"/>
- <col ref="dongcd"/>
- <col ref="useflag"/>
- <col ref="chngresn"/>
- <col ref="chnghist"/>
- <col ref="startdd"/>
- <col ref="enddd"/>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_addressmapping" nodeset="/root/main/previewinfo/previewlist" caption="관리번호^도로명코드^읍면동일련번호^지하여부^건물본번^건물부번^기초구역번호^변경사유코드^고시일자^변경전도로명주소^상세주소부여여부" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 82, 193, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:1175px; height:630px; ">
- <col ref="mgtno"/>
- <col ref="stcd"/>
- <col ref="dongseq"/>
- <col ref="underflag"/>
- <col ref="builmno"/>
- <col ref="builsno"/>
- <col ref="baseareano"/>
- <col ref="chngresn"/>
- <col ref="startdd"/>
- <col ref="prestaddr"/>
- <col ref="detladdrflag"/>
- </datagrid>
- </case>
- <case id="case3">
- <datagrid id="grd_jibun" nodeset="/root/main/previewinfo/previewlist" caption="관리번호^일련번호^법정동코드^시도명^시군구명^법정읍면동명^법정리명^산여부^지번본번^지번부번^대표여부" colsep="^" colwidth="170, 75, 100, 105, 129, 150, 140, 50, 82, 82, 75" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:1175px; height:630px; ">
- <col ref="mgtno"/>
- <col ref="seqno"/>
- <col ref="ledongcd"/>
- <col ref="citynm"/>
- <col ref="gunm"/>
- <col ref="ledongnm"/>
- <col ref="lelinm"/>
- <col ref="mtflag"/>
- <col ref="jimno"/>
- <col ref="jisno"/>
- <col ref="repflag"/>
- </datagrid>
- </case>
- <case id="case4" selected="true">
- <datagrid id="grd_additionalinfo" nodeset="/root/main/previewinfo/previewlist" caption="관리번호^행정동코드^행정동명^우편번호^우편번호일련번호^다량배달처명^건축물대장건물명^시군구건물명^공동주택여부" colsep="^" colwidth="100, 100, 115, 100, 100, 106, 233, 222, 88" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:1175px; height:630px; ">
- <col ref="mgtno"/>
- <col ref="addongcd"/>
- <col ref="addongnm"/>
- <col ref="zipcd"/>
- <col ref="zipcdseq"/>
- <col ref="massdelivnm"/>
- <col ref="regbuilnm"/>
- <col ref="gubuilnm"/>
- <col ref="pubflag"/>
- </datagrid>
- </case>
- <case id="case_empty"/>
- </switch>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:192px; height:15px; ">도로명주소파일등록(개정)</caption>
- <caption id="caption23" class="tit_2" style="left:5px; top:105px; width:100px; height:13px; ">미리보기</caption>
- <group id="group2" style="left:0px; top:30px; width:1180px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1180px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button2" class="btn1_letter4" style="left:990px; top:15px; width:80px; height:22px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!fCheckPreView()) return;
- fSearchPreView();
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_attfilenm" ref="/root/send/search/filenm" class="input_s_essential" disabled="true" style="left:100px; top:30px; width:299px; height:19px; "/>
- <select1 id="cmb_regflag" ref="/root/send/search/regflag" class="input_s_essential" appearance="minimal" style="left:295px; top:5px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/cmb_regflag/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:205px; top:5px; width:90px; height:23px; ">등록구분</caption>
- <caption id="caption2" class="cell_1" style="left:405px; top:5px; width:90px; height:23px; ">전체/변경</caption>
- <caption id="caption44" class="cell_1" style="left:10px; top:5px; width:90px; height:23px; ">기준일자</caption>
- <input id="ipt_basedd" ref="/root/send/search/basedd" class="input_s_essential" navindex="16" inputtype="date" style="left:100px; top:7px; width:95px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:10px; top:30px; width:90px; height:23px; ">파일</caption>
- <select1 id="cmb_allflag" ref="/root/send/search/allflag" class="input_s_essential" appearance="minimal" style="left:495px; top:5px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/cmb_allflag/list">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_attach" class="btn2_letter4" navindex="10" style="left:399px; top:30px; width:64px; height:19px; ">
- <caption>파일첨부</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fFileAdd();
- ]]>
- </script>
- </button>
- <upload id="upload1" nodeset="/root/send/search/file" filecount="1" filesize="10485760" validate="true" style="left:72px; top:30px; width:20px; height:20px; "/>
- <button id="btn_regfile" class="btn4_letter4" style="left:1075px; top:15px; width:80px; height:22px; ">
- <caption>대상등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/send/save","/root/send/search");
- if(!fCheckSave()) return;
-
- setAlertOn();
- fSave();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|