123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <orddrid/>
- <orddeptcd/>
- <subdeptcd/>
- <orddd/>
- <drordsche>
- <drordschelist/>
- </drordsche>
- <result>
- <calendarinfo>
- <calendarinfolist/>
- </calendarinfo>
- </result>
- <todayrgstcnt/>
- <outrgst>
- <outrgstlist/>
- </outrgst>
- </main>
- <send>
- <orddrid/>
- <orddeptcd/>
- <orddd/>
- <date/>
- <subdeptcd/>
- </send>
- <init>
- <P0033list>
- <P0033>
- <cdnm/>
- <cdid/>
- </P0033>
- </P0033list>
- <P0037list>
- <P0037>
- <cdnm/>
- <cdid/>
- </P0037>
- </P0037list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- <newElement/>
- <P0021list>
- <P0021>
- <cdnm/>
- <cdid/>
- </P0021>
- </P0021list>
- <P0341list>
- <P0341>
- <cdnm/>
- <cdid/>
- </P0341>
- </P0341list>
- <P0022list>
- <P0022>
- <cdnm/>
- <cdid/>
- </P0022>
- </P0022list>
- </init>
- <hidden>
- </hidden>
- <temp>
- <tmpnode/>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drordsche"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if ( !checkOpener() ) {
-
- group1.visible = false;
- }
- zbcfGetCodeList(new Array("P0033", "P0037", "P0341", "P0021", "P0022"), new Array("/root/init/P0033list", "/root/init/P0037list", "/root/init/P0341list", "/root/init/P0021list", "/root/init/P0022list"));
- //부서코드 의사ID 조회
- pamGetDeptCDDrIDList();
- //초기화 및 날짜 데이터 세팅
- fInitialize();
-
- var orddd = model.getValue("/root/temp/tmpnode/orddd");
- var orddrid = model.getValue("/root/temp/tmpnode/orddrid");
- var orddeptcd = model.getValue("/root/temp/tmpnode/orddeptcd");
- var subdeptcd = model.getValue("/root/temp/tmpnode/subdeptcd");
-
- if( orddd != "" && orddrid != "" && orddeptcd !="" ){
-
- model.setValue("/root/main/orddeptcd", orddeptcd);
- cmb_orddept.dispatch("xforms-value-changed");
-
- model.setValue("/root/main/subdeptcd", subdeptcd);
-
- model.setValue("/root/main/orddrid", orddrid);
- model.setValue("/root/main/orddd", orddd);
-
- model.setValue("/root/hidden/calendar/year", orddd.substring(0, 4) );
- //alert( model.getValue("/root/hidden/calendar/year"));
- model.setValue("/root/hidden/calendar/month", orddd.substring(4, 6) );
- //alert( model.getValue("/root/hidden/calendar/month"));
- //model.refresh();
-
- fSearchOrdSche();
- fGetCalendarData();
- }
-
- ]]>
- </script>
- <submission id="TRPMO00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TRPMO00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/outrgst"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- //model.resetInstanceNode("/root/send");
- //model.resetInstanceNode("/root/main/desc");
- //model.resetInstanceNode("/root/main/Insucd/insucdlist");
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
- model.setValue("/root/main/orddd", curDate);
- //model.setValue("/root/send/todd", curDate);
- //model.refresh();
-
- }
-
- //달력을 클릭(선택) 했을 때
- function fClickOnCalendar(){
- var calRow = grd_calendar.row;
- var calCol = grd_calendar.col;
-
- if( calRow > 0 ){
- //선택된 셀 표시
- setCellColor(calRow, calCol);
-
- calCol = calCol % 7;
-
- var isDay = grd_calendar.valueMatrix(calRow, calCol);
- if( isDay != "" ){
- if( isDay.length == 1 ) isDay = "0" + isDay;
-
- var dd = ( (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month")) ).concat(isDay);
- //model.makeNode("/root/main/selecteddd");
- model.setValue("/root/main/orddd", dd);
- ipt_orddd.refresh();
-
- if( model.getValue("/root/main/orddrid") != "" && model.getValue("/root/main/orddeptcd") != ""
- && model.getValue("/root/main/orddd") != ""){
-
- fSearchOrdSche();
- }
-
- }
- }
- }
-
- function fSearchOrdSche(){
- var orddd = model.getValue("/root/main/orddd");
- var orddrid = model.getValue("/root/main/orddrid");
- var orddeptcd = model.getValue("/root/main/orddeptcd");
- var subdeptcd = model.getValue("/root/main/subdeptcd");
-
- if( orddd != "" && orddrid != "" && orddeptcd != ""){
- model.setValue("/root/send/orddd", orddd );
- model.setValue("/root/send/orddrid", orddrid );
- model.setValue("/root/send/orddeptcd", orddeptcd );
- model.setValue("/root/send/subdeptcd", subdeptcd );
-
- // 2014/11/21 이정택 (날짜 변경시 스타일 초기화 되도록 프로그램 수정)
- grd_outrgst.rebuildStyle();
- // 2014/11/21 이정택 (날짜 변경시 스타일 초기화 되도록 프로그램 수정)
- if(submit("TRPMO00204")){
- model.setValue("/root/main/todayrgstcnt", model.getValue("/root/main/drordsche/drordschelist/tdayrgst"));
- setRowStyle("grd_outrgst", "4^4^4", "F^D^4", "fsexamflag");
-
- //협력의뢰센터의 예약 Capacity(생산능력)일 경우에는 색상 변경(2016/09/05 이정택)
- setRowStyle("grd_outrgst", "12", "A", "etcrsrvflag");
- //협력의뢰센터의 예약 카퍼일 경우에는 색상 변경(2016/09/05 이정택)
-
- //심층진료 예약 Capacity(생산능력)일 경우에는 색상 변경(2017/12/01 이정택)
- setRowStyle("grd_outrgst", "10", "B", "etcrsrvflag");
- //심층진료 예약 Capacity(생산능력)일 경우에는 색상 변경(2017/12/01 이정택)
-
- model.refresh();
- }
- }else{
- messageBox("진료일자, 진료부사, 진료의사 데이터가 정확히 입력 되었는지 확인해 주십시요.", "E999", "");
- }
- }
-
- function fGetCalendarData(){
- model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
- model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
- model.setValue("/root/send/date", model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month"));
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/calendarinfo");
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- if(submit("TRPMO00203")){
- if( getNodesetCount("/root/main/result/calendarinfo/calendarinfolist") > 0 ){
- //기존 인스턴스 삭제
- model.removeNodeset("/root/hidden/calendarinfo");
- //기존 인스턴스 새로 생성
- model.makeNode("/root/hidden/calendarinfo");
- model.copyNode("/root/hidden/calendarinfo", "/root/main/result/calendarinfo");
- setCalendar2(isDate);
-
- }else{
-
- setCalendar(isDate);
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="950" pageheight="650" guideline="1,900;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:10px; width:900px; height:543px; ">
- <group id="group2" style="left:0px; top:5px; width:900px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:900px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">진료일자 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:828px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchOrdSche();
- fGetCalendarData();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:815px; y1:7px; x2:815px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_orddd" ref="/root/main/orddd" class="input_search" inputtype="date" style="left:104px; top:8px; width:100px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:229px; top:8px; width:86px; height:17px; ">진료부서 :</caption>
- <select1 id="cmb_orddept" ref="/root/main/orddeptcd" class="combo_search" appearance="minimal" style="left:321px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddept.refresh();
-
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddept.value + "']";
- model.setValue("/root/main/orddrid", "");
- cmb_orddr.refresh();
-
- cmb_subdeptcd.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist[dp = '" + cmb_orddept.value + "' or dp = '-']";
- model.setValue("/root/main/subdeptcd", "-");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddr" ref="/root/main/orddrid" class="combo_search" appearance="minimal" style="left:675px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nmsp"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearchOrdSche();
- fGetCalendarData();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:585px; top:8px; width:86px; height:17px; ">진료의사 :</caption>
- <select1 id="cmb_subdeptcd" ref="/root/main/subdeptcd" class="combo_search" appearance="minimal" style="left:449px; top:8px; width:109px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/subdeptcd/subdeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_subdeptcd.refresh();
-
- if( cmb_subdeptcd.value != '-' ){
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_subdeptcd.value + "']";
- model.setValue("/root/main/orddrid", "");
- cmb_orddr.refresh();
- }else{
- cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddept.value + "']";
- model.setValue("/root/main/orddrid", "");
- cmb_orddr.refresh();
- }
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:400px; y1:70px; x2:900px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:403px; top:54px; width:121px; height:14px; ">외래등록내역</caption>
- <import id="import1" src="../../../pam/pambaseinfomngtweb/xrw/SPPMB01001_병원달력.xrw" style="left:0px; top:69px; width:388px; height:471px; "/>
- <caption id="caption8" style="left:885px; top:47px; width:15px; height:20px; text-align:right; ">건</caption>
- <output id="output2" ref="/root/main/todayrgstcnt" style="left:836px; top:47px; width:50px; height:19px; text-align:right; "/>
- <caption id="caption1" style="left:773px; top:47px; width:60px; height:20px; ">당일등록 :</caption>
- <datagrid id="grd_outrgst" nodeset="/root/main/outrgst/outrgstlist" backcoloralternate="transparent" caption="시간^등록번호^환자명^예약구분^진료구분^최초접수시간^초재진구분^etcrsrvflag" colsep="^" colwidth="60, 76, 90, 120, 120, 0, 0, 0" defaultrows="2" extendlastcol="scroll" rowheader="seq" rowheight="23" rowsep="|" style="left:400px; top:75px; width:500px; height:465px; ">
- <col ref="ordtm" format="hh:nn"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col disabled="true" ref="rsrvflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0341list/P0341">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="etcordflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0022list/P0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstacptdt" visibility="hidden" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="fsexamflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/P0021list/P0021">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="etcrsrvflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- if( ! isDataCell() ){
- return false;
- }
-
- var cur_row = grd_outrgst.row;
- var cur_col = grd_outrgst.col;
-
- if(cur_row > 0 && cur_col >= 0){
-
- //model.setValue("/root/main/reservation/ordtm", model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/ordtm"));
- //model.setValue("/root/main/reservation/orddd", model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/orddd"));
-
- model.refresh();
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( checkOpener() ) {
-
- if( ! isDataCell() ){
- return false;
- }
-
- btn_confirm.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:593px; width:900px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:785px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( checkOpener() ) {
-
- var cur_row = grd_outrgst.row;
- var cur_col = grd_outrgst.col;
- if( cur_row > 0 && cur_col > 0){
- var orddd = model.getValue("/root/main/orddd");
- var ordtm = model.getValue("/root/main/outrgst/outrgstlist[" + cur_row + "]/ordtm");
- var orddrid = model.getValue("/root/main/orddrid");
- var orddeptcd = model.getValue("/root/main/orddeptcd");
- var subdeptcd = model.getValue("/root/main/subdeptcd");
-
- //opener.model.setValue("/root/main/otpt/otpt_orddd", orddd);
- //opener.model.setValue("/root/main/otpt/otpt_ordtm", ordtm);
- //opener.model.setValue("/root/main/otpt/otpt_orddrid", orddrid);
- //opener.model.setValue("/root/main/otpt/otpt_orddeptcd", orddeptcd);
-
- //파라미터로 리턴
- opener.javascript.setParameter("SPPMB01200_RTN", 'Y');
- opener.javascript.setParameter("SPPMB01200_orddd", orddd);
- opener.javascript.setParameter("SPPMB01200_ordtm", ordtm);
- opener.javascript.setParameter("SPPMB01200_orddrid", orddrid);
- opener.javascript.setParameter("SPPMB01200_orddeptcd", orddeptcd);
- opener.javascript.setParameter("SPPMB01200_subdeptcd", subdeptcd);
-
- //2017/12/11 심층진료관련 추가(이정택)
- var etcrsrvflag = grd_outrgst.valueMatrix(grd_outrgst.row, grd_outrgst.colRef("etcrsrvflag"));
- if(etcrsrvflag=="B"){
- opener.javascript.setParameter("SPPMB01200_etcordflag", "U");
- }else{
- opener.javascript.setParameter("SPPMB01200_etcordflag", "-");
- }
- //2017/12/11 심층진료관련 추가(이정택)
-
- //opener.model.refresh();
-
- }else{
-
- opener.javascript.setParameter("SPPMB01200_RTN", 'N');
- }
-
- window.close();
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:844px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.setParameter("SPPMB01200_RTN", 'N');
- window.close();
- ]]>
- </script>
- </button>
- <caption id="caption19" style="left:600px; top:5px; width:15px; height:15px; vertical-align:top; background-color:#b9e5fb; "/>
- <caption id="caption9" style="left:615px; top:5px; width:30px; height:20px; vertical-align:top; ">초진</caption>
- <caption id="caption10" style="left:660px; top:5px; width:30px; height:20px; vertical-align:top; ">사망</caption>
- <caption id="caption12" style="left:645px; top:5px; width:15px; height:15px; vertical-align:top; background-color:#969696; "/>
- <caption id="caption13" style="left:705px; top:5px; width:30px; height:20px; vertical-align:top; ">협력</caption>
- <caption id="caption14" style="left:690px; top:5px; width:15px; height:15px; vertical-align:top; background-color:#fd97b7ff; "/>
- <caption id="caption15" style="left:750px; top:5px; width:30px; height:20px; vertical-align:top; ">심층</caption>
- <caption id="caption16" style="left:735px; top:5px; width:15px; height:15px; vertical-align:top; background-color:#9fc93cff; "/>
- </group>
- <group id="group4" style="left:0px; top:0px; width:800px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">의사별 상세일정 조회</caption>
- </group>
- <caption id="caption11" class="cell_1" style="left:0px; top:555px; width:67px; height:38px; text-align:center; vertical-align:middle; ">
- <![CDATA[초진
- 특이사항]]>
- </caption>
- <textarea id="input2" ref="/root/main/result/orddrfild/orddrfildlist/fstexamrem" class="input_default" editable="false" maxlength="100" appearance="textarea" style="left:65px; top:555px; width:385px; height:36px; "/>
- <caption id="caption7" class="cell_1" style="left:450px; top:555px; width:67px; height:38px; text-align:center; vertical-align:middle; ">
- <![CDATA[재진
- 특이사항]]>
- </caption>
- <textarea id="textarea1" ref="/root/main/result/orddrfild/orddrfildlist/reexamrem" class="input_default" editable="false" maxlength="100" appearance="textarea" style="left:515px; top:555px; width:385px; height:36px; "/>
- </xhtml:body>
- </xhtml:html>
|