123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCFA00100_진료예약현황
- * Summary : 진료예약현황
- * Programmer : 엄윤호
- * Date Written : 2007.06.26
- * History : 2007.06.26, 2008.06.16, 박원희(오류수정 및 기능 보완, OneStop여부 추가, Sort기능, 마우스 오른쪽버튼 팝업메뉴 추가 및 기타-전송제외의 경우 나중에 필요할지 몰라서 Visible-false로 함,하단의 버튼도 visible-false만 시킴 )
- * 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>
- <list>
- <rsrvlist/>
- </list>
- <codedata>
- <popup>
- <popupnm>SMS예약전송</popupnm>
- <popupcd>0</popupcd>
- </popup>
- <popup>
- <popupnm>이메일전송</popupnm>
- <popupcd>1</popupcd>
- </popup>
- <popup>
- <popupnm>캠페인등록</popupnm>
- <popupcd>2</popupcd>
- </popup>
- </codedata>
- </main>
- <send>
- <srch>
- <ordfromdd/>
- <ordtodd/>
- <orddept/>
- <orddr/>
- <rsrvflag/>
- <pid/>
- <patnm/>
- <fsexamflag/>
- <trsmstat/>
- <onesvcyn/>
- <recvrtelno/>
- </srch>
- <rsrvlist/>
- <rsrvrule>
- <rsrvflag>1</rsrvflag>
- <itemflag>D</itemflag>
- </rsrvrule>
- </send>
- <init>
- <comncdlist>
- <P0021list/>
- <P0022list/>
- <P0341list/>
- <C0019list/>
- </comncdlist>
- <basecdlist>
- <orddeptlist>
- </orddeptlist>
- <orddrlist>
- <usercombo/>
- </orddrlist>
- </basecdlist>
- <rsrvrule>
- <delivedd/>
- <delivetm/>
- <msglrgcd/>
- <msgmdlcd/>
- <msgsmlcd/>
- <msgcnts/>
- </rsrvrule>
- </init>
- <temp>
- <result/>
- <trsmstat/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // P0021: 초재진구분, P0022: 기타예약구분, P0341: 예약구분, C0019: 전송상태
- zbcfGetCodeList(new Array("P0021","P0022","P0341","C0019"),
- new Array("/root/init/comncdlist/P0021list","/root/init/comncdlist/P0022list","/root/init/comncdlist/P0341list","/root/init/comncdlist/C0019list"));
-
- 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);
- submit("TRCRB00104");
- submit("TRCFA00102"); // 예약주기관리(발송일, 발송 메시지)
- var delive_dd = model.getValue("/root/init/rsrvrule/delivedd");
- var ord_dd = getCurrentDate().toDate().getAddDate(parseInt(delive_dd), "D").getDateFormat("YYYYMMDD");
- model.setValue("/root/send/srch/ordfromdd", ord_dd);
- model.setValue("/root/send/srch/ordtodd", ord_dd);
-
- addComboItemAll( "cmb_rsrvflag|cmb_trsmstat|cmb_orddept|cmb_orddr|cmb_fsexamflag");
-
- fCheckAuth();
- fInitRsrvList();
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" add="top"/>
- <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRCFA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/list/rsrvlist"/>
- <submission id="TXCFA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvlist" resultref="/root/temp/result"/>
- <submission id="TRCFA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rsrvrule" resultref="/root/init/rsrvrule"/>
- <submission id="TRCRB00104" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecdlist/orddeptlist"/>
- </model>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" src="../../../crm/reserveweb/js/CFZ001.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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- if (!checkAuth("x")) {
- btn_save.disabled=true;
- btn_trsmstat.disabled=true;
- btn_sms.disabled=true;
- btn_email.disabled=true;
- btn_cmpn.disabled=true;
- }
- if (!checkAuth("p")) {
- btn_saveexcel.disabled = true;
- }
- }
-
-
- function fInitRsrvList() {
- // 그리드 초기화
- model.removeNodeset("/root/main/list/rsrvlist");
- //grd_rsrvlist.clearStatus();
- //grd_rsrvlist.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- //model.refresh();
- }
-
- function fSaveRsrvList() {
- // 예약메시지 전송에서 제외한 목록 저장
- var grid = grd_rsrvlist;
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.setValue("/root/send/rsrvlist", grid.getUpdateData());
- }
-
- setAlertOn();
- if (submit("TXCFA00101")) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- grid.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- model.setValue("/root/send/rsrvlist","");
-
- //submit("TRCFA00101");
- }
- }
- ]]>
- </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:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
- <caption id="caption3" class="search_name" style="left:1px; top:9px; width:86px; height:17px; ">예약일자 :</caption>
- <input id="ipt_ordfromdd" ref="/root/send/srch/ordfromdd" class="input_search" inputtype="date" style="left:93px; top:8px; width:90px; height:19px; "/>
- <caption id="caption4" class="search_no_b" style="left:188px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_ordtodd" ref="/root/send/srch/ordtodd" class="input_search" inputtype="date" style="left:203px; top:8px; width:90px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:306px; top:9px; width:86px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:385px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/zsu/userlist/user");
- var dutplceinstcd = getGlobalVariable("dutplceinstcd");
- var deptcd = model.getValue("/root/send/srch/orddept");
- var basedd = getCurrentDate();
-
- if (model.getValue("/root/send/srch/orddept") == "") {
- model.makeValue("/root/hidden/zsu/userlist", "");
- } else {
- zsufGetOutOrdDeptDoctorList(dutplceinstcd, deptcd, "/root/hidden/zsu/userlist", "usernm", "asc", basedd);
- }
- //zsufGetUserInfoCombo(deptcd, "/root/hidden/zsu/userlist","_D");
- addComboItem( "cmb_orddr");
- //model.setValue("/root/send/srch/orddr", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:506px; top:9px; width:88px; height:17px; ">진 료 의 :</caption>
- <select1 id="cmb_orddr" ref="/root/send/srch/orddr" class="combo_search" appearance="minimal" style="left:595px; top:8px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/zsu/userlist/user">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:703px; top:10px; width:106px; height:17px; ">예 약 구 분 :</caption>
- <select1 id="cmb_rsrvflag" ref="/root/send/srch/rsrvflag" class="combo_search" appearance="minimal" style="left:817px; top:8px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:1px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/srch/pid" class="input_search" style="left:93px; top:32px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_pid_srch" class="icon_search" style="left:183px; top:33px; 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 = "/root/send/srch/patnm";
-
- cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:306px; top:33px; width:86px; height:17px; ">환자명 :</caption>
- <input id="ipt_patnm" ref="/root/send/srch/patnm" class="input_search" style="left:385px; top:32px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_patnm_srch" class="icon_search" style="left:480px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "patnm";
- var search_term = model.getValue("/root/send/srch/patnm");
- var receive_pid_path = "/root/send/srch/pid";
- var receive_patnm_path = "/root/send/srch/patnm";
-
- cczfOpenSelectClnt2(search_condition, search_term, receive_pid_path, receive_patnm_path);
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:506px; top:33px; width:86px; height:17px; ">전송상태 :</caption>
- <select1 id="cmb_trsmstat" ref="/root/send/srch/trsmstat" class="combo_search" appearance="minimal" style="left:595px; top:32px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0019list/C0019">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_4" style="x1:1126px; y1:7px; x2:1126px; y2:53px; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1132px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRCFA00101");
- //initGridStyle("grd_rsrvlist");
- //setCellStyle("grd_rsrvlist" , "2" , "1" , "trsmstat");
- ]]>
- </script>
- </button>
- <select id="chkOnstopYn" ref="/root/send/srch/onesvcyn" overflow="visible" appearance="full" style="left:207px; top:34px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>OneStop여부</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption11" class="search_name" style="left:703px; top:33px; width:112px; height:17px; ">휴대전화번호 :</caption>
- <input id="ipt_recvrtelno" ref="/root/send/srch/recvrtelno" class="input_search" style="left:817px; top:32px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption12" class="search_name" style="left:925px; top:10px; width:106px; height:17px; ">초재진구분:</caption>
- <select1 id="cmb_fsexamflag" ref="/root/send/srch/fsexamflag" appearance="minimal" style="left:1025px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:83px; width:1195px; height:668px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:149px; height:14px; ">예약 전송 목록</caption>
- <button id="btn_trsmstat" class="btn2_letter4" style="left:1063px; top:5px; width:64px; height:19px; ">
- <caption>전송제외</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 전송상태(trsmstat)를 '전송대기(0)'인 데이터만 '전송제외(2)'로 변경
- var grid = grd_rsrvlist;
- var trsmstat_col = 2;
- cfzfChangeTrsmStat(grid, trsmstat_col);
- ]]>
- </script>
- </button>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; 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_rsrvlist.saveExcel(file_nm, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <datagrid id="grd_rsrvlist" nodeset="/root/main/list/rsrvlist" class="text_center" caption="^전송상태^예약일자^시간^등록번호^환자명^진료과^진료의^초재진^예약구분^휴대전화번호^OneStop여부^예약 Remark^예약 메시지" colwidth="25, 90, 100, 55, 100, 140, 100, 65, 70, 130, 119, 100, 100, 450, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshowmove" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" tooltip="true" style="left:0px; top:30px; width:1194px; height:630px; ">
- <col class="update_n" ref="update"/>
- <col disabled="true" ref="trsmstat" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/C0019list/C0019">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="ordtm" format="hh:nn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col disabled="true" ref="fsexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="rsrvflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comncdlist/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="mpphontel"/>
- <col ref="onesvcyn"/>
- <col ref="remcnts" style="left:835px; top:23px; width:150px; height:23px; text-align:left; "/>
- <col ref="smsmsg" style="text-align:left; "/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="email" visibility="hidden"/>
- <col ref="lastchosdt" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 그리드의 변경 상태값을 변경
- // var grid = grd_rsrvlist;
- // var trsmstat_col = 2;
- // cfzfChangeRowStatus(grid, trsmstat_col);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 그리드의 변경 상태 가능여부를 체크하고, 변경 이전 값을 저장
- // var grid = grd_rsrvlist;
- // var trsmstat_col = 2;
- // cfzfCheckSaveBfTrsm(grid, trsmstat_col);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3 ){
- window.setPopupMenu( true, "/root/main/codedata/popup", "popupnm", "popupcd", true);
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" style="left:0px; top:751px; width:1195px; height:29px; vertical-align:top; ">
- <button id="btn_sms" class="btn3_letter5" style="left:0px; top:0px; width:92px; height:22px; ">
- <caption>SMS전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfSMSTrsmOpen("grid",grd_rsrvlist,6,11,"","");
- ]]>
- </script>
- </button>
- <button id="btn_email" class="btn3_letter5" style="left:94px; top:0px; width:92px; height:22px; ">
- <caption>이메일발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfEmailTrsmOpen("grid",grd_rsrvlist,17,"");
- ]]>
- </script>
- </button>
- <!--<button id="btn_cmpn" class="btn3_letter5" style="left:188px; top:0px; width:92px; height:22px; ">
- <caption>캠페인등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfOpenInsertCmpn(grd_rsrvlist, "00");
- ]]>
- </script>
- </button>-->
- <button id="btn_save" class="btn4_letter2" _auth="X" style="left:1068px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveRsrvList();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:0px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitRsrvList();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- // 2008/06/18,mouse 오른쪽버튼 popup js에 fShowPopup 만들어 놓았으나 간단히 아래와 같이 변경함..
- // fShowPopup(event.description);
- var idx = event.description;
-
- if (idx == 0) { // SMS전송
- //open("SPCCN00100", "", "100", "100", "SPCCN00100", "", "");
- cczfSMSTrsmOpen("grid",grd_rsrvlist,6,11,"","");
- } else if (idx == 1) { // 이메일전송
- //open("SPCCN00200", "", "100", "100", "SPCCN00200", "", "");
- cczfEmailTrsmOpen("grid",grd_rsrvlist,17,"");
- } else if (idx == 2) { // 캠페인등록
- //open("SPCCP00100", "", "100", "100", "SPCCP00100", "", "");
- cczfOpenInsertCmpn(grd_rsrvlist, "00");
- }
-
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|