123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCDT00500_템플릿데이터마이닝
- * Summary : 호스피스 마이닝
- * Programmer : 최정환
- * Date Written : 2007.09.11
- * History : 2007.09.11, 2008/06/26,박원희: 기능보완(연결구분에서 예방접종 제외-db단 및 화면UI 에서 해당부분만 보이도록 수정함)
- * Remark :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>호스피스 마이닝</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <tmpldtmn>
- <itemnm/>
- <lnkflag>1</lnkflag>
- <useyn/>
- <execbaseddflag/>
- <execbasemm/>
- <execbasedd/>
- <execbasedayno/>
- <dataextrbfdayno/>
- <delivetm/>
- <cmpncd/>
- <savemode/>
- <tmpldtmncd/>
- <smsmsglrgcd/>
- <smsmsgmdlcd/>
- <smsmsgsmlcd/>
- <dataextrbasedd/>
- <condqry/>
- <newElement/>
- <dblnkflag/>
- <bizflag/>
- <bizdetlcd/>
- <dataextrtm/>
- <execdd/>
- <cmpnexecattr/>
- </tmpldtmn>
- <cmpnlist>
- <cmpnsmlnm/>
- <cmpncd/>
- <cmpnnm/>
- </cmpnlist>
- <msgsmllist>
- <msgsmlcd/>
- <emailtitl/>
- <smstrsmcntcno/>
- <msgcnts/>
- </msgsmllist>
- <list>
- <tmpldtmnlist/>
- <tmpldtmnexeclist>
- <hngnm/>
- <pid/>
- <mpphone/>
- <msgcnts/>
- </tmpldtmnexeclist>
- </list>
- <cmpninfo>
- <cmpnlrgcd/>
- <cmpnmdlcd/>
- <cmpnsmlcd/>
- <cmpnnm/>
- </cmpninfo>
- <smsmsginfo>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- <msgcnts/>
- </smsmsginfo>
- </main>
- <init>
- <cmpnlrg>
- <cmpnlrggrup>
- <cmpnlrgnm/>
- <cmpnlrgcd/>
- </cmpnlrggrup>
- </cmpnlrg>
- <cmpnmdl>
- <cmpnmdlgrup>
- <cmpnmdlnm/>
- <cmpnmdlcd/>
- </cmpnmdlgrup>
- </cmpnmdl>
- <cmpnsml>
- <cmpnsmlgrup>
- <cmpnsmlnm/>
- <cmpnsmlcd/>
- </cmpnsmlgrup>
- </cmpnsml>
- <chnllrglist>
- <chnllrggrup>
- <msglrgnm/>
- <msglrgcd/>
- </chnllrggrup>
- </chnllrglist>
- <chnlmdllist>
- <chnlmdlgrup>
- <msgmdlnm/>
- <msgmdlcd/>
- <msglrgcd/>
- </chnlmdlgrup>
- </chnlmdllist>
- <C0027list>
- <cdid/>
- <cdnm/>
- </C0027list>
- <M0204list>
- <cdid/>
- <cdnm/>
- </M0204list>
- <C0013list>
- <cdid/>
- <cdnm/>
- </C0013list>
- <C0028list>
- <cdid/>
- <cdnm/>
- </C0028list>
- <C0033list>
- <cdid/>
- <cdnm/>
- </C0033list>
- </init>
- <send>
- <cmpnlrgcd/>
- <cmpnmdlcd/>
- <cmpnsmlcd/>
- <cmpncd/>
- <data>
- <rgstfromdd/>
- <rgsttodd/>
- <lnkflag/>
- <itemnm/>
- </data>
- <tmpldtmn/>
- <info>
- <chnlflag>S</chnlflag>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- </info>
- <msgcount>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- <biz_flag>T</biz_flag>
- <gubun/>
- </msgcount>
- </send>
- <temp>
- <countnode>
- <tmpldtmncount/>
- <tmpldtmnexeccount/>
- </countnode>
- <ref>
- <tmpldtmncd/>
- </ref>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="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="TRCDT00107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/cmpnlrg/cmpnlrggrup"/>
- <submission id="TRCDT00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmpnmdl/cmpnmdlgrup"/>
- <submission id="TRCDT00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmpnsml/cmpnsmlgrup"/>
- <submission id="TRCDT00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cmnpnlist"/>
- <submission id="TRCDT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list/tmpldtmnlist"/>
- <submission id="TRCDT00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmpldtmn" replace="instance" resultref="/root/main/list/tmpldtmnexeclist"/>
- <submission id="TXCDT00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmpldtmn" resultref="/root/temp/ref"/>
- <submission id="TXCNS00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/msgcount"/>
- </model>
- <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="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/data/rgstfromdd",getCurrentDate().toDate().getAddDate(-31,"D").getDateFormat());
- model.setValue("/root/send/data/rgsttodd",getCurrentDate());
-
- // 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/list/tmpldtmnlist"); // 템플릿목록
- model.removenodeset("/root/main/cmpnlist"); // 캠페인연결정보
- model.removenodeset("/root/main/msgsmllist"); // SMS연결정보
- model.removenodeset("/root/main/list/tmpldtmnexeclist"); // 템플릿데이터마이닝 수동실행
- model.refresh();
-
- model.setValue("/root/main/tmpldtmn/savemode", "I");
- model.setValue("/root/main/tmpldtmn/execbaseddflag", "1");
- fSetBaseDD();
- // 초기값 셋팅
- model.setValue("/root/main/tmpldtmn/lnkflag", "1");
- fGetlnkflag();
-
- // 캠페인 대그룹을 가져온다
- submit("TRCDT00107");
-
- fTmpldtmnlist();
-
- // 공통코드를 호출하여 자료(연결구분)를 가져온다
-
- // 2008/06/26,박원희: 템플릿마이닝은 임종일만 해달라는 사용자의 요청, 추후 확장성을 고려하여 DB, UI 남긴채 수정함
- zbcfGetCodeList( new Array("C0027","M0204", "C0013", "C0028", "C0033"),
- new Array("/root/init/C0027list","/root/init/M0204list", "/root/init/C0013list", "/root/init/C0028list", "/root/init/C0033list"), true );
- //zbcfGetCodeList( new Array("M0204"), new Array("/root/init/M0204list"), true );
-
- model.setValue("/root/send/data/lnkflag", "1")
- // model.setValue("/root/init/C0027list/cdid","2");
- // model.setValue("/root/init/C0027list/cdnm","임종일");
- // model.setValue("/root/send/data/lnkflag","2");
-
- // ---->
-
- model.refresh();
-
- fCheckAuth();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 권한체크
- function fCheckAuth() {
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- if (!checkAuth("x")) {
- btn_healexamtmplsave.disabled=true;
- btn_tmpldtmnexec.disabled=true;
- }
- if (!checkAuth("p")) {
- btn_saveexcel.disabled=true;
- }
- }
-
- // 선택한 캠페인 대분류에 따른 캠페인 중분류를 가져온다.
- function fGetCmpnMdlCd() {
- var cmpnlrgcd = model.getValue("/root/main/cmpninfo/cmpnlrgcd");
- if (cmpnlrgcd != "") {
- model.setValue("/root/send/cmpnlrgcd",cmpnlrgcd);
- submit("TRCDT00108");
- }
- }
-
- // 선택한 캠페인 중분류에 따른 캠페인 소분류를 가져온다.
- function fGetCmpnSmlCd() {
- var cmpnmdlcd = model.getValue("/root/main/cmpninfo/cmpnmdlcd");
-
- if (cmpnmdlcd != "") {
- model.setValue("/root/send/cmpnmdlcd",cmpnmdlcd);
- submit("TRCDT00109");
- }
- }
-
- // 선택한 캠페인 소분류에 따른 캠페인 리스트를 가져온다.
- function fGetCmpnList() {
- var cmpnsmlcd = model.getValue("/root/main/cmpninfo/cmpnsmlcd");
-
- if (cmpnsmlcd != "") {
- model.setValue("/root/send/cmpnsmlcd",cmpnsmlcd);
- submit("TRCDT00110");
- }
- }
-
- // 연결구분에 따른 화면설정
- function fGetlnkflag() {
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag")
- if (lnkflag == "1") {
- model.toggle("case2");
- model.toggle("case4");
- // SMS 메시지 대그룹을 가져온다.
- submit("TRCNS00201");
- } else {
- model.toggle("case1");
- model.toggle("case3");
- }
- }
- // 선택한 채널관리 대분류에 따른 채널관리 중분류를 가져온다.
- function fGetChnlMdlCd() {
- var msglrgcd = model.getValue("/root/main/smsmsginfo/msglrgcd");
- model.setValue("/root/send/info/msglrgcd",msglrgcd);
- submit("TRCNS00202");
- }
-
- // 선택한 채널관리 중분류에 따른 메시지 리스트를 가져온다.
- function fGetChnlSmlCd() {
- var msgmdlcd = model.getValue("/root/main/smsmsginfo/msgmdlcd");
- model.setValue("/root/send/info/msgmdlcd",msgmdlcd);
- submit("TRCCN00101");
- }
-
- // 실행기준일 선택에 따른 입력 컨트롤 제한
- function fSetBaseDD() {
- var base_flag = "";
- base_flag = model.getValue("/root/main/tmpldtmn/execbaseddflag");
- switch (base_flag) {
- case "1":
- ipt_execbasedayno.disabled = false;
- ipt_execbasemm.disabled = true;
- ipt_execbasedd.disabled = true;
- break;
- case "2":
- ipt_execbasedayno.disabled = true;
- ipt_execbasemm.disabled = false;
- ipt_execbasedd.disabled = false;
- break;
- default:
- ipt_execbasedayno.disabled = false;
- ipt_execbasemm.disabled = true;
- ipt_execbasedd.disabled = true;
- break;
- }
- }
-
- // 실행기준일 체크
-
- function fCheckTmplDtmn() {
- var execbaseddflag = model.getValue("/root/main/tmpldtmn/execbaseddflag");
- var execbasedayno = model.getValue("/root/main/tmpldtmn/execbasedayno");
- var execbasemm = model.getValue("/root/main/tmpldtmn/execbasemm");
- var execbasedd = model.getValue("/root/main/tmpldtmn/execbasedd");
-
- if (execbaseddflag == "1") {
- if (execbasedayno == "") {
- messageBox("실행기준일수를 ","C001");
- model.setFocus("ipt_execbasedayno");
- } else {
- return true;
- }
- } else if (execbaseddflag == "2") {
- if (execbasemm == "") {
- messageBox("실행기준월을","C001");
- model.setFocus("ipt_execbasemm");
- } else if (execbasedd == "") {
- messageBox("실행기준일을","C001");
- model.setFocus("ipt_execbasedd");
- } else {
- return true;
- }
- } else {
- return true;
- }
-
- }
-
- // 템플릿데이터마이닝 저장
- function fSaveTmplDtmn() {
-
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag");
- if (lnkflag == "2") {
- var cmpncd = model.getValue("/root/main/tmpldtmn/cmpncd");
- if (cmpncd == "") {
- messageBox("캠페인연결정보를 ","C002");
- return;
- }
- } else if (lnkflag == "1") {
- var smsmsgsmlcd = model.getValue("/root/main/tmpldtmn/smsmsgsmlcd");
- if (smsmsgsmlcd == "") {
- messageBox("SMS연결정보를 ","C002");
- return;
- }
- }
-
- // 실행기준일 체크
- // if (!fCheckTmplDtmn()) return;
- // 입력시 업무구분에 따른 상세구분 확인
- var bizcd = model.getValue("/root/main/tmpldtmn/bizflag");
- var bizdetlcd = model.getValue("/root/main/tmpldtmn/bizdetlcd");
-
- if(isRequiredControls("rdo_lnkflag", "ipt_itemnm", "ipt_delivetm", "cmb_useyn")) {
- if (bizcd != "3" && bizdetlcd == "99") {
- messageBox("모든 필수값이 입력이","I002");
- model.copyNode( "/root/send/tmpldtmn", "/root/main/tmpldtmn" );
- submit("TXCDT00501");
- // 등록완료후 수정모드로 표시
- model.setValue("/root/main/tmpldtmn/savemode", "U");
- fTmpldtmnlist();
-
- // 등록완료후 메시지사용건수 추가
- var msglrgcd = model.getValue("/root/main/tmpldtmn/smsmsglrgcd");
- var msgmdlcd = model.getValue("/root/main/tmpldtmn/smsmsgmdlcd");
- var msgsmlcd = model.getValue("/root/main/tmpldtmn/smsmsgsmlcd");
- var gubun = "I"
-
- cczfMsgCount(msglrgcd, msgmdlcd, msgsmlcd, gubun);
- } else if (bizcd == "3"){
- messageBox("모든 필수값이 입력이","I002");
- model.copyNode( "/root/send/tmpldtmn", "/root/main/tmpldtmn" );
- submit("TXCDT00501");
- // 등록완료후 수정모드로 표시
- model.setValue("/root/main/tmpldtmn/savemode", "U");
- fTmpldtmnlist();
-
- // 등록완료후 메시지사용건수 추가
- var msglrgcd = model.getValue("/root/main/tmpldtmn/smsmsglrgcd");
- var msgmdlcd = model.getValue("/root/main/tmpldtmn/smsmsgmdlcd");
- var msgsmlcd = model.getValue("/root/main/tmpldtmn/smsmsgsmlcd");
- var gubun = "I"
-
- cczfMsgCount(msglrgcd, msgmdlcd, msgsmlcd, gubun);
- }
- } else {
- messageBox("업무구분이 '예약' 이 아닐경우 업무상세구분은 '기타' 이어야만 합니다.\n 업무구분을 다시","C002");
- }
-
- }
- // 템플릿데이터마이닝 리스트를 가져온다.
- function fTmpldtmnlist() {
-
- submit("TRCDT00501");
-
- var grid_rows = grd_tmpldtmnlist.rows-1;
- model.setValue("/root/temp/countnode/tmpldtmncount" , grid_rows);
- model.refresh();
- }
-
- // 템플릿데이터마이닝 상세정보
- function fGetTmplDtmnAttr() {
- var row = grd_tmpldtmnlist.row;
-
- // 선택한 템플릿데이터마이닝의 내용을 뿌려준다.
- var tmpldtmncd = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("tmpldtmncd"));
- model.setValue("/root/main/tmpldtmn/tmpldtmncd", tmpldtmncd); // 템플릿코드
- var lnkflag = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("lnkflag"));
- model.setValue("/root/main/tmpldtmn/lnkflag", lnkflag); // 연결구분
- var itemnm = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("itemnm"));
- model.setValue("/root/main/tmpldtmn/itemnm", itemnm); // 템플릿명
- var delivetm = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("delivetm"));
- model.setValue("/root/main/tmpldtmn/delivetm", delivetm); // 전송시간
- var useyn = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("useyn"));
- model.setValue("/root/main/tmpldtmn/useyn", useyn); // 사용여부
-
- var dblnkflag = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("dblnkflag"));
- model.setValue("/root/main/tmpldtmn/dblnkflag", dblnkflag); // 연결DB
- var bizflag = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("bizflag"));
- model.setValue("/root/main/tmpldtmn/bizflag", bizflag); // 업무구분
- var bizdetlcd = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("bizdetlcd"));
- model.setValue("/root/main/tmpldtmn/bizdetlcd", bizdetlcd); // 업무상세
- var dataextrtm = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("dataextrtm"));
- model.setValue("/root/main/tmpldtmn/dataextrtm", dataextrtm); // 추출시간
- var condqry = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("condqry"));
- model.setValue("/root/main/tmpldtmn/condqry", condqry); // 추출시간
- var execdd = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("execdd"));
- model.setValue("/root/main/tmpldtmn/execdd", execdd); // 실행일자
- var cmpnexecattr = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("cmpnexecattr"));
- model.setValue("/root/main/tmpldtmn/cmpnexecattr", cmpnexecattr); // 실행속성
-
- // 템플릿데이터마이닝 수동실행 그리드 초기화
- model.removenodeset("/root/main/list/tmpldtmnexeclist");
-
- if (lnkflag == "2") {
- // 캠페인 중분류 및 소분류, 캠페인리스트 세팅(초기화 버튼, 대/중/소분류 콤보 선택)
- fGetCmpnMdlCd();
- fGetCmpnSmlCd();
- fGetCmpnList();
- } else {
- // SMS 대분류 및 중분류, SMS메시지리스트 세팅
- var smsmsglrgcd = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("smsmsglrgcd"));
- var smsmsgmdlcd = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("smsmsgmdlcd"));
- var smsmsgsmlcd = grd_tmpldtmnlist.valueMatrix(row, grd_tmpldtmnlist.colRef("smsmsgsmlcd"));
-
- if (smsmsglrgcd != "") {
- model.setValue("/root/main/smsmsginfo/msglrgcd", smsmsglrgcd); // 매시지 대분류 코드
- fGetChnlMdlCd();
- if (smsmsgmdlcd != "") {
- model.setValue("/root/main/smsmsginfo/msgmdlcd", smsmsgmdlcd); // 매시지 중분류 코드
- fGetChnlSmlCd();
- if (smsmsgsmlcd != "") {
- model.setValue("/root/main/smsmsginfo/msgsmlcd", smsmsgsmlcd); // 매시지 소분류 코드
- var rowCount = grd_msglist.rows;
- for (var i = 1; i < rowCount; i++) {
- var smlcd = grd_msglist.valueMatrix(i, grd_msglist.colRef("msgsmlcd"));
- if (smlcd == smsmsgsmlcd) {
- var msgcnts = grd_msglist.valueMatrix(i, grd_msglist.colRef("msgcnts"));
- model.setValue("/root/main/smsmsginfo/msgcnts", msgcnts);
- }
- }
- }
- }
- } else {
- fGetChnlMdlCd();
- }
-
- // fGetChnlSmlCd();
- }
-
- // 연결구분에 따른 화면설정
- fGetlnkflag();
- fSetChangMode();
-
- model.setValue("/root/main/tmpldtmn/savemode", "U");
- fSetBaseDD();
- }
-
- // 템플릿데이터마이닝 수동실행
- function fTmplDtMnExec() {
- // 실행기준일 체크
- // if (!fCheckTmplDtmn()) return;
-
- var rgst_dd = getCurrentDate();
- var dataextrbasedd;
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag");
- var exec_base_dd_flag = model.getValue("/root/main/tmpldtmn/execbaseddflag");
- var exec_base_dayno = model.getValue("/root/main/tmpldtmn/execbasedayno");
- var exec_base_mm = model.getValue("/root/main/tmpldtmn/execbasemm");
- var exec_base_dd = model.getValue("/root/main/tmpldtmn/execbasedd");
- var exec_base_spcl_dd = model.getValue("/root/main/tmpldtmn/execbasespcldd");
-
- if (exec_base_dd_flag == "1") {
- dataextrbasedd = rgst_dd.toDate().getAddDate(parseInt("-"+exec_base_dayno), "D");
- dataextrbasedd = getDateTime(dataextrbasedd, "D");
- } else if (exec_base_dd_flag == "2") {
- dataextrbasedd = rgst_dd.toDate().getAddDate(parseInt("-"+exec_base_mm), "M");
- dataextrbasedd = dataextrbasedd.getAddDate(parseInt("-"+exec_base_dd), "D");
- dataextrbasedd = getDateTime(dataextrbasedd, "D");
- } else if (exec_base_dd_flag == "3") {
- dataextrbasedd = exec_base_spcl_dd;
- }
-
- // 예방접종의 경우 출생일(주민번호1(CHAR(6)))으로 대상자추출 이므로 자릿수를 맞춰준다.
- if (lnkflag == "1") {
- dataextrbasedd = dataextrbasedd.substring(2,8);
- }
-
- // DB 연결이 CRM 일때만 실행 가능함
- var dblnkflag = model.getValue("/root/main/tmpldtmn/dblnkflag");
- if (dblnkflag != "H") {
- model.setValue("/root/main/tmpldtmn/dataextrbasedd", dataextrbasedd);
- model.copyNode( "/root/send/tmpldtmn", "/root/main/tmpldtmn" );
- submit("TRCDT00502");
- } else {
- messageBox("HISDB로는 연결 ","E001");
- model.setFocus("cmb_dblnkflag");
- }
-
- if (lnkflag == "1") {
- model.SetFocus("grd_tmpldtmnexec2");
- var grid_rows = grd_tmpldtmnexec2.rows-1;
- model.setvalue("/root/temp/countnode/tmpldtmnexeccount" , grid_rows);
- } else if (lnkflag == "2") {
- model.SetFocus("grd_tmpldtmnexec1");
- var grid_rows = grd_tmpldtmnexec1.rows-1;
- model.setvalue("/root/temp/countnode/tmpldtmnexeccount" , grid_rows);
- }
-
- model.refresh();
- }
-
- function fSetChangMode() {
- var bizcd = model.getValue("/root/main/tmpldtmn/bizflag");
- if (bizcd != "3") {
- model.setValue("/root/main/tmpldtmn/bizdetlcd", "99");
- cmb_bizdetlcd.disabled = true;
- } else {
- cmb_bizdetlcd.disabled = false;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:170px; height:14px; ">템플릿 마이닝</caption>
- </group>
- <group id="grp_johe" style="left:0px; top:23px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <caption id="caption5" class="search_name" style="left:370px; top:9px; width:105px; height:17px; ">연 결 구 분 :</caption>
- <select1 id="cmb_lnkflag" ref="/root/send/data/lnkflag" class="combo_search" appearance="minimal" editmode="search" style="left:478px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0027list/C0027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:625px; top:9px; width:105px; height:17px; ">템 플 릿 명 :</caption>
- <input id="ipt_s_itemnm" ref="/root/send/data/itemnm" class="input_search" style="left:733px; top:9px; width:135px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1065px; y1:7px; x2:1065px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1095px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTmpldtmnlist();
- ]]>
- </script>
- </button>
- <caption id="caption6" class="search_name" style="left:15px; top:9px; width:105px; height:17px; ">등 록 일 자 :</caption>
- <input id="ipt_rgstfromdd" ref="/root/send/data/rgstfromdd" class="input_search" inputtype="date" style="left:123px; top:10px; width:95px; height:19px; "/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var rgstfromdd = model.getValue("/root/send/data/rgstfromdd");
- if (rgstfromdd != "" && !isValidDateTime(rgstfromdd,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_rgstfromdd");
- }
- ]]>
- </script>
- <caption id="caption3" class="search_no_b" style="left:223px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_rgsttodd" ref="/root/send/data/rgsttodd" class="input_search" inputtype="date" style="left:238px; top:10px; width:95px; height:19px; "/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var rgsttodd = model.getValue("/root/send/data/rgsttodd");
- if (rgsttodd != "" && !isValidDateTime(rgsttodd,"YYYYMMDD")) {
- messageBox("날짜가 바르게 입력되지","E007");
- model.setFocus("ipt_rgsttodd");
- }
- ]]>
- </script>
- </group>
- <group id="group2" style="left:0px; top:58px; width:1195px; height:197px; ">
- <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">템플릿목록</caption>
- <caption id="caption35" style="left:1087px; top:7px; width:40px; height:17px; ">전체 :</caption>
- <output id="opt_bizplcecount" ref="/root/temp/countnode/tmpldtmncount" appearance="output" style="left:1127px; top:6px; width:30px; height:19px; text-align:right; "/>
- <caption id="caption10" style="left:1160px; top:7px; width:30px; height:17px; ">건</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:26px; x2:1195px; y2:26px; "/>
- <datagrid id="grd_tmpldtmnlist" nodeset="/root/main/list/tmpldtmnlist" class="text_center" caption="템플릿명^템플릿코드^연결구분^사용여부^실행속성^실행일자^연결 DB^자료 추출시^발송될 시간^업무구분^업무상세구분" colsep="^" colwidth="300, 100, 150, 60, 100, 80, 110, 90, 90, 100, 100, 0, 0, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:25px; width:1195px; height:166px; ">
- <col ref="itemnm"/>
- <col ref="tmpldtmncd"/>
- <col disabled="true" ref="lnkflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/C0027list/C0027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="useyn"/>
- <col disabled="true" ref="cmpnexecattr" type="combo">
- <choices>
- <item>
- <label>일회성</label>
- <value>1</value>
- </item>
- <item>
- <label>반복성</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="execdd"/>
- <col disabled="true" ref="dblnkflag" type="combo">
- <choices>
- <item>
- <label>HISDB로 연결</label>
- <value>H</value>
- </item>
- <item>
- <label>CRMDB로 연결</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="dataextrtm"/>
- <col ref="delivetm"/>
- <col disabled="true" ref="bizflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/C0028list/C0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="bizdetlcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/C0033list/C0033">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="condqry" visibility="hidden"/>
- <col ref="smsmsglrgcd" visibility="hidden"/>
- <col ref="smsmsgmdlcd" visibility="hidden"/>
- <col ref="smsmsgsmlcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 템플릿데이터마이닝상세정보
- if( grd_tmpldtmnlist.isCell(event.target) && grd_tmpldtmnlist.row >= grd_tmpldtmnlist.fixedRows ){
- fGetTmplDtmnAttr(); // 템플릿 데이터마이닝 정보조회
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group3" style="left:0px; top:255px; width:1195px; height:152px; ">
- <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:90px; height:13px; ">템플릿정의</caption>
- <button id="btn_healexamtmpladd" class="btn2_letter5" style="left:1039px; top:2px; width:75px; height:19px; ">
- <caption>탬플릿추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/tmpldtmn");
- model.resetInstanceNode("/root/main/cmpninfo");
- model.resetInstanceNode("/root/init/cmpnmdl/cmpnmdlgrup");
- model.resetInstanceNode("/root/init/cmpnsml/cmpnsmlgrup");
- model.resetInstanceNode("/root/send/info/msglrgcd");
- model.resetInstanceNode("/root/send/info/msgmdlcd");
- model.resetInstanceNode("/root/send/info/msgsmlcd");
- model.removeNodeset("/root/main/cmpnlist");
- model.resetInstanceNode("/root/main/smsinfo");
- model.resetInstanceNode("/root/main/msgsmllist");
- model.resetInstanceNode("/root/main/smsmsginfo");
- model.resetInstanceNode("/root/init/chnlmdllist");
- model.removeNodeset("/root/main/list/tmpldtmnexeclist");
-
- model.setValue("/root/main/tmpldtmn/execbaseddflag","1");
- model.setValue("/root/main/tmpldtmn/savemode","I");
- model.setValue("/root/main/tmpldtmn/lnkflag", "1")
- fSetBaseDD();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_healexamtmplsave" class="btn5_letter5" style="left:1117px; top:2px; width:75px; height:19px; ">
- <caption>템플릿저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveTmplDtmn(); //데이터마이닝 속성 저장
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:1195px; y2:23px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:51px; x2:381px; y2:51px; "/>
- <caption id="cap_lnkflag" class="cell_1" style="left:0px; top:28px; width:125px; height:23px; text-align:center; ">연결구분</caption>
- <select1 id="rdo_lnkflag" ref="/root/main/tmpldtmn/lnkflag" navindex="1" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:128px; top:29px; width:200px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/C0027list/C0027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 초기화면 설정.
- fGetlnkflag();
- ]]>
- </script>
- </select1>
- <line id="line5" class="line_2" style="x1:0px; y1:76px; x2:381px; y2:76px; "/>
- <caption id="cap_itemnm" class="cell_1" style="left:0px; top:53px; width:125px; height:23px; text-align:center; ">템플릿명</caption>
- <input id="ipt_itemnm" ref="/root/main/tmpldtmn/itemnm" class="input_essential" navindex="2" style="left:128px; top:54px; width:250px; height:19px; "/>
- <caption id="cap_execbaseddflag" class="cell_1" style="left:0px; top:78px; width:125px; height:48px; text-align:center; ">실행기준일</caption>
- <select1 id="rdo_exebaseflag" ref="/root/main/tmpldtmn/execbaseddflag" navindex="3" appearance="full" rows="2" vcellspacing="6" overflow="visible" style="left:128px; top:79px; width:50px; height:45px; background-color:transparent; 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-select">
- <![CDATA[
- fSetBaseDD(); // 실행기준일 선택에 따른 활성화
- ]]>
- </script>
- </select1>
- <input id="ipt_execbasedayno" ref="/root/main/tmpldtmn/execbasedayno" navindex="4" imemode="disabled" maxlength="4" format="9999" style="left:181px; top:79px; width:60px; height:19px; "/>
- <caption id="caption25_1" style="left:241px; top:79px; width:30px; height:19px; ">일 후</caption>
- <input id="ipt_execbasemm" ref="/root/main/tmpldtmn/execbasemm" navindex="5" imemode="disabled" maxlength="2" format="99" style="left:181px; top:104px; width:60px; height:19px; "/>
- <caption id="caption25_2" style="left:241px; top:104px; width:30px; height:19px; ">개월</caption>
- <input id="ipt_execbasedd" ref="/root/main/tmpldtmn/execbasedd" navindex="6" imemode="disabled" maxlength="2" format="99" style="left:274px; top:104px; width:60px; height:19px; "/>
- <caption id="caption25_3" style="left:337px; top:104px; width:30px; height:19px; ">일 후</caption>
- <line id="line7" class="line_2" style="x1:0px; y1:126px; x2:381px; y2:126px; "/>
- <caption id="cap_dataextrbfdayno" class="cell_1" style="left:0px; top:128px; width:125px; height:23px; text-align:center; ">자료추출전일수</caption>
- <input id="ipt_dataextrbfdayno" ref="/root/main/tmpldtmn/dataextrbfdayno" class="input_essential" navindex="7" style="left:128px; top:129px; width:60px; height:19px; "/>
- <caption id="caption8" style="left:191px; top:131px; width:37px; height:17px; ">일전 /</caption>
- <input id="ipt_delivetm" ref="/root/main/tmpldtmn/delivetm" class="input_essential" navindex="7" format="hh:nn" style="left:231px; top:129px; width:60px; height:19px; "/>
- <caption id="caption4" style="left:294px; top:131px; width:50px; height:17px; ">시 전송</caption>
- <switch id="switch1" style="left:381px; top:28px; width:814px; height:123px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case1">
- <caption id="cap_cmpncd" class="cell_1" style="left:0px; top:0px; width:105px; height:121px; text-align:center; ">캠페인연결정보</caption>
- <select1 id="cmb_cmpnlrgcd" ref="/root/main/cmpninfo/cmpnlrgcd" class="combo_default" appearance="minimal" style="left:108px; top:1px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmpnlrg/cmpnlrggrup">
- <label ref="cmpnlrgnm"/>
- <value ref="cmpnlrgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removenodeset("/root/init/cmpnmdl/cmpnmdlgrup");
- model.removenodeset("/root/init/cmpnsml/cmpnsmlgrup");
- model.removenodeset("/root/main/cmpnlist");
- model.resetInstanceNode("/root/main/cmpninfo/cmpnmdlcd");
- model.resetInstanceNode("/root/main/cmpninfo/cmpnsmlcd");
- model.resetInstanceNode("/root/main/cmpnlist");
-
- // 선택한 캠페인 대분류에 따른 캠페인 중분류를 가져온다.
- fGetCmpnMdlCd();
- model.setFocus("cmb_cmpnmdlcd");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_cmpnmdlcd" ref="/root/main/cmpninfo/cmpnmdlcd" class="combo_default" appearance="minimal" style="left:261px; top:1px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmpnmdl/cmpnmdlgrup">
- <label ref="cmpnmdlnm"/>
- <value ref="cmpnmdlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removenodeset("/root/main/cmpnlist");
- model.resetInstanceNode("/root/main/cmpnlist");
- // 선택한 캠페인 대분류에 따른 캠페인 중분류를 가져온다.
- fGetCmpnSmlCd();
- model.setFocus("cmb_cmpnsmlcd");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_cmpnsmlcd" ref="/root/main/cmpninfo/cmpnsmlcd" class="combo_default" appearance="minimal" style="left:414px; top:1px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmpnsml/cmpnsmlgrup">
- <label ref="cmpnsmlnm"/>
- <value ref="cmpnsmlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.removenodeset("/root/main/cmpnlist");
- model.resetInstanceNode("/root/main/cmpnlist");
- // 선택한 캠페인 소분류에 따른 캠페인 리스트를 가져온다.
- fGetCmpnList();
- ]]>
- </script>
- </select1>
- <output id="opt_cmpnnm" ref="/root/main/cmpninfo/cmpnnm" class="output_fix" maxlength="20" style="left:567px; top:1px; width:242px; height:19px; "/>
- <datagrid id="grd_cmpnlist" nodeset="/root/main/cmpnlist" caption="소분류^캠페인 코드^캠페인명" colwidth="190, 90, 380" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:108px; top:26px; width:701px; height:94px; ">
- <col ref="cmpnsmlnm"/>
- <col ref="cmpncd"/>
- <col ref="cmpnnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 선택한 데이터마이닝 대그룹에 속한 데이터마이닝 중그룹을 가져온다.
- var row = grd_cmpnlist.row;
- var cmpncd = grd_cmpnlist.valueMatrix( row, grd_cmpnlist.colRef("cmpncd"));
- var cmpnnm = grd_cmpnlist.valueMatrix( row, grd_cmpnlist.colRef("cmpnnm"));
- model.setValue("/root/main/tmpldtmn/cmpncd", cmpncd);
- model.setValue("/root/main/cmpninfo/cmpnnm", cmpnnm);
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2" selected="true">
- <caption id="caption7" class="cell_1" style="left:0px; top:0px; width:105px; height:121px; text-align:center; ">SMS연결정보</caption>
- <select1 id="cmb_msglrgcd" ref="/root/main/smsmsginfo/msglrgcd" class="combo_default" appearance="minimal" style="left:108px; top:3px; width:120px; 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/smsmsginfo/msgmdlcd" class="combo_default" appearance="minimal" style="left:231px; top:3px; width:120px; 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>
- <input id="ipt_msgcnts" ref="/root/main/smsmsginfo/msgcnts" disabled="true" style="left:354px; top:3px; width:373px; height:19px; "/>
- <input id="ipt_msgsmlcd" ref="/root/main/smsmsginfo/msgsmlcd" maxlength="10" style="left:730px; top:3px; width:79px; height:19px; "/>
- <datagrid id="grd_msglist" nodeset="/root/main/msgsmllist" caption="메시지코드^메시지^" colwidth="100, 560," dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:108px; top:25px; width:701px; height:94px; ">
- <col ref="msgsmlcd"/>
- <col ref="msgcnts"/>
- <col ref="smstrsmcntcno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_msglist.row;
- var msgcnts = grd_msglist.valueMatrix(row, grd_msglist.colRef("msgcnts"));
- var msgsmlcd = grd_msglist.valueMatrix(row, grd_msglist.colRef("msgsmlcd"));
- var smstrsmcntcno = grd_msglist.valueMatrix(row, grd_msglist.colRef("smstrsmcntcno"));
- var msglrgcd = model.getValue("/root/main/smsmsginfo/msglrgcd");
- var msgmdlcd = model.getValue("/root/main/smsmsginfo/msgmdlcd");
-
- model.setValue("/root/main/tmpldtmn/smsmsglrgcd", msglrgcd);
- model.setValue("/root/main/tmpldtmn/smsmsgmdlcd", msgmdlcd);
- model.setValue("/root/main/tmpldtmn/smsmsgsmlcd", msgsmlcd);
- model.setValue("/root/main/smsmsginfo/msgsmlcd", msgsmlcd);
- model.setValue("/root/main/smsmsginfo/msgcnts", msgcnts);
- //ipt_msgcnts.refresh();
- //ipt_msgsmlcd.refresh();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <line id="line12" class="line_3" style="x1:0px; y1:151px; x2:1195px; y2:151px; "/>
- <caption id="caption13" style="left:275px; top:79px; width:50px; height:20px; ">사용여부</caption>
- <select1 id="combo2" ref="/root/main/tmpldtmn/useyn" appearance="minimal" style="left:330px; top:80px; width:35px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <switch id="switch3" style="left:0; top:28; width:385px; height:123px; ">
- <case id="case5">
- <input id="input1" ref="/root/main/tmpldtmn/delivetm" class="input_essential" navindex="7" format="hh:nn" style="left:231px; top:100px; width:60px; height:19px; "/>
- <line id="line6" class="line_2" style="x1:1px; y1:46px; x2:378px; y2:46px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:24px; width:125px; height:24px; text-align:center; ">템플릿명</caption>
- <select1 id="radio1" ref="/root/main/tmpldtmn/execbaseddflag" navindex="3" appearance="full" rows="2" vcellspacing="6" overflow="visible" style="left:128px; top:50px; width:50px; height:46px; background-color:transparent; 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-select">
- <![CDATA[
- fSetBaseDD(); // 실행기준일 선택에 따른 활성화
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/main/tmpldtmn/itemnm" class="input_essential" navindex="2" style="left:128px; top:25px; width:250px; height:20px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:22px; x2:378px; y2:22px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:0px; width:125px; height:23px; text-align:center; ">연결구분</caption>
- <select1 id="combo1" ref="/root/main/tmpldtmn/useyn" appearance="minimal" style="left:330px; top:51px; width:35px; height:20px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" style="left:275px; top:50px; width:50px; height:21px; ">사용여부</caption>
- <caption id="caption16" style="left:294px; top:102px; width:50px; height:17px; ">시 전송</caption>
- <caption id="caption17" class="cell_1" style="left:0px; top:99px; width:125px; height:23px; text-align:center; ">자료추출전일수</caption>
- <select1 id="radio2" ref="/root/main/tmpldtmn/lnkflag" navindex="1" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:128px; top:0px; width:200px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/C0027list/C0027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 초기화면 설정.
- fGetlnkflag();
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/main/tmpldtmn/execbasedd" navindex="6" imemode="disabled" maxlength="2" format="99" style="left:274px; top:75px; width:60px; height:20px; "/>
- <input id="input4" ref="/root/main/tmpldtmn/execbasemm" navindex="5" imemode="disabled" maxlength="2" format="99" style="left:181px; top:75px; width:60px; height:20px; "/>
- <caption id="caption18" style="left:241px; top:50px; width:30px; height:20px; ">일 후</caption>
- <caption id="caption19" style="left:191px; top:102px; width:37px; height:17px; ">일전 /</caption>
- <input id="input5" ref="/root/main/tmpldtmn/dataextrbfdayno" class="input_essential" navindex="7" style="left:128px; top:100px; width:60px; height:19px; "/>
- <caption id="caption20" style="left:241px; top:75px; width:30px; height:20px; ">개월</caption>
- <caption id="caption21" style="left:337px; top:75px; width:30px; height:20px; ">일 후</caption>
- <input id="input6" ref="/root/main/tmpldtmn/execbasedayno" navindex="4" imemode="disabled" maxlength="4" format="9999" style="left:181px; top:50px; width:60px; height:20px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:97px; x2:378px; y2:97px; "/>
- <caption id="caption22" class="cell_1" style="left:0px; top:49px; width:125px; height:49px; text-align:center; ">실행기준일</caption>
- </case>
- <case id="case6" selected="true">
- <input id="input7" ref="/root/main/tmpldtmn/delivetm" class="input_essential" format="hh:nn" style="left:236px; top:98px; width:60px; height:19px; "/>
- <line id="line9" class="line_2" style="x1:1px; y1:46px; x2:378px; y2:46px; "/>
- <caption id="caption23" class="cell_1" style="left:0px; top:24px; width:125px; height:24px; text-align:center; ">템플릿명</caption>
- <input id="input8" ref="/root/main/tmpldtmn/itemnm" class="input_essential" navindex="2" style="left:128px; top:25px; width:250px; height:20px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:22px; x2:378px; y2:22px; "/>
- <caption id="caption24" class="cell_1" style="left:0px; top:0px; width:125px; height:23px; text-align:center; ">실행속성 / 실행일자</caption>
- <select1 id="cmb_useyn" ref="/root/main/tmpldtmn/useyn" appearance="minimal" style="left:301px; top:50px; width:35px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption25" style="left:246px; top:49px; width:50px; height:21px; ">사용여부</caption>
- <caption id="caption26" style="left:299px; top:100px; width:50px; height:17px; ">시 전송</caption>
- <caption id="caption27" class="cell_1" style="left:0px; top:97px; width:125px; height:23px; text-align:center; ">추출시간/발송시간</caption>
- <select1 id="radio4" ref="/root/main/tmpldtmn/lnkflag" navindex="1" visibility="hidden" appearance="full" cellspacing="15" cols="2" overflow="visible" style="left:300px; top:2px; width:75px; height:19px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/C0027list/C0027">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 초기화면 설정.
- fGetlnkflag();
- ]]>
- </script>
- </select1>
- <line id="line14" class="line_2" style="x1:0px; y1:71; x2:378px; y2:71; "/>
- <caption id="caption32" class="cell_1" style="left:0px; top:49px; width:125px; height:23px; text-align:center; ">연결DB/사용여부</caption>
- <select1 id="cmb_dblnkflag" ref="/root/main/tmpldtmn/dblnkflag" appearance="minimal" style="left:128px; top:50px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>HISDB로 연결</label>
- <value>H</value>
- </item>
- <item>
- <label>CRMDB로 연결</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo5" ref="/root/main/tmpldtmn/bizflag" appearance="minimal" style="left:128px; top:74px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0028list/C0028">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetChangMode();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_bizdetlcd" ref="/root/main/tmpldtmn/bizdetlcd" appearance="minimal" style="left:231px; top:74px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0033list/C0033">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line11" class="line_2" style="x1:0px; y1:95px; x2:378px; y2:95px; "/>
- <caption id="caption28" class="cell_1" style="left:0px; top:73px; width:125px; height:23; text-align:center; ">업무구분/업무상세</caption>
- <input id="input9" ref="/root/main/tmpldtmn/dataextrtm" format="hh:nn" style="left:128px; top:98px; width:60; height:19px; "/>
- <caption id="caption29" style="left:191px; top:100px; width:50px; height:17px; ">시 추출</caption>
- <input id="input10" ref="/root/main/tmpldtmn/execdd" style="left:216px; top:2px; width:100px; height:19px; "/>
- <select1 id="combo4" ref="/root/main/tmpldtmn/cmpnexecattr" appearance="minimal" style="left:128px; top:2px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>일회성</label>
- <value>1</value>
- </item>
- <item>
- <label>반복성</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </case>
- </switch>
- </group>
- <group id="group5" style="left:0px; top:408px; width:1195px; height:372px; ">
- <caption id="caption56" class="tit_2" style="left:5px; top:10px; width:250px; height:13px; ">탬플릿 수동 실행 미리보기 결과</caption>
- <button id="btn_sms" class="btn3_letter5" style="left:0px; top:26px; width:92px; height:22px; ">
- <caption>SMS전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag");
-
- if (lnkflag == "1") {
- cczfSMSTrsmOpen("grid",grd_tmpldtmnexec2,1,3,"","");
- } else if (lnkflag == "2") {
- cczfSMSTrsmOpen("grid",grd_tmpldtmnexec1,4,7,"","");
- }
- ]]>
- </script>
- </button>
- <button id="btn_email" class="btn3_letter5" visibility="hidden" style="left:325px; top:26px; width:92px; height:22px; ">
- <caption>이메일발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag");
-
- if (lnkflag == "1") {
- cczfEmailTrsmOpen("grid",grd_tmpldtmnexec1,8,"");
- } else if (lnkflag == "2") {
- messageBox("임종일관련 정보는 이메일발송을 할 수","I004");
- }
-
- ]]>
- </script>
- </button>
- <button id="button41" class="btn3_letter5" visibility="hidden" style="left:420px; top:26px; width:92px; height:22px; ">
- <caption>캠페인등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag");
-
- if (lnkflag == "1") {
- cczfOpenInsertCmpn(grd_tmpldtmnexec1,"04");
- } else if (lnkflag == "2") {
- messageBox("임종일관련 정보는 캠페인등록을 할 수","I004");
- }
- ]]>
- </script>
- </button>
- <caption id="caption57" style="left:955px; top:27px; width:40px; height:17px; ">전체 :</caption>
- <output id="opt_concount" ref="/root/temp/countnode/tmpldtmnexeccount" appearance="output" style="left:995px; top:26px; width:30px; height:19px; text-align:right; "/>
- <caption id="caption58" style="left:1028px; top:27px; width:30px; height:17px; ">건</caption>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1061px; top:25px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_bizplcelist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="btn_tmpldtmnexec" class="btn2_letter4" style="left:1128px; top:25px; width:64px; height:19px; ">
- <caption>수동실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fTmplDtMnExec();
- ]]>
- </script>
- </button>
- <line id="line22" class="line_1" style="x1:0px; y1:51px; x2:1195px; y2:51px; "/>
- <switch id="switch2" style="left:0px; top:56px; width:1195px; height:292px; ">
- <case id="case3">
- <datagrid id="grd_tmpldtmnexec1" nodeset="/root/main/list/tmpldtmnexeclist" caption="이름^등록번호^휴대폰^성별^혈액형^RH^나이^이메일^우편번호^주소^최종내원일" colsep="^" colwidth="100, 100, 100, 50, 50, 50, 50, 150, 100, 402, 0" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:600px; top:0px; width:593px; height:290px; ">
- <col ref="hngnm"/>
- <col ref="pid"/>
- <col ref="mpphontel"/>
- <col ref="sex"/>
- <col ref="btype"/>
- <col ref="rh"/>
- <col ref="age"/>
- <col ref="email"/>
- <col ref="zipcd"/>
- <col ref="address"/>
- <col ref="lastchosdt" visibility="hidden"/>
- </datagrid>
- <textarea id="textarea1" ref="/root/main/tmpldtmn/condqry" style="left:0px; top:0px; width:595px; height:290px; "/>
- </case>
- <case id="case4" selected="true">
- <datagrid id="grd_tmpldtmnexec2" nodeset="/root/main/list/tmpldtmnexeclist" caption="고객이름(hngnm)^등록번호(pid)^휴대폰(mpphone)^메시지(msgcnts)" colsep="^" colwidth="110, 97, 120, 400, 0, 0, 0, 0" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:595; top:0px; width:598px; height:290px; ">
- <col ref="hngnm"/>
- <col ref="pid"/>
- <col ref="mpphone"/>
- <col ref="msgcnts"/>
- <col ref="hospicedethdd" visibility="hidden"/>
- <col ref="famypatnm" visibility="hidden"/>
- <col disabled="true" ref="famyrela" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/M0204list/M0204">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cntctel" visibility="hidden"/>
- </datagrid>
- <textarea id="textarea2" ref="/root/main/tmpldtmn/condqry" style="left:0px; top:0px; width:595px; height:290px; "/>
- </case>
- </switch>
- <button id="btn_select" class="btn2_letter4" style="left:3px; top:350px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag");
-
- if (lnkflag == "1") {
- var grid = grd_tmpldtmnexec2;
- } else if (lnkflag == "2") {
- var grid = grd_tmpldtmnexec1;
- }
-
- 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:70px; top:350px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var lnkflag = model.getValue("/root/main/tmpldtmn/lnkflag");
-
- if (lnkflag == "1") {
- var grid = grd_tmpldtmnexec2;
- } else if (lnkflag == "2") {
- var grid = grd_tmpldtmnexec1;
- }
-
- var grid_rows = grid.rows-1;
- grid.selectionmode = "byrow";
- grid.select(1, 1, grid_rows, 1) = false;
- ]]>
- </script>
- </button>
- <button id="button1" class="btn3_letter6" style="left:95px; top:26px; width:80px; height:22px; ">
- <caption>쿼리크게보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_condqry.visible = true;
- btn_close.visible = true;
- ]]>
- </script>
- </button>
- </group>
- <textarea id="tar_condqry" ref="/root/main/tmpldtmn/condqry" visibility="hidden" style="left:0px; top:255px; width:595px; height:500px; "/>
- <button id="btn_close" class="btn2_letter2" visibility="hidden" style="left:553px; top:236px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_condqry.visible = false;
- btn_close.visible = false;
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|