123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730 |
- <?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>
- <totalrsrvlist>
- <rsrvposstm>
- <rsrvtm/>
- <icount/>
- <ocount/>
- <scount/>
- <max/>
- </rsrvposstm>
- <vacation>
- <updtresndesc/>
- </vacation>
- </totalrsrvlist>
- <rsrvprescondlist>
- <rsrvprescond>
- <rsrvtm/>
- <pid/>
- <hngnm/>
- <age/>
- <prcpcd/>
- <prcpnm/>
- <usernm/>
- <prcpdd/>
- <rsrvrem/>
- <prcpdelivefact/>
- <clinccmtcnts/>
- <prcpgenrflag/>
- <execprcpstatcd/>
- <roomcd/>
- <fromdd/>
- <todd/>
- <phonum/>
- </rsrvprescond>
- </rsrvprescondlist>
- </main>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <excuroomcd/>
- <rsrvdd/>
- <srvdate/>
- <popupdata/>
- <curdate/>
- <rsrvtodd/>
- <rsrvfromdd/>
- </send>
- <init>
- <curerprescondlist>
- <rsrvcalendar/>
- </curerprescondlist>
- <roomcmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- </roomcmb_info>
- <calenlist>
- <calendinfo>
- <basedd/>
- <dutflag/>
- </calendinfo>
- </calenlist>
- </init>
- <hidden>
- <calendar>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- <dd/>
- </calendar>
- <grdcellcolor>
- <calrow/>
- <calcol/>
- <bfcalrow/>
- <bfcalcol/>
- <color/>
- </grdcellcolor>
- <prcpgenrflag>
- <gubn/>
- </prcpgenrflag>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/excuroomcd",model.getValue("/root/send/popupdata/excuroomcd"));
- model.setValue("/root/send/globalinstance/instance1",model.getValue("/root/send/popupdata/suppdeptcd"));
-
- //입원외래 표시
- if(model.getValue("/root/send/popupdata/prcpgenrflag") == "I") { //입원
- opt_patnm.value ="입원";
- }
- if(model.getValue("/root/send/popupdata/prcpgenrflag") == "O") { //외래
- opt_patnm.value ="외래";
- }
- if(model.getValue("/root/send/popupdata/prcpgenrflag") == "S") { //수탁
- opt_patnm.value ="건진";
- }
- if(model.getValue("/root/send/popupdata/prcpgenrflag") == "E") { //응급
- opt_patnm.value ="응급";
- }
-
- //검사실 코드 갖고오기
- submit("TRAEA01511");
-
- //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
- initCalendar();
-
- setCurrentDate();
- getRsrvPossTm(grd_calendar);
-
-
-
- ]]>
- </script>
- <bind id="bind_prcpexecdeptcd" ref="/root/main/ocdlst/item/prcpexecdeptcd" readonly="../prcpexecdeptcd!=''"/>
- <submission id="TRAEA01513" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvlist"/>
- <submission id="TRAEA01129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAEA01514" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/totalrsrvlist"/>
- <submission id="TRAEA01511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/roomcmb_info"/>
- <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
- <submission id="TRAEA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsrvprescondlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /*******************/
- /*** 달력초기화 ***/
- /*****************/
- function initCalendar() {
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- //model.refresh();
- setCalendar(curDate);
- }
-
- /*****************/
- /*** 달력세팅 ***/
- /***************/
- function setCalendar(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
- grd_calendar.rebuild()
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- model.setValue("/root/send/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
- model.setValue("/root/send/curdate",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- //20101006 해당검사실 예약환자 리스트 조회 -박재영
- model.setValue("/root/send/rsrvtodd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- fCalendar();
-
- setRsrvPresCondByMonth();
- }
-
- function fCalendar(){
- if (submit("TRAEA02012")){
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- var startDay = isDate.getDay();
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- //alert("i==" + i + "==dutflag==" + model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag"));
- if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
- }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
- }else{
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
- }
- }
- grd_calendar.refresh();
- }
- }
- /******************************/
- /*** 달력 가용현황 뿌려주기 ***/
- /******************************/
- function setRsrvPresCondByMonth() {
-
- // submit("TRAEA01107");
- submit("TRAEA01129");
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- var startDay = isDate.getDay();
-
- for (var i = 1; i < grd_temp.rows; i++) {
- var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
- //alert("=="+model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "==" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")+"==");
-
- var v_count = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count");
- var v_max = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")
- //예약가능일자 녹색주기
- if( parseFloat(v_count) < parseFloat(v_max )){
- // alert("들어왔다!!!");
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
- grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
- }
- }
- }
-
-
- /***********************/
- /*** 오늘날짜 색 주기 ***/
- /***********************/
- function setCurrentDate() {
-
- var curDate = getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if(curDate <10) {
- curDate= curDate.substr(1,1);
- }
-
- if(curWeek == "sun")
- model.setValue("/root/hidden/grdcellcolor/calcol",0);
- if(curWeek == "mon")
- model.setValue("/root/hidden/grdcellcolor/calcol",1);
- if(curWeek == "tue")
- model.setValue("/root/hidden/grdcellcolor/calcol",2);
- if(curWeek == "wed")
- model.setValue("/root/hidden/grdcellcolor/calcol",3);
- if(curWeek == "thu")
- model.setValue("/root/hidden/grdcellcolor/calcol",4);
- if(curWeek == "fri")
- model.setValue("/root/hidden/grdcellcolor/calcol",5);
- if(curWeek == "sat")
- model.setValue("/root/hidden/grdcellcolor/calcol",6);
-
- for(var i = 0 ; i <grd_calendar.rows; i++ ) {
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) == curDate ) {
- model.setValue("/root/hidden/grdcellcolor/calrow",i);
-
- }
- }
-
- var calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
- var calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol")); ; //현재선택
-
- if( calCol >= 7 )
- calCol -= 7;
-
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#ffcc66"; //오늘날짜 노란색
- grd_calendar.cellStyle("background-color", calRow, calCol+7) = "#ffcc66"; //오늘날짜 노란색
- //setCellColor(grd_calendar);
- }
-
-
- /***********************/
- /*** 선택날짜 색 주기 ***/
- /***********************/
- function setCellColor(gridObj) {
-
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
- var yellow = 3; //#ffcc66
-
-
- calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
- calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
-
- bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
- bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
-
-
- // 1. 원래 색으로 돌려놓기
- if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
- }
- else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- }else if (model.getValue("/root/hidden/grdcellcolor/color") == "3" ) {
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffcc66";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffcc66";
- }
-
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
-
- model.setValue("/root/hidden/grdcellcolor/color", "1");
- }
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
-
- model.setValue("/root/hidden/grdcellcolor/color", "2");
- }
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffcc66" ) {
-
- model.setValue("/root/hidden/grdcellcolor/color", "3");
- }
- model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
- model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
- //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
-
- // 3. 선택한 셀에 보라색 주기
-
-
- // gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- if( calCol < 7 )
- calCol += 7;
- else
- calCol -= 7;
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
-
- }
-
-
- /***********************/
- /*** 선택날짜 색 주기 ***/
- /***********************/
-
- function getRsrvPossTm(gridObj) {
-
- var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
- var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
-
- if( calCol >= 7 )
- calCol -= 7;
-
- var yyyy = model.getValue("/root/hidden/calendar/year");
- var mm = model.getValue("/root/hidden/calendar/month");
- var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
- if (getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- model.setValue("/root/send/rsrvdd", yyyy + mm + dd);
-
- //20101006 해당검사실 예약환자 리스트 조회 -박재영
- model.setValue("/root/send/rsrvtodd", yyyy + mm + dd);
-
- // model.setValue("/root/send/rsrvdate",model.getValue("/root/send/rsrvdd"));
- // model.setValue("/root/send/acptlistflag", "Y");
-
- if (submit("TRAEA01514")) {
- for (var i = 1; i < grd_rsrvposstm.rows; i++) {
- var rsrvflag = model.getValue("/root/main/totalrsrvlist/rsrvposstm[" + i + "]/rsrvflag");
-
- if (rsrvflag == "G") {
- grd_rsrvposstm.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- } else {
- grd_rsrvposstm.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
- }
- }
- }
- //20101006 해당검사실 예약환자 리스트 조회 -박재영
- submit("TRAEA00901");
- //setRsrvPresCondByMonth();
-
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1190" pageheight="500" guideline="1,1181;1,1009;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group5" scroll="auto" style="left:10px; top:6px; width:475px; height:434px; ">
- <line id="line5" class="line_1" style="x1:2px; y1:81px; x2:284px; y2:81px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:67px; width:148px; height:13px; ">예약일자</caption>
- <group id="grp_calendar" scroll="auto" style="left:2px; top:86px; width:283px; height:27px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:1px; top:0px; width:282px; height:27px; "/>
- <button id="button32" class="icon_next_year" style="left:238px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
-
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:78px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
-
- ]]>
- </script>
- </button>
- <button id="button34" class="icon_next_month" style="left:219px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
-
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:108px; top:3px; width:30px; height:19px; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:158px; top:3px; width:30px; height:19px; "/>
- <caption id="caption11" class="calendar_output" style="left:138px; top:3px; width:20px; height:19px; ">년</caption>
- <caption id="caption12" class="calendar_output" style="left:188px; top:3px; width:20px; height:19px; ">월</caption>
- <button id="button3" class="icon_pre_year" style="left:57px; top:6px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- </group>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="40, 40, 40, 40, 40, 40, 40" dataheight="20" focuscolor="transparent" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" mergecellsfixedrows="bycolrec" style="left:3px; top:113px; width:282px; height:265px; ">
- <row>
- <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
- <col ref="mon" style="border-bottom-width:0px; "/>
- <col ref="tue" style="border-bottom-width:0px; "/>
- <col ref="wed" style="border-bottom-width:0px; "/>
- <col ref="thu" style="border-bottom-width:0px; "/>
- <col ref="fri" style="border-bottom-width:0px; "/>
- <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
- </row>
- <row>
- <col ref="sun_memo" style="border-top-width:0px; "/>
- <col ref="mon_memo" style="border-top-width:0px; "/>
- <col ref="tue_memo" style="border-top-width:0px; "/>
- <col ref="wed_memo" style="border-top-width:0px; "/>
- <col ref="thu_memo" style="border-top-width:0px; "/>
- <col ref="fri_memo" style="border-top-width:0px; "/>
- <col ref="sat_memo" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
-
- // model.setValue("/root/send/data/largeclass","R4");
-
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
- // grd_momolist.addRow();
-
- ]]>
- </script>
- </multilinegrid>
- <datagrid id="grd_rsrvposstm" nodeset="/root/main/totalrsrvlist/rsrvposstm" backcoloralternate="transparent" caption="시간^입^외^건^가용^구분" colsep="^" colwidth="42, 28, 28, 28, 31, 31" mergecellsfixedrows="bycolrec" rowsep="|" style="left:287px; top:86px; width:178px; height:292px; text-align:center; ">
- <col ref="rsrvtm" format="hh:nn"/>
- <col ref="icount"/>
- <col ref="ocount"/>
- <col ref="scount"/>
- <col ref="max"/>
- <col ref="rsrvflag" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
-
- opener.model.makeValue("/root/send/rsrvdd", model.getValue("/root/send/rsrvdd" ) );
- opener.model.makeValue("/root/main/rsrvposstmlist/rsrvposstm/possrsrvtm", model.getValue("/root/main/totalrsrvlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm" ) );
- opener.model.makeValue("/root/main/subordlist/subordlist1/excuroomcd", model.getValue("/root/send/excuroomcd" ) );
- window.close();
-
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="tit_2" style="left:290px; top:67px; width:95px; height:13px; ">예약시간</caption>
- <line id="line1" class="line_1" style="x1:287px; y1:81px; x2:465px; y2:81px; "/>
- <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="76, 62, 32" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:175px; top:175px; width:175px; height:170px; ">
- <col ref="rsrvdd"/>
- <col ref="count"/>
- <col ref="max"/>
- </datagrid>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">예약시간 조회</caption>
- <caption id="caption7" class="cell_1" style="left:4px; top:22px; width:105px; height:23px; ">검사의(검사실)</caption>
- <group id="group2" style="left:3px; top:18px; width:462px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:462px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검사실 :</caption>
- <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" visibility="visible" appearance="minimal" style="left:100px; top:11px; width:146px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/roomcmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue("/root/hidden/grdcellcolor/bfcalrow","");
- model.setValue("/root/hidden/grdcellcolor/bfcalrow","");
-
- model.setValue("/root/hidden/grdcellcolor/calrow","");
- model.setValue("/root/hidden/grdcellcolor/calcol","");
- model.setValue("/root/hidden/grdcellcolor/color","");
-
-
- //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
- initCalendar();
-
- setCurrentDate();
- getRsrvPossTm(grd_calendar);
-
- ]]>
- </script>
- </select1>
- <output id="opt_patnm" ref="/root/hidden/prcpgenrflag/gubn" class="output_fix" visibility="hidden" style="left:295px; top:11px; width:64px; height:19px; text-align:center; "/>
- </group>
- <line id="line2" class="line_1" style="x1:3px; y1:380px; x2:464px; y2:380px; "/>
- <line id="line6" class="line_3" style="x1:3px; y1:431px; x2:464px; y2:431px; "/>
- <caption id="caption16" class="cell_1" style="left:3px; top:385px; width:66px; height:45px; vertical-align:middle; ">휴검내역</caption>
- <textarea id="txt_vacation" ref="/root/main/totalrsrvlist/vacation/updtresndesc" style="left:70px; top:385px; width:394px; height:45px; "/>
- </group>
- <group id="group1" scroll="auto" style="left:10px; top:444px; width:470px; height:34px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:404px; top:7px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- opener.model.makeValue("/root/send/rsrvdd", model.getValue("/root/send/rsrvdd" ) );
- opener.model.makeValue("/root/main/rsrvposstmlist/rsrvposstm/possrsrvtm", model.getValue("/root/main/totalrsrvlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm" ) );
- opener.model.makeValue("/root/main/subordlist/subordlist1/excuroomcd", model.getValue("/root/send/excuroomcd" ) );
- window.close();
- ]]>
- </script>
- </button>
- <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:0px; top:1px; width:220px; height:30px; "/>
- <caption id="caption51" style="left:163px; top:10px; width:50px; height:14px; ">예약가능</caption>
- <caption id="caption53" class="color_2" style="left:145px; top:9px; width:15px; height:15px; background-color:#c4e693; "/>
- <caption id="caption55" style="left:116px; top:10px; width:32px; height:14px; ">선택</caption>
- <caption id="caption35" style="left:99px; top:9px; width:15px; height:15px; background-color:#daa7d9; "/>
- <caption id="caption36" style="left:69px; top:10px; width:32px; height:14px; ">오늘</caption>
- <caption id="caption47" class="cell_2" style="left:6px; top:6px; width:42px; height:20px; ">범례</caption>
- <caption id="caption49" style="left:53px; top:9px; width:15px; height:15px; background-color:#ffcc66; "/>
- </group>
- <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:20px; top:210px; width:220px; height:150px; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/main/rsrvprescondlist/rsrvprescond" caption="예약일시^등록번호^환자명^성별/나이^처방코드^처방명^처방과(처방의)^처방일시^예약사항^처방전달사항^임상소견^입원외래구분^처방상태^caption1^caption2^caption3^전화번호" colsep="^" colwidth="106, 65, 73, 65, 100, 280, 124, 105, 129, 200, 200, 82, 85, 19, 12, 16" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:490px; top:5px; width:680px; height:470px; ">
- <col ref="rsrvtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="age" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="usernm"/>
- <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="rsrvrem"/>
- <col ref="prcpdelivefact"/>
- <col ref="clinccmtcnts"/>
- <col disabled="true" ref="prcpgenrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init2/cmb_info2/prcpgenrflag/M0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="execprcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init2/cmb_info2/initexecprcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" visibility="hidden"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="phonum"/>
- <!-- *ast_2 진상찬 전화번호추가-->
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // datagrid1.gridToInstance();
- // if (model.getValue("/root/init/baseinfo/initmerge/A510[" + 1 + "]/cdid") == "Y"){
- // fMerge();
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // var main = getMainViewer();
- // var pidValue = model.getValue("/root/main/rsrvprescondlist/rsrvprescond[" + datagrid1.row + "]/pid");
- // main.window.model.makeValue("/root/send/data/srchpid", pidValue);
- // main.window.javascript.navigate("SMAEA02000", "","","", "SMAEA02000", "/root/send/data/srchpid","/root/send/data/srchpid");
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|