SMZHI00300_업체관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SMZHI00300_업체관리.xrw
  4. * 설 명 : 업체선택
  5. * 설 계 자 : 서원식
  6. * 작 성 자 : 서원식
  7. * 작 성 일 : 2012.11.21
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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">
  13. <xhtml:head>
  14. <xhtml:title>업체 관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <cmpylist>
  20. <item>
  21. <cmpytype/>
  22. <cmpycd/>
  23. <cmpynm/>
  24. <cmpyno/>
  25. <zipcd1/>
  26. <zipcd2/>
  27. <zipcdseq/>
  28. <addr/>
  29. <detladdr/>
  30. <prsdnm/>
  31. <telno/>
  32. <faxno/>
  33. <remcnts/>
  34. <todd/>
  35. <fromdd/>
  36. </item>
  37. </cmpylist>
  38. <cmpyinfo>
  39. <cmpytype/>
  40. <cmpycd/>
  41. <cmpynm/>
  42. <cmpyno/>
  43. <prsdnm/>
  44. <zipcd1/>
  45. <zipcd2/>
  46. <zipcdseq/>
  47. <addr/>
  48. <detladdr/>
  49. <telno/>
  50. <faxno/>
  51. <remcnts/>
  52. <todd/>
  53. <fromdd/>
  54. </cmpyinfo>
  55. </main>
  56. <send>
  57. <search>
  58. <cmpytype/>
  59. <cmpynm/>
  60. <cmpycd/>
  61. </search>
  62. <searchCmpyinfo/>
  63. <saveCmpyinfo/>
  64. </send>
  65. <init>
  66. <baseinfo>
  67. <item>
  68. <test>
  69. <cdid>1</cdid>
  70. <cdnm>
  71. test1
  72. </cdnm>
  73. </test>
  74. <test>
  75. <cdid>2</cdid>
  76. <cdnm>
  77. test2
  78. </cdnm>
  79. </test>
  80. </item>
  81. </baseinfo>
  82. </init>
  83. <temp/>
  84. </root>
  85. </instance>
  86. <submission id="TRZHI00301" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/search" replace="instance" resultref="/root/main/cmpylist"/>
  87. <submission id="TXZHI00301" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveCmpyinfo" replace="instance" resultref="/temp"/>
  88. <submission id="TXZHI00302" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveCmpyinfo" replace="instance" resultref="/temp"/>
  89. <submission id="TXZHI00303" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/saveCmpyinfo" replace="instance" resultref="/temp"/>
  90. </model>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  97. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  98. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  99. <script type="javascript" src="../../../com/irmsweb/js/IrmsCom.js"/>
  100. <script type="javascript" ev:event="xforms-ready">
  101. <![CDATA[
  102. // fGetBaseInfo(); //기본/공통코드 정보를 조회
  103. fInitInfo(); //초기화
  104. model.refresh();
  105. ]]>
  106. </script>
  107. <script type="javascript">
  108. <![CDATA[/*
  109. * 기본코드 정보를 조회
  110. */
  111. function fGetBaseInfo(){
  112. }
  113. /*
  114. *입력항목 초기화
  115. */
  116. function fInitInfo(){
  117. model.resetInstanceNode("root/send/search");
  118. model.resetInstanceNode("/root/main/cmpyinfo");
  119. model.removeNodeset("/root/main/cmpylist");
  120. model.refresh();
  121. }
  122. function fGetList(){
  123. model.resetInstanceNode("/root/main/cmpyinfo");
  124. model.resetInstanceNode("/root/main/cmpylist");
  125. submit("TRZHI00301");
  126. }
  127. /*
  128. * 업체정보 체크
  129. */
  130. function fCheckCmpyinfo(){
  131. // if(model.getValue("/root/main/eqmtinfo/instcd") == ""){
  132. // messageBox("사업체정보", "C001");
  133. // return false;
  134. // }else if(model.getValue("/root/main/eqmtinfo/instcd") == ""){
  135. // messageBox("사업체정보", "C001");
  136. // return false;
  137. // }else if(model.getValue("/root/main/eqmtinfo/windd") == ""){
  138. // messageBox("사업체정보", "C001");
  139. // return false;
  140. // }else if(model.getValue("/root/main/eqmtinfo/winamt") == ""){
  141. // messageBox("사업체정보", "C001");
  142. // return false;
  143. // }else if(model.getValue("/root/main/eqmtinfo/wintype") == ""){
  144. // messageBox("사업체정보", "C001");
  145. // return false;
  146. // }
  147. return true;
  148. }
  149. /*
  150. * 업체정보 저장
  151. */
  152. function fSetCmpyinfo(){
  153. if(fCheckCmpyinfo()){
  154. if(model.getValue("/root/main/cmpyinfo/cmpycd") == ""){
  155. //입력
  156. model.removenode("/root/send/saveCmpyinfo");
  157. model.makeNode("/root/send/saveCmpyinfo");
  158. model.copyNode("/root/send/saveCmpyinfo", "/root/main/cmpyinfo");
  159. if(submit("TXZHI00301")){
  160. messageBox("사업체정보", "I001");
  161. return true;
  162. }
  163. }else{
  164. //수정
  165. model.removenode("/root/send/saveCmpyinfo");
  166. model.makeNode("/root/send/saveCmpyinfo");
  167. model.copyNode("/root/send/saveCmpyinfo", "/root/main/cmpyinfo");
  168. if(submit("TXZHI00302")){
  169. messageBox("사업체정보", "I001");
  170. return true;
  171. }
  172. }
  173. }
  174. }
  175. /*
  176. * 업체정보 삭제
  177. */
  178. function fDelEqmtinfo(){
  179. if(fCheckCmpyinfo()){
  180. if(model.getValue("/root/main/cmpyinfo/cmpycd") != ""){
  181. model.removenode("/root/send/saveCmpyinfo");
  182. model.makeNode("/root/send/saveCmpyinfo");
  183. model.copyNode("/root/send/saveCmpyinfo", "/root/main/cmpyinfo");
  184. if(submit("TXZHI00303")){
  185. messageBox("사업체정보", "I001");
  186. return true;
  187. }
  188. }
  189. }
  190. }
  191. ]]>
  192. </script>
  193. </xhtml:head>
  194. <xhtml:body>
  195. <group id="grp_tle" style="left:0px; top:0px; width:1210px; height:13px; ">
  196. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:217px; height:15px; ">업체 관리</caption>
  197. </group>
  198. <group id="group1" style="left:0px; top:120px; width:1210px; height:660px; ">
  199. <caption id="caption9" class="tit_2" style="left:0px; top:5px; width:180px; height:13px; ">업체 정보</caption>
  200. <line id="line4" class="line_1" style="x1:0px; y1:22px; x2:560px; y2:22px; "/>
  201. <datagrid id="grd_cmpylist" nodeset="/root/main/cmpylist/item" class="datagrid" caption="사업체코드^사업장명^사업장등록번호^대표자명^대표전화^팩스번호^비고" colsep="^" colwidth="80, 100, 100, 70, 85, 85" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:560px; height:630px; ">
  202. <col ref="cmpycd"/>
  203. <col ref="cmpynm"/>
  204. <col ref="cmpyno"/>
  205. <col ref="prsdnm"/>
  206. <col ref="telno"/>
  207. <col ref="faxno"/>
  208. <script type="javascript" ev:event="ondblclick">
  209. <![CDATA[
  210. model.copyNode("/root/main/cmpyinfo", "/root/main/cmpylist/item["+ grd_cmpylist.row+"]");
  211. model.refresh();
  212. ]]>
  213. </script>
  214. </datagrid>
  215. <caption id="caption27" class="tit_2" style="left:565px; top:7px; width:155px; height:13px; ">업체 상세정보</caption>
  216. <line id="line8" class="line_1" style="x1:565px; y1:22px; x2:1192px; y2:22px; "/>
  217. <caption id="caption26" class="cell_1" style="left:565px; top:27px; width:100px; height:23px; vertical-align:middle; ">업체구분</caption>
  218. <caption id="caption21" class="cell_1" style="left:565px; top:102px; width:100px; height:23px; vertical-align:middle; ">사업자등록번호</caption>
  219. <caption id="caption56" class="cell_1" style="left:565px; top:177px; width:100px; height:23px; vertical-align:middle; ">대표자명</caption>
  220. <caption id="caption28" class="cell_1" style="left:565px; top:127px; width:100px; height:23px; vertical-align:middle; ">우편번호</caption>
  221. <caption id="caption31" class="cell_1" style="left:565px; top:152px; width:100px; height:23px; vertical-align:middle; ">상세주소</caption>
  222. <caption id="caption33" class="cell_1" style="left:565px; top:202px; width:100px; height:23px; vertical-align:middle; ">전화번호</caption>
  223. <caption id="caption65" class="cell_1" style="left:565px; top:226px; width:100px; height:23px; vertical-align:middle; ">팩스번호</caption>
  224. <caption id="caption30" class="cell_1" style="left:565px; top:251px; width:100px; height:23px; vertical-align:middle; ">비고</caption>
  225. <input id="input9" ref="/root/main/cmpyinfo/cmpyno" class="input_default" style="left:668px; top:103px; width:100px; height:19px; "/>
  226. <input id="ipt_prsdnm" ref="/root/main/cmpyinfo/prsdnm" class="input_default" style="left:668px; top:179px; width:100px; height:19px; "/>
  227. <output id="output3" ref="/root/main/cmpyinfo/zipcd1" class="output_fix" style="left:668px; top:129px; width:42px; height:19px; "/>
  228. <line id="line6" style="x1:713px; y1:138px; x2:723px; y2:138px; "/>
  229. <output id="output4" ref="/root/main/cmpyinfo/zipcd2" class="output_fix" style="left:726px; top:129px; width:42px; height:19px; "/>
  230. <button id="button5" class="icon_search" style="left:773px; top:132px; width:16px; height:16px; ">
  231. <caption/>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. zbcfOpenZipCodeList("combination", "", "/root/main/cmpyinfo/zipcd1", "/root/main/cmpyinfo/zipcd2", "/root/main/cmpyinfo/zipcdseq", "/root/main/cmpyinfo/addr", "hangul", "/root/main/cmpyinfo/detladdr");
  235. ]]>
  236. </script>
  237. </button>
  238. <output id="output5" ref="/root/main/cmpyinfo/addr" class="output_fix" style="left:795px; top:129px; width:396px; height:19px; "/>
  239. <input id="input7" ref="/root/main/cmpyinfo/detladdr" class="input_default" style="left:668px; top:154px; width:523px; height:19px; "/>
  240. <input id="input18" ref="/root/main/cmpyinfo/telno" class="input_default" style="left:668px; top:204px; width:100px; height:19px; "/>
  241. <input id="ipt_faxno" ref="/root/main/cmpyinfo/faxno" class="input_default" style="left:668px; top:227px; width:100px; height:19px; "/>
  242. <input id="input17" ref="/root/main/cmpyinfo/remcnts" class="input_default" style="left:668px; top:253px; width:523px; height:19px; "/>
  243. <caption id="caption3" class="cell_1" style="left:565px; top:77px; width:100px; height:23px; vertical-align:middle; ">업체명</caption>
  244. <input id="input2" ref="/root/main/cmpyinfo/cmpynm" class="input_essential" style="left:668px; top:78px; width:100px; height:19px; "/>
  245. <caption id="caption4" class="cell_1" style="left:566px; top:52px; width:100px; height:23px; vertical-align:middle; ">업체코드</caption>
  246. <input id="input3" ref="/root/main/cmpyinfo/cmpycd" class="input_essential" disabled="true" style="left:668px; top:53px; width:100px; height:19px; "/>
  247. <select1 id="combo1" ref="/root/main/cmpyinfo/cmpytype" class="combo_essential" appearance="minimal" style="left:668px; top:28px; width:100px; height:19px; ">
  248. <choices>
  249. <itemset nodeset="/root/init/baseinfo/item/test">
  250. <label ref="cdnm"/>
  251. <value ref="cdid"/>
  252. </itemset>
  253. </choices>
  254. </select1>
  255. </group>
  256. <group id="grp_search" style="left:0px; top:40px; width:1210px; height:75px; ">
  257. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:5px; width:1205px; height:65px; "/>
  258. <caption id="caption1" class="search_name" style="left:5px; top:15px; width:89px; height:17px; ">업체구분</caption>
  259. <button id="button1" class="btn1_letter2" navindex="15" style="left:1140px; top:25px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  260. <caption>조회</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. fGetList();
  264. ]]>
  265. </script>
  266. </button>
  267. <select1 id="combo2" ref="/root/send/search/cmpytype" class="combo_essential" appearance="minimal" style="left:90px; top:15px; width:100px; height:19px; ">
  268. <choices>
  269. <itemset nodeset="/root/init/baseinfo/item/test">
  270. <label ref="cdnm"/>
  271. <value ref="cdid"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <button id="button2" class="icon_search" navindex="5" style="left:390px; top:15px; width:16px; height:16px; ">
  276. <caption/>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. fGetCmpyCd("SPZHI00300", "nm", ipt_cmpynm.currentText, "/root/send/search/cmpycd", "/root/send/search/cmpynm");
  280. ]]>
  281. </script>
  282. </button>
  283. <caption id="caption2" class="search_name" style="left:200px; top:15px; width:89px; height:17px; ">업체명</caption>
  284. <input id="input1" ref="/root/send/search/cmpynm" class="input_search" style="left:270px; top:15px; width:115px; height:19px; ">
  285. <script type="javascript" ev:event="onkeyup">
  286. <![CDATA[
  287. if(event.keyCode == 13){
  288. btn_cmpy.dispatch("DOMActivate");
  289. }
  290. ]]>
  291. </script>
  292. </input>
  293. <input id="input4" ref="/root/send/search/cmpycd" class="input_search" style="left:410px; top:15px; width:65px; height:19px; "/>
  294. </group>
  295. <group id="grp_ipt" style="left:0px; top:15px; width:1210px; height:25px; ">
  296. <button id="btn_new" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1019px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  297. <caption>초기화</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. fInitInfo();
  301. ]]>
  302. </script>
  303. </button>
  304. <button id="btn_save" class="btn4_letter2" disabled="false" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1090px; top:2px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  305. <caption>저장</caption>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. if(fSetCmpyinfo()){
  309. fGetList();
  310. }
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_delete" class="btn4_letter2" disabled="false" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1149px; top:2px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  315. <caption>삭제</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. if(messageBox("사업체정보를", "Q001") != 6) return -1;
  319. if(fDelEqmtinfo()){
  320. fGetList();
  321. }
  322. ]]>
  323. </script>
  324. </button>
  325. </group>
  326. </xhtml:body>
  327. </xhtml:html>