SSCPC00300_캠페인그룹트리.xrw 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SSCPC00100_캠페인그룹트리
  4. * Summary : 트리메뉴
  5. * Programmer : 엄윤호
  6. * Date Written : 2007.06.07
  7. * History :
  8. * Remark : 데이터마이닝 LeftTree 참조
  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. <cmpntreeinfo>
  19. <cmpntreelist>
  20. <cmpnnm/>
  21. <cmpnsmlcd/>
  22. <depth/>
  23. <cmpnallcd/>
  24. </cmpntreelist>
  25. </cmpntreeinfo>
  26. </main>
  27. <send>
  28. <refauth/>
  29. <cmpncls>
  30. <cmpnsmlcd>0</cmpnsmlcd>
  31. </cmpncls>
  32. </send>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-model-construct-done">
  36. <![CDATA[
  37. submit("TRCPC00301");
  38. ]]>
  39. </script>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. fCheckAuth();
  43. model.refresh();
  44. ]]>
  45. </script>
  46. <submission id="TRCPC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cmpntreeinfo"/>
  47. <submission id="TRCPC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpncls" resultref="/root/main/cmpn/cmpnlist"/>
  48. <submission id="TRCPC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpncls" resultref="/root/main/list/choslist"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript">
  52. <![CDATA[
  53. function fCheckAuth() {
  54. // 권한체크
  55. //if (!checkAuth("r")) {
  56. //}
  57. if (!checkAuth("x")) {
  58. btn_grpmngt.disabled=true;
  59. }
  60. //if (!checkAuth("p")) {
  61. //}
  62. }
  63. // 그리드를 초기화한다. (SPCPC00100_캠페인그룹관리 팝업에서 사용)
  64. function fInitGrid(){
  65. model.removeNodeset("/root/main/cmpntreeinfo/cmpntreelist");
  66. submit("TRCPC00301");
  67. }
  68. ]]>
  69. </script>
  70. </xhtml:head>
  71. <xhtml:body style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  72. <group id="grp_tree" scroll="auto" style="left:0px; top:0px; width:215px; height:744px; ">
  73. <line id="lin_tree" class="line_1" nodeset="/root/main/cmpninfo/cmpntreelist" style="x1:0px; y1:0px; x2:215px; y2:0px; "/>
  74. <treeview id="trv_leftmenu" ref="/root/send/cmpncls/cmpnsmlcd" expanddepth="2" fullrowselect="true" itemsettype="depth" style="left:0px; top:5px; width:215px; height:710px; ">
  75. <itemset nodeset="/root/main/cmpntreeinfo/cmpntreelist">
  76. <label ref="cmpnnm"/>
  77. <value ref="cmpnallcd"/>
  78. <depth ref="depth"/>
  79. </itemset>
  80. <script type="javascript" ev:event="xforms-select">
  81. <![CDATA[
  82. var cmpn_allcd = trv_leftmenu.value;
  83. var split_var=cmpn_allcd.split('/');
  84. var i = 0;
  85. var cmpnlrgcd = split_var[0];
  86. var cmpnmdlcd = split_var[1];
  87. var cmpnsmlcd = split_var[2];
  88. var cmpn_smlcd = cmpnsmlcd;
  89. //var cmpn_smlcd = trv_leftmenu.value; // 캠페인 소분류 코드를 이용
  90. var menu_id = model.getValue("/root/init/menuid"); //import 하는 페이지에 존재
  91. if (cmpn_smlcd > 0) {
  92. if (menu_id == "SMCPC00100") {
  93. //fInitGetAttr(1); //조회한 속성 초기화(SMCPC00100_캠페인관리 function)
  94. //fSetButtons(1); //캠페인 리스트 탭(SMCPC00100_캠페인관리 function)
  95. model.setValue("/root/send/cmpncls/cmpnsmlcd", cmpn_smlcd);
  96. submit("TRCPC00302"); //캠페인 리스트 조회(SMCPC00100_캠페인관리 grd_cmpnlist)
  97. model.setValue("/root/main/cmpn/cmpnattr/cmpnlrgcd", cmpnlrgcd);
  98. model.setValue("/root/main/cmpn/cmpnattr/cmpnmdlcd", cmpnmdlcd);
  99. model.setValue("/root/main/cmpn/cmpnattr/cmpnsmlcd", cmpnsmlcd);
  100. } else if (menu_id == "SMCPC00200") {
  101. fInitChosList(); //캠페인 응답 목록 초기화(SMCPC00200_캠페인응답 function)
  102. model.setValue("/root/send/cmpncls/cmpnsmlcd", cmpn_smlcd);
  103. submit("TRCPC00303"); //캠페인 응답 내원 조회(SMCPC00200_캠페인응답 grd_choslist)
  104. }
  105. }
  106. ]]>
  107. </script>
  108. </treeview>
  109. <button id="btn_grpmngt" class="btn2_letter4" style="left:151px; top:718px; width:64px; height:19px; ">
  110. <caption>그룹관리</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. modal("SPCPC00400");
  114. ]]>
  115. </script>
  116. </button>
  117. </group>
  118. </xhtml:body>
  119. </xhtml:html>