123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCCN00200_Email전송
- * Summary : Email전송
- * Programmer : 최정환
- * Date Written : 2007.07.10
- * History : 2008.06.23
- * 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>
- <emailattr>
- <trsmdd/>
- <bizflag/>
- <delivedd/>
- <delivereqtm/>
- <recvremail/>
- <recvrnm/>
- <replemail/>
- <refemail/>
- <emailtitl/>
- <emailbdtext/>
- <emailbdtextfile/>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- <rsrvyn>1</rsrvyn>
- <delivedd/>
- <delivereqtm/>
- </emailattr>
- <msgsmllist>
- <msgsmlcd/>
- <emailtitl/>
- </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>
- <imgset>
- <img1>F</img1>
- <img2>F</img2>
- <img3>F</img3>
- <img4>F</img4>
- <imguse>N</imguse>
- </imgset>
- </temp>
- <hidden/>
- <fwd>
- <type>email</type>
- <type2>refemail</type2>
- </fwd>
- </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[
- // 초기화면을 편지지로 보여준다.
- model.toggle("case1");
- btn_lattr.selected = true;
-
- // Email탬플릿 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/msgsmllist");
-
- // 메시지 분류코드 설정 (Email : E)
- model.setValue("/root/send/info/chnlflag", "E");
-
- // 메시지 대그룹을 가져온다
- submit("TRCNS00201");
-
- // 전송일자를 입력해준다.
- model.setValue("/root/main/emailattr/trsmdd",getCurrentDate());
- // 수동전송은 업무구분을 무조건 2로 한다.
- model.setValue("/root/main/emailattr/bizflag", "2");
-
- // 발송요청일자를 입력해준다.
- model.setValue("/root/main/emailattr/delivedd", getCurrentDate());
- model.setValue("/root/main/emailattr/delivereqtm", getCurrentTime().substring(0,4));
- // 예약일자와 예약시간 비활성
- ipt_trsmreqdt_date.disabled = true;
- ipt_trsmreqdt_time.disabled = true;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //////////=================///////////
- //내용체크 해서 이미지 맞게 가져오기//
- //////////================////////////
- function fGetImg(){
- var str_find = model.getValue("/root/main/emailattr/emailbdtextfile");
- var str_index1 = str_find.indexOf("/23/")//1번 이미지
- var str_index2 = str_find.indexOf("/28/")//2번 이미지
- var str_index3 = str_find.indexOf("/84/")//3번 이미지
- var str_index4 = str_find.indexOf("/51/")//4번 이미지
-
- if(str_index1 != -1){
- model.setValue("/root/temp/imgset/img1", "T");
- img_bg1.visible = true;
-
- model.setValue("/root/temp/imgset/img2", "F");
- model.setValue("/root/temp/imgset/img3", "F");
- model.setValue("/root/temp/imgset/img4", "F");
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- model.setValue("/root/temp/imgset/imguse", "Y");
- }else if(str_index2 != -1){
- model.setValue("/root/temp/imgset/img2", "T");
- img_bg2.visible = true;
-
- model.setValue("/root/temp/imgset/img1", "F");
- model.setValue("/root/temp/imgset/img3", "F");
- model.setValue("/root/temp/imgset/img4", "F");
- img_bg1.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- model.setValue("/root/temp/imgset/imguse", "Y");
- }else if(str_index3 != -1){
- model.setValue("/root/temp/imgset/img3", "T");
- img_bg3.visible = true;
-
- model.setValue("/root/temp/imgset/img1", "F");
- model.setValue("/root/temp/imgset/img2", "F");
- model.setValue("/root/temp/imgset/img4", "F");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg4.visible = false;
- model.setValue("/root/temp/imgset/imguse", "Y");
- }else if(str_index4 != -1){
- model.setValue("/root/temp/imgset/img4", "T");
- img_bg4.visible = true;
-
- model.setValue("/root/temp/imgset/img1", "F");
- model.setValue("/root/temp/imgset/img2", "F");
- model.setValue("/root/temp/imgset/img3", "F");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- model.setValue("/root/temp/imgset/imguse", "Y");
- }else{
- model.setValue("/root/temp/imgset/img1", "F");
- model.setValue("/root/temp/imgset/img2", "F");
- model.setValue("/root/temp/imgset/img3", "F");
- model.setValue("/root/temp/imgset/img4", "F");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- model.setValue("/root/temp/imgset/imguse", "N");
- }
-
- model.refresh();
- }
-
- // 일반전송과 예약전송 선택에 따른 예약일자 및 예약시간 활성화
- function frdocheck()
- {
- var req_chk = model.getValue("/root/main/emailattr/rsrvyn");
- if (req_chk=="1")
- {
- ipt_trsmreqdt_date.disabled = true;
- ipt_trsmreqdt_time.disabled = true;
- // 일반전송 선택시 기존 입력한 예약일자 및 예약시간 Clear
- model.setValue("/root/main/emailattr/delivedd", "");
- model.setValue("/root/main/emailattr/delivereqtm", "");
- model.refresh();
- }
- else
- {
- ipt_trsmreqdt_date.disabled = false;
- ipt_trsmreqdt_time.disabled = false;
- }
- }
-
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- 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_msglist.row;
-
- // 선택한 채널관리 리스트항목의 대분류에 따른 채널관리 중분류를 가져온다.
- var msgsmlcd = grd_msglist.valueMatrix(row, grd_msglist.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 emailbdtextfile = model.getValue("/root/temp/emailattr/emailbdtextfile");
- 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/emailbdtextfile", emailbdtextfile);
- model.setValue("/root/main/emailattr/msglrgcd", msglrgcd);
- model.setValue("/root/main/emailattr/msgmdlcd", msgmdlcd);
-
- model.refresh();
- }
- }
-
- // Email 전송
- function fEmailSubmit() {
- if(!isRequiredControls("ipt_emailtitl", "ipt_recvremail", "ipt_replemail", "tar_emailbdtext"))
- return;
-
- //bg_img
- if(model.getValue("/root/temp/imgset/imguse") == "Y"){
- var emailbdtextfile = "";
- var top = "<TABLE width='700' height='500' border='0' cellspacing='0' cellpadding='0'><TR><TD height='5' bgcolor='#2285bc'></TD></TR><TR><TD height='30'></TD></TR><TR><TD valign='top' style='padding-left:10px;font-size=10pt;'><!--@본문--></TD></TR><TR><TD width='700' height='300'><img src='"
- var img = "";
- var bottom ="' width='700' height='300'></TD></TR></TABLE>";
- if(model.getValue("/root/temp/imgset/img1") == "T"){
- img = "http://crm001.cmcnu.or.kr/himed/webapps/crm/crmweb/images/CMC_Graphic_Motif.jpg";
- }else if(model.getValue("/root/temp/imgset/img2") == "T"){
- img = "";
- }else if(model.getValue("/root/temp/imgset/img3") == "T"){
- img = "";
- }else if(model.getValue("/root/temp/imgset/img4") == "T"){
- img = "";
- }
- emailbdtextfile = top + img + bottom;
- model.setValue("/root/main/emailattr/emailbdtextfile", emailbdtextfile);
- }
-
- var emailbdtext = model.getValue("/root/main/emailattr/emailbdtext");
-
- emailbdtext = fGetReplaceValue(emailbdtext, "\n", "<BR>");
-
- model.setValue("/root/main/emailattr/emailbdtext", emailbdtext);
-
- var replemail = model.getValue("/root/main/emailattr/replemail");
- var recvremail = model.getValue("/root/main/emailattr/recvremail");
- var refemail = model.getValue("/root/main/emailattr/refemail");
- var emailok1, emailok2, emailok3, emailok4, emailok5, emailok6;
- if (replemail.indexOf("@") != -1){
- emailok1 = "ok"
- }
- if (replemail.indexOf(".") != -1) {
- emailok2 = "ok"
- }
- if (recvremail.indexOf("@") != -1){
- emailok3 = "ok"
- }
- if (recvremail.indexOf(".") != -1) {
- emailok4 = "ok"
- }
-
- if (refemail.getTrim() !="") {
- if (refemail.indexOf("@") != -1){
- emailok5 = "ok"
- }
- if (refemail.indexOf(".") != -1) {
- emailok6 = "ok"
- }
- }
-
- if (emailok1 != "ok" || emailok2 != "ok") {
- messageBox("보내는이 메일주소를 올바르게", "C001")
- model.setFocus("ipt_replemail");
- } else if (emailok3 != "ok" || emailok4 != "ok") {
- messageBox("받는이 메일주소를 올바르게", "C001")
- model.setFocus("ipt_recvremail");
- } else if (refemail.getTrim() != "" && (emailok5 != "ok" || emailok6 != "ok")) {
- messageBox("참조 메일주소를 올바르게", "C001")
- model.setFocus("ipt_refemail");
- } else {
- // messageBox("모든 필수값이 입력이","I002");
- submit("TXCCN00201");
- messageBox("Email 전송이","I002");
-
- model.setValue("/root/main/emailattr/emailtitl", "");
- model.setValue("/root/main/emailattr/replemail", "");
- model.setValue("/root/main/emailattr/recvremail", "");
- model.setValue("/root/main/emailattr/refemail", "");
- model.setValue("/root/main/emailattr/rsrvyn", "1");
- ipt_trsmreqdt_date.disabled = true;
- ipt_trsmreqdt_time.disabled = true;
- model.setValue("/root/main/emailattr/delivedd", "");
- model.setValue("/root/main/emailattr/delivereqtm", "");
- model.setValue("/root/main/emailattr/emailbdtext", "");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
-
- model.refresh();
- }
- }
-
- function fGetReplaceValue(str, original, replacement) {
- var result = "";
- while(str.indexOf(original) != -1) {
- if (str.indexOf(original) > 0){
- result = result + str.substring(0, str.indexOf(original)) + replacement;
- }else{
- result = result + replacement;
- }
- str = str.substring(str.indexOf(original) + original.length, str.length);
-
- }
- return result + str;
- }
- //sms로직꺼 꺼내옴....정리 메시지 전송
- function fSendMsg(ref) {
- // 각 필드값을 체크한다.
- if(model.getValue(ref+"/replytelno").getTrim()=="")
- {
- messageBox("발신자 번호는 ", "I003");
- model.setFocus("ipt_callback");
- return;
- }
-
- var temp = model.getValue(ref+"/replytelno").length;
-
- if(temp <9)
- {
- messageBox("발신자 번호는 9자리이상을 ", "C001");
- model.setFocus("ipt_callback");
- return;
- }
-
- if(model.getValue(ref+"/rsrvyn").getTrim()=="")
- {
- messageBox("예약여부는 ", "I003");
- model.setFocus("rdo_rsrvyn");
- model.setValue(ref+"/rsrvyn", "0");
- frdocheck();
- rdo_rsrvyn.refresh();
- return;
- }
- if(model.getValue(ref+"/rsrvyn")==2 && // 예약설정이 1 인경우에만 체크한다.
- model.getValue(ref+"/rsrvdate").getTrim()=="")
- {
- messageBox("예약일자는 ", "I003");
- model.setFocus("ipt_trsmreqdt_date");
- model.setFocus("rsrvdate");
- return;
- }
- if(model.getValue(ref+"/rsrvyn")==2 && // 예약설정이 1 인경우에만 체크한다.
- model.getValue(ref+"/rsrvtime").getTrim()=="")
- {
- messageBox("예약시간은 ", "I003");
- model.setFocus("ipt_trsmreqdt_time");
- return;
- }
-
- if(model.getValue(ref+"/msgcnts").getTrim()=="")
- {
- messageBox("메시지내용은 ", "I003");
- return;
- }
- if(grd_recvrlist.rows <= grd_recvrlist.fixedRows) messageBox("수신자정보는 ", "I003");
-
- // 수신자 리스트가 담긴의 그리드를 체크한다.
- var nodeset = grd_recvrlist.nodeset;
- var recvrnm;
- var recvrtelno;
- var cnt = 0;
- for (i=grd_recvrlist.fixedRows; i<grd_recvrlist.rows; i++)
- {
- cnt++;
- recvrnm = model.getValue("/root/main/recvrinfo/recvrlist["+cnt+"]/recvrnm");
- recvrtelno = model.getValue("/root/main/recvrinfo/recvrlist["+cnt+"]/recvrtelno");
-
-
- if(recvrnm.getTrim()=="")
- {
- messageBox(cnt+" 번째 수신자 이름을 ", "C001");
- grd_recvrlist.row = i;
- return;
- }
-
- if(recvrtelno.length <10)
- {
- messageBox(cnt+" 번째 수신자 전화번호는 10자리이상을 ", "C001");
- grd_recvrlist.row = i;
- return;
- }
- }
- var nodeList = instance1.selectNodes("/root/main/recvrinfo/recvrlist");
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/main/msgattr/recvrlist", rCSV);
-
- // model.makeValue("/root/main/msgattr/recvrlist", grd_recvrlist.getUpdateData());
-
- // 예약전송시 예약일자 및 예약시간 설정
- var rsrvdd = model.getValue("/root/main/msgattr/trsmdd");
- var rsrvtm = getCurrentTime().substring(0,4);
-
- // 수동전송시 기본값 설정
- var delivedd = model.getValue("/root/main/msgattr/delivedd");
- var delivereqtm = model.getValue("/root/main/msgattr/delivereqtm");
- var bizflag = model.getValue("/root/main/msgattr/bizflag");
-
- if (bizflag == "") {
- model.setValue("/root/main/msgattr/bizflag", "2") // 수동전송은 업무구분을 무조건 2로 한다.
- }
- if (delivedd == "") {
- model.setValue("/root/main/msgattr/delivedd", rsrvdd); // 발송요청일자
- }
-
- if (delivereqtm == "") {
- model.setValue("/root/main/msgattr/delivereqtm", rsrvtm); // 발송요청시간
- }
- submit("TXCCN00101")
- messageBox("메시지등록이","I001");
- model.resetInstanceNode("/root/main/msgattr/delivedd");
- model.resetInstanceNode("/root/main/msgattr/delivereqtm");
- }
- ]]>
- </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="630" pageheight="700" 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:446px; height:200px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:105px; height:14px; ">E-mail템플릿</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:445px; y2:25px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:53px; x2:445px; 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_msglrgcd" ref="/root/main/emailattr/msglrgcd" class="combo_default" navindex="1" appearance="minimal" style="left:108px; 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" navindex="2" appearance="minimal" style="left:261px; 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>
- <datagrid id="grd_msglist" nodeset="/root/main/msgsmllist" caption="코드^이메일제목^" colwidth="51, 348, 0" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:0px; top:57px; width:445px; height:143px; ">
- <col ref="msgsmlcd"/>
- <col ref="emailtitl"/>
- <col ref="smstrsmcntcno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( grd_msglist.isCell(event.target) && grd_msglist.row >= grd_msglist.fixedRows ){
- fGetEmailAttr(); // Email메시지 정보조회
- }
- fGetImg();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:200px; width:605px; height:453px; ">
- <line id="line2" class="line_2" style="x1:0px; y1:100px; x2:605px; y2:100px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">E-mail전송</caption>
- <button id="btn_init" class="btn2_letter3" style="left:552px; top:5px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 해당인스턴스의 값을 지운다
- model.setValue("/root/main/emailattr/msglrgcd", "");
- model.setValue("/root/main/emailattr/msgmdlcd", "");
- model.setValue("/root/main/emailattr/recvremail", "");
- model.setValue("/root/main/emailattr/recvrnm", "");
- model.setValue("/root/main/emailattr/replemail", "");
- model.setValue("/root/main/emailattr/refemail", "");
- model.setValue("/root/main/emailattr/emailtitl", "");
- model.setValue("/root/main/emailattr/emailbdtext", "");
- img_bg1.visible = false;
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:0px; y1:25px; x2:605px; y2:25px; "/>
- <caption id="cap_emailbdtext" class="cell_1" style="left:0px; top:127px; width:90px; height:326px; text-align:center; vertical-align:middle; ">내 용</caption>
- <img id="img_bg1" visibility="hidden" src="../../../crm/crmweb/images/CMC_Graphic_Motif.jpg" style="left:97px; top:133px; width:486px; height:316px; background-stretch:stretch; "/>
- <img id="img_bg2" visibility="hidden" style="left:97px; top:133px; width:486px; height:316px; background-stretch:stretch; "/>
- <img id="img_bg3" visibility="hidden" style="left:97px; top:133px; width:486px; height:316px; background-stretch:stretch; "/>
- <img id="img_bg4" visibility="hidden" style="left:97px; top:133px; width:486px; height:316px; background-stretch:stretch; "/>
- <textarea id="tar_emailbdtext" ref="/root/main/emailattr/emailbdtext" class="text_essential" navindex="7" style="left:93px; top:128px; width:510px; height:324px; padding-left:10; padding-top:10; padding-right:10; background-color:transparent; "/>
- <line id="line24" class="line_2" style="x1:0px; y1:52px; x2:605px; y2:52px; "/>
- <input id="ipt_refemail" ref="/root/main/emailattr/refemail" class="input_essential" navindex="6" imemode="disabled" style="left:93px; top:79px; width:329px; height:19px; "/>
- <caption id="cap_emailtitl" class="cell_1" style="left:0px; top:29px; width:90px; height:23px; text-align:center; vertical-align:middle; ">제 목</caption>
- <caption id="cap_replemail" class="cell_1" style="left:363px; top:29px; width:90px; height:23px; text-align:center; vertical-align:middle; ">발 신</caption>
- <input id="ipt_emailtitl" ref="/root/main/emailattr/emailtitl" class="input_essential" navindex="3" style="left:93px; top:31px; width:265px; height:19px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:76px; x2:605px; y2:76px; "/>
- <caption id="cap_recvremail" class="cell_1" style="left:0px; top:54px; width:90px; height:23px; text-align:center; vertical-align:middle; ">수 신</caption>
- <input id="ipt_recvremail" ref="/root/main/emailattr/recvremail" class="input_essential" navindex="5" imemode="disabled" style="left:93px; top:55px; width:329px; height:19px; "/>
- <button id="btn_address" class="btn2_letter3" style="left:427px; top:55px; width:53px; height:19px; ">
- <caption>주소록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCCN00500", "", "", "", "SPCCN00500", "/root/fwd/type", "/root/fwd/type");
- ]]>
- </script>
- </button>
- <button id="btn_addfile" class="btn2_letter9" style="left:485px; top:55px; width:119px; height:19px; ">
- <caption>외부파일 가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCCN00600", "", "", "", "SPCCN00600", "/root/fwd/type", "/root/fwd/type");
- ]]>
- </script>
- </button>
- <button id="btn_address2" class="btn2_letter3" style="left:427px; top:79px; width:53px; height:19px; ">
- <caption>주소록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCCN00500", "", "", "", "SPCCN00500", "/root/fwd/type2", "/root/fwd/type");
- ]]>
- </script>
- </button>
- <button id="btn_addfile2" class="btn2_letter9" style="left:485px; top:79px; width:119px; height:19px; ">
- <caption>외부파일 가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCCN00600", "", "", "", "SPCCN00600", "/root/fwd/type2", "/root/fwd/type");
- ]]>
- </script>
- </button>
- <caption id="cap_refemail" class="cell_1" style="left:0px; top:78px; width:90px; height:23px; text-align:center; vertical-align:middle; ">참 조</caption>
- <input id="ipt_replemail" ref="/root/main/emailattr/replemail" navindex="4" style="left:456px; top:31px; width:148px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:0px; top:102px; width:90px; height:23px; text-align:center; vertical-align:middle; ">예약설정</caption>
- <select1 id="rdo_rsrvyn" ref="/root/main/emailattr/rsrvyn" appearance="full" cols="2" overflow="visible" style="left:93px; top:107px; width:91px; height:18px; text-align:left; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>1</value>
- </item>
- <item>
- <label>예약</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- frdocheck();
- ]]>
- </script>
- </select1>
- <input id="ipt_trsmreqdt_date" ref="/root/main/emailattr/delivedd" class="input_default" imemode="disabled" inputtype="date" validateformat="true" style="left:181px; top:105px; width:90px; height:19px; "/>
- <input id="ipt_trsmreqdt_time" ref="/root/main/emailattr/delivereqtm" class="input_default" imemode="disabled" format="hh:nn" showmask="true" validateformat="true" style="left:274px; top:105px; width:50px; height:19px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:125px; x2:605px; y2:125px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:655px; width:605px; height:27px; ">
- <button id="btn_trsm" class="btn4_letter2" navindex="8" style="left:490px; top:5px; width:56px; height:22px; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEmailSubmit();
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" navindex="9" style="left:549px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:1px; x2:601px; y2:1px; "/>
- </group>
- <switch id="switch2" style="left:450px; top:21px; width:155px; height:180px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1" selected="true">
- <img id="img1" src="../../../crm/crmweb/images/CMC_Graphic_Motif.jpg" style="left:2px; top:3px; width:73px; height:85px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getValue("/root/temp/imgset/img1") == "F") {
- img_bg1.visible = true;
- model.setValue("/root/temp/imgset/img1", "T");
- model.setValue("/root/temp/imgset/imguse", "Y");
- } else {
- img_bg1.visible = false;
- model.setValue("/root/temp/imgset/img1", "F");
- model.setValue("/root/temp/imgset/imguse", "N");
- }
- model.setValue("/root/temp/imgset/img2", "F");
- model.setValue("/root/temp/imgset/img3", "F");
- model.setValue("/root/temp/imgset/img4", "F");
- img_bg2.visible = false;
- img_bg3.visible = false;
- img_bg4.visible = false;
-
- ]]>
- </script>
- </img>
- </case>
- <case id="case2">
- <button id="caption40" class="btn_number" style="left:5px; top:70px; width:39px; height:19px; ">
- <caption>@</caption>
- </button>
- <button id="caption41" class="btn_number" style="left:47px; top:70px; width:39px; height:19px; ">
- <caption>♨</caption>
- </button>
- <button id="caption42" class="btn_number" style="left:89px; top:70px; width:39px; height:19px; ">
- <caption>☎</caption>
- </button>
- <button id="caption31" class="btn_number" style="left:47px; top:202px; width:39px; height:19px; ">
- <caption>♥</caption>
- </button>
- <button id="caption20" class="btn_number" style="left:89px; top:92px; width:39px; height:19px; ">
- <caption>◎</caption>
- </button>
- <button id="caption43" class="btn_number" style="left:5px; top:158px; width:39px; height:19px; ">
- <caption>☜</caption>
- </button>
- <button id="caption32" class="btn_number" style="left:5px; top:48px; width:39px; height:19px; ">
- <caption>♧</caption>
- </button>
- <button id="caption21" class="btn_number" style="left:5px; top:180px; width:39px; height:19px; ">
- <caption>◇</caption>
- </button>
- <button id="caption44" class="btn_number" style="left:47px; top:158px; width:39px; height:19px; ">
- <caption>☞</caption>
- </button>
- <button id="caption33" class="btn_number" style="left:47px; top:48px; width:39px; height:19px; ">
- <caption>♣</caption>
- </button>
- <button id="caption22" class="btn_number" style="left:47px; top:180px; width:39px; height:19px; ">
- <caption>◆</caption>
- </button>
- <button id="caption45" class="btn_number" style="left:89px; top:158px; width:39px; height:19px; ">
- <caption>%</caption>
- </button>
- <button id="caption34" class="btn_number" style="left:89px; top:48px; width:39px; height:19px; ">
- <caption>◁</caption>
- </button>
- <button id="caption23" class="btn_number" style="left:5px; top:26px; width:39px; height:19px; ">
- <caption>□</caption>
- </button>
- <button id="caption46" class="btn_number" style="left:89px; top:180px; width:39px; height:19px; ">
- <caption>☏</caption>
- </button>
- <button id="caption35" class="btn_number" style="left:5px; top:136px; width:39px; height:19px; ">
- <caption>◀</caption>
- </button>
- <button id="caption24" class="btn_number" style="left:47px; top:26px; width:39px; height:19px; ">
- <caption>■</caption>
- </button>
- <button id="caption47" class="btn_number" style="left:89px; top:202px; width:39px; height:19px; ">
- <caption>♪</caption>
- </button>
- <button id="caption36" class="btn_number" style="left:47px; top:136px; width:39px; height:19px; ">
- <caption>▷</caption>
- </button>
- <button id="caption25" class="btn_number" style="left:89px; top:26px; width:39px; height:19px; ">
- <caption>△</caption>
- </button>
- <button id="caption37" class="btn_number" style="left:89px; top:136px; width:39px; height:19px; ">
- <caption>▶</caption>
- </button>
- <button id="caption26" class="btn_number" style="left:5px; top:114px; width:39px; height:19px; ">
- <caption>▲</caption>
- </button>
- <button id="caption15" class="btn_number" style="left:5px; top:4px; width:39px; height:19px; ">
- <caption>●</caption>
- </button>
- <button id="caption38" class="btn_number" style="left:5px; top:224px; width:39px; height:19px; ">
- <caption>♤</caption>
- </button>
- <button id="caption27" class="btn_number" style="left:47px; top:114px; width:39px; height:19px; ">
- <caption>▽</caption>
- </button>
- <button id="caption16" class="btn_number" style="left:47px; top:4px; width:39px; height:19px; ">
- <caption>※</caption>
- </button>
- <button id="caption39" class="btn_number" style="left:47px; top:224px; width:39px; height:19px; ">
- <caption>♠</caption>
- </button>
- <button id="caption28" class="btn_number" style="left:89px; top:114px; width:39px; height:19px; ">
- <caption>▼</caption>
- </button>
- <button id="caption17" class="btn_number" style="left:89px; top:4px; width:39px; height:19px; ">
- <caption>☆</caption>
- </button>
- <button id="caption29" class="btn_number" style="left:5px; top:202px; width:39px; height:19px; ">
- <caption>♡</caption>
- </button>
- <button id="caption18" class="btn_number" style="left:5px; top:92px; width:39px; height:19px; ">
- <caption>★</caption>
- </button>
- <button id="caption19" class="btn_number" style="left:47px; top:92px; width:39px; height:19px; ">
- <caption>○</caption>
- </button>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var trgObj = document.controls.item(event.target);
-
- if( trgObj.elementName == "xforms:button" ) {
-
- var btnMark = trgObj.label;
- var txtSelPos = tar_emailbdtext.selBegin;
- var curText = tar_emailbdtext.currentText;
- var curTextBefore = curText.substr(0, txtSelPos);
- var curTextAfter = curText.substr(txtSelPos, curText.length);
-
- tar_emailbdtext.currentText = curTextBefore + btnMark + curTextAfter;
-
- model.setFocus("tar_emailbdtext");
- tar_emailbdtext.selBegin = txtSelPos + 1;
- tar_emailbdtext.dispatch("onkeyup");
-
- }
- ]]>
- </script>
- </case>
- </switch>
- <button id="btn_lattr" class="btn_sw3" group="tab" style="left:450px; top:0px; width:51px; height:22px; ">
- <caption>편지지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- ]]>
- </script>
- </button>
- <button id="btn_schar" class="btn_sw4" group="tab" style="left:502px; top:0px; width:51px; height:22px; ">
- <caption>특수문자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|