SMZBP00100_우편번호관리.xrw 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <zipcd>
  12. <zipcdhead/>
  13. <zipcdfoot/>
  14. <seqno/>
  15. <city/>
  16. <citycntyarea/>
  17. <blok/>
  18. <mile/>
  19. <isds/>
  20. <sanaddrno/>
  21. <frommainaddrno/>
  22. <fromsubaddrno/>
  23. <tomainaddrno/>
  24. <tosubaddrno/>
  25. <apt/>
  26. <fromblok/>
  27. <toblok/>
  28. <fstrgstdt/>
  29. <fstrgstrid/>
  30. <lastrgstdt/>
  31. <lastrgstrid/>
  32. <delyon/>
  33. <deldt/>
  34. <delemplno/>
  35. </zipcd>
  36. </list>
  37. <mode/>
  38. <modellabel/>
  39. <data>
  40. <zipcdhead/>
  41. <zipcdfoot/>
  42. <seqno/>
  43. <city/>
  44. <citycntyarea/>
  45. <blok/>
  46. <mile/>
  47. <isds/>
  48. <sanaddrno/>
  49. <frommainaddrno/>
  50. <fromsubaddrno/>
  51. <tomainaddrno/>
  52. <tosubaddrno/>
  53. <apt/>
  54. <fromblok/>
  55. <toblok/>
  56. <delyn/>
  57. </data>
  58. <search>
  59. <searchcondition>addr</searchcondition>
  60. <searchterm/>
  61. </search>
  62. </main>
  63. <send>
  64. <data>
  65. <searchcondition/>
  66. <searchterm/>
  67. </data>
  68. <data>
  69. <zipcdhead/>
  70. <zipcdfoot/>
  71. <seqno/>
  72. <city/>
  73. <citycntyarea/>
  74. <blok/>
  75. <mile/>
  76. <isds/>
  77. <sanaddrno/>
  78. <frommainaddrno/>
  79. <fromsubaddrno/>
  80. <tomainaddrno/>
  81. <tosubaddrno/>
  82. <apt/>
  83. <fromblok/>
  84. <toblok/>
  85. <fstrgstrid/>
  86. <lastrgstrid/>
  87. </data>
  88. </send>
  89. <hidden>
  90. <temp/>
  91. </hidden>
  92. </root>
  93. </instance>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. model.removenode("/root/main/list");
  97. model.makeNode("/root/main/list");
  98. fInitMainDataInstance();
  99. model.refresh();
  100. fDisableMainDataControls(true);
  101. ]]>
  102. </script>
  103. <submission id="TRZBP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/list">
  104. <script type="javascript" ev:event="xforms-submit-error">
  105. <![CDATA[
  106. ]]>
  107. </script>
  108. </submission>
  109. <submission id="TXZBP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  110. <submission id="TXZBP00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  111. <submission id="TXZBP00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden/temp"/>
  112. </model>
  113. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript">
  116. <![CDATA[
  117. function fDisableMainDataControls(disabled){
  118. ipt_zipcdhead.disabled = disabled;
  119. ipt_zipcdfoot.disabled = disabled;
  120. ipt_seqno.disabled = disabled;
  121. ipt_city.disabled = disabled;
  122. ipt_citycntyarea.disabled = disabled;
  123. ipt_mile.disabled = disabled;
  124. ipt_isds.disabled = disabled;
  125. ipt_sanaddrno.disabled = disabled;
  126. ipt_rommainaddrno.disabled = disabled;
  127. ipt_fromsubaddrno.disabled = disabled;
  128. ipt_tomainaddrno.disabled = disabled;
  129. ipt_tosubaddrno.disabled = disabled;
  130. ipt_apt.disabled = disabled;
  131. ipt_fromblok.disabled = disabled;
  132. ipt_toblok.disabled = disabled;
  133. cmb_delyn.disabled = disabled;
  134. ipt_blok.disabled = disabled;
  135. }
  136. function fInitMainDataInstance(){
  137. model.setValue("/root/main/data/zipcdhead", "");
  138. model.setValue("/root/main/data/zipcdfoot", "");
  139. model.setValue("/root/main/data/seqno", "");
  140. model.setValue("/root/main/data/city", "");
  141. model.setValue("/root/main/data/citycntyarea", "");
  142. model.setValue("/root/main/data/blok", "");
  143. model.setValue("/root/main/data/mile", "");
  144. model.setValue("/root/main/data/isds", "");
  145. model.setValue("/root/main/data/sanaddrno", "");
  146. model.setValue("/root/main/data/frommainaddrno", "");
  147. model.setValue("/root/main/data/fromsubaddrno", "");
  148. model.setValue("/root/main/data/tomainaddrno", "");
  149. model.setValue("/root/main/data/tosubaddrno", "");
  150. model.setValue("/root/main/data/apt", "");
  151. model.setValue("/root/main/data/fromblok", "");
  152. model.setValue("/root/main/data/toblok", "");
  153. model.setValue("/root/main/data/delyn", "");
  154. model.setValue("/root/main/modellabel", "");
  155. model.setValue("/root/main/mode", "");
  156. }
  157. function fFindZipCodeFromGrid(zipcodehead, zipcodefoot, seqno){
  158. for(var i=grd_zipcodelist.fixedRows; i<grd_zipcodelist.rows; i++){
  159. var comp_zipcodehead = grd_zipcodelist.valueMatrix(i, grd_zipcodelist.colRef("zipcdhead"));
  160. var comp_zipcodefoot = grd_zipcodelist.valueMatrix(i, grd_zipcodelist.colRef("zipcdfoot"));
  161. var comp_seqno = grd_zipcodelist.valueMatrix(i, grd_zipcodelist.colRef("seqno"));
  162. if( zipcodehead == comp_zipcodehead && zipcodefoot == comp_zipcodefoot && seqno == comp_seqno ){
  163. grd_zipcodelist.row = i;
  164. }
  165. }
  166. return grd_zipcodelist.row;
  167. }
  168. function fCopyGrid2Main(){
  169. var row = grd_zipcodelist.row;
  170. var zipcdhead = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcdhead"));
  171. var zipcdfoot = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("zipcdfoot"));
  172. var seqno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("seqno"));
  173. var city = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("city"));
  174. var citycntyarea = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("citycntyarea"));
  175. var blok = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("blok"));
  176. var mile = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("mile"));
  177. var isds = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("isds"));
  178. var sanaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("sanaddrno"));
  179. var frommainaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("frommainaddrno"));
  180. var fromsubaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fromsubaddrno"));
  181. var tomainaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("tomainaddrno"));
  182. var tosubaddrno = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("tosubaddrno"));
  183. var apt = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("apt"));
  184. var fromblok = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fromblok"));
  185. var toblok = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("toblok"));
  186. var fstrgstdt = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fstrgstdt"));
  187. var fstrgstrid = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("fstrgstrid"));
  188. var lastrgstdt = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("lastrgstdt"));
  189. var lastrgstrid = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("lastrgstrid"));
  190. var delyn = grd_zipcodelist.valueMatrix(row, grd_zipcodelist.colRef("delyn"));
  191. model.setValue("/root/main/data/zipcdhead", zipcdhead);
  192. model.setValue("/root/main/data/zipcdfoot", zipcdfoot);
  193. model.setValue("/root/main/data/seqno", seqno);
  194. model.setValue("/root/main/data/city", city);
  195. model.setValue("/root/main/data/citycntyarea", citycntyarea);
  196. model.setValue("/root/main/data/blok", blok);
  197. model.setValue("/root/main/data/mile", mile);
  198. model.setValue("/root/main/data/isds", isds);
  199. model.setValue("/root/main/data/sanaddrno", sanaddrno);
  200. model.setValue("/root/main/data/frommainaddrno", frommainaddrno);
  201. model.setValue("/root/main/data/fromsubaddrno", fromsubaddrno);
  202. model.setValue("/root/main/data/tomainaddrno", tomainaddrno);
  203. model.setValue("/root/main/data/tosubaddrno", tosubaddrno);
  204. model.setValue("/root/main/data/apt", apt);
  205. model.setValue("/root/main/data/fromblok", fromblok);
  206. model.setValue("/root/main/data/toblok", toblok);
  207. model.setValue("/root/main/data/delyn", delyn);
  208. }
  209. ]]>
  210. </script>
  211. </xhtml:head>
  212. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  213. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  214. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">우편번호 관리</caption>
  215. </group>
  216. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  217. <line id="line4" class="line_2" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
  218. <line id="line3" class="line_2" style="x1:0px; y1:152px; x2:1194px; y2:152px; "/>
  219. <line id="line2" class="line_2" style="x1:0px; y1:128px; x2:1194px; y2:128px; "/>
  220. <line id="line6" class="line_2" style="x1:0px; y1:104px; x2:1194px; y2:104px; "/>
  221. <group id="group2" style="left:0px; top:14px; width:1194px; height:35px; vertical-align:top; ">
  222. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  223. <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">검색조건</caption>
  224. <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  225. <select1 id="cmc_syscd" ref="/root/main/search/searchcondition" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:200px; height:19px; ">
  226. <choices>
  227. <item>
  228. <label>우편번호</label>
  229. <value>zipcd</value>
  230. </item>
  231. <item>
  232. <label>주소</label>
  233. <value>addr</value>
  234. </item>
  235. <item>
  236. <label>시군구</label>
  237. <value>citycntyarea</value>
  238. </item>
  239. </choices>
  240. </select1>
  241. <button id="btn_search" class="btn1_letter2" style="left:1120px; top:5px; width:56px; height:22px; ">
  242. <caption>조회</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var search_condition = model.getValue("/root/main/search/searchcondition");
  246. var search_term = model.getValue("/root/main/search/searchterm");
  247. if(search_term==""){
  248. messageBox("검색어를", "C001");
  249. return;
  250. }
  251. model.makeValue("/root/send/data/searchcondition", search_condition);
  252. model.makeValue("/root/send/data/searchterm", search_term+"%");
  253. submit("TRZBP00101");
  254. model.refresh();
  255. ]]>
  256. </script>
  257. </button>
  258. <input id="input1" ref="/root/main/search/searchterm" class="input_default" appearance="input" style="left:302px; top:8px; width:240px; height:19px; "/>
  259. </group>
  260. <caption id="caption1" ref="/root/main/modellabel" class="tit_2" style="left:6px; top:555px; width:139px; height:14px; ">우편번호 입력/수정</caption>
  261. <line id="line1" class="line_1" style="top:575px; x1:0px; y1:570px; x2:1194px; y2:570px; "/>
  262. <caption id="caption7" class="cell_1" style="left:0px; top:600px; width:100px; height:23px; vertical-align:middle; ">시군구</caption>
  263. <caption id="caption3" class="cell_1" style="left:0px; top:575; width:100px; height:23px; vertical-align:middle; ">우편번호 앞자리</caption>
  264. <caption id="caption9" class="cell_1" style="left:0px; top:625px; width:100px; height:23px; vertical-align:middle; ">산번지</caption>
  265. <caption id="caption11" class="cell_1" style="left:0px; top:650px; width:100px; height:23px; vertical-align:middle; ">끝부번지</caption>
  266. <caption id="caption20" class="tit_2" style="left:6px; top:62px; width:118px; height:14px; ">우편번호 목록</caption>
  267. <line id="line8" class="line_1" style="x1:0px; y1:77px; x2:1194px; y2:77px; "/>
  268. <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; ">
  269. <col ref="zipcdhead"/>
  270. <col ref="zipcdfoot"/>
  271. <col ref="seqno"/>
  272. <col ref="city"/>
  273. <col ref="citycntyarea"/>
  274. <col ref="blok"/>
  275. <col ref="mile"/>
  276. <col ref="isds"/>
  277. <col ref="sanaddrno"/>
  278. <col ref="frommainaddrno"/>
  279. <col ref="fromsubaddrno"/>
  280. <col ref="tomainaddrno"/>
  281. <col ref="tosubaddrno"/>
  282. <col ref="apt"/>
  283. <col ref="fromblok"/>
  284. <col ref="toblok"/>
  285. <col ref="deptcd"/>
  286. <col ref="fstrgstdt"/>
  287. <col ref="fstrgstrid"/>
  288. <col ref="lastrgstdt"/>
  289. <col ref="lastrgstrid"/>
  290. <col ref="delyn"/>
  291. <script type="javascript" ev:event="ondblclick">
  292. <![CDATA[
  293. model.setValue("/root/main/modellabel", "우편번호 상세보기");
  294. fCopyGrid2Main();
  295. model.refresh();
  296. fDisableMainDataControls(true);
  297. ]]>
  298. </script>
  299. </datagrid>
  300. <input id="ipt_city" ref="/root/main/data/city" class="input_default" appearance="input" style="left:926px; top:576px; width:240px; height:19px; "/>
  301. <button id="btn_delete" class="btn2_letter2" style="left:1145px; top:549px; width:42px; height:19px; ">
  302. <caption>삭제</caption>
  303. <script type="javascript" ev:event="DOMActivate">
  304. <![CDATA[
  305. model.setValue("/root/main/modellabel", "우편번호 삭제");
  306. model.setValue("/root/main/mode", "delete");
  307. var row = grd_zipcodelist.row;
  308. model.copyNode("/root/main/data", "/root/main/list/zipcd["+row+"]");
  309. model.refresh();
  310. ]]>
  311. </script>
  312. </button>
  313. <button id="btn_update" class="btn2_letter2" style="left:1100px; top:549px; width:42px; height:19px; ">
  314. <caption>수정</caption>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. model.setValue("/root/main/modellabel", "우편번호 변경");
  318. model.setValue("/root/main/mode", "update");
  319. var row = grd_zipcodelist.row;
  320. model.copyNode("/root/main/data", "/root/main/list/zipcd["+row+"]");
  321. fDisableMainDataControls(false);
  322. ipt_zipcdhead.disabled = true;
  323. ipt_zipcdfoot.disabled = true;
  324. ipt_seqno.disabled = true;
  325. model.refresh();
  326. ]]>
  327. </script>
  328. </button>
  329. <button id="btn_insert" class="btn2_letter2" style="left:1055px; top:549px; width:42px; height:19px; ">
  330. <caption>추가</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. fInitMainDataInstance();
  334. model.setValue("/root/main/data/delyn", "N");
  335. model.setValue("/root/main/modellabel", "우편번호 입력");
  336. model.setValue("/root/main/mode", "insert");
  337. model.refresh();
  338. fDisableMainDataControls(false);
  339. cmb_delyn.disabled = true;
  340. ]]>
  341. </script>
  342. </button>
  343. <input id="ipt_sanaddrno" ref="/root/main/data/sanaddrno" class="input_essential" style="left:101px; top:627px; width:172px; height:19px; "/>
  344. <input id="ipt_isds" ref="/root/main/data/isds" class="input_default" appearance="input" style="left:926px; top:602px; width:240px; height:19px; "/>
  345. <input id="ipt_citycntyarea" ref="/root/main/data/citycntyarea" class="input_essential" style="left:101px; top:602px; width:172px; height:19px; "/>
  346. <caption id="caption13" class="cell_1" style="left:274px; top:650px; width:100px; height:23px; vertical-align:middle; ">아파트/건물명</caption>
  347. <input id="ipt_rommainaddrno" ref="/root/main/data/frommainaddrno" class="input_essential" style="left:375px; top:627px; width:172px; height:19px; "/>
  348. <caption id="caption15" class="cell_1" style="left:548px; top:625px; width:100px; height:23px; vertical-align:middle; ">시작부번지</caption>
  349. <input id="ipt_fromsubaddrno" ref="/root/main/data/fromsubaddrno" class="input_essential" style="left:649px; top:626px; width:175px; height:19px; ">
  350. <script type="javascript" ev:event="xforms-value-changed">
  351. <![CDATA[
  352. ]]>
  353. </script>
  354. </input>
  355. <caption id="caption16" class="cell_1" style="left:825px; top:625px; width:100px; height:23px; vertical-align:middle; ">끝주번지</caption>
  356. <input id="ipt_tomainaddrno" ref="/root/main/data/tomainaddrno" class="input_default" appearance="input" style="left:926px; top:627px; width:240px; height:19px; "/>
  357. <input id="ipt_tosubaddrno" ref="/root/main/data/tosubaddrno" class="input_essential" style="left:101px; top:652px; width:172px; height:19px; "/>
  358. <caption id="caption17" class="cell_1" style="left:274px; top:625px; width:100px; height:23px; vertical-align:middle; ">시작주번지</caption>
  359. <input id="ipt_apt" ref="/root/main/data/apt" class="input_essential" style="left:375px; top:652px; width:172px; height:19px; "/>
  360. <caption id="caption18" class="cell_1" style="left:548px; top:650px; width:100px; height:23px; vertical-align:middle; ">동범위시작</caption>
  361. <input id="ipt_fromblok" ref="/root/main/data/fromblok" class="input_essential" style="left:649px; top:652px; width:175px; height:19px; ">
  362. <script type="javascript" ev:event="xforms-value-changed">
  363. <![CDATA[
  364. ]]>
  365. </script>
  366. </input>
  367. <caption id="caption21" class="cell_1" style="left:825px; top:650px; width:100px; height:23px; vertical-align:middle; ">동범위끝</caption>
  368. <input id="ipt_toblok" ref="/root/main/data/toblok" class="input_default" appearance="input" style="left:926px; top:652px; width:240px; height:19px; "/>
  369. <caption id="caption22" class="cell_1" style="left:825; top:575; width:100px; height:23px; vertical-align:middle; ">시도</caption>
  370. <caption id="caption23" class="cell_1" style="left:548; top:575; width:100px; height:23px; vertical-align:middle; ">일련번호</caption>
  371. <caption id="caption25" class="cell_1" style="left:274px; top:575px; width:100px; height:23px; vertical-align:middle; ">우편번호 뒷자리</caption>
  372. <input id="ipt_seqno" ref="/root/main/data/seqno" class="input_essential" format="999999-9999999" style="left:649px; top:576px; width:175px; height:19px; "/>
  373. <input id="ipt_zipcdfoot" ref="/root/main/data/zipcdfoot" class="input_essential" style="left:375px; top:576px; width:172px; height:19px; "/>
  374. <select1 id="cmb_delyn" ref="/root/main/data/delyn" class="combo_essential" appearance="minimal" style="left:101px; top:677px; width:45px; height:19px; ">
  375. <choices>
  376. <item>
  377. <label>Y</label>
  378. <value>Y</value>
  379. </item>
  380. <item>
  381. <label>N</label>
  382. <value>N</value>
  383. </item>
  384. </choices>
  385. </select1>
  386. <caption id="caption19" class="cell_1" style="left:0px; top:675px; width:100px; height:23px; vertical-align:middle; ">끝부번지</caption>
  387. <caption id="caption26" class="cell_1" style="left:548px; top:600px; width:100px; height:23px; vertical-align:middle; ">리</caption>
  388. <caption id="caption27" class="cell_1" style="left:825px; top:600px; width:100px; height:23px; vertical-align:middle; ">도서</caption>
  389. <caption id="caption29" class="cell_1" style="left:274px; top:600px; width:100px; height:23px; vertical-align:middle; ">읍면동</caption>
  390. <input id="ipt_zipcdhead" ref="/root/main/data/zipcdhead" class="input_essential" style="left:101px; top:576px; width:172px; height:19px; "/>
  391. <input id="ipt_blok" ref="/root/main/data/blok" class="input_essential" style="left:375px; top:602px; width:172px; height:19px; "/>
  392. <input id="ipt_mile" ref="/root/main/data/mile" class="input_essential" style="left:649px; top:602px; width:175px; height:19px; ">
  393. <script type="javascript" ev:event="xforms-value-changed">
  394. <![CDATA[
  395. ]]>
  396. </script>
  397. </input>
  398. <line id="line5" class="line_2" style="x1:0px; y1:598px; x2:1194px; y2:598px; "/>
  399. <line id="line9" class="line_2" style="x1:0px; y1:624px; x2:1194px; y2:624px; "/>
  400. <line id="line10" class="line_2" style="x1:0px; y1:648px; x2:1194px; y2:648px; "/>
  401. <line id="line11" class="line_2" style="x1:0px; y1:673px; x2:1194px; y2:673px; "/>
  402. <line id="line12" class="line_3" style="x1:0px; y1:698px; x2:1194px; y2:698px; "/>
  403. </group>
  404. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  405. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  406. <caption>초기화</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. model.dispatch("xforms-ready");
  410. ]]>
  411. </script>
  412. </button>
  413. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  414. <caption>저장</caption>
  415. <script type="javascript" ev:event="DOMActivate">
  416. <![CDATA[
  417. var mode = model.getValue("/root/main/mode");
  418. var success;
  419. var zipcodehead;
  420. var zipcodefoot;
  421. var seqno;
  422. if(mode=="insert"){
  423. zipcodehead = model.getValue("/root/main/data/zipcdhead");
  424. zipcodefoot = model.getValue("/root/main/data/zipcdfoot");
  425. seqno = model.getValue("/root/main/data/seqno");
  426. if(zipcodehead==""){
  427. alert("우편번호 앞자리를 입력하세요!");
  428. }else if(zipcodefoot==""){
  429. alert("우편번호 뒷자리를 입력하세요!");
  430. }else if(seqno==""){
  431. alert("일련번호를 입력하세요!");
  432. }
  433. model.copyNode("/root/send/data", "/root/main/data");
  434. success = submit("TXZBP00102");
  435. if(success){
  436. model.setValue("/root/main/modellabel", "우편번호 상세정보");
  437. var searchcondition = model.getValue("/root/main/search/searchcondition");
  438. var searchterm = model.getValue("/root/main/search/searchterm");
  439. model.makeValue("/root/send/data/searchcondition", searchcondition);
  440. model.makeValue("/root/send/data/searchterm", "%"+searchterm+"%");
  441. submit("TRZBP00101");
  442. fFindZipCodeFromGrid(zipcodehead, zipcodefoot, seqno);
  443. fCopyGrid2Main();
  444. model.refresh();
  445. fDisableMainDataControls(true);
  446. model.setValue("/root/main/mode", "view");
  447. }
  448. }else if(mode=="update"){
  449. zipcodehead = model.getValue("/root/main/data/zipcdhead");
  450. zipcodefoot = model.getValue("/root/main/data/zipcdfoot");
  451. seqno = model.getValue("/root/main/data/seqno");
  452. model.copyNode("/root/send/data", "/root/main/data");
  453. success = submit("TXZBP00103");
  454. if(success){
  455. model.setValue("/root/main/modellabel", "우편번호 상세정보");
  456. var searchcondition = model.getValue("/root/main/search/searchcondition");
  457. var searchterm = model.getValue("/root/main/search/searchterm");
  458. model.makeValue("/root/send/data/searchcondition", searchcondition);
  459. model.makeValue("/root/send/data/searchterm", "%"+searchterm+"%");
  460. submit("TRZBP00101");
  461. fFindZipCodeFromGrid(zipcodehead, zipcodefoot, seqno);
  462. fCopyGrid2Main();
  463. model.refresh();
  464. fDisableMainDataControls(true);
  465. model.setValue("/root/main/mode", "view");
  466. }
  467. }else if(mode=="delete"){
  468. model.copyNode("/root/send/data", "/root/main/data");
  469. success = submit("TXZBP00104");
  470. if(success){
  471. model.setValue("/root/main/modellabel", "");
  472. model.setValue("/root/main/mode", "none");
  473. var searchcondition = model.getValue("/root/main/search/searchcondition");
  474. var searchterm = model.getValue("/root/main/search/searchterm");
  475. model.makeValue("/root/send/data/searchcondition", searchcondition);
  476. model.makeValue("/root/send/data/searchterm", "%"+searchterm+"%");
  477. submit("TRZBP00101");
  478. fInitMainDataInstance();
  479. model.refresh();
  480. fDisableMainDataControls(true);
  481. }
  482. }else if(mode=="view"){
  483. alert("상세정보를 보는 상태에서는 저장할수 없습니다.");
  484. }else{
  485. alert("처리 모드를 선택하세요!");
  486. }
  487. ]]>
  488. </script>
  489. </button>
  490. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  491. </group>
  492. </xhtml:body>
  493. </xhtml:html>