SPZBP00201_도로명주소파일등록(개정).xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>도로명주소자료등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <previewinfo/>
  11. </main>
  12. <send>
  13. <search>
  14. <basedd/>
  15. <regflag/>
  16. <allflag/>
  17. <filenm/>
  18. <file/>
  19. </search>
  20. <save>
  21. <basedd/>
  22. <regflag/>
  23. <allflag/>
  24. <filenm/>
  25. <file/>
  26. </save>
  27. </send>
  28. <init/>
  29. <hidden>
  30. <cmb_regflag>
  31. <list>
  32. <label>도로명코드</label>
  33. <value>1</value>
  34. </list>
  35. <list>
  36. <label>주소</label>
  37. <value>2</value>
  38. </list>
  39. <list>
  40. <label>지번</label>
  41. <value>3</value>
  42. </list>
  43. <list>
  44. <label>부가정보</label>
  45. <value>4</value>
  46. </list>
  47. </cmb_regflag>
  48. <cmb_allflag>
  49. <list>
  50. <label>전체</label>
  51. <value>0</value>
  52. </list>
  53. <list>
  54. <label>변경</label>
  55. <value>1</value>
  56. </list>
  57. </cmb_allflag>
  58. </hidden>
  59. <temp/>
  60. </root>
  61. </instance>
  62. <submission id="TRZBP00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/search" resultref="/root/main/previewinfo"/>
  63. <submission id="TXZBP00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/search"/>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. model.toggle("case_empty");
  67. ]]>
  68. </script>
  69. </model>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fFileAdd() {
  76. var upObj = upload1;
  77. var iptObj = ipt_attfilenm;
  78. var RFILE = "/root/send/search/file";
  79. var RFILENM=iptObj.attribute("ref");
  80. //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
  81. //파일의 크기를 측정한다.
  82. var maxsize = upObj.attribute("filesize");
  83. var name = model.getValue(RFILENM);
  84. //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
  85. var fileopen = window.fileDialog("open","|","false");
  86. //파일 경로가 아닌 이름만 input박스에 넣기 위한 처리
  87. model.makeValue(RFILENM, fileopen);
  88. var name = fileopen;
  89. //lastIndexOf함수는 \\이것을 뒤어세 검색하여 나오면 앞에 것은 지운다.
  90. var filename = name.lastIndexOf("\\");
  91. //open 파일명를 input박스에 넣는다.
  92. iptObj.value = fileopen.substring(filename + 1);
  93. //파일 인스턴스에 파일주소를 저장해 둔다.
  94. model.makeValue(RFILE, name);
  95. model.refresh();
  96. /*
  97. //파일 크기가 너무 큰경우 메세지를 띄운다.
  98. if (!checkFileSize(upObj)){
  99. iptObj.value = "";
  100. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  101. model.resetInstanceNode(RFILE);
  102. }
  103. */
  104. }
  105. function fSearchPreView(){
  106. var regflag = model.getValue("/root/send/search/regflag");
  107. if(regflag == "1"){
  108. model.toggle("case1");
  109. }else if(regflag == "2"){
  110. model.toggle("case2");
  111. }else if(regflag == "3"){
  112. model.toggle("case3");
  113. }else if(regflag == "4"){
  114. model.toggle("case4");
  115. }
  116. submit("TRZBP00201",false);
  117. }
  118. function fSave(){
  119. submit("TXZBP00201",false);
  120. }
  121. function fCheckPreView(){
  122. var basedd = model.getValue("/root/send/search/basedd");
  123. var regflag = model.getValue("/root/send/search/regflag");
  124. var allflag = model.getValue("/root/send/search/allflag");
  125. var filenm = model.getValue("/root/send/search/filenm");
  126. if(isNull(basedd)){
  127. messageBox("기준일자는 ","I003");
  128. return false;
  129. }
  130. if(isNull(regflag)){
  131. messageBox("등록구분은 ","I003");
  132. return false;
  133. }
  134. if(isNull(allflag)){
  135. messageBox("전체/변경은 ","I003");
  136. return false;
  137. }
  138. if(isNull(filenm)){
  139. messageBox("파일은 ","I003");
  140. return false;
  141. }
  142. return true;
  143. }
  144. function fCheckSave(){
  145. var basedd = model.getValue("/root/send/save/basedd");
  146. var regflag = model.getValue("/root/send/save/regflag");
  147. var allflag = model.getValue("/root/send/save/allflag");
  148. var filenm = model.getValue("/root/send/save/filenm");
  149. if(isNull(basedd)){
  150. messageBox("기준일자는 ","I003");
  151. return false;
  152. }
  153. if(isNull(regflag)){
  154. messageBox("등록구분은 ","I003");
  155. return false;
  156. }
  157. if(isNull(allflag)){
  158. messageBox("전체/변경은 ","I003");
  159. return false;
  160. }
  161. if(isNull(filenm)){
  162. messageBox("파일은 ","I003");
  163. return false;
  164. }
  165. var rtn = messageBox("동일한 조건의 기존데이터는 삭제됩니다. ", "Q003");
  166. if(rtn != 6){
  167. return false;
  168. }
  169. return true;
  170. }
  171. ]]>
  172. </script>
  173. </xhtml:head>
  174. <xhtml:body pagewidth="1195px" pageheight="780px">
  175. <switch id="switch1" style="left:0px; top:125px; width:1185px; height:645px; ">
  176. <case id="case1">
  177. <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; ">
  178. <col ref="stcd"/>
  179. <col ref="stnm"/>
  180. <col ref="stenm"/>
  181. <col ref="dongseq"/>
  182. <col ref="citynm"/>
  183. <col ref="cityenm"/>
  184. <col ref="gunm"/>
  185. <col ref="guenm"/>
  186. <col ref="dongnm"/>
  187. <col ref="dongenm"/>
  188. <col ref="dongflag"/>
  189. <col ref="dongcd"/>
  190. <col ref="useflag"/>
  191. <col ref="chngresn"/>
  192. <col ref="chnghist"/>
  193. <col ref="startdd"/>
  194. <col ref="enddd"/>
  195. </datagrid>
  196. </case>
  197. <case id="case2">
  198. <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; ">
  199. <col ref="mgtno"/>
  200. <col ref="stcd"/>
  201. <col ref="dongseq"/>
  202. <col ref="underflag"/>
  203. <col ref="builmno"/>
  204. <col ref="builsno"/>
  205. <col ref="baseareano"/>
  206. <col ref="chngresn"/>
  207. <col ref="startdd"/>
  208. <col ref="prestaddr"/>
  209. <col ref="detladdrflag"/>
  210. </datagrid>
  211. </case>
  212. <case id="case3">
  213. <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; ">
  214. <col ref="mgtno"/>
  215. <col ref="seqno"/>
  216. <col ref="ledongcd"/>
  217. <col ref="citynm"/>
  218. <col ref="gunm"/>
  219. <col ref="ledongnm"/>
  220. <col ref="lelinm"/>
  221. <col ref="mtflag"/>
  222. <col ref="jimno"/>
  223. <col ref="jisno"/>
  224. <col ref="repflag"/>
  225. </datagrid>
  226. </case>
  227. <case id="case4" selected="true">
  228. <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; ">
  229. <col ref="mgtno"/>
  230. <col ref="addongcd"/>
  231. <col ref="addongnm"/>
  232. <col ref="zipcd"/>
  233. <col ref="zipcdseq"/>
  234. <col ref="massdelivnm"/>
  235. <col ref="regbuilnm"/>
  236. <col ref="gubuilnm"/>
  237. <col ref="pubflag"/>
  238. </datagrid>
  239. </case>
  240. <case id="case_empty"/>
  241. </switch>
  242. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:192px; height:15px; ">도로명주소파일등록(개정)</caption>
  243. <caption id="caption23" class="tit_2" style="left:5px; top:105px; width:100px; height:13px; ">미리보기</caption>
  244. <group id="group2" style="left:0px; top:30px; width:1180px; height:60px; vertical-align:top; ">
  245. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1180px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  246. <button id="button2" class="btn1_letter4" style="left:990px; top:15px; width:80px; height:22px; ">
  247. <caption>미리보기</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. if(!fCheckPreView()) return;
  251. fSearchPreView();
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <input id="ipt_attfilenm" ref="/root/send/search/filenm" class="input_s_essential" disabled="true" style="left:100px; top:30px; width:299px; height:19px; "/>
  257. <select1 id="cmb_regflag" ref="/root/send/search/regflag" class="input_s_essential" appearance="minimal" style="left:295px; top:5px; width:100px; height:19px; ">
  258. <choices>
  259. <itemset nodeset="/root/hidden/cmb_regflag/list">
  260. <label ref="label"/>
  261. <value ref="value"/>
  262. </itemset>
  263. </choices>
  264. </select1>
  265. <caption id="caption1" class="cell_1" style="left:205px; top:5px; width:90px; height:23px; ">등록구분</caption>
  266. <caption id="caption2" class="cell_1" style="left:405px; top:5px; width:90px; height:23px; ">전체/변경</caption>
  267. <caption id="caption44" class="cell_1" style="left:10px; top:5px; width:90px; height:23px; ">기준일자</caption>
  268. <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; "/>
  269. <caption id="caption3" class="cell_1" style="left:10px; top:30px; width:90px; height:23px; ">파일</caption>
  270. <select1 id="cmb_allflag" ref="/root/send/search/allflag" class="input_s_essential" appearance="minimal" style="left:495px; top:5px; width:50px; height:19px; ">
  271. <choices>
  272. <itemset nodeset="/root/hidden/cmb_allflag/list">
  273. <label ref="label"/>
  274. <value ref="value"/>
  275. </itemset>
  276. </choices>
  277. </select1>
  278. <button id="btn_attach" class="btn2_letter4" navindex="10" style="left:399px; top:30px; width:64px; height:19px; ">
  279. <caption>파일첨부</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. fFileAdd();
  283. ]]>
  284. </script>
  285. </button>
  286. <upload id="upload1" nodeset="/root/send/search/file" filecount="1" filesize="10485760" validate="true" style="left:72px; top:30px; width:20px; height:20px; "/>
  287. <button id="btn_regfile" class="btn4_letter4" style="left:1075px; top:15px; width:80px; height:22px; ">
  288. <caption>대상등록</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. model.copyNode("/root/send/save","/root/send/search");
  292. if(!fCheckSave()) return;
  293. setAlertOn();
  294. fSave();
  295. model.refresh();
  296. ]]>
  297. </script>
  298. </button>
  299. </group>
  300. </xhtml:body>
  301. </xhtml:html>