123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCCN00400_채널별메시지검색
- * Summary : 채널별메시지검색
- * Programmer : 최정환
- * Date Written : 2007.07.10
- * History : 2007.07.10
- * Remark :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <emailattr>
- <recvrnm/>
- <replemail/>
- <emailtitl/>
- <emailbdtext/>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- </emailattr>
- <msgattr>
- <msgcnts/>
- <smstrsmcntcno/>
- <msgsmlcd/>
- <msglrgcd/>
- <msgmdlcd/>
- </msgattr>
- <msgsmllist>
- <msgsmlcd/>
- <emailtitl/>
- <smstrsmcntcno/>
- <msgcnts/>
- </msgsmllist>
- <recvrinfo>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </recvrinfo>
- </main>
- <send>
- <info>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- <chnlflag/>
- </info>
- </send>
- <init>
- <chnllrglist>
- <chnllrggrup>
- <msglrgnm/>
- <msglrgcd/>
- </chnllrggrup>
- </chnllrglist>
- <chnlmdllist>
- <chnlmdlgrup>
- <msgmdlnm/>
- <msgmdlcd/>
- <msglrgcd/>
- </chnlmdlgrup>
- </chnlmdllist>
- </init>
- <temp>
- <emailattr>
- <msgsmlcd/>
- <emailtitl/>
- <replemail/>
- <emailbdtext/>
- <emailbdtextfile/>
- <msglrgcd/>
- <msgmdlcd/>
- </emailattr>
- </temp>
- <hidden/>
- </root>
- </instance>
- <submission id="TRCNS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" resultref="/root/init/chnllrglist/chnllrggrup"/>
- <submission id="TRCNS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" replace="instance" resultref="/root/init/chnlmdllist/chnlmdlgrup"/>
- <submission id="TRCCN00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" replace="instance" resultref="/root/main/msgsmllist"/>
- <submission id="TRCCN00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/info" replace="instance" resultref="/root/temp/emailattr"/>
- <submission id="TXCCN00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/main/emailattr" resultref="/root/hidden"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 채널구분은 Default로 SMS(S)로 설정해준다.
- // model.setValue("/root/send/info/chnlflag", "S")
- // submit("TRCNS00201");
-
- // 고객정보 페이지에서 호출하였을 경우 채널구분은 SMS(S) 만으로 고정시킨다.
- var chnlflag = opener.window.javascript.getParameter("search_condition");
- //var chnlflag = "S"
- model.setValue("/root/send/info/chnlflag", chnlflag)
- submit("TRCNS00201");
- cmb_chnlflag.disabled = true;
- // 초기화면 설정.
- if (chnlflag == "E") {
- model.toggle("case1");
- } else if (chnlflag == "S") {
- model.toggle("case2");
- }
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 선택한 업무구분(S:SMS, E:Email)에 따른 채널관리 대분류를 가져온다.
- function fGetChnlLrgCd() {
- model.removenodeset("/root/init/chnllrglist/chnllrggrup");
- model.removenodeset("/root/init/chnlmdllist/chnlmdlgrup");
- model.removenodeset("/root/main/msgsmllist");
- submit("TRCNS00201");
-
- var chnlflag = model.getValue("/root/send/info/chnlflag")
- if (chnlflag == "S") {
- model.toggle("case2");
- } else {
- model.toggle("case1");
- }
- }
-
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- function fGetChnlMdlCd() {
-
- var msglrgcd = model.getValue("/root/main/emailattr/msglrgcd");
- model.setValue("/root/send/info/msglrgcd",msglrgcd);
- submit("TRCNS00202");
- }
-
- // 선택한 채널관리 중분류에 따른 메시지 리스트를 가져온다.
- function fGetChnlSmlCd() {
-
- var msgmdlcd = model.getValue("/root/main/emailattr/msgmdlcd");
- model.setValue("/root/send/info/msgmdlcd",msgmdlcd);
- submit("TRCCN00101");
- }
-
- // Email정보조회
- function fGetEmailAttr() {
- var row = grd_emaillist.row;
- // 선택한 채널관리 리스트항목의 대분류에 따른 채널관리 중분류를 가져온다.
- var msgsmlcd = grd_emaillist.valueMatrix(row, grd_emaillist.colRef("msgsmlcd"));
- if (msgsmlcd != "") {
- model.setValue("/root/send/info/msgsmlcd", msgsmlcd);
- submit("TRCCN00201");
-
- var msgsmlcd = model.getValue("/root/temp/emailattr/msgsmlcd");
- var emailtitl = model.getValue("/root/temp/emailattr/emailtitl");
- var replemail = model.getValue("/root/temp/emailattr/replemail");
- var emailbdtext = model.getValue("/root/temp/emailattr/emailbdtext");
- var msglrgcd = model.getValue("/root/temp/emailattr/msglrgcd");
- var msgmdlcd = model.getValue("/root/temp/emailattr/msgmdlcd");
-
- model.setValue("/root/main/emailattr/msgsmlcd", msgsmlcd);
- model.setValue("/root/main/emailattr/emailtitl", emailtitl);
- model.setValue("/root/main/emailattr/replemail", replemail);
- model.setValue("/root/main/emailattr/emailbdtext", emailbdtext);
- model.setValue("/root/main/emailattr/msglrgcd", msglrgcd);
- model.setValue("/root/main/emailattr/msgmdlcd", msgmdlcd);
-
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="517" pageheight="470" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tmpl" scroll="auto" style="left:0px; top:0px; width:501px; height:57px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:110px; height:13px; ">상용구 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:53px; x2:500px; y2:53px; "/>
- <caption id="cap_dtmntitl" class="cell_1" style="left:0px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">그룹</caption>
- <select1 id="cmb_chnlflag" ref="/root/send/info/chnlflag" class="combo_default" appearance="minimal" style="left:108px; top:31px; width:67px; height:19px; ">
- <choices>
- <item>
- <label>SMS</label>
- <value>S</value>
- </item>
- <item>
- <label>Email</label>
- <value>E</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 선택한 업무구분(S:SMS, E:Email)에 따른 채널관리 대분류를 가져온다.
- fGetChnlLrgCd();
- model.setFocus("cmb_msglrgcd");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_msglrgcd" ref="/root/main/emailattr/msglrgcd" class="combo_default" appearance="minimal" style="left:178px; top:31px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/chnllrglist/chnllrggrup">
- <label ref="msglrgnm"/>
- <value ref="msglrgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 기존에 선택된 중분류를 초기화한다.
- model.removenodeset("/root/init/chnlmdllist/chnlmdlgrup");
-
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- fGetChnlMdlCd();
- model.setFocus("cmb_msgmdlcd");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_msgmdlcd" ref="/root/main/emailattr/msgmdlcd" class="combo_default" appearance="minimal" style="left:331px; top:31px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/chnlmdllist/chnlmdlgrup">
- <label ref="msgmdlnm"/>
- <value ref="msgmdlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 메시지 리스트를 초기화한다.
- model.removenodeset("/root/main/msgsmllist");
-
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- fGetChnlSmlCd();
- ]]>
- </script>
- </select1>
- </group>
- <switch id="switch2" style="left:0px; top:57px; width:501px; height:386px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <datagrid id="grd_emaillist" nodeset="/root/main/msgsmllist" caption="메시지코드^이메일제목^" colwidth="100, 350," dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:0px; top:0px; width:499px; height:204px; ">
- <col ref="msgsmlcd"/>
- <col ref="emailtitl"/>
- <col ref="smstrsmcntcno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_emaillist.isCell(event.target) && grd_emaillist.row >= grd_emaillist.fixedRows ){
- fGetEmailAttr(); // Email메시지 정보조회
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:5px; top:214px; width:118px; height:14px; ">이메일 상세 내용</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:229px; x2:499px; y2:229px; "/>
- <caption id="cap_emailbdtext" class="cell_1" style="left:0px; top:283px; width:90px; height:100px; vertical-align:middle; ">내용</caption>
- <textarea id="tar_emailbdtext" ref="/root/main/emailattr/emailbdtext" class="text_essential" disabled="true" navindex="4" style="left:93px; top:283px; width:387px; height:100px; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:256px; x2:499px; y2:256px; "/>
- <input id="ipt_replemail" ref="/root/main/emailattr/replemail" class="input_essential" disabled="true" navindex="1" style="left:93px; top:234px; width:202px; height:19px; "/>
- <caption id="cap_replemail" class="cell_1" style="left:0px; top:233px; width:90px; height:23px; vertical-align:middle; ">보내는이</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:281px; x2:499px; y2:281px; "/>
- <caption id="cap_emailtitl" class="cell_1" style="left:0px; top:258px; width:90px; height:23px; vertical-align:middle; ">제목</caption>
- <input id="ipt_emailtitl" ref="/root/main/emailattr/emailtitl" class="input_essential" disabled="true" navindex="3" style="left:93px; top:259px; width:387px; height:19px; "/>
- <caption id="cap_recvrnm" class="cell_1" style="left:298px; top:233px; width:57px; height:23px; vertical-align:middle; ">이름</caption>
- <input id="ipt_recvrnm" ref="/root/main/emailattr/recvrnm" class="input_essential" disabled="true" navindex="1" style="left:358px; top:235px; width:122px; height:19px; "/>
- </case>
- <case id="case2">
- <datagrid id="grd_msglist" nodeset="/root/main/msgsmllist" caption="메시지코드^메시지^" colwidth="100, 350," dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:0px; top:0px; width:499px; height:204px; ">
- <col ref="msgsmlcd"/>
- <col ref="msgcnts"/>
- <col ref="smstrsmcntcno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_msglist.row;
- var msgcnts = grd_msglist.valueMatrix(row, grd_msglist.colRef("msgcnts"));
- var msgsmlcd = grd_msglist.valueMatrix(row, grd_msglist.colRef("msgsmlcd"));
- var smstrsmcntcno = grd_msglist.valueMatrix(row, grd_msglist.colRef("smstrsmcntcno"));
- var msglrgcd = model.getValue("/root/main/emailattr/msglrgcd")
- var msgmdlcd = model.getValue("/root/main/emailattr/msgmdlcd")
-
- model.setValue("/root/main/msgattr/msgsmlcd", msgsmlcd);
- model.setValue("/root/main/msgattr/msgcnts", msgcnts);
- model.setValue("/root/main/msgattr/smstrsmcntcno", smstrsmcntcno);
- model.setValue("/root/main/msgattr/msglrgcd", msglrgcd);
- model.setValue("/root/main/msgattr/msgmdlcd", msgmdlcd);
- tar_contents.refresh();
- ipt_callback.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:214px; width:148px; height:14px; ">SMS 메시지 내용</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:229px; x2:499px; y2:229px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:256px; x2:499px; y2:256px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:233px; width:90px; height:23px; text-align:center; vertical-align:middle; ">회신번호</caption>
- <input id="ipt_callback" ref="/root/main/msgattr/smstrsmcntcno" class="input_essential" disabled="true" navindex="1" style="left:93px; top:234px; width:202px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:258px; width:90px; height:125px; text-align:center; vertical-align:middle; ">메 시 지</caption>
- <textarea id="tar_contents" ref="/root/main/msgattr/msgcnts" class="text_essential" disabled="true" navindex="4" style="left:93px; top:258px; width:387px; height:125px; "/>
- </case>
- </switch>
- <group id="grp_btn" scroll="auto" style="left:0px; top:443px; width:501px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:385px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var receive_msglrgcd_path = opener.window.javascript.getParameter("receive_msglrgcd_path");
- var receive_msgmdlcd_path = opener.window.javascript.getParameter("receive_msgmdlcd_path");
- var receive_msgsmlcd_path = opener.window.javascript.getParameter("receive_msgsmlcd_path");
- var receive_msgcnts_path = opener.window.javascript.getParameter("receive_msgcnts_path");
- var receive_emailtitl_path = opener.window.javascript.getParameter("receive_emailtitl_path");
-
- var chnlflag = model.getValue("/root/send/info/chnlflag");
-
- if (chnlflag == "S") {
- var msglrgcd = model.getValue("/root/main/msgattr/msglrgcd");
- var msgmdlcd = model.getValue("/root/main/msgattr/msgmdlcd");
- var msgsmlcd = model.getValue("/root/main/msgattr/msgsmlcd");
- var msgcnts = model.getValue("/root/main/msgattr/msgcnts");
- } else {
- var msglrgcd = model.getValue("/root/main/emailattr/msglrgcd");
- var msgmdlcd = model.getValue("/root/main/emailattr/msgmdlcd");
- var msgsmlcd = model.getValue("/root/main/emailattr/msgsmlcd");
- var emailtitl = model.getValue("/root/main/emailattr/emailtitl");
- }
-
- if (receive_msglrgcd_path != "") {
- opener.model.makeValue(receive_msglrgcd_path, msglrgcd);
- }
- if (receive_msgmdlcd_path != "") {
- opener.model.makeValue(receive_msgmdlcd_path, msgmdlcd);
- }
- if (receive_msgsmlcd_path != "") {
- opener.model.makeValue(receive_msgsmlcd_path, msgsmlcd);
- }
- if (receive_msgcnts_path != "") {
- opener.model.makeValue(receive_msgcnts_path, msgcnts);
- }
- if (receive_emailtitl_path != "") {
- opener.model.makeValue(receive_emailtitl_path, emailtitl);
- }
-
- opener.model.refresh();
-
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|