SPCIT01500_만족도목적분류관리.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCIT01500_만족도목적분류관리
  4. * Summary : 만족도 목적 분류관리
  5. * Programmer : 황현석
  6. * Date Written : 2010.06.24
  7. * History :
  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. <qestitemlist>
  19. <qestitemlrglist>
  20. <qestitemlrgnm/>
  21. <qestitemlrgcd/>
  22. </qestitemlrglist>
  23. <qestitemmdllist>
  24. <qestitemmdlnm/>
  25. <qestitemmdlcd/>
  26. <qestitemlrgcd/>
  27. </qestitemmdllist>
  28. </qestitemlist>
  29. </main>
  30. <send>
  31. <qestitemlrgcd/>
  32. <qestitemlrglist/>
  33. <qestitemmdlcd/>
  34. <qestitemmdllist/>
  35. </send>
  36. <temp>
  37. <result/>
  38. </temp>
  39. </root>
  40. </instance>
  41. <submission id="TRCIT01501" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/qestitemlist/qestitemlrglist"/>
  42. <submission id="TRCIT01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/qestitemlist/qestitemmdllist"/>
  43. <submission id="TXCIT01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
  44. <submission id="TXCIT01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. // 그리드의 col을 초기화 시켜준다.
  51. model.removenodeset("/root/main/qestitemlist/qestitemlrglist"); // 캠페인 대그룹
  52. model.removenodeset("/root/main/qestitemlist/qestitemmdllist"); // 캠페인 중그룹
  53. submit("TRCIT01501"); // 대그룹
  54. model.SetFocus("grd_qestitemlrglist");
  55. grd_qestitemlrglist.dispatch("onrowchanged"); // 선택된 행의 인덱스가 바뀌면 onrowchanged 이벤트 발생됨.
  56. // fCheckAuth();
  57. model.refresh();
  58. ]]>
  59. </script>
  60. <script type="javascript">
  61. <![CDATA[
  62. // function fCheckAuth() {
  63. // // 권한체크
  64. // if (!checkAuth("r")) {
  65. // }
  66. // if (!checkAuth("x")) {
  67. // btn_add_qestitemlrg.disabled=true;
  68. // btn_delete_qestitemlrg.disabled=true;
  69. // btn_save_qestitemlrg.disabled=true;
  70. // btn_add_qestitemmdl.disabled=true;
  71. // btn_delete_qestitemmdl.disabled=true;
  72. // btn_save_qestitemmdl.disabled=true;
  73. // }
  74. // if (!checkAuth("p")) {
  75. // }
  76. // }
  77. // 대그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
  78. function fSaveClicklrg(grid){
  79. var updt_list = getGridUpdateData(grid);
  80. if (updt_list != "") {
  81. model.makeValue("/root/send/qestitemlrglist", grid.getUpdateData());
  82. }
  83. if ( submit("TXCIT01501") ) {
  84. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  85. //model.setValue("/root/send/qestitemlrglist", ""); // 대분류 저장 초기화
  86. model.removeNodeset("/root/main/qestitemlist/qestitemlrglist");
  87. //model.removeNodeset("/root/main/qestitemlist/qestitemmdllist");
  88. submit("TRCIT01501"); // 저장하면 DB에 반영된 내용을 가져옴
  89. }
  90. model.refresh();
  91. }
  92. // 중그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
  93. function fSaveClickmdl(grid){
  94. model.setValue("/root/send/qestitemmdllist", grid.getUpdateData());
  95. if ( submit("TXCIT01502") ) {
  96. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  97. submit("TRCIT01502");
  98. }
  99. model.refresh();
  100. }
  101. ]]>
  102. </script>
  103. </xhtml:head>
  104. <xhtml:body pagewidth="550" pageheight="500" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  105. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">만족도 목적 분류</caption>
  106. <group id="group1" style="left:5px; top:13px; width:250px; height:407px; ">
  107. <line id="line12" class="line_1" style="x1:0px; y1:27; x2:250; y2:27px; "/>
  108. <button id="btn_save_qestitemlrg" class="btn5_letter2" style="left:208; top:5; width:42px; height:19px; ">
  109. <caption>저장</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. fSaveClicklrg(grd_qestitemlrglist);
  113. ]]>
  114. </script>
  115. </button>
  116. <button id="btn_del_qestitemlrg" class="btn2_letter3" style="left:152; top:5; width:53px; height:19px; ">
  117. <caption>행삭제</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. var row = grd_qestitemlrglist.row;
  121. var qestitemlrgcd = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgcd"));
  122. if (qestitemlrgcd != "") {
  123. var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
  124. if (rtn == 6) {
  125. deleteSelectedRows(grd_qestitemlrglist, false);
  126. messageBox("삭제한 목록을 적용하시려면 저장버튼을 클릭하세요", "");
  127. //grd_qestlistlrg.deleteRow(grd_qestitemlistlrg.row);
  128. }
  129. } else {
  130. messageBox("대분류가 선택되지 ", "E007");
  131. }
  132. ]]>
  133. </script>
  134. </button>
  135. <button id="btn_add_qestitemlrg" class="btn2_letter3" style="left:96; top:5; width:53; height:19; ">
  136. <caption>행추가</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. model.SetFocus("grd_qestitemlrglist");
  140. grd_qestitemlrglist.addRow();
  141. grd_qestitemlrglist.editCell(); // 입력대기상태
  142. ]]>
  143. </script>
  144. </button>
  145. <datagrid id="grd_qestitemlrglist" nodeset="/root/main/qestitemlist/qestitemlrglist" allowuserresize="false" caption="대그룹 제목^대그룹코드" colwidth="200,0" extendlastcol="scroll" rowheader="update" tooltip="true" style="left:0px; top:32; width:250; height:375px; ">
  146. <col ref="qestitemlrgnm" type="input" maxlength="40"/>
  147. <col ref="qestitemlrgcd" visibility="hidden"/>
  148. <script type="javascript" ev:event="onrowchanged">
  149. <![CDATA[
  150. // 선택한 대그룹에 속한 중그룹을 가져온다.
  151. var row = grd_qestitemlrglist.row;
  152. var qestitemlrgnm = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgnm"));
  153. var qestitemlrgcd = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgcd"));
  154. if (qestitemlrgnm != "" && row > 0) {
  155. model.setValue("/root/send/qestitemlrgcd", qestitemlrgcd);
  156. model.removenodeset("/root/main/qestitemlist/qestitemmdllist");
  157. submit("TRCIT01502");
  158. }
  159. grd_qestitemlrglist.dispatch("onmouseup");
  160. ]]>
  161. </script>
  162. </datagrid>
  163. </group>
  164. <group id="group2" style="left:260; top:13px; width:250; height:407px; ">
  165. <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:250px; y2:27px; "/>
  166. <button id="btn_save_qestitemmdl" class="btn5_letter2" style="left:208; top:5; width:42; height:19; ">
  167. <caption>저장</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. fSaveClickmdl(grd_qestitemmdllist);
  171. ]]>
  172. </script>
  173. </button>
  174. <button id="btn_del_qestitemmdl" class="btn2_letter3" style="left:152; top:5; width:53px; height:19px; ">
  175. <caption>행삭제</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. var row = grd_qestitemmdllist.row;
  179. var qestitemmdlcd = grd_qestitemmdllist.valueMatrix( row, grd_qestitemmdllist.colRef("qestitemmdlcd"));
  180. if (qestitemmdlcd != "") {
  181. var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
  182. if (rtn == 6) {
  183. deleteSelectedRows(grd_qestitemmdllist, false);
  184. //grd_qestlistmdl.deleteRow(grd_qestlistmdl.row);
  185. }
  186. } else {
  187. messageBox("중분류가 선택되지 ", "E007");
  188. }
  189. ]]>
  190. </script>
  191. </button>
  192. <button id="btn_add_qestitemmdl" class="btn2_letter3" style="left:96px; top:5px; width:53px; height:19px; ">
  193. <caption>행추가</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. model.SetFocus("grd_qestitemmdllist");
  197. var row = grd_qestitemlrglist.row;
  198. var qestitemlrgcd = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgcd"));
  199. if (qestitemlrgcd != "") {
  200. grd_qestitemmdllist.addRow();
  201. grd_qestitemmdllist.editCell();
  202. model.setValue("/root/main/qestitemlist/qestitemmdllist["+grd_qestitemmdllist.row+"]/qestitemlrgcd",qestitemlrgcd);
  203. } else {
  204. messageBox("대분류가 선택되지 ", "E007");
  205. }
  206. ]]>
  207. </script>
  208. </button>
  209. <datagrid id="grd_qestitemmdllist" nodeset="/root/main/qestitemlist/qestitemmdllist" allowuserresize="false" caption="중그룹 제목^중그룹 코드" colwidth="200,0,0" extendlastcol="scroll" rowheader="update" tooltip="true" style="left:0; top:32; width:250px; height:375px; ">
  210. <col ref="qestitemmdlnm" type="input" maxlength="40"/>
  211. <col ref="qestitemmdlcd" visibility="hidden"/>
  212. <col ref="qestitemlrgcd" visibility="hidden"/>
  213. </datagrid>
  214. </group>
  215. <group id="group3" scroll="auto" style="left:0px; top:420px; width:510px; height:27px; ">
  216. <button id="btn_close" class="btn4_letter2" style="left:454px; top:5px; width:56px; height:22px; ">
  217. <caption>닫기</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. opener.javascript.fInitGrid();
  221. window.close();
  222. //opener.activate();
  223. ]]>
  224. </script>
  225. </button>
  226. </group>
  227. </xhtml:body>
  228. </xhtml:html>