123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCNE00100_Email전송관리
- * Summary : Email전송관리
- * Programmer : 최정환
- * Date Written : 2007.07.16
- * History : 2007.07.16
- * 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>Email 전송관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <emailtrsmrsltlist>
- <bizflag/>
- <recvrnm/>
- <recvremail/>
- <seqno/>
- <msgcnts/>
- <deptnm/>
- <fstrgstrid/>
- <trsmrsltcd/>
- <urgntflag/>
- <cnclyn/>
- <cmpnnm/>
- <cmpncd/>
- <replytelno/>
- <recvrpid/>
- <trsmdd/>
- <rsrvyn/>
- <msgstate/>
- <trsmyn/>
- </emailtrsmrsltlist>
- </list>
- <countnode/>
- </main>
- <send>
- <data>
- <rgstfromdd/>
- <rgsttodd/>
- <recvremail/>
- <bizflag/>
- <cmpncd/>
- <cmpnnm/>
- </data>
- </send>
- <init>
- <C0028list>
- <C0028>
- <cdnm/>
- <cdid/>
- </C0028>
- </C0028list>
- </init>
- <temp>
- <emailinfo>
- <recvrlist>
- <recvremail/>
- </recvrlist>
- </emailinfo>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRCNE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list/emailtrsmrsltlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" src="../../../crm/campainweb/js/CPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 전송결과 그리드를 초기화한다.
- model.removenodeset("/root/main/list/emailtrsmrsltlist");
-
- // 공통코드를 호출하여 자료(단문메시지전송결과)를 가져온다
- zbcfGetCodeList( new Array("C0028"), new Array("/root/init/C0028list"), true );
- model.refresh();
-
- // 등록일의 값이 없으면 최근한달로 셋팅한다.
- var rgstfromdd = model.getValue("/root/send/data/rgstfromdd");
- var rgsttodd = model.getValue("/root/send/data/rgsttodd");
-
- if (rgstfromdd == "") {
- model.setValue("/root/send/data/rgstfromdd",getCurrentDate());
- }
- if (rgsttodd == "") {
- model.setValue("/root/send/data/rgsttodd",getCurrentDate());
- }
-
- model.refresh();
- fCheckAuth();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- if (!checkAuth("x")) {
- btn_email.disabled=true;
- }
- if (!checkAuth("p")) {
- btn_saveexcel.disabled = true;
- }
- }
-
- // 목록조회
- function fGetEmailList() {
- model.removeNodeset("/root/main/list/emailtrsmrsltlist");
- submit("TRCNE00101");
- model.SetFocus("grd_emailtrsmrsltlist");
- var grid_rows = grd_emailtrsmrsltlist.rows-1;
- model.setvalue("/root/main/countnode" , grid_rows);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">E-mail 전송결과 관리</caption>
- </group>
- <group id="grp_johe" style="left:0px; top:23px; width:1195px; height:59px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:100px; height:17px; ">발 송 일 :</caption>
- <input id="ipt_rgstfromdd" ref="/root/send/data/rgstfromdd" class="input_search" inputtype="date" style="left:118px; top:8px; width:120px; height:19px; "/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var rgstfromdd = model.getValue("/root/send/data/rgstfromdd");
- if (rgstfromdd != "" && !isValidDateTime(rgstfromdd,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_rgstfromdd");
- }
- ]]>
- </script>
- <caption id="caption3" class="search_no_b" style="left:243px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_rgsttodd" ref="/root/send/data/rgsttodd" class="input_search" inputtype="date" style="left:258px; top:8px; width:120px; height:19px; "/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var rgsttodd = model.getValue("/root/send/data/rgsttodd");
- if (rgsttodd != "" && !isValidDateTime(rgsttodd,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_rgsttodd");
- }
- ]]>
- </script>
- <caption id="caption4" class="search_name" style="left:484px; top:9px; width:130px; height:17px; ">수신이메일주소 :</caption>
- <input id="ipt_s_recvremail" ref="/root/send/data/recvremail" class="input_search" style="left:618px; top:9px; width:130px; height:19px; "/>
- <caption id="caption6" class="search_name" style="left:15px; top:33px; width:105px; height:17px; ">업 무 구 분 :</caption>
- <select1 id="cmb_bizflag" ref="/root/send/data/bizflag" class="combo_search" appearance="minimal" style="left:118px; top:32px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0028list/C0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCmpnSearchCheck();
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_4" style="x1:1105px; y1:5px; x2:1105px; y2:51px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1115px; top:15px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetEmailList();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:484px; top:33px; width:130px; height:17px; ">캠 페 인 선 택 :</caption>
- <input id="ipt_cmpnnm" ref="/root/send/data/cmpnnm" class="input_search" style="left:618px; top:32px; width:130px; height:19px; "/>
- <button id="btn_cmpnsrch" class="icon_search" style="left:753px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var send_cmpn_cd = model.getValue("/root/send/data/cmpncd");
- var send_cmpn_nm = model.getValue("/root/send/data/cmpnnm");
- var recv_cmpn_cd_path = "/root/send/data/cmpncd";
- var recv_cmpn_nm_path = "/root/send/data/cmpnnm";
-
- cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm, recv_cmpn_cd_path, recv_cmpn_nm_path); // 캠페인 선택 팝업(modal)
- ]]>
- </script>
- </button>
- <input id="ipt_cmpncd" ref="/root/send/data/cmpncd" class="input_search" style="left:774px; top:32px; width:80px; height:19px; "/>
- </group>
- <group id="btn_emailexcel" style="left:0px; top:82px; width:1195px; height:669px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">Email 전송결과</caption>
- <button id="btn_email" class="btn3_letter5" style="left:5px; top:26px; width:92px; height:22px; ">
- <caption>Email 전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfEmailTrsmOpen("grid",grd_emailtrsmrsltlist,4,"");
- ]]>
- </script>
- </button>
- <!--<button id="button2" class="btn3_letter5" style="left:159px; top:26px; width:92px; height:22px; ">
- <caption>캠페인등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- alert("구현중입니다.");
- ]]>
- </script>
- </button>-->
- <caption id="caption35" style="left:1022px; top:27px; width:40px; height:17px; ">전체 :</caption>
- <output id="output1" ref="/root/main/countnode" appearance="output" style="left:1062px; top:26px; width:30px; height:17px; text-align:right; "/>
- <caption id="caption7" style="left:1095px; top:27px; width:30px; height:17px; ">건</caption>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1128px; top:25px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_emailtrsmrsltlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:51px; x2:1195px; y2:51px; "/>
- <datagrid id="grd_emailtrsmrsltlist" nodeset="/root/main/list/emailtrsmrsltlist" caption="발송일자^업무구분^수신자명^수신이메일주소^회신이메일주소^제목^부서명^전송결과^일련번호" colsep="^" colwidth="100,100,100,150,150,340,140,60,0" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:56px; width:1195px; height:613px; ">
- <col ref="trsmdd"/>
- <col disabled="true" ref="bizflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/C0028list/C0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="recvrnm"/>
- <col ref="recvremail"/>
- <col ref="replemail"/>
- <col ref="emailtitl"/>
- <col ref="deptnm"/>
- <col ref="trsmyn"/>
- <col ref="seqno" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="group8" style="left:0px; top:751px; width:970px; height:29px; vertical-align:top; ">
- <button id="btn_select" class="btn2_letter4" style="left:0px; top:3px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grid = grd_emailtrsmrsltlist;
- var grid_rows = grid.rows-1;
- grid.selectionmode = "byrow";
- grid.select(1, 1, grid_rows, 1) = true;
- ]]>
- </script>
- </button>
- <button id="btn_release" class="btn2_letter4" style="left:67px; top:3px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grid = grd_emailtrsmrsltlist;
- var grid_rows = grid.rows-1;
- grid.selectionmode = "byrow";
- grid.select(1, 1, grid_rows, 1) = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|