SMPMC03700_산재사업장관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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>산재사업장관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <icbpinfo>
  11. <bzplcergstno/>
  12. <bizplcenm/>
  13. <prsdnm/>
  14. <bizplcetel/>
  15. <zipcd1/>
  16. <zipcd2/>
  17. <zipcdseq/>
  18. <detladdr/>
  19. <addr/>
  20. <bizplceseqno/>
  21. <bizplcergstseqno/>
  22. <flag/>
  23. </icbpinfo>
  24. <grdicbp>
  25. <grdicbpinfo>
  26. <bzplcergstno/>
  27. <bizplcenm/>
  28. <prsdnm/>
  29. <bizplcetel/>
  30. <zipcd1/>
  31. <zipcd2/>
  32. <zipcdseq/>
  33. <addr/>
  34. <detladdr/>
  35. <bizplceseqno/>
  36. <bizplcergstseqno/>
  37. </grdicbpinfo>
  38. </grdicbp>
  39. </main>
  40. <send>
  41. <ref>
  42. <cond>0</cond>
  43. <reference/>
  44. </ref>
  45. </send>
  46. <init>
  47. </init>
  48. </root>
  49. </instance>
  50. <submission id="TRPMC03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ref" resultref="/root/main/grdicbp"/>
  51. <submission id="TXPMC03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/icbpinfo"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  58. <script type="javascript">
  59. <![CDATA[
  60. //화면 초기화
  61. function fInitialize(){
  62. // model.removeNodeset("/root/main/grdicbp/grdicbpinfo");
  63. model.resetInstanceNode("/root/main/icbpinfo");
  64. model.setValue("/root/main/icbpinfo/zipcd1","000");
  65. model.setValue("/root/main/icbpinfo/zipcd2","000");
  66. model.setValue("/root/main/icbpinfo/zipcdseq","1");
  67. model.setValue("/root/main/icbpinfo/addr","-");
  68. model.setValue("/root/main/icbpinfo/detladdr","-");
  69. model.setFocus("ipt_bzplcergstno");
  70. model.refresh();
  71. }
  72. ]]>
  73. </script>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. model.removeNodeset("/root/main/grdicbp/grdicbpinfo");
  77. fInitialize();
  78. ]]>
  79. </script>
  80. </xhtml:head>
  81. <xhtml:body pagewidth="517" pageheight="379" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  82. <group id="group3" scroll="auto" style="left:0px; top:0px; width:501px; height:363px; ">
  83. <caption id="caption1" class="tit_2" style="left:5px; top:61px; width:126px; height:13px; ">산재사업장관리</caption>
  84. <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:501px; y2:76px; "/>
  85. <line id="line2" class="line_2" style="x1:0px; y1:103px; x2:501px; y2:103px; "/>
  86. <line id="line3" class="line_2" style="x1:0px; y1:127px; x2:501px; y2:127px; "/>
  87. <group id="group1" style="left:0px; top:335px; width:501px; height:28px; ">
  88. <button id="btn_save" class="btn4_letter2" style="left:333px; top:5px; width:56px; height:22px; ">
  89. <caption>저장</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. var reference = model.getValue("/root/main/icbpinfo/bzplcergstno");
  93. model.setValue("/root/main/icbpinfo/flag", "I");
  94. submit("TXPMC03701");
  95. fInitialize();
  96. model.setValue("/root/send/ref/cond", "1");
  97. model.setValue("/root/send/ref/reference", reference);
  98. model.refresh();
  99. submit("TRPMC03701");
  100. ]]>
  101. </script>
  102. </button>
  103. <button id="btn_exit" class="btn4_letter2" style="left:445px; top:5px; width:56px; height:22px; ">
  104. <caption>닫기</caption>
  105. <close ev:event="onclick"/>
  106. </button>
  107. <line id="line5" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:-15px; "/>
  108. <button id="btn_delete" class="btn4_letter2" style="left:389px; top:5px; width:56px; height:22px; ">
  109. <caption>삭제</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. var reference = model.getValue("/root/main/icbpinfo/bzplcergstno");
  113. model.setValue("/root/main/icbpinfo/flag", "D");
  114. submit("TXPMC03701");
  115. fInitialize();
  116. model.setValue("/root/send/ref/cond", "0");
  117. model.setValue("/root/send/ref/reference", reference);
  118. model.refresh();
  119. submit("TRPMC03701");
  120. ]]>
  121. </script>
  122. </button>
  123. <button id="btn_clear" class="btn4_letter3" style="left:265px; top:5px; width:68px; height:22px; font-size:11px; ">
  124. <caption>초기화</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. fInitialize();
  128. ]]>
  129. </script>
  130. </button>
  131. </group>
  132. <line id="line4" class="line_3" style="x1:0px; y1:177px; x2:501px; y2:177px; "/>
  133. <caption id="caption5" class="cell_1" style="left:0px; top:81px; width:100px; height:23px; vertical-align:middle; ">사업장등록번호</caption>
  134. <caption id="caption6" class="cell_1" style="left:0px; top:105px; width:100px; height:23px; vertical-align:middle; ">사업장연락처</caption>
  135. <caption id="caption7" class="cell_1" style="left:252px; top:105px; width:100px; height:23px; vertical-align:middle; ">대표자명</caption>
  136. <datagrid id="grd_iaiwsearch" nodeset="/root/main/grdicbp/grdicbpinfo" caption="사업장등록번호^사업장명^대표자명^사업장연락처^zipcd1^zipcd2^zipcdseq^addr^상세주소^순번" colsep="^" colwidth="90, 140, 55, 80, 0, 0, 0, 0, 114, 0" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:181px; width:501px; height:149px; ">
  137. <col disabled="true" ref="bzplcergstno"/>
  138. <col disabled="true" ref="bizplcenm"/>
  139. <col disabled="true" ref="prsdnm"/>
  140. <col disabled="true" ref="bizplcetel"/>
  141. <col disabled="true" ref="zipcd1"/>
  142. <col disabled="true" ref="zipcd2"/>
  143. <col disabled="true" ref="zipcdseq"/>
  144. <col disabled="true" ref="addr"/>
  145. <col disabled="true" ref="detladdr"/>
  146. <col disabled="true" ref="bizplceseqno"/>
  147. <col disabled="true" ref="bizplcergstseqno"/>
  148. <script type="javascript" ev:event="onclick">
  149. <![CDATA[
  150. if( isDataCell() ){
  151. var row = grd_iaiwsearch.row;
  152. if (row >= grd_iaiwsearch.fixedrows){
  153. model.setValue("/root/main/icbpinfo/bzplcergstno", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/bzplcergstno"));
  154. model.setValue("/root/main/icbpinfo/bizplcenm", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/bizplcenm"));
  155. model.setValue("/root/main/icbpinfo/bizplcetel", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/bizplcetel"));
  156. model.setValue("/root/main/icbpinfo/prsdnm", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/prsdnm"));
  157. model.setValue("/root/main/icbpinfo/zipcd1", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/zipcd1"));
  158. model.setValue("/root/main/icbpinfo/zipcd2", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/zipcd2"));
  159. model.setValue("/root/main/icbpinfo/zipcdseq", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/zipcdseq"));
  160. model.setValue("/root/main/icbpinfo/addr", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/addr"));
  161. model.setValue("/root/main/icbpinfo/detladdr", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/detladdr"));
  162. model.setValue("/root/main/icbpinfo/bizplceseqno", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/bizplceseqno"));
  163. model.setValue("/root/main/icbpinfo/bizplcergstseqno", model.getValue("/root/main/grdicbp/grdicbpinfo[" + row + "]/bizplcergstseqno"));
  164. model.refresh();
  165. }
  166. }
  167. ]]>
  168. </script>
  169. <script type="javascript" ev:event="onaftersort">
  170. <![CDATA[
  171. grd_iaiwsearch.gridToInstance();
  172. ]]>
  173. </script>
  174. </datagrid>
  175. <button id="button37" class="icon_search" navindex="16" style="left:210px; top:131px; width:16px; height:16px; ">
  176. <caption/>
  177. <script type="javascript" ev:event="DOMActivate">
  178. <![CDATA[
  179. var rcv_zipcdhead_path = '/root/main/icbpinfo/zipcd1';
  180. var rcv_zipcdfoot_path = '/root/main/icbpinfo/zipcd2';
  181. var rcv_seqno_path = '/root/main/icbpinfo/zipcdseq';
  182. var rcv_address_path = '/root/main/icbpinfo/addr';
  183. var term = model.getValue("recv_zipcdhead_path");
  184. zbcfOpenZipCodeList("address", term, rcv_zipcdhead_path, rcv_zipcdfoot_path, rcv_seqno_path, rcv_address_path);
  185. model.setValue("/root/main/icbpinfo/detladdr", "");
  186. model.setFocus("ipt_detladdr");
  187. ipt_detladdr.refresh();
  188. ]]>
  189. </script>
  190. </button>
  191. <output id="ipt_addr" ref="/root/main/icbpinfo/addr" class="output_fix" appearance="output" style="left:234px; top:130px; width:267px; height:19px; "/>
  192. <input id="ipt_detladdr" ref="/root/main/icbpinfo/detladdr" class="input_default" navindex="17" style="left:103px; top:155px; width:398px; height:19px; "/>
  193. <caption id="caption78" class="cell_1" style="left:0px; top:129px; width:100px; height:23px; vertical-align:middle; ">우편번호</caption>
  194. <input id="ipt_zipcd1" ref="/root/main/icbpinfo/zipcd1" class="input_default" navindex="13" maxlength="3" format="999" style="left:103px; top:130px; width:35px; height:19px; "/>
  195. <input id="ipt_zipcd2" ref="/root/main/icbpinfo/zipcd2" class="input_default" navindex="14" maxlength="3" format="999" style="left:141px; top:130px; width:35px; height:19px; "/>
  196. <input id="ipt_zipcdseq" ref="/root/main/icbpinfo/zipcdseq" class="input_default" navindex="15" visibility="visible" maxlength="1" format="999" style="left:179px; top:130px; width:25px; height:19px; "/>
  197. <caption id="caption80" class="cell_1" style="left:0px; top:153px; width:100px; height:23px; vertical-align:middle; ">상세주소</caption>
  198. <input id="ipt_bzplcergstno" ref="/root/main/icbpinfo/bzplcergstno" navindex="1" style="left:103px; top:82px; width:146px; height:19px; "/>
  199. <input id="ipt_bizplcetel" ref="/root/main/icbpinfo/bizplcetel" navindex="3" style="left:103px; top:106px; width:146px; height:19px; "/>
  200. <input id="ipt_prsdnm" ref="/root/main/icbpinfo/prsdnm" navindex="4" imemode="hangul" style="left:355px; top:106px; width:146px; height:19px; "/>
  201. <line id="line6" class="line_2" style="x1:0px; y1:151px; x2:501px; y2:151px; "/>
  202. <group id="group2" style="left:0px; top:10px; width:501px; height:35px; ">
  203. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:500px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  204. <button id="btn_search" class="btn1_letter2" style="left:425px; top:7px; width:56px; height:22px; ">
  205. <caption>조회</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. if (model.getValue("/root/send/ref/reference") == "") {
  209. model.setValue("/root/send/ref/cond", "");
  210. }
  211. submit("TRPMC03701");
  212. ]]>
  213. </script>
  214. </button>
  215. <line id="line7" class="line_4" style="x1:415px; y1:4px; x2:415px; y2:31px; border-color:#ffcc99; border-style:solid; "/>
  216. <input id="ipt_reference" ref="/root/send/ref/reference" navindex="0" style="left:204px; top:9px; width:136px; height:19px; ">
  217. <script type="javascript" ev:event="onkeypress">
  218. <![CDATA[
  219. if (event.keyCode == "13") {
  220. inputEnterKey("btn_search", "DOMActivate");
  221. }
  222. ]]>
  223. </script>
  224. </input>
  225. <select1 id="cmb_cond" ref="/root/send/ref/cond" class="combo_search" appearance="minimal" style="left:103px; top:9px; width:97px; height:19px; ">
  226. <choices>
  227. <item>
  228. <label>사업장명</label>
  229. <value>0</value>
  230. </item>
  231. <item>
  232. <label>사업장등록번호</label>
  233. <value>1</value>
  234. </item>
  235. </choices>
  236. <script type="javascript" ev:event="xforms-select">
  237. <![CDATA[
  238. model.setValue("/root/send/ref/reference", "");
  239. model.setFocus("ipt_reference");
  240. ]]>
  241. </script>
  242. </select1>
  243. <caption id="caption19" class="search_name" style="left:14px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  244. </group>
  245. <line id="line9" class="line_6" style="x1:0px; y1:333px; x2:501px; y2:333px; "/>
  246. <caption id="caption2" class="cell_1" style="left:253px; top:81px; width:100px; height:23px; vertical-align:middle; ">사업장명</caption>
  247. <input id="ipt_bizplcenm" ref="/root/main/icbpinfo/bizplcenm" navindex="2" imemode="hangul" style="left:356px; top:82px; width:145px; height:19px; "/>
  248. <input id="input1" ref="/root/main/icbpinfo/bizplceseqno" visibility="hidden" style="left:475px; top:55px; width:15px; height:15px; "/>
  249. </group>
  250. </xhtml:body>
  251. </xhtml:html>