SPCHT00300_건진데이터마이닝그룹관리.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCHT00300_건진데이터마이닝그룹관리
  4. * Summary : 건진데이터마이닝 그룹관리
  5. * Programmer : 최정환
  6. * Date Written : 2007.06.19
  7. * History : 2007.06.19
  8. * Remark : 데이터마이닝 그룹관리 참조
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>건진데이터마이닝 그룹관리</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list>
  19. <healexamdtmnlrglist>
  20. <healexamdtmnlrggrup>
  21. <healexamdtmnlrgtitl/>
  22. <healexamdtmnlrgcd/>
  23. </healexamdtmnlrggrup>
  24. </healexamdtmnlrglist>
  25. <healexamdtmnmdllist>
  26. <healexamdtmnmdlgrup>
  27. <healexamdtmnmdltitl/>
  28. <healexamdtmnmdlcd/>
  29. <healexamdtmnlrgcd/>
  30. </healexamdtmnmdlgrup>
  31. </healexamdtmnmdllist>
  32. <healexamdtmnsmllist>
  33. <healexamdtmnsmlgrup>
  34. <healexamdtmnsmltitl/>
  35. <healexamdtmnsmlcd/>
  36. <healexamdtmnlrgcd/>
  37. <healexamdtmnmdlcd/>
  38. </healexamdtmnsmlgrup>
  39. </healexamdtmnsmllist>
  40. </list>
  41. </main>
  42. <send>
  43. <healexamdtmnlrgcd/>
  44. <healexamdtmnlrglist/>
  45. <healexamdtmnmdlcd/>
  46. <healexamdtmnmdllist/>
  47. <healexamdtmnsmlcd/>
  48. <healexamdtmnsmllist/>
  49. </send>
  50. <temp>
  51. <healexamdtmnlrgcd/>
  52. </temp>
  53. </root>
  54. </instance>
  55. <submission id="TRCHT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/healexamdtmnlrglist"/>
  56. <submission id="TRCHT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/healexamdtmnmdllist"/>
  57. <submission id="TRCHT00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/healexamdtmnsmllist"/>
  58. <submission id="TXCHT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root"/>
  59. <submission id="TXCHT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  60. <submission id="TXCHT00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  61. </model>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. // 그리드의 col을 초기화 시켜준다.
  67. model.removenodeset("/root/main/list/healexamdtmnlrglist/healexamdtmnlrggrup"); // 건진데이터마이닝 대그룹
  68. model.removenodeset("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup"); // 건진데이터마이닝 중그룹
  69. model.removenodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup"); // 건진데이터마이닝 소그룹
  70. submit("TRCHT00301");
  71. model.SetFocus("grd_healexamdtmnlrglist");
  72. grd_healexamdtmnlrglist.dispatch("onrowchanged"); // 선택된 행의 인덱스가 바뀌면 onrowchanged 이벤트 발생됨.
  73. model.refresh();
  74. ]]>
  75. </script>
  76. <script type="javascript">
  77. <![CDATA[
  78. // 대그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
  79. function fSaveClicklrg(grid){
  80. model.setValue("/root/send/healexamdtmnlrglist", grid.getUpdateData());
  81. if ( submit("TXCHT00301") ) {
  82. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  83. model.removeNodeset("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup");
  84. model.removeNodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
  85. submit("TRCHT00301"); // 저장하면 DB에 반영된 내용을 가져옴
  86. model.refresh();
  87. }
  88. }
  89. // 중그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
  90. function fSaveClickmdl(grid){
  91. model.setValue("/root/send/healexamdtmnmdllist", grid.getUpdateData());
  92. if ( submit("TXCHT00302") ) {
  93. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  94. model.removeNodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
  95. submit("TRCHT00302");
  96. }
  97. }
  98. // 건진데이터마이닝 소그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
  99. function fSaveClicksml(grid){
  100. model.setValue("/root/send/healexamdtmnsmllist", grid.getUpdateData());
  101. if ( submit("TXCHT00303") ) {
  102. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  103. submit("TRCHT00303");
  104. model.refresh();
  105. }
  106. }
  107. ]]>
  108. </script>
  109. </xhtml:head>
  110. <xhtml:body pagewidth="659" pageheight="460" style="border-color:#c7a3cf; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:630px; height:13px; ">건진데이터마이닝 그룹관리</caption>
  112. <group id="group1" scroll="auto" style="left:5px; top:13px; width:213px; height:420px; ">
  113. <button id="btn_add_healexamdtmnlrg" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
  114. <caption>행추가</caption>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. model.SetFocus("grd_healexamdtmnlrglist");
  118. grd_healexamdtmnlrglist.addrow();
  119. grd_healexamdtmnlrglist.editCell(); // 입력대기상태
  120. ]]>
  121. </script>
  122. </button>
  123. <button id="btn_delete_healexamdtmnlrg" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
  124. <caption>행삭제</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. var row = grd_healexamdtmnlrglist.row;
  128. var healexamdtmnlrgcd = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgcd"));
  129. if (healexamdtmnlrgcd != "") {
  130. var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
  131. if(rtn == 6){
  132. deleteSelectedRows(grd_healexamdtmnlrglist, false);
  133. // grd_healexamdtmnlrglist.deleteRow(grd_healexamdtmnlrglist.row);
  134. }
  135. } else
  136. {
  137. messageBox("대분류가 선택되지 ", "E007");
  138. }
  139. ]]>
  140. </script>
  141. </button>
  142. <button id="btn_save_healexamdtmnlrg" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
  143. <caption>저장</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. fSaveClicklrg(grd_healexamdtmnlrglist);
  147. ]]>
  148. </script>
  149. </button>
  150. <line id="line12" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
  151. <datagrid id="grd_healexamdtmnlrglist" nodeset="/root/main/list/healexamdtmnlrglist/healexamdtmnlrggrup" caption="대그룹 제목^대그룹코드" colwidth="191,0" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:0px; top:29px; width:213px; height:378px; ">
  152. <col ref="healexamdtmnlrgtitl" type="input"/>
  153. <col ref="healexamdtmnlrgcd" type="hidden"/>
  154. <script type="javascript" ev:event="onrowchanged">
  155. <![CDATA[
  156. // 선택한 대그룹에 속한 중그룹을 가져온다.
  157. var row = grd_healexamdtmnlrglist.row;
  158. var healexamdtmnlrgcd = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgcd"));
  159. var healexamdtmnlrgnm = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgtitl"));
  160. if (healexamdtmnlrgnm != "" && row >0 ) {
  161. model.setValue("/root/send/healexamdtmnlrgcd", healexamdtmnlrgcd);
  162. model.removenodeset("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup");
  163. model.removenodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
  164. submit("TRCHT00302");
  165. } else {
  166. }
  167. grd_healexamdtmnlrglist.dispatch("onmouseup");
  168. ]]>
  169. </script>
  170. </datagrid>
  171. </group>
  172. <group id="group2" scroll="auto" style="left:223px; top:13px; width:213px; height:420px; ">
  173. <button id="btn_add_healexamdtmnmdl" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
  174. <caption>행추가</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. model.SetFocus("grd_healexamdtmnmdllist");
  178. var row = grd_healexamdtmnlrglist.row;
  179. var healexamdtmnlrgcd = grd_healexamdtmnlrglist.valueMatrix( row, grd_healexamdtmnlrglist.colRef("healexamdtmnlrgcd"));
  180. if (healexamdtmnlrgcd != "") {
  181. grd_healexamdtmnmdllist.addrow();
  182. grd_healexamdtmnmdllist.editCell();
  183. model.setValue("/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup["+grd_healexamdtmnmdllist.row+"]/healexamdtmnlrgcd",healexamdtmnlrgcd);
  184. } else {
  185. messageBox("대분류가 선택되지 ", "E007");
  186. }
  187. ]]>
  188. </script>
  189. </button>
  190. <button id="btn_delete_healexamdtmnmdl" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
  191. <caption>행삭제</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. var row = grd_healexamdtmnmdllist.row;
  195. var healexamdtmnmdlcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdlcd"));
  196. if (healexamdtmnmdlcd != "") {
  197. var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
  198. if(rtn == 6){
  199. deleteSelectedRows(grd_healexamdtmnmdllist, false);
  200. // grd_healexamdtmnmdllist.deleteRow(grd_healexamdtmnmdllist.row);
  201. }
  202. } else
  203. {
  204. messageBox("중분류가 선택되지 ", "E007");
  205. }
  206. ]]>
  207. </script>
  208. </button>
  209. <button id="btn_save_healexamdtmnmdl" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
  210. <caption>저장</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. fSaveClickmdl(grd_healexamdtmnmdllist);
  214. ]]>
  215. </script>
  216. </button>
  217. <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
  218. <datagrid id="grd_healexamdtmnmdllist" nodeset="/root/main/list/healexamdtmnmdllist/healexamdtmnmdlgrup" caption="중그룹 제목^중그룹 코드^" colwidth="191,0,0" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:0px; top:29px; width:213px; height:378px; ">
  219. <col ref="healexamdtmnmdltitl" type="input"/>
  220. <col ref="healexamdtmnmdlcd" type="hidden"/>
  221. <col ref="healexamdtmnlrgcd"/>
  222. <script type="javascript" ev:event="onrowchanged">
  223. <![CDATA[
  224. // 선택한 중그룹에 속한 소그룹을 가져온다.
  225. var row = grd_healexamdtmnmdllist.row;
  226. var healexamdtmnmdlcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdlcd"));
  227. var healexamdtmnlrgcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnlrgcd"));
  228. var healexamdtmnmdlnm = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdltitl"));
  229. if ( healexamdtmnmdlnm != "" ){
  230. model.setValue("/root/send/healexamdtmnmdlcd", healexamdtmnmdlcd);
  231. model.setValue("/root/send/healexamdtmnlrgcd", healexamdtmnlrgcd);
  232. model.removenodeset("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup");
  233. submit("TRCHT00303");
  234. } else {
  235. }
  236. grd_healexamdtmnmdllist.dispatch("onmouseup");
  237. ]]>
  238. </script>
  239. </datagrid>
  240. </group>
  241. <group id="group3" scroll="auto" style="left:441px; top:13px; width:213px; height:420px; ">
  242. <button id="btn_add_healexamdtmnsml" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
  243. <caption>행추가</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. model.SetFocus("grd_healexamdtmnsmllist");
  247. var row = grd_healexamdtmnmdllist.row;
  248. var healexamdtmnlrgcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnlrgcd"));
  249. var healexamdtmnmdlcd = grd_healexamdtmnmdllist.valueMatrix( row, grd_healexamdtmnmdllist.colRef("healexamdtmnmdlcd"));
  250. if (healexamdtmnmdlcd != "") {
  251. grd_healexamdtmnsmllist.addrow();
  252. grd_healexamdtmnsmllist.editCell();
  253. model.setValue("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup["+grd_healexamdtmnsmllist.row+"]/healexamdtmnlrgcd",healexamdtmnlrgcd);
  254. model.setValue("/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup["+grd_healexamdtmnsmllist.row+"]/healexamdtmnmdlcd",healexamdtmnmdlcd);
  255. } else {
  256. messageBox("중분류가 선택되지 ", "E007");
  257. }
  258. ]]>
  259. </script>
  260. </button>
  261. <button id="btn_delete_healexamdtmnsml" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
  262. <caption>행삭제</caption>
  263. <script type="javascript" ev:event="DOMActivate">
  264. <![CDATA[
  265. //grd_healexamdtmnlrglist.deleteRow(grd_healexamdtmnlrglist.row, true);
  266. var row = grd_healexamdtmnsmllist.row;
  267. var healexamdtmnsmlcd = grd_healexamdtmnsmllist.valueMatrix( row, grd_healexamdtmnsmllist.colRef("healexamdtmnsmlcd"));
  268. if (healexamdtmnsmlcd != "") {
  269. var rtn = messageBox("소그룹을 ", "Q001");
  270. if(rtn == 6){
  271. deleteSelectedRows(grd_healexamdtmnsmllist, false);
  272. // grd_healexamdtmnsmllist.deleteRow(grd_healexamdtmnsmllist.row);
  273. }
  274. } else
  275. {
  276. messageBox("소분류가 선택되지 ", "E007");
  277. }
  278. ]]>
  279. </script>
  280. </button>
  281. <button id="btn_save_healexamdtmnsml" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
  282. <caption>저장</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. fSaveClicksml(grd_healexamdtmnsmllist);
  286. ]]>
  287. </script>
  288. </button>
  289. <line id="line2" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
  290. <datagrid id="grd_healexamdtmnsmllist" nodeset="/root/main/list/healexamdtmnsmllist/healexamdtmnsmlgrup" caption="소그룹 제목^소그룹코드^^" colwidth="191,0,0,0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:29px; width:213px; height:378px; ">
  291. <col ref="healexamdtmnsmltitl" type="input"/>
  292. <col ref="healexamdtmnsmlcd" type="hidden"/>
  293. <col ref="healexamdtmnlrgcd"/>
  294. <col ref="healexamdtmnmdlcd"/>
  295. <script type="javascript" ev:event="ondblclick">
  296. <![CDATA[
  297. ]]>
  298. </script>
  299. </datagrid>
  300. </group>
  301. <group id="group4" scroll="auto" style="left:0px; top:420px; width:659px; height:27px; ">
  302. <button id="button8" class="btn4_letter2" style="left:598px; top:5px; width:56px; height:22px; ">
  303. <caption>닫기</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. opener.javascript.fInitGrid();
  307. opener.javascript.fHealExamDtmnLrg();
  308. window.close();
  309. opener.activate();
  310. ]]>
  311. </script>
  312. </button>
  313. </group>
  314. </xhtml:body>
  315. </xhtml:html>