123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCIT01500_만족도목적분류관리
- * Summary : 만족도 목적 분류관리
- * Programmer : 황현석
- * Date Written : 2010.06.24
- * History :
- * Remark : 켐페인 그룹관리 참조
- -->
- <?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>
- <qestitemlist>
- <qestitemlrglist>
- <qestitemlrgnm/>
- <qestitemlrgcd/>
- </qestitemlrglist>
- <qestitemmdllist>
- <qestitemmdlnm/>
- <qestitemmdlcd/>
- <qestitemlrgcd/>
- </qestitemmdllist>
- </qestitemlist>
- </main>
- <send>
- <qestitemlrgcd/>
- <qestitemlrglist/>
- <qestitemmdlcd/>
- <qestitemmdllist/>
- </send>
- <temp>
- <result/>
- </temp>
- </root>
- </instance>
- <submission id="TRCIT01501" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/qestitemlist/qestitemlrglist"/>
- <submission id="TRCIT01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/qestitemlist/qestitemmdllist"/>
- <submission id="TXCIT01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
- <submission id="TXCIT01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/qestitemlist/qestitemlrglist"); // 캠페인 대그룹
- model.removenodeset("/root/main/qestitemlist/qestitemmdllist"); // 캠페인 중그룹
-
- submit("TRCIT01501"); // 대그룹
- model.SetFocus("grd_qestitemlrglist");
- grd_qestitemlrglist.dispatch("onrowchanged"); // 선택된 행의 인덱스가 바뀌면 onrowchanged 이벤트 발생됨.
-
- // fCheckAuth();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // function fCheckAuth() {
- // // 권한체크
- // if (!checkAuth("r")) {
- // }
- // if (!checkAuth("x")) {
- // btn_add_qestitemlrg.disabled=true;
- // btn_delete_qestitemlrg.disabled=true;
- // btn_save_qestitemlrg.disabled=true;
- // btn_add_qestitemmdl.disabled=true;
- // btn_delete_qestitemmdl.disabled=true;
- // btn_save_qestitemmdl.disabled=true;
- // }
- // if (!checkAuth("p")) {
- // }
- // }
-
- // 대그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClicklrg(grid){
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.makeValue("/root/send/qestitemlrglist", grid.getUpdateData());
- }
- if ( submit("TXCIT01501") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- //model.setValue("/root/send/qestitemlrglist", ""); // 대분류 저장 초기화
-
- model.removeNodeset("/root/main/qestitemlist/qestitemlrglist");
- //model.removeNodeset("/root/main/qestitemlist/qestitemmdllist");
-
- submit("TRCIT01501"); // 저장하면 DB에 반영된 내용을 가져옴
- }
- model.refresh();
- }
-
- // 중그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClickmdl(grid){
-
- model.setValue("/root/send/qestitemmdllist", grid.getUpdateData());
-
- if ( submit("TXCIT01502") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRCIT01502");
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="550" pageheight="500" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">만족도 목적 분류</caption>
- <group id="group1" style="left:5px; top:13px; width:250px; height:407px; ">
- <line id="line12" class="line_1" style="x1:0px; y1:27; x2:250; y2:27px; "/>
- <button id="btn_save_qestitemlrg" class="btn5_letter2" style="left:208; top:5; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClicklrg(grd_qestitemlrglist);
- ]]>
- </script>
- </button>
- <button id="btn_del_qestitemlrg" class="btn2_letter3" style="left:152; top:5; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_qestitemlrglist.row;
- var qestitemlrgcd = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgcd"));
-
- if (qestitemlrgcd != "") {
- var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
- if (rtn == 6) {
- deleteSelectedRows(grd_qestitemlrglist, false);
- messageBox("삭제한 목록을 적용하시려면 저장버튼을 클릭하세요", "");
- //grd_qestlistlrg.deleteRow(grd_qestitemlistlrg.row);
- }
- } else {
- messageBox("대분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_add_qestitemlrg" class="btn2_letter3" style="left:96; top:5; width:53; height:19; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_qestitemlrglist");
- grd_qestitemlrglist.addRow();
- grd_qestitemlrglist.editCell(); // 입력대기상태
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="qestitemlrgnm" type="input" maxlength="40"/>
- <col ref="qestitemlrgcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 선택한 대그룹에 속한 중그룹을 가져온다.
- var row = grd_qestitemlrglist.row;
- var qestitemlrgnm = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgnm"));
- var qestitemlrgcd = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgcd"));
-
- if (qestitemlrgnm != "" && row > 0) {
- model.setValue("/root/send/qestitemlrgcd", qestitemlrgcd);
-
- model.removenodeset("/root/main/qestitemlist/qestitemmdllist");
- submit("TRCIT01502");
- }
- grd_qestitemlrglist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" style="left:260; top:13px; width:250; height:407px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:250px; y2:27px; "/>
- <button id="btn_save_qestitemmdl" class="btn5_letter2" style="left:208; top:5; width:42; height:19; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClickmdl(grd_qestitemmdllist);
- ]]>
- </script>
- </button>
- <button id="btn_del_qestitemmdl" class="btn2_letter3" style="left:152; top:5; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_qestitemmdllist.row;
- var qestitemmdlcd = grd_qestitemmdllist.valueMatrix( row, grd_qestitemmdllist.colRef("qestitemmdlcd"));
-
- if (qestitemmdlcd != "") {
- var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
- if (rtn == 6) {
- deleteSelectedRows(grd_qestitemmdllist, false);
- //grd_qestlistmdl.deleteRow(grd_qestlistmdl.row);
- }
- } else {
- messageBox("중분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_add_qestitemmdl" class="btn2_letter3" style="left:96px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_qestitemmdllist");
-
- var row = grd_qestitemlrglist.row;
- var qestitemlrgcd = grd_qestitemlrglist.valueMatrix( row, grd_qestitemlrglist.colRef("qestitemlrgcd"));
-
- if (qestitemlrgcd != "") {
- grd_qestitemmdllist.addRow();
- grd_qestitemmdllist.editCell();
- model.setValue("/root/main/qestitemlist/qestitemmdllist["+grd_qestitemmdllist.row+"]/qestitemlrgcd",qestitemlrgcd);
- } else {
- messageBox("대분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="qestitemmdlnm" type="input" maxlength="40"/>
- <col ref="qestitemmdlcd" visibility="hidden"/>
- <col ref="qestitemlrgcd" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:420px; width:510px; height:27px; ">
- <button id="btn_close" class="btn4_letter2" style="left:454px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.fInitGrid();
- window.close();
- //opener.activate();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|