123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SSCPC00100_캠페인그룹트리
- * Summary : 트리메뉴
- * Programmer : 엄윤호
- * Date Written : 2007.06.07
- * History :
- * Remark : 데이터마이닝 LeftTree 참조
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>캠페인분류</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cmpntreeinfo>
- <cmpntreelist>
- <cmpnnm/>
- <cmpnsmlcd/>
- <depth/>
- <cmpnallcd/>
- </cmpntreelist>
- </cmpntreeinfo>
- </main>
- <send>
- <refauth/>
- <cmpncls>
- <cmpnsmlcd>0</cmpnsmlcd>
- </cmpncls>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- submit("TRCPC00301");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();
- model.refresh();
- ]]>
- </script>
- <submission id="TRCPC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cmpntreeinfo"/>
- <submission id="TRCPC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpncls" resultref="/root/main/cmpn/cmpnlist"/>
- <submission id="TRCPC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpncls" resultref="/root/main/list/choslist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- //if (!checkAuth("r")) {
- //}
- if (!checkAuth("x")) {
- btn_grpmngt.disabled=true;
- }
- //if (!checkAuth("p")) {
- //}
- }
-
- // 그리드를 초기화한다. (SPCPC00100_캠페인그룹관리 팝업에서 사용)
- function fInitGrid(){
- model.removeNodeset("/root/main/cmpntreeinfo/cmpntreelist");
- submit("TRCPC00301");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="grp_tree" scroll="auto" style="left:0px; top:0px; width:215px; height:744px; ">
- <line id="lin_tree" class="line_1" nodeset="/root/main/cmpninfo/cmpntreelist" style="x1:0px; y1:0px; x2:215px; y2:0px; "/>
- <treeview id="trv_leftmenu" ref="/root/send/cmpncls/cmpnsmlcd" expanddepth="2" fullrowselect="true" itemsettype="depth" style="left:0px; top:5px; width:215px; height:710px; ">
- <itemset nodeset="/root/main/cmpntreeinfo/cmpntreelist">
- <label ref="cmpnnm"/>
- <value ref="cmpnallcd"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var cmpn_allcd = trv_leftmenu.value;
- var split_var=cmpn_allcd.split('/');
- var i = 0;
-
- var cmpnlrgcd = split_var[0];
- var cmpnmdlcd = split_var[1];
- var cmpnsmlcd = split_var[2];
- var cmpn_smlcd = cmpnsmlcd;
- //var cmpn_smlcd = trv_leftmenu.value; // 캠페인 소분류 코드를 이용
- var menu_id = model.getValue("/root/init/menuid"); //import 하는 페이지에 존재
-
- if (cmpn_smlcd > 0) {
- if (menu_id == "SMCPC00100") {
- //fInitGetAttr(1); //조회한 속성 초기화(SMCPC00100_캠페인관리 function)
- //fSetButtons(1); //캠페인 리스트 탭(SMCPC00100_캠페인관리 function)
- model.setValue("/root/send/cmpncls/cmpnsmlcd", cmpn_smlcd);
- submit("TRCPC00302"); //캠페인 리스트 조회(SMCPC00100_캠페인관리 grd_cmpnlist)
- model.setValue("/root/main/cmpn/cmpnattr/cmpnlrgcd", cmpnlrgcd);
- model.setValue("/root/main/cmpn/cmpnattr/cmpnmdlcd", cmpnmdlcd);
- model.setValue("/root/main/cmpn/cmpnattr/cmpnsmlcd", cmpnsmlcd);
- } else if (menu_id == "SMCPC00200") {
- fInitChosList(); //캠페인 응답 목록 초기화(SMCPC00200_캠페인응답 function)
- model.setValue("/root/send/cmpncls/cmpnsmlcd", cmpn_smlcd);
- submit("TRCPC00303"); //캠페인 응답 내원 조회(SMCPC00200_캠페인응답 grd_choslist)
- }
- }
- ]]>
- </script>
- </treeview>
- <button id="btn_grpmngt" class="btn2_letter4" style="left:151px; top:718px; width:64px; height:19px; ">
- <caption>그룹관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCPC00400");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|