12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * Name : SPCPC00900_캠페인대상리스트
- * Summary : 캠페인 대상 리스트
- * Programmer : 최정환
- * Date Written : 2008.08.01
- * History : 2008.08.01
- * 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>
- <trgt>
- <trgtlist/>
- <trgtattr>
- <savemode/>
- <pid/>
- <hngnm/>
- <mpphontel/>
- <email/>
- <cmpnnm/>
- <cmpncd/>
- <cmpnlrgcd/>
- <cmpnmdlcd/>
- <cmpnsmlcd/>
- <cmpnexecattr/>
- <rgstdeptnm/>
- <rgstdeptcd/>
- <execbaseddflag/>
- <execbasedayno/>
- <execbasemm/>
- <execbasedd/>
- <execbasespcldd/>
- <nextcmpnlnkpnttm/>
- <cmpnrgstdt/>
- <rgstseq/>
- <cmpnbizflag/>
- <cmpnlnklist/>
- <delivelist/>
- <trsmtrgtflag/>
- <innrclntid/>
- </trgtattr>
- <cmpnlnklist/>
- <delivelist/>
- <execlist/>
- </trgt>
- </main>
- <init>
- </init>
- <send>
- <trgtsrch>
- <rgstfromdd/>
- <rgsttodd/>
- <trgtflag/>
- <trgtstr/>
- <execfromdd/>
- <exectodd/>
- <choscnfmyn/>
- <allcmpn/>
- <cmpncd/>
- <offset/>
- <pagesize>1000</pagesize>
- <trsmtrgtflag/>
- </trgtsrch>
- <cmpnattr>
- <cmpncd/>
- <trsmtrgtflag/>
- <delivelist/>
- </cmpnattr>
- <trgtattr>
- <cmpncd/>
- <pid/>
- <cmpnrgstdt/>
- <rgstseq/>
- <trsmtrgtflag/>
- <innrclntid/>
- </trgtattr>
- <trgtgrup>
- <cmpnlrgcd/>
- <cmpnmdlcd/>
- <cmpnsmlcd/>
- </trgtgrup>
- <trgtlist/>
- </send>
- <init>
- <comncdlist>
- <C0014list/>
- <C0017list/>
- </comncdlist>
- <trsmtrgtnm/>
- </init>
- <temp>
- <trgtattr>
- <cmpnlnk>
- <nextcmpnnm/>
- <nextcmpncd/>
- </cmpnlnk>
- <delivesche>
- <deliveschedayno/>
- <bfaftflag>B</bfaftflag>
- <deliveschetm/>
- <smsuseyn/>
- <smsmsglrgcd/>
- <smsmsgmdlcd/>
- <smsmsgsmlcd/>
- <emailuseyn/>
- <emailmsglrgcd/>
- <emailmsgmdlcd/>
- <emailmsgsmlcd/>
- <smsmsg/>
- <emailtitl/>
- <cmpnexecdt/>
- </delivesche>
- <oldtrgtattr>
- <execbaseddflag/>
- <execbasedayno/>
- <execbasemm/>
- <execbasedd/>
- <execbasespcldd/>
- </oldtrgtattr>
- <rgstseq/>
- </trgtattr>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRCPC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trgtsrch" add="bottom" resultref="/root/main/trgt/trgtlist"/>
- <submission id="TRCPC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trgtattr" resultref="/root/main/trgt/trgtattr"/>
- <submission id="TRCPC00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpnattr" resultref="/root/main/trgt/trgtattr"/>
- <submission id="TRCPC00107" mediatype="application/x-www-form-urlencoded" method="post" resultref="root/temp/trgtattr/rgstseq"/>
- <submission id="TRCPC00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trgtgrup" resultref="/root/init/trgtgrup"/>
- <submission id="TXCPC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/trgt/trgtattr" resultref="/root/temp/result"/>
- <submission id="TXCPC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trgtlist" resultref="/root/temp/result"/>
- </model>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" src="../../../crm/campainweb/js/CPZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // C0014: 캠페인예정구분
- zbcfGetCodeList(new Array("C0014","C0017"),
- new Array("/root/init/comncdlist/C0014list","/root/init/comncdlist/C0017list"));
-
- // 초기화면 리스트
- model.toggle("trgt_case1");
-
- // 대상자 리스트 실행일을 설정
- var prest_dd = getCurrentDate();
- model.setValue("/root/send/trgtsrch/execfromdd", prest_dd);
- model.setValue("/root/send/trgtsrch/exectodd", prest_dd);
-
- // 그리드 초기화
- fInitCmpn();
-
- // 선택된 캠페인의 전송대상 구분을 표시 및 검색조건에 전송대상구분 설정
- var trsmtrgtflag = model.getValue("/root/send/cmpnattr/trsmtrgtflag");
- if (trsmtrgtflag == "1") {
- model.setValue("/root/init/trsmtrgtnm","전송대상 : 데이터마이닝");
- model.setValue("/root/send/trgtsrch/trsmtrgtflag","1");
- } else if(trsmtrgtflag == "2") {
- model.setValue("/root/init/trsmtrgtnm","전송대상 : 주소록");
- model.setValue("/root/send/trgtsrch/trsmtrgtflag","2");
- }
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitCmpn() {
- // 캠페인 등록화면 초기화
- model.removeNodeset("/root/main/trgt/trgtlist");
- }
-
- function fSelectTrgt() {
- // 선택된 캠페인 코드 및 등록번호를 인스턴스에 복사 - 대상자 속성 조회에 이용
- var grid = grd_trgtlist;
- if (grid.row > 0 ) {
- var cmpn_cd = grid.valueMatrix(grid.row, grid.colRef("cmpncd"));
- var cmpn_pid = grid.valueMatrix(grid.row, grid.colRef("pid"));
- var cmpn_rgst = grid.valueMatrix(grid.row, grid.colRef("cmpnrgstdt"));
- var cmpn_seq = grid.valueMatrix(grid.row, grid.colRef("rgstseq"));
- var cmpn_trsmtrgtflag = grid.valueMatrix(grid.row, grid.colRef("trsmtrgtflag"));
- var cmpn_innrclntid = grid.valueMatrix(grid.row, grid.colRef("innrclntid"));
- model.setValue("/root/send/trgtattr/cmpncd", cmpn_cd);
- model.setValue("/root/send/trgtattr/pid", cmpn_pid);
- model.setValue("/root/send/trgtattr/cmpnrgstdt", cmpn_rgst);
- model.setValue("/root/send/trgtattr/rgstseq", cmpn_seq);
- model.setValue("/root/send/trgtattr/trsmtrgtflag", cmpn_trsmtrgtflag);
- model.setValue("/root/send/trgtattr/innrclntid", cmpn_innrclntid);
- }
- }
-
- function fGetTrgtAttr() {
- fInitTrgt(); //대상자 속성 초기화 후 조회
- fSetButtons(4); //대상자 속성 탭
- fSetControls(4); //대상자 입력컨트롤 제한
- submit("TRCPC00104");
- model.setValue("/root/main/trgt/trgtattr/savemode","U");
- model.copyNode("/root/temp/trgtattr/oldtrgtattr", "/root/main/trgt/trgtattr");
- fSetBaseDD(2); //실행기준일 입력 제한
- fGetTrgtCmpnGrup(); // 캠페인 분류 세팅
- }
-
- function fGetCmpnToTrgt() {
- // 캠페인의 속성을 상속받아 대상자 입력창 구성
- submit("TRCPC00105"); //캠페인 속성 조회, 설정
-
- // 전송대상 설정 ( 1.환자 2.주소록)
- var trsmtrgtflag = model.getValue("/root/send/cmpnattr/trsmtrgtflag");
- model.makevalue("/root/main/trgt/trgtattr/trsmtrgtflag", trsmtrgtflag);
-
- fGetTrgtCmpnGrup(); // 캠페인 분류 세팅
- fCalcExecDt(); // 실제실행일 계산 후 인스턴스에 할당(키값인 등록일 포함)
- model.setValue("/root/main/trgt/trgtattr/savemode","I");
- model.copyNode("/root/temp/trgtattr/oldtrgtattr", "/root/main/trgt/trgtattr");
- // 실행예정일 및 연결캠페인 그리드를 입력상태로 변경
- fGridSetStatus(grd_cmpnlnklist_t, "insert");
- fGridSetStatus(grd_exedatelist_t, "insert");
- model.refresh();
- }
-
- function fGetTrgtCmpnGrup() {
- // 대상자 캠페인 분류 세팅(해당 분류 코드만 가져온다 - 분류는 수정 불가이므로 명칭만 출력하기 위한 용도)
- model.setValue("/root/send/trgtgrup/cmpnlrgcd", model.getValue("/root/main/trgt/trgtattr/cmpnlrgcd"));
- model.setValue("/root/send/trgtgrup/cmpnmdlcd", model.getValue("/root/main/trgt/trgtattr/cmpnmdlcd"));
- model.setValue("/root/send/trgtgrup/cmpnsmlcd", model.getValue("/root/main/trgt/trgtattr/cmpnsmlcd"));
- submit("TRCPC00108");
- }
-
- function fInitGetAttr(s) {
- // 대상자(2) 조회한 속성 초기화
- if (s==2) {
- model.setValue("/root/send/trgtattr/cmpncd", "");
- model.setValue("/root/send/trgtattr/pid", "");
- model.setValue("/root/send/trgtattr/cmpnrgstdt", "");
- model.setValue("/root/send/trgtattr/rgstseq", "");
- fInitTrgt();
- }
- }
-
- function fSetButtons(s) {
- // 대상자(3:리스트, 4:속성) 탭과 버튼 세팅
- switch (s) {
- case 3:
- btn_trgtcase1.selected = true;
- model.toggle("trgt_case1");
- // 캠페인추가 및 엑셀저장 버튼 활성화
- // btn_dmtrsm.disabled = false; // DM발송버튼 제외
- btn_saveexcel2.disabled = false;
- btn_trgtadd.disabled = false;
- btn_trgtdel.disabled = false;
- // 전체선택, 선택해제, 선택반전 버튼 활성화
- btn_select.disabled = false;
- btn_release.disabled = false;
- //btn_reverse.disabled = false;
- break;
- case 4:
- btn_trgtcase2.selected = true;
- model.toggle("trgt_case2");
- // 캠페인추가 및 엑셀저장 버튼 비활성화
- // btn_dmtrsm.disabled = false; // DM발송버튼 제외
- btn_saveexcel2.disabled = true;
- btn_trgtadd.disabled = true;
- btn_trgtdel.disabled = true;
- // 전체선택, 선택해제, 선택반전 버튼 비활성화
- btn_select.disabled = true;
- btn_release.disabled = true;
- //btn_reverse.disabled = true;
- break;
- default:
- break;
- }
- }
-
- function fSetControls(s) {
- // 대상자(3:등록, 4:수정) 수정일 경우 입력 및 선택 제한(수정 불가)
- switch (s) {
- case 3:
- ipt_pid.disabled = false;
- btn_pidsrch.disabled = false;
- //ipt_trgtnm.disabled = false;
- //ipt_trgtphone.disabled = false;
- //ipt_trgtemail.disabled = false;
- // 캠페인관련 속성은 상속받아 수정불가(default: disabled = true)
- break;
- case 4:
- ipt_pid.disabled = true;
- btn_pidsrch.disabled = true;
- //ipt_trgtnm.disabled = true;
- //ipt_trgtphone.disabled = true;
- //ipt_trgtemail.disabled = true;
- break;
- default:
- break;
- }
- }
-
- function fInitTrgt() {
- // 대상자 등록화면 초기화
- model.resetInstanceNode("/root/main/trgt/trgtattr");
- model.removeNodeset("/root/main/trgt/cmpnlnklist");
- model.removeNodeset("/root/main/trgt/delivelist");
- model.removeNodeset("/root/main/trgt/execlist");
- model.setValue("/root/main/trgt/trgtattr/cmpnexecattr", "1");
- model.setValue("/root/main/trgt/trgtattr/execbaseddflag", "1");
- model.setValue("/root/main/trgt/trgtattr/nextcmpnlnkpnttm", "C");
-
- grd_exedatelist_t.clearStatus();
-
- model.resetInstanceNode("/root/temp/trgtattr/delivesche");
- model.setValue("/root/temp/trgtattr/delivesche/bfaftflag", "B");
- fSetBaseDD(2);
- model.refresh();
- }
-
- function fSetBaseDD(s) {
- // // 캠페인(1) 및 대상자(2) 실행기준일 선택에 따른 입력 컨트롤 제한
- var base_flag = "";
- if (s==1) {
- base_flag = model.getValue("/root/main/cmpn/cmpnattr/execbaseddflag");
- switch (base_flag) {
- case "1":
- ipt_exebase11.disabled = false;
- ipt_exebase21.disabled = true;
- ipt_exebase22.disabled = true;
- ipt_exebase31.disabled = true;
- break;
- case "2":
- ipt_exebase11.disabled = true;
- ipt_exebase21.disabled = false;
- ipt_exebase22.disabled = false;
- ipt_exebase31.disabled = true;
- break;
- case "3":
- ipt_exebase11.disabled = true;
- ipt_exebase21.disabled = true;
- ipt_exebase22.disabled = true;
- ipt_exebase31.disabled = false;
- break;
- default:
- ipt_exebase11.disabled = false;
- ipt_exebase21.disabled = true;
- ipt_exebase22.disabled = true;
- ipt_exebase31.disabled = true;
- break;
- }
- } else if (s==2) {
- base_flag = model.getValue("/root/main/trgt/trgtattr/execbaseddflag");
- switch (base_flag) {
- case "1":
- ipt_exebase11_t.disabled = false;
- ipt_exebase21_t.disabled = true;
- ipt_exebase22_t.disabled = true;
- ipt_exebase31_t.disabled = true;
- break;
- case "2":
- ipt_exebase11_t.disabled = true;
- ipt_exebase21_t.disabled = false;
- ipt_exebase22_t.disabled = false;
- ipt_exebase31_t.disabled = true;
- break;
- case "3":
- ipt_exebase11_t.disabled = true;
- ipt_exebase21_t.disabled = true;
- ipt_exebase22_t.disabled = true;
- ipt_exebase31_t.disabled = false;
- break;
- default:
- ipt_exebase11_t.disabled = false;
- ipt_exebase21_t.disabled = true;
- ipt_exebase22_t.disabled = true;
- ipt_exebase31_t.disabled = true;
- break;
- }
- }
- }
-
- function fCalcExecDt() {
- // 실행기준일과 실행예정목록으로 실제 실행일시 계산(등록일 기준)
- var grid = grd_exedatelist_t;
- if (grid.rows > 1) {
- // 신규등록일 때 등록일시 설정, 수정일 때 기존 등록일시 설정
- if (model.getValue("/root/send/trgtattr/cmpnrgstdt")=="") {
- var rgst_dd = getCurrentDate();
- var rgst_tm = getCurrentTime();
- var rgst_dt = rgst_dd + rgst_tm;
- model.setValue("/root/main/trgt/trgtattr/cmpnrgstdt", rgst_dt); // 대상자에 등록일 키값 할당
- } else {
- var rgst_dd = model.getValue("/root/send/trgtattr/cmpnrgstdt");
- }
-
- var sche_base_dd = fCalcBaseDt(rgst_dd); // 실행기준일 계산
-
- var cmpn_exec_dt = new Array(grid.rows);
- for (i = 1; i < grid.rows; i++) {
- var delive_sche_dayno = model.getValue("/root/main/trgt/delivelist["+i+"]/deliveschedayno");
- var bf_aft_flag = model.getValue("/root/main/trgt/delivelist["+i+"]/bfaftflag");
- var delive_sche_tm = model.getValue("/root/main/trgt/delivelist["+i+"]/deliveschetm");
- cmpn_exec_dt[i] = fCalcScheDt(sche_base_dd, delive_sche_dayno, bf_aft_flag, delive_sche_tm); // 실행예정일시 계산
- // DB에 입력을 위해 delivelist에 저장 및 화면 출력을 위해 execlist에 저장
- model.setValue("/root/main/trgt/delivelist["+i+"]/cmpnexecdt", cmpn_exec_dt[i]);
- grd_execlist.addRow();
- model.setValue("/root/main/trgt/execlist["+i+"]/cmpnrgstdt", rgst_dd); //등록일
- model.setValue("/root/main/trgt/execlist["+i+"]/cmpnexecdt", cmpn_exec_dt[i]); //실행일
- }
- }
- }
-
- function fCalcBaseDt(rgst_dd) {
- // 실행기준일 계산 (rgst_dd가 Date형일 경우 getAddDate계산 후 sche_base_dd와 같은 날짜로 변경되어 String형으로 사용)
- var sche_base_dd;
- var exec_base_dd_flag = model.getValue("/root/main/trgt/trgtattr/execbaseddflag");
- var exec_base_dayno = model.getValue("/root/main/trgt/trgtattr/execbasedayno");
- var exec_base_mm = model.getValue("/root/main/trgt/trgtattr/execbasemm");
- var exec_base_dd = model.getValue("/root/main/trgt/trgtattr/execbasedd");
- var exec_base_spcl_dd = model.getValue("/root/main/trgt/trgtattr/execbasespcldd");
- if (exec_base_dd_flag == "1") {
- sche_base_dd = rgst_dd.toDate().getAddDate(parseInt(exec_base_dayno), "D");
- sche_base_dd = getDateTime(sche_base_dd, "D");
- } else if (exec_base_dd_flag == "2") {
- sche_base_dd = rgst_dd.toDate().getAddDate(parseInt(exec_base_mm), "M");
- sche_base_dd = sche_base_dd.getAddDate(parseInt(exec_base_dd), "D");
- sche_base_dd = getDateTime(sche_base_dd, "D");
- } else if (exec_base_dd_flag == "3") {
- sche_base_dd = exec_base_spcl_dd;
- }
- return sche_base_dd;
- }
-
- function fCalcScheDt(sche_base_dd, delive_sche_dayno, bf_aft_flag, delive_sche_tm) {
- // 실제실행일시 계산
- var cmpn_exec_dt;
-
- if (bf_aft_flag == "B") delive_sche_dayno = (0 - delive_sche_dayno);
- cmpn_exec_dt = sche_base_dd.toDate().getAddDate(parseInt(delive_sche_dayno), "D");
- cmpn_exec_dt = getDateTime(cmpn_exec_dt, "D") + delive_sche_tm + "00";
-
- return cmpn_exec_dt;
- }
-
- function fGridSetStatus(grid, stat) {
- // 멀티업데이트 그리드의 상태값을 설정
- if (grid.rows > 0) {
- for (i = 0; i < grid.rows; i++) {
- grid.addStatus(i, stat);
- }
- }
- }
-
- function fCheckTrgt() {
- var exec_base_dd_flag = model.getValue("/root/main/trgt/trgtattr/execbaseddflag");
- var exec_base_dayno = model.getValue("/root/main/trgt/trgtattr/execbasedayno");
- var exec_base_mm = model.getValue("/root/main/trgt/trgtattr/execbasemm");
- var exec_base_dd = model.getValue("/root/main/trgt/trgtattr/execbasedd");
- var exec_base_spcl_dd = model.getValue("/root/main/trgt/trgtattr/execbasespcldd");
-
- if (model.getValue("/root/main/trgt/trgtattr/pid")=="" && model.getValue("/root/send/trgtsrch/trsmtrgtflag") == "1"){
- messageBox("등록번호를","C001");
- model.setFocus("ipt_pid");
- } else if (model.getValue("/root/main/trgt/trgtattr/hngnm")==""){
- messageBox("고객(대상자)명을","C001");
- model.setFocus("ipt_trgtnm");
- } else if (model.getValue("/root/main/trgt/trgtattr/cmpnnm")==""){
- messageBox("캠페인명을","C001");
- model.setFocus("ipt_cmpnnm_t");
- } else if (model.getValue("/root/main/trgt/trgtattr/cmpncd")=="") {
- messageBox("캠페인코드를","C001");
- model.setFocus("ipt_cmpncd_t");
- } else if (model.getValue("/root/main/trgt/trgtattr/rgstdeptcd")=="") {
- messageBox("캠페인 실행부서를","C002");
- model.setFocus("ipt_deptnm_t");
- // 실행기준일 입력 체크
- } else if (exec_base_dd_flag=="1" && exec_base_dayno=="") {
- messageBox("실행 기준일을","C001");
- model.setFocus("ipt_exebase11_t");
- } else if (exec_base_dd_flag=="2" && exec_base_mm=="") {
- messageBox("실행 기준일을","C001");
- model.setFocus("ipt_exebase21_t");
- } else if (exec_base_dd_flag=="3" && exec_base_spcl_dd=="") {
- messageBox("실행 기준일을","C001");
- model.setFocus("ipt_exebase31_t");
- // 실행예정일 입력 체크
- } else if (grd_exedatelist_t.rows == 1) {
- messageBox("실행 예정일을 추가하지","E007");
- model.setFocus("ipt_exedate_t");
- // 속성이 연결성일 경우 연결 캠페인 추가
- } else if (model.getValue("/root/main/trgt/trgtattr/cmpnexecattr")=="3" && grd_cmpnlnklist_t.rows == 1) {
- messageBox("연결 캠페인을 추가하지","E007");
- model.setFocus("ipt_cmpnlnkcd_t");
- // 실행기준일 변경 시 '변경'버튼으로 실행일시 변경여부 확인
- } else if (model.getValue("/root/temp/trgtattr/oldtrgtattr/execbaseddflag") != exec_base_dd_flag ||
- model.getValue("/root/temp/trgtattr/oldtrgtattr/execbasedayno") != exec_base_dayno ||
- model.getValue("/root/temp/trgtattr/oldtrgtattr/execbasemm") != exec_base_mm ||
- model.getValue("/root/temp/trgtattr/oldtrgtattr/execbasedd") != exec_base_dd ||
- model.getValue("/root/temp/trgtattr/oldtrgtattr/execbasespcldd") != exec_base_spcl_dd) {
- messageBox("실행기준일 변경 후 실행일시를 변경하지","E007");
- model.setFocus("btn_execbase_set");
- } else {
- return true;
- }
- }
-
- function fCheckTrgtBaseDD() {
- // 실행일시가 과거날짜인지 체크 - fSaveTrgt에서 호출
- var return_value = true;
- var grid = grd_execlist;
- var prest_dt = getCurrentDate() + getCurrentTime();
-
- // 실행예정일(그리드 값)과 실행기준일 비교
- if (grid.rows > 0) {
- for (i=1; i < grid.rows; i++) {
- if (grid.valueMatrix(i, 2) < prest_dt) {
- return_value = false;
- messageBox(i+" 번째 실행예정일이 과거날짜","E008");
- //break;
- }
- }
- }
-
- return return_value;
- }
-
- function fSaveTrgt() {
- var save_mode = model.getValue("/root/main/trgt/trgtattr/savemode");
- var trsmtrgtflag = model.getValue("/root/send/trgtsrch/trsmtrgtflag");
- model.makeValue("/root/main/trgt/trgtattr/trsmtrgtflag", trsmtrgtflag);
-
- // 필수입력 체크
- if (!fCheckTrgt()) return;
-
- // 실행기준일과 실행일시 체크
- if (!fCheckTrgtBaseDD()) return;
-
- // 연결캠페인, 실행예정일 변경된 리스트 확인
- var updt_cmpn_lnk = getGridUpdateData(grd_cmpnlnklist_t);
- if (updt_cmpn_lnk != "") {
- model.setValue("/root/main/trgt/trgtattr/cmpnlnklist", grd_cmpnlnklist_t.getUpdateData());
- }
-
- var updt_exec_sche = getGridUpdateData(grd_exedatelist_t);
- if (updt_exec_sche != "") {
- model.setValue("/root/main/trgt/trgtattr/delivelist", grd_exedatelist_t.getUpdateData());
- }
-
- // rgstseq sequence에서 값 가져와서 인스턴스에 할당(root/main/trgt/trgtattr/rgstseq)
- if (save_mode == "I") {
- submit("TRCPC00107");
- model.setValue("root/main/trgt/trgtattr/rgstseq", model.getValue("/root/temp/trgtattr/trgtattr/rgstseq"));
- }
-
- // alertOn();
- if (submit("TXCPC00102")) {
- // 그리드의 상태 제거 및 인스턴스 초기화
- grd_cmpnlnklist_t.clearStatus();
- grd_exedatelist_t.clearStatus();
- model.setValue("/root/main/trgt/trgtattr/cmpnlnklist", "");
- model.setValue("/root/main/trgt/trgtattr/delivelist", "");
-
- // 신규 등록이면 수정모드로 변경(키값 전달)
- if (save_mode == "I") {
- model.setValue("/root/main/trgt/trgtattr/savemode", "U");
- model.setValue("/root/send/trgtattr/cmpncd", model.getValue("/root/main/trgt/trgtattr/cmpncd"));
- model.setValue("/root/send/trgtattr/pid", model.getValue("/root/main/trgt/trgtattr/pid"));
- model.setValue("/root/send/trgtattr/cmpnrgstdt", model.getValue("/root/main/trgt/trgtattr/cmpnrgstdt"));
- model.setValue("/root/send/trgtattr/rgstseq", model.getValue("/root/main/trgt/trgtattr/rgstseq"));
- fSetControls(4);
- }
- messageBox("대상자 저장이","I002");
- }
- }
-
- function fAddTrgtExecDD() {
- var delive_dd = model.getValue("/root/temp/trgtattr/delivesche/deliveschedayno");
- var bf_aft_flag = model.getValue("/root/temp/trgtattr/delivesche/bfaftflag");
- var delive_tm = model.getValue("/root/temp/trgtattr/delivesche/deliveschetm")
- var sms_use_yn = model.getValue("/root/temp/trgtattr/delivesche/smsuseyn");
- var email_use_yn = model.getValue("/root/temp/trgtattr/delivesche/emailuseyn");
-
- // 필수입력 및 입력값 체크
- if (delive_dd=="") {
- messageBox("실행 예정일을","C001");
- model.setFocus("ipt_exedate_t");
- } else if (delive_tm=="") {
- messageBox("실행 예정시간을","C001");
- model.setFocus("ipt_exetime_t");
- // SMS, Email 둘 중 하나 체크 및 체크된 채널 메시지 선택 체크
- } else if (sms_use_yn=="" && email_use_yn=="") {
- messageBox("SMS와 Email 둘중 하나는","C002");
- model.setFocus("chk_sms_t");
- } else if (sms_use_yn=="Y" && model.getValue("/root/temp/trgtattr/delivesche/smsmsgsmlcd")=="") {
- messageBox("SMS 메시지를","C002");
- model.setFocus("ipt_smscd_t");
- } else if (email_use_yn=="Y" && model.getValue("/root/temp/trgtattr/delivesche/emailmsgsmlcd")=="") {
- messageBox("Email 메시지를","C002");
- model.setFocus("ipt_emailcd_t");
- // 실행예정일 중복 체크
- } else if (fCheckExecDD(grd_exedatelist_t, delive_dd, bf_aft_flag, delive_tm)) {
- messageBox("실행예정일이 ","E006");
- model.setFocus("ipt_exedate_t");
- } else {
- grd_exedatelist_t.addRow();
- model.copyNode("/root/main/trgt/delivelist[" + grd_exedatelist_t.row + " ]", "/root/temp/trgtattr/delivesche");
- model.resetInstanceNode("/root/temp/trgtattr/delivesche");
- model.setValue("/root/temp/trgtattr/delivesche/bfaftflag", "B");
-
- // grd_execlist그리드에 실행일시 계산하여 반영
- fCalcExecList("i");
- model.refresh();
- }
- }
-
- function fCheckExecDD(grid, exec_dd, bf_aft_flag, exec_tm) {
- // 실행예정일 중복 등록 체크 - fAddExecDD, fAddTrgtExecDD에서 호출
- if (grid.rows > 0) {
- for (i=1; i <= grid.rows; i++) {
- if (grid.valueMatrix(i, 2) == exec_dd && grid.valueMatrix(i, 3) == bf_aft_flag && grid.valueMatrix(i, 4) == exec_tm) {
- return true;
- }
- }
- }
- }
-
- function fCalcExecList(stat) {
- var grid = grd_exedatelist_t;
- if (stat == "i") {
- // 대상자별 실행예정목록을 추가 시 실행예정목록으로 실제 실행일시 계산(등록일 기준)
- var rgst_dd = model.getValue("/root/main/trgt/trgtattr/cmpnrgstdt"); // 캠페인 등록일이 키값이므로.. 기존 등록일을 기준으로 사용
- var sche_base_dd = fCalcBaseDt(rgst_dd); // 실행기준일 계산
- var i = grid.row;
-
- var delive_sche_dayno = model.getValue("/root/main/trgt/delivelist["+i+"]/deliveschedayno");
- var bf_aft_flag = model.getValue("/root/main/trgt/delivelist["+i+"]/bfaftflag");
- var delive_sche_tm = model.getValue("/root/main/trgt/delivelist["+i+"]/deliveschetm");
- var cmpn_exec_dt = fCalcScheDt(sche_base_dd, delive_sche_dayno, bf_aft_flag, delive_sche_tm); // 실행예정일시 계산
-
- // DB에 입력을 위해 delivelist에 저장 및 화면 출력을 위해 execlist에 저장
- model.setValue("/root/main/trgt/delivelist["+i+"]/cmpnexecdt", cmpn_exec_dt);
- grd_execlist.addRow();
- model.setValue("/root/main/trgt/execlist["+i+"]/cmpnrgstdt", rgst_dd); //등록일
- model.setValue("/root/main/trgt/execlist["+i+"]/cmpnexecdt", cmpn_exec_dt); //실행일
- } else if (stat == "d") {
- // 대상자별 실행예정목록 삭제 시 실행 일시 삭제(deleteSelectedRows(grd_exedatelist_t, false)일 경우만..)
- if (grid.selectedRows > 0) {
- var selectedRows = Array(grid.selectedRows);
- for(i=0;i<grid.selectedRows;i++) {
- selectedRows[i] = grid.selectedRow(i);
- }
- for(i=selectedRows.length-1;i>=0;i--) {
- var row = selectedRows[i];
- grd_execlist.deleteRow(row,false);
- }
- }
- }
- }
-
- function fSaveTrgtList() {
- var updt_trgt_list = getGridUpdateData(grd_trgtlist);
- if (updt_trgt_list != "") {
- model.setValue("/root/send/trgtlist", grd_trgtlist.getUpdateData());
- }
- if (submit("TXCPC00104")) {
- grd_trgtlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/trgtlist","");
- messageBox("대상자 저장이","I002");
-
- model.removeNodeset("/root/main/trgt/trgtlist"); // 대상자 리스트 저장후 초기화
- submit("TRCPC00102");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="970" pageheight="500" guideline="2,169;" style="border-color:#c7a3cf; ">
- <group id="group1" style="left:0px; top:0px; width:970px; height:500px; ">
- <group id="group2" style="left:0px; top:0px; width:450px; height:13px; ">
- <caption id="caption10" class="tit_2" style="left:0px; top:0px; width:130px; height:13px; ">캠페인 전송 내용</caption>
- </group>
- <group id="grp_johe" style="left:5px; top:20px; width:435px; height:108px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:435px; height:107px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">등 록 일 :</caption>
- <input id="ipt_trgtfromdd" ref="/root/send/trgtsrch/rgstfromdd" class="input_search" inputtype="date" style="left:109px; top:8px; width:110px; height:19px; "/>
- <caption id="caption1" class="search_no_b" style="left:219px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_trgttodd" ref="/root/send/trgtsrch/rgsttodd" class="input_search" inputtype="date" style="left:231px; top:8px; width:110px; height:19px; "/>
- <caption id="caption12" class="search_name" style="left:15px; top:33px; width:90px; height:17px; ">실 행 일 :</caption>
- <input id="ipt_execfromdd" ref="/root/send/trgtsrch/execfromdd" class="input_search" inputtype="date" style="left:109px; top:31px; width:110px; height:19px; "/>
- <caption id="caption13" class="search_no_b" style="left:219px; top:32px; width:12px; height:17px; ">~</caption>
- <input id="ipt_exectodd" ref="/root/send/trgtsrch/exectodd" class="input_search" inputtype="date" style="left:231px; top:31px; width:110px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:57px; width:90px; height:17px; ">대 상 자 :</caption>
- <select1 id="cmb_trgtflag" ref="/root/send/trgtsrch/trgtflag" class="combo_search" appearance="minimal" style="left:109px; top:56px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>대상자명</label>
- <value>1</value>
- </item>
- <!--<item>
- <label>등록번호</label>
- <value>2</value>
- </item>-->
- <item>
- <label>휴대전화</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_trgtstr" ref="/root/send/trgtsrch/trgtstr" class="input_search" maxlength="30" style="left:212px; top:56px; width:130px; height:19px; "/>
- <caption id="caption17" class="search_name" style="left:15px; top:81px; width:90px; height:17px; ">응답여부:</caption>
- <select1 id="cmb_chosyn" ref="/root/send/trgtsrch/choscnfmyn" class="combo_search" appearance="minimal" style="left:109px; top:79px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0017list/C0017">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <!--<select id="chk_allcmpn" ref="/root/send/trgtsrch/allcmpn" class="search_no_b" overflow="visible" appearance="full" style="left:220px; top:80px; width:121px; height:17px; ">
- <choices>
- <item>
- <label>전체 캠페인에서</label>
- <value>1</value>
- </item>
- </choices>
- </select>-->
- <line id="line13" class="line_4" style="x1:349px; y1:7px; x2:349px; y2:100px; "/>
- <button id="btn_trgtsrch" class="btn1_letter2" navindex="3" style="left:364px; top:39px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSelectCmpn(); // 캠페인 선택
- fInitGetAttr(2); //조회한 속성 초기화
- model.removeNodeset("/root/main/trgt/trgtlist"); //페이지 나누기 추가 후 초기화가 안됨
-
- var cmpn_cd = model.getValue("/root/send/cmpnattr/cmpncd");
- model.setValue("/root/send/trgtsrch/cmpncd", cmpn_cd);
- if (cmpn_cd == "") model.setValue("/root/send/trgtsrch/allcmpn", "1");
- submit("TRCPC00102");
- if (btn_trgtcase2.selected == true) {
- fSetButtons(3); //대상자 목록 탭
- }
- ]]>
- </script>
- </button>
- </group>
- <!--<group id="grp_comntrsmlist" style="left:0px; top:65px; width:440px; height:20px; vertical-align:top; ">
- <button id="button3" class="btn2_letter8" style="left:5px; top:0px; width:108px; height:19px; ">
- <caption>환자별캠페인추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:220px; top:0px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (file_nm != "") {
- grd_trgtlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter5" style="left:287px; top:0px; width:75px; height:19px; ">
- <caption>대상자추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter5" style="left:365px; top:0px; width:75px; height:19px; ">
- <caption>대상자삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_trgtlist, true); // 대상자 선택행 삭제
- ]]>
- </script>
- </button>
- </group>-->
- <group id="group3" style="left:460px; top:0px; width:510px; height:128px; vertical-align:top; ">
- <shape id="rectangle5" appearance="rectangle" style="left:1px; top:00px; width:508px; height:128px; border-color:#c0c0c0; "/>
- <caption id="caption3" class="tit_2" style="left:10px; top:12px; width:130px; height:13px; ">공통 전송리스트</caption>
- <line id="line4" class="line_1" style="x1:10px; y1:27px; x2:500px; y2:27px; "/>
- <datagrid id="grd_exedatelist" nodeset="/root/send/cmpnattr/delivelist" caption="전송 D-day^전송실행일^전후^전송시간^SMS^SMS코드^Email^Email코드" colwidth="110, 90, 50, 70, 40, 0, 40, 0, 0, 0, 0, 0, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" style="left:10px; top:33px; width:490px; height:84px; text-align:center; ">
- <col ref="deliveschedayno1"/>
- <col ref="deliveschedayno" type="input"/>
- <col disabled="true" ref="bfaftflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0014list/C0014">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="deliveschetm" format="hh:nn"/>
- <col ref="smsuseyn"/>
- <col ref="smsmsgsmlcd" visibility="hidden"/>
- <col ref="emailuseyn"/>
- <col ref="emailmsgsmlcd" visibility="hidden"/>
- <col ref="cmpncd" visibility="hidden"/>
- <col ref="smsmsglrgcd" visibility="hidden"/>
- <col ref="smsmsgmdlcd" visibility="hidden"/>
- <col ref="emailmsglrgcd" visibility="hidden"/>
- <col ref="emailmsgmdlcd" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="group4" style="left:0px; top:140px; width:970px; height:330px; vertical-align:top; ">
- <switch id="swt_trgt" style="left:0px; top:25px; width:970px; height:300px; ">
- <case id="trgt_case1">
- <line id="line1" class="line_1" style="x1:5px; y1:10px; x2:963px; y2:10px; "/>
- <datagrid id="grd_trgtlist" nodeset="/root/main/trgt/trgtlist" class="text_center" scroll="auto" caption="캠페인명^등록번호^성명^e-mail^핸드폰^추가^등록일^적용기준일^실행일시^응답여부^응답일^^^^^^" colwidth="180, 70, 75, 150, 90, 50, 100, 100, 120, 60, 120,0 ,0 ,0 ,0, 0 ,0" dataheight="23" explorerbar="sortshowmove" rowheader="update" rowheight="23" style="left:5px; top:15px; width:958px; height:275px; ">
- <col ref="cmpnnm" style="text-align:left; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="email" style="text-align:left; "/>
- <col ref="mpphontel"/>
- <col ref="addyn" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd"/>
- <col ref="cmpnrgstdt" format="yyyy-mm-dd"/>
- <col ref="cmpnexecdt" format="yyyy-mm-dd hh:mm"/>
- <col ref="choscnfmyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0017list/C0017">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="choscnfmdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="zipcd" visibility="hidden"/>
- <col ref="address" visibility="hidden"/>
- <col ref="cmpncd" visibility="hidden"/>
- <col ref="rgstseq" visibility="hidden"/>
- <col ref="trsmtrgtflag" visibility="hidden"/>
- <col ref="innrclntid" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var grid = grd_trgtlist;
- if (grid.row > 0 && grid.col > 0 && grid.isCell(event.target)) {
- fSelectTrgt(); // 대상자 선택
- fGetTrgtAttr(); // 등록된 대상자 속성 조회
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var grid = grd_trgtlist;
- if (grid.row > 0 && grid.col > 0) {
- fSelectTrgt(); // 대상자 선택
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="trgt_case2" selected="true">
- <line id="line42" class="line_2" style="x1:5px; y1:32px; x2:450px; y2:32px; "/>
- <caption id="caption42" class="cell_1" style="left:5px; top:10px; width:105px; height:23px; text-align:center; ">등록번호/이름</caption>
- <input id="ipt_pid" ref="/root/main/trgt/trgtattr/pid" class="input_essential" maxlength="10" style="left:113px; top:11px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_pidsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_pidsrch" class="icon_search" style="left:226px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 등록번호 검색
- var trsmtrgtflag = model.getValue("/root/send/cmpnattr/trsmtrgtflag");
-
- if (trsmtrgtflag == "1") { // 전송대상이 데이터마이닝의 경우 환자검색 팝업창 호출
- var search_condition = "pid";
- var search_term = model.getValue("/root/main/trgt/trgtattr/pid");
- var receive_pid_path = "/root/main/trgt/trgtattr/pid";
- var receive_patnm_path = "/root/main/trgt/trgtattr/hngnm";
- var receive_mpphontel_path = "/root/main/trgt/trgtattr/mpphontel";
- var receive_email_path = "/root/main/trgt/trgtattr/email";
-
- cczfOpenSelectClnt(search_condition, search_term, receive_pid_path, receive_patnm_path, receive_mpphontel_path, receive_email_path);
- } else if (trsmtrgtflag == "2") { // 전송대상이 주소록의 경우 내부고객 검색 팝업창 호출
-
- }
- ]]>
- </script>
- </button>
- <input id="ipt_trgtnm" ref="/root/main/trgt/trgtattr/hngnm" disabled="true" maxlength="30" style="left:247px; top:11px; width:200px; height:19px; "/>
- <line id="line43" class="line_2" style="x1:5px; y1:56px; x2:450px; y2:56px; "/>
- <caption id="caption43" class="cell_1" style="left:5px; top:34px; width:105px; height:23px; text-align:center; ">휴대전화</caption>
- <input id="ipt_trgtphone" ref="/root/main/trgt/trgtattr/mpphontel" disabled="true" maxlength="20" style="left:113px; top:35px; width:334px; height:19px; "/>
- <line id="line43_1" class="line_2" style="x1:5px; y1:80px; x2:450px; y2:80px; "/>
- <caption id="caption43_1" class="cell_1" style="left:5px; top:58px; width:105px; height:23px; text-align:center; ">이메일</caption>
- <input id="ipt_trgtemail" ref="/root/main/trgt/trgtattr/email" disabled="true" maxlength="100" style="left:113px; top:59px; width:334px; height:19px; "/>
- <line id="line44" class="line_2" style="x1:450px; y1:80px; x2:965px; y2:80px; "/>
- <caption id="caption44" class="cell_1" style="left:450px; top:10px; width:105px; height:71px; text-align:center; ">실행 일시</caption>
- <datagrid id="grd_execlist" nodeset="/root/main/trgt/execlist" caption="적용기준일^실행(예정)일시^실행여부" colwidth="120, 160, 80" dataheight="23" extendlastcol="scroll" rowheader="seq" rowheight="23" style="left:558px; top:11px; width:407x; height:68px; text-align:center; ">
- <col ref="cmpnrgstdt" format="yyyy-mm-dd"/>
- <col ref="cmpnexecdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="execyn"/>
- </datagrid>
- <line id="line45" class="line_2" style="x1:5px; y1:104px; x2:450px; y2:104px; "/>
- <caption id="caption45" class="cell_1" style="left:5px; top:82px; width:105px; height:23px; text-align:center; ">캠페인명</caption>
- <input id="ipt_cmpnnm_t" ref="/root/main/trgt/trgtattr/cmpnnm" class="input_essential" disabled="true" maxlength="30" style="left:113px; top:83px; width:200px; height:19px; "/>
- <input id="ipt_cmpncd_t" ref="/root/main/trgt/trgtattr/cmpncd" class="input_essential" disabled="true" imemode="disabled" maxlength="8" style="left:316px; top:83px; width:110px; height:19px; "/>
- <button id="btn_cmpnsrch_t" class="icon_search" disabled="true" style="left:429px; top:83px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var send_cmpn_cd = model.getValue("/root/main/trgt/trgtattr/cmpncd");
- var send_cmpn_nm = model.getValue("/root/main/trgt/trgtattr/cmpnnm");
- var recv_cmpn_cd_path = "/root/main/trgt/trgtattr/cmpncd";
- var recv_cmpn_nm_path = "/root/main/trgt/trgtattr/cmpnnm";
-
- cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm, recv_cmpn_cd_path, recv_cmpn_nm_path); // 캠페인 선택 팝업(modal)
-
- model.setValue("/root/send/cmpnattr/cmpncd", model.getValue("/root/main/trgt/trgtattr/cmpncd"));
- fGetCmpnToTrgt(); // 캠페인 속성 상속
- ]]>
- </script>
- </button>
- <line id="line46" class="line_2" style="x1:450px; y1:104px; x2:965px; y2:104px; "/>
- <caption id="caption46" class="cell_1" style="left:450px; top:82px; width:105px; height:23px; text-align:center; ">캠페인 분류</caption>
- <select1 id="cmb_cmpnlrg_t" ref="/root/main/trgt/trgtattr/cmpnlrgcd" class="combo_default" disabled="true" appearance="minimal" style="left:558px; top:83px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/trgtgrup/cmpnlrggrup">
- <label ref="cmpnlrgnm"/>
- <value ref="cmpnlrgcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_cmpnmdl_t" ref="/root/main/trgt/trgtattr/cmpnmdlcd" class="combo_default" disabled="true" appearance="minimal" style="left:691px; top:83px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/trgtgrup/cmpnmdlgrup">
- <label ref="cmpnmdlnm"/>
- <value ref="cmpnmdlcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_cmpnsml_t" ref="/root/main/trgt/trgtattr/cmpnsmlcd" class="combo_default" disabled="true" appearance="minimal" style="left:824px; top:83px; width:141px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/trgtgrup/cmpnsmlgrup">
- <label ref="cmpnsmlnm"/>
- <value ref="cmpnsmlcd"/>
- </itemset>
- </choices>
- </select1>
- <line id="line5" class="line_2" style="x1:5px; y1:128px; x2:450px; y2:128px; "/>
- <caption id="caption16" class="cell_1" style="left:5px; top:106px; width:105px; height:23px; text-align:center; ">캠페인 속성</caption>
- <select1 id="rdo_cmpnflag_t" ref="/root/main/trgt/trgtattr/cmpnexecattr" appearance="full" cellspacing="15" cols="4" overflow="visible" style="left:113px; top:109px; width:282px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0013list/C0013">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line47" class="line_2" style="x1:450px; y1:128px; x2:965px; y2:128px; "/>
- <caption id="caption47" class="cell_1" style="left:450px; top:106px; width:105px; height:23px; text-align:center; ">실행 부서명</caption>
- <input id="ipt_deptnm_t" ref="/root/main/trgt/trgtattr/rgstdeptnm" maxlength="50" style="left:558px; top:107px; width:161px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_deptsrch_t", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_deptsrch_t" class="icon_search" style="left:722px; top:107px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "deptnm";
- var search_term = model.getValue("/root/main/trgt/trgtattr/rgstdeptnm");
- var receive_deptcd_path = "/root/main/trgt/trgtattr/rgstdeptcd";
- var receive_deptnm_path = "/root/main/trgt/trgtattr/rgstdeptnm";
-
- cczfOpenSelectDept(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
- //zbcfOpenInstDeptCodeList(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd_t" ref="/root/main/trgt/trgtattr/rgstdeptcd" disabled="true" style="left:741px; top:107px; width:80px; height:19px; "/>
- <line id="line2" class="line_2" style="x1:5px; y1:196px; x2:450px; y2:196px; "/>
- <caption id="caption15" class="cell_1" style="left:5px; top:130px; width:105px; height:67px; text-align:center; ">실행 기준일</caption>
- <select1 id="rdo_exebaseflag_t" ref="/root/main/trgt/trgtattr/execbaseddflag" appearance="full" rows="3" vcellspacing="6" overflow="visible" style="left:113px; top:129px; width:27px; height:68px; ">
- <choices>
- <item>
- <label/>
- <value>3</value>
- </item>
- <item>
- <label/>
- <value>1</value>
- </item>
- <item>
- <label/>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetBaseDD(2); // 실행기준일 선택에 따른 활성화(2: 대상자)
- ]]>
- </script>
- </select1>
- <caption id="caption4" style="left:140px; top:154px; width:150px; height:19px; ">전송대상 생성기준일로부터</caption>
- <input id="ipt_exebase11_t" ref="/root/main/trgt/trgtattr/execbasedayno" imemode="disabled" maxlength="4" format="9999" style="left:294px; top:153px; width:30px; height:19px; "/>
- <caption id="caption18" style="left:329px; top:154px; width:30px; height:19px; ">일 후</caption>
- <caption id="caption19" style="left:140px; top:178px; width:150px; height:19px; ">전송대상 생성기준일로부터</caption>
- <input id="ipt_exebase21_t" ref="/root/main/trgt/trgtattr/execbasemm" imemode="disabled" maxlength="2" format="99" style="left:294px; top:176px; width:30px; height:19px; "/>
- <caption id="caption20" style="left:329px; top:178px; width:30px; height:19px; ">개월</caption>
- <input id="ipt_exebase22_t" ref="/root/main/trgt/trgtattr/execbasedd" imemode="disabled" maxlength="2" format="99" style="left:359px; top:176px; width:30px; height:19px; "/>
- <caption id="caption21" style="left:395px; top:178px; width:30px; height:19px; ">일 후</caption>
- <input id="ipt_exebase31_t" ref="/root/main/trgt/trgtattr/execbasespcldd" imemode="disabled" inputtype="date" style="left:205px; top:131px; width:120px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var check_dd2 = model.getValue("/root/main/trgt/trgtattr/execbasespcldd");
- if (check_dd2 != "" && !isValidDateTime(check_dd2,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_exebase31_t");
- }
- ]]>
- </script>
- </input>
- <caption id="caption22" style="left:140px; top:131px; width:60px; height:19px; ">특정일</caption>
- <!--<input id="ipt_exebase11_t" ref="/root/main/trgt/trgtattr/execbasedayno" imemode="disabled" maxlength="4" format="9999" style="left:170px; top:131px; width:60px; height:19px; "/>
- <caption id="caption47_1" style="left:235px; top:131px; width:30px; height:19px; ">일 후</caption>
- <input id="ipt_exebase21_t" ref="/root/main/trgt/trgtattr/execbasemm" imemode="disabled" maxlength="2" format="99" style="left:170px; top:153px; width:60px; height:19px; "/>
- <caption id="caption47_2" style="left:235px; top:153px; width:30px; height:19px; ">개월</caption>
- <input id="ipt_exebase22_t" ref="/root/main/trgt/trgtattr/execbasedd" imemode="disabled" maxlength="2" format="99" style="left:270px; top:153px; width:60px; height:19px; "/>
- <caption id="caption47_3" style="left:335px; top:153px; width:30px; height:19px; ">일 후</caption>
- <input id="ipt_exebase31_t" ref="/root/main/trgt/trgtattr/execbasespcldd" imemode="disabled" inputtype="date" style="left:170px; top:175px; width:120px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var check_dd2 = model.getValue("/root/main/trgt/trgtattr/execbasespcldd");
- if (check_dd2 != "" && !isValidDateTime(check_dd2,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_exebase31_t");
- }
- ]]>
- </script>
- </input>
- <caption id="caption47_4" style="left:295px; top:175px; width:60px; height:19px; ">일(특정일)</caption>-->
- <button id="btn_execbase_set" class="btn2_letter2" style="left:405px; top:130px; width:42px; height:19px; ">
- <caption>변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 실행일시 목록 제거 후 다시 계산(실행예정목록 cmpnexecdt에 변경값 적용 후 수정상태로..)
- model.removeNodeset("/root/main/trgt/execlist");
- model.refresh();
- fCalcExecDt();
- fGridSetStatus(grd_exedatelist_t, "update"); // 실행예정목록 상태를 update로 변경해야 DB에 변경된 실행일시가 저장
-
- // 변경여부 확인을 위해 인스턴스에 값 설정
- model.setValue("/root/temp/trgtattr/oldtrgtattr/execbaseddflag", model.getValue("/root/main/trgt/trgtattr/execbaseddflag"));
- model.setValue("/root/temp/trgtattr/oldtrgtattr/execbasedayno", model.getValue("/root/main/trgt/trgtattr/execbasedayno"));
- model.setValue("/root/temp/trgtattr/oldtrgtattr/execbasemm", model.getValue("/root/main/trgt/trgtattr/execbasemm"));
- model.setValue("/root/temp/trgtattr/oldtrgtattr/execbasedd", model.getValue("/root/main/trgt/trgtattr/execbasedd"));
- model.setValue("/root/temp/trgtattr/oldtrgtattr/execbasespcldd", model.getValue("/root/main/trgt/trgtattr/execbasespcldd"));
- ]]>
- </script>
- </button>
- <line id="line48" class="line_2" style="x1:5px; y1:268px; x2:450px; y2:268px; "/>
- <caption id="caption48" class="cell_1" style="left:5px; top:198px; width:105px; height:71px; text-align:center; ">연결 캠페인</caption>
- <input id="ipt_nextcmpnnm_t" ref="/root/temp/trgtattr/cmpnlnk/nextcmpnnm" maxlength="30" style="left:113px; top:199px; width:177px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_cmpnsrch2_t", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_nextcmpncd_t" ref="/root/temp/trgtattr/cmpnlnk/nextcmpncd" imemode="disabled" maxlength="8" style="left:293px; top:199px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_cmpnsrch2_t", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_cmpnsrch2_t" class="icon_search" style="left:386px; top:199px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var send_cmpn_cd = model.getValue("/root/temp/trgtattr/cmpnlnk/nextcmpncd");
- var send_cmpn_nm = model.getValue("/root/temp/trgtattr/cmpnlnk/nextcmpnnm");
- var recv_cmpn_cd_path = "/root/temp/trgtattr/cmpnlnk/nextcmpncd";
- var recv_cmpn_nm_path = "/root/temp/trgtattr/cmpnlnk/nextcmpnnm";
-
- cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm, recv_cmpn_cd_path, recv_cmpn_nm_path); // 캠페인 선택 팝업(modal)
- ]]>
- </script>
- </button>
- <datagrid id="grd_cmpnlnklist_t" nodeset="/root/main/trgt/cmpnlnklist" caption="캠페인명^캠페인코드" colwidth="160, 90, 0, 0, 0, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:113px; top:221px; width:288px; height:46px; ">
- <col ref="nextcmpnnm"/>
- <col ref="nextcmpncd"/>
- <col ref="cmpncd" visibility="hidden"/>
- <col ref="cmpnrgstdt" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="rgstseq" visibility="hidden"/>
- </datagrid>
- <button id="btn_cmpnlnk_t_ins" class="btn2_letter2" style="left:405px; top:199px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddTrgtCmpnLnk(); // 입력값 체크 후 연결캠페인 행추가
- ]]>
- </script>
- </button>
- <button id="btn_cmpnlnk_t_del" class="btn2_letter2" style="left:405px; top:222px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_cmpnlnklist_t, false); // 연결캠페인 선택행 삭제
- ]]>
- </script>
- </button>
- <caption id="caption48_1" class="cell_1" style="left:5px; top:270px; width:105px; height:23px; text-align:center; ">연결 시점</caption>
- <select1 id="rdo_cmpnlnktm_t" ref="/root/main/trgt/trgtattr/nextcmpnlnkpnttm" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:113px; top:273px; width:282px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0018list/C0018">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption49" class="cell_1" style="left:450px; top:130px; width:105px; height:71px; text-align:center; ">실행 예정목록</caption>
- <datagrid id="grd_exedatelist_t" nodeset="/root/main/trgt/delivelist" caption="전송 D-day^전송실행일^전후^전송시간^SMS^SMS코드^Email^Email코드^^^^^^" colwidth="90, 90, 40, 60, 40, 0, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:558px; top:131px; width:407px; height:70px; text-align:center; ">
- <col ref="deliveschedayno1"/>
- <col ref="deliveschedayno"/>
- <col disabled="true" ref="bfaftflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0014list/C0014">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="deliveschetm" format="hh:nn"/>
- <col ref="smsuseyn"/>
- <col ref="smsmsgsmlcd" visibility="hidden"/>
- <col ref="emailuseyn"/>
- <col ref="emailmsgsmlcd" visibility="hidden"/>
- <col ref="cmpncd" visibility="hidden"/>
- <col ref="cmpnrgstdt" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="rgstseq" visibility="hidden"/>
- <col ref="cmpnexecdt" visibility="hidden"/>
- <col ref="smsmsglrgcd" visibility="hidden"/>
- <col ref="smsmsgmdlcd" visibility="hidden"/>
- <col ref="emailmsglrgcd" visibility="hidden"/>
- <col ref="emailmsgmdlcd" visibility="hidden"/>
- <col ref="trsmtrgtflag" visibility="hidden"/>
- <col ref="innrclntid" visibility="hidden"/>
- </datagrid>
- <caption id="caption50" class="cell_1" style="left:450px; top:201px; width:105px; height:23px; text-align:center; ">1. 실행예정일</caption>
- <caption id="caption50_1" style="left:558px; top:204px; width:67px; height:19px; ">실행 기준일</caption>
- <input id="ipt_exedate_t" ref="/root/temp/trgtattr/delivesche/deliveschedayno" imemode="disabled" maxlength="2" format="99" style="left:630px; top:204px; width:50px; height:19px; "/>
- <caption id="caption50_2" style="left:686px; top:204px; width:20px; height:19px; ">일</caption>
- <select1 id="cmb_exeflag_t" ref="/root/temp/trgtattr/delivesche/bfaftflag" appearance="minimal" style="left:708px; top:204px; width:40px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0014list/C0014">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_exetime_t" ref="/root/temp/trgtattr/delivesche/deliveschetm" imemode="disabled" format="hh:nn" style="left:751px; top:204px; width:60px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var check_tm2 = model.getValue("/root/temp/trgtattr/delivesche/deliveschetm");
- if (check_tm2 != "" && !isValidDateTime(check_tm2,"hhmm")) {
- messageBox("시간이 바르게 입력되지","E007");
- model.setFocus("ipt_exetime_t");
- }
- ]]>
- </script>
- </input>
- <caption id="caption50_3" style="left:816px; top:204px; width:46px; height:19px; ">에 발송</caption>
- <button id="btn_exedate_t_ins" class="btn2_letter2" style="left:878px; top:204px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddTrgtExecDD(); // 입력값 체크 후 대상자 실행예정일 행추가
- ]]>
- </script>
- </button>
- <button id="btn_exedate_t_del" class="btn2_letter2" style="left:923px; top:204px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCalcExecList("d"); // 실행일시 리스트에서 삭제(순서주의: grd_exedatelist_t 보다 먼저 실행 - row index값)
- deleteSelectedRows(grd_exedatelist_t, false); // 대상자 실행예정일 선택행 삭제
- model.refresh(); // 삭제 후 그리드 스크롤 제거
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell_1" style="left:450px; top:224px; width:105px; height:23px; text-align:center; ">2. 실행 채널</caption>
- <select id="chk_sms_t" ref="/root/temp/trgtattr/delivesche/smsuseyn" overflow="visible" appearance="full" style="left:558px; top:227px; width:162px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>캠페인 실행 시 SMS 전송</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_email_t" ref="/root/temp/trgtattr/delivesche/emailuseyn" overflow="visible" appearance="full" style="left:728px; top:227px; width:162px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>캠페인 실행 시 Email 전송</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption6" class="cell_1" style="left:450px; top:247px; width:105px; height:23px; text-align:center; ">3. SMS설정</caption>
- <input id="ipt_smsmsg_t" ref="/root/temp/trgtattr/delivesche/smsmsg" disabled="true" style="left:558px; top:250px; width:300px; height:19px; "/>
- <input id="ipt_smssmlcd_t" ref="/root/temp/trgtattr/delivesche/smsmsgsmlcd" maxlength="10" style="left:861px; top:250px; width:79px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_smssrch_t", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_smsmdlcd_t" ref="/root/temp/trgtattr/delivesche/smsmsgmdlcd" visibility="hidden" style="left:880px; top:250px; width:40px; height:19px; "/>
- <input id="ipt_smslrgcd_t" ref="/root/temp/trgtattr/delivesche/smsmsglrgcd" visibility="hidden" style="left:900px; top:250px; width:40px; height:19px; "/>
- <button id="btn_smssrch_t" class="icon_search" style="left:945px; top:250px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "S";
- var search_term = model.getValue("/root/temp/trgtattr/delivesche/smsmsgsmlcd");
- var receive_msgsmlcd_path = "/root/temp/trgtattr/delivesche/smsmsgsmlcd";
- var receive_msgmdlcd_path = "/root/temp/trgtattr/delivesche/smsmsgmdlcd";
- var receive_msglrgcd_path = "/root/temp/trgtattr/delivesche/smsmsglrgcd";
- var receive_msgcnts_path = "/root/temp/trgtattr/delivesche/smsmsg";
-
- cczfOpenSelectMsg(search_condition, search_term, receive_msgsmlcd_path, receive_msgmdlcd_path, receive_msglrgcd_path, receive_msgcnts_path, "");
- ]]>
- </script>
- </button>
- <caption id="caption7" class="cell_1" style="left:450px; top:270px; width:105px; height:23px; text-align:center; ">4. Email설정</caption>
- <input id="ipt_emailtitl_t" ref="/root/temp/trgtattr/delivesche/emailtitl" disabled="true" style="left:558px; top:272px; width:300px; height:19px; "/>
- <input id="ipt_emailsmlcd_t" ref="/root/temp/trgtattr/delivesche/emailmsgsmlcd" maxlength="10" style="left:861px; top:272px; width:79px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_emailsrch_t", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_emailmdlcd_t" ref="/root/temp/trgtattr/delivesche/emailmsgmdlcd" visibility="hidden" style="left:880px; top:272px; width:40px; height:19px; "/>
- <input id="ipt_emaillrgcd_t" ref="/root/temp/trgtattr/delivesche/emailmsglrgcd" visibility="hidden" style="left:900px; top:272px; width:40px; height:19px; "/>
- <button id="btn_emailsrch_t" class="icon_search" style="left:945px; top:272px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "E";
- var search_term = model.getValue("/root/temp/trgtattr/delivesche/emailmsgsmlcd");
- var receive_msgsmlcd_path = "/root/temp/trgtattr/delivesche/emailmsgsmlcd";
- var receive_msgmdlcd_path = "/root/temp/trgtattr/delivesche/emailmsgmdlcd";
- var receive_msglrgcd_path = "/root/temp/trgtattr/delivesche/emailmsglrgcd";
- var receive_emailtitl_path = "/root/temp/trgtattr/delivesche/emailtitl";
-
- cczfOpenSelectMsg(search_condition, search_term, receive_msgsmlcd_path, receive_msgmdlcd_path, receive_msglrgcd_path, "", receive_emailtitl_path);
- ]]>
- </script>
- </button>
- <line id="line60" class="line_3" style="x1:5px; y1:293px; x2:965px; y2:293px; "/>
- </case>
- </switch>
- <button id="btn_trgtcase1" class="btn_sw" group="tab_trgt" selected="true" style="left:0px; top:4px; width:140px; height:22px; ">
- <caption>대상자 리스트</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetButtons(3); //대상자 리스트 탭
- model.refresh(); //그리드를 재정렬하기 위함
- ]]>
- </script>
- </button>
- <button id="btn_trgtcase2" class="btn_sw" group="tab_trgt" style="left:140px; top:4px; width:140px; height:22px; ">
- <caption>대상자 속성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 대상자 목록에서 대상자가 선택되어 있을 경우 선택된 대상자의 캠페인 속성을 조회
- fSelectTrgt(); // 대상자 선택
- var pid = model.getValue("/root/send/trgtattr/pid");
- var innrclntid = model.getValue("/root/send/trgtattr/innrclntid");
-
- //if (!isXPathTextNull("/root/send/trgtattr/pid")) {
- if(pid != "" || innrclntid != "") {
- fGetTrgtAttr(); // 등록된 대상자 속성 조회
- // 1. 선택된 대상자가 없을 경우 [대상자 추가]가 실행되게 할 경우
- /*
- } else if (!isXPathTextNull("/root/send/cmpnattr/cmpncd")) {3
- fInitGetAttr(2); //조회한 속성 초기화
- fSetButtons(4); //캠페인 속성 탭
- fSetControls(3); //캠페인 입력컨트롤 초기
- fGetCmpnToTrgt(); // 캠페인 속성 상속 및 입력 모드
- } else {
- fInitGetAttr(2); //조회한 속성 초기화
- fSetButtons(4); //캠페인 속성 탭
- fSetControls(3); //캠페인 입력컨트롤 초기
- model.setValue("/root/main/trgt/trgtattr/savemode","I");
- //등록할 캠페인 검색
- ipt_cmpncd_t.disabled = false;
- btn_cmpnsrch_t.disabled = false;
- }
- */
- // 2. 선택된 대상자가 없을 경우 "대상자 선택" 에러로 처리할 경우
- } else {
- messageBox("속성을 조회할 대상자를 \n대상자리스트에서","C002");
- btn_trgtcase1.selected = true;
- }
- ]]>
- </script>
- </button>
- <caption id="cab_trsmtrgtnm" ref="/root/init/trsmtrgtnm" style="left:290px; top:9px; width:325px; height:15px; font-weight:bold; color:#ff6600; "/>
- <!--<button id="button4" class="btn2_letter8" style="left:634px; top:5px; width:108px; height:19px; ">
- <caption>환자별캠페인추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>-->
- <button id="btn_saveexcel2" class="btn2_letter4" style="left:745px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file_nm = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (file_nm != "") {
- grd_trgtlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_trgtadd" class="btn2_letter5" style="left:812px; top:5px; width:75px; height:19px; ">
- <caption>대상자추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //fSelectCmpn(); // 캠페인 선택
- var trsmtrgtflag = model.getValue("/root/send/trgtsrch/trsmtrgtflag");
-
- if (trsmtrgtflag == "1" ) {
- if (!isXPathTextNull("/root/send/cmpnattr/cmpncd")) {
- fInitGetAttr(2); //조회한 속성 초기화
- fSetButtons(4); //대상자 속성 탭
- fSetControls(3); //대상자 컨트롤 일부 제한
- fGetCmpnToTrgt(); //캠페인 속성 상속
- fSetBaseDD(2); //실행예정일 입력컨트롤
- } else {
- messageBox("대상자를 등록할 캠페인을 \n캠페인리스트에서","C002");
- }
- } else {
- messageBox("대상자 구분이 주소록일 경우 주소록 등록 화면에서만 대상자 추가가","I006");
- }
- ]]>
- </script>
- </button>
- <button id="btn_trgtdel" class="btn2_letter5" style="left:890px; top:5px; width:75px; height:19px; ">
- <caption>대상자삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_trgtlist, true); // 대상자 선택행 삭제
- ]]>
- </script>
- </button>
- </group>
- <group id="group8" style="left:5px; top:470px; width:965px; 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_trgtlist;
- 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_trgtlist;
- var grid_rows = grid.rows-1;
- grid.selectionmode = "byrow";
- grid.select(1, 1, grid_rows, 1) = false;
- ]]>
- </script>
- </button>
- <!--button id="btn_reverse" class="btn2_letter4" style="left:134px; top:3px; width:64px; height:19px; ">
- <caption>선택반전</caption>
- <script ev:event="DOMActivate" type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- </button-->
- <button id="btn_trgtsave" class="btn5_letter5" style="left:799px; top:3px; width:75px; height:19px; ">
- <caption>대상자저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 대상자리스트 탭과 속성 탭의 저장 실행 구분
- if (btn_trgtcase1.selected == true) {
- fSaveTrgtList(); //대상자 리스트 저장
- } else if (btn_trgtcase2.selected == true) {
- fSaveTrgt(); //대상자 속성 저장(I:등록, U:수정)
- }
- ]]>
- </script>
- </button>
- <button id="btn_trgtreset" class="btn5_letter6" style="left:877px; top:3px; width:86px; height:19px; ">
- <caption>대상자초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 대상자리스트 탭과 속성 탭의 초기화 실행 구분
- if (btn_trgtcase1.selected == true) {
- //model.removeNodeset("/root/main/trgt/trgtlist");
- grd_trgtlist.clearStatus();
- } else if (btn_trgtcase2.selected == true) {
- if (!isXPathTextNull("/root/send/trgtattr/pid")) {
- fInitTrgt(); //대상자 속성 초기화
- fGetTrgtAttr(); //등록된 대상자 속성 조회
- } else if (!isXPathTextNull("/root/send/cmpnattr/cmpncd")) {
- fInitTrgt(); //대상자 속성 초기화
- fGetCmpnToTrgt(); //캠페인 속성 상속
- } else {
- fInitGetAttr(2); //조회한 속성 초기화
- model.setValue("/root/main/trgt/trgtattr/savemode","I");
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|