123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCPC00200_캠페인응답
- * Summary : 캠페인응답관리
- * Programmer : 엄윤호
- * Date Written : 2007.07.18
- * History : 2007.07.18
- * 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>
- <list>
- <choslist/>
- </list>
- </main>
- <send>
- <srch>
- <chosfromdd/>
- <chostodd/>
- <orddept/>
- <pid/>
- <cmpnfromdd/>
- <cmpntodd/>
- <cmpnnm/>
- </srch>
- <choslist/>
- </send>
- <init>
- <comncdlist>
- <P0001list/>
- <C0017list/>
- </comncdlist>
- <basecdlist>
- <orddeptlist/>
- </basecdlist>
- <menuid>SMCPC00200</menuid>
- </init>
- <temp>
- <result/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // P0001: 입원/외래, C0017: 캠페인응답
- zbcfGetCodeList(new Array("P0001", "C0017"), new Array("/root/init/comncdlist/P0001list", "/root/init/comncdlist/C0017list"));
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "/root/init/basecdlist/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
-
- var ord_dd = getCurrentDate();
- model.setValue("/root/send/srch/chosfromdd", ord_dd);
- model.setValue("/root/send/srch/chostodd", ord_dd);
- addComboItem("cmb_orddept");
-
- fCheckAuth();
- fInitChosList();
- model.refresh();
- ]]>
- </script>
- <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="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRCPC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/list/choslist"/>
- <submission id="TXCPC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/choslist" 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">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- if (!checkAuth("x")) {
- btn_save.disabled=true;
- btn_choscnfm.disabled=true;
- btn_chosdel.disabled=true;
- }
- if (!checkAuth("p")) {
- btn_saveexcel.disabled = true;
- }
- }
-
- function fInitChosList() {
- // 그리드 초기화
- model.removeNodeset("/root/main/list/choslist");
- //grd_choslist.clearStatus();
- //model.refresh();
- }
-
- function fSaveChosList() {
- // 응답확인 목록 저장
- var grid = grd_choslist;
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.setValue("/root/send/choslist", grid.getUpdateData());
- }
- if (submit("TXCPC00201")) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/choslist","");
- messageBox("응답확인 저장이","I002");
-
- submit("TRCPC00201");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">캠페인 응답관리</caption>
- </group>
- <group id="group2" style="left:0px; top:23px; width:215px; height:757px; ">
- <caption id="caption2" class="tit_2" style="left:0px; top:0px; width:215px; height:13px; ">캠페인 분류</caption>
- <import id="import1" src="SSCPC00300_캠페인그룹트리.xrw" style="left:0px; top:13px; width:215px; height:744px; "/>
- </group>
- <group id="group3" style="left:225px; top:23px; width:970px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:970px; height:59px; "/>
- <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">내원일자 :</caption>
- <input id="ipt_chosfromdd" ref="/root/send/srch/chosfromdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:120px; height:19px; "/>
- <caption id="caption4" class="search_no_b" style="left:233px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_chostodd" ref="/root/send/srch/chostodd" class="input_search" inputtype="date" style="left:248px; top:8px; width:120px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:391px; top:9px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:470px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption6" class="search_name" style="left:631px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/srch/pid" class="input_search" maxlength="10" style="left:723px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_pidsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_pidsrch" class="icon_search" style="left:848px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "pid";
- var search_term = model.getValue("/root/send/srch/pid");
- var receive_pid_path = "/root/send/srch/pid";
- var receive_patnm_path = "";
-
- cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:16px; top:33px; width:86px; height:17px; ">실행일자 :</caption>
- <input id="ipt_cmpnfromdd" ref="/root/send/srch/cmpntodd" class="input_search" inputtype="date" style="left:248px; top:32px; width:120px; height:19px; "/>
- <caption id="caption8" class="search_no_b" style="left:233px; top:33px; width:12px; height:17px; ">~</caption>
- <input id="ipt_cmpntodd" ref="/root/send/srch/cmpnfromdd" class="input_search" inputtype="date" style="left:108px; top:32px; width:120px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:631px; top:33px; width:95px; height:17px; ">캠페인명 :</caption>
- <input id="ipt_cmpnnm" ref="/root/send/srch/cmpnnm" class="input_search" maxlength="30" style="left:723px; top:32px; width:120px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_cmpnsrch", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_cmpnsrch" class="icon_search" style="left:848px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var send_cmpn_cd = "";
- var send_cmpn_nm = model.getValue("/root/send/srch/cmpnnm");
- var recv_cmpn_cd_path = "";
- var recv_cmpn_nm_path = "/root/send/srch/cmpnnm";
-
- cpzfOpenSelectCmpn(send_cmpn_cd, send_cmpn_nm, recv_cmpn_cd_path, recv_cmpn_nm_path); // 캠페인 선택 팝업(modal)
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:883px; y1:7px; x2:883px; y2:53px; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:898px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRCPC00201");
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:225px; top:83px; width:970px; height:670px; ">
- <caption id="caption10" class="tit_2" style="left:5px; top:10px; width:188px; height:14px; ">캠페인실행 및 고객내원 목록</caption>
- <button id="btn_choscnfm" class="btn2_letter4" style="left:705px; top:5px; width:64px; height:19px; ">
- <caption>응답확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grid = grd_choslist;
- for (var i= 0; i<grid.selectedRows; i++) {
- model.setValue("/root/main/list/choslist["+grid.selectedRow(i)+"]/choscnfmyn", "Y");
- grid.addStatus(grid.selectedRow(i), "update");
- }
- ]]>
- </script>
- </button>
- <button id="btn_choscncl" class="btn2_letter4" style="left:772px; top:5px; width:64px; height:19px; ">
- <caption>응답제외</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grid = grd_choslist;
- for (var i= 0; i<grid.selectedRows; i++) {
- model.setValue("/root/main/list/choslist["+grid.selectedRow(i)+"]/choscnfmyn", "N");
- grid.addStatus(grid.selectedRow(i), "update");
- }
- ]]>
- </script>
- </button>
- <button id="btn_chosdel" class="btn2_letter4" style="left:839px; top:5px; width:64px; height:19px; ">
- <caption>선택삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_choslist, true); // 선택행 삭제
- ]]>
- </script>
- </button>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:906px; 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_choslist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:970px; y2:25px; "/>
- <datagrid id="grd_choslist" nodeset="/root/main/list/choslist" class="text_center" scroll="auto" caption="캠페인명^캠페인 실행부서^내원 진료과^캠페인 실행일^내원일^등록번호^고객명^입원/외래^응답확인" colwidth="140, 120, 120, 100, 100, 100, 110, 70, 70, 0, 0, 0, 0, 0" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" style="left:0px; top:30px; width:970px; height:637px; ">
- <col ref="cmpnnm" style="text-align:left; "/>
- <col ref="rgstdeptnm"/>
- <col ref="orddeptnm"/>
- <col ref="cmpnexecdd" format="yyyy-mm-dd"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col disabled="true" ref="outinflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0001list/P0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="choscnfmyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0017list/C0017">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cretno" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="cmpncd" visibility="hidden"/>
- <col ref="cmpnrgstdt" visibility="hidden"/>
- <col ref="rgstseq" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="group5" style="left:225px; top:753px; width:970px; height:27px; vertical-align:top; ">
- <button id="btn_setup" class="btn3_letter6" style="left:0px; top:0px; width:104px; height:22px; ">
- <caption>응답기준설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCPC00600");
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" _auth="X" style="left:843px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveChosList();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:902px; top:0px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitChosList();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|