123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035 |
- <?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="">
- <example>Sample</example>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <date/>
- <suppdeptcd/>
- <data>
- <suppdeptcd/>
- <schergstdd/>
- <pid/>
- <instcd/>
- <rtno/>
- <schergsttm/>
- <schedesc/>
- <curersrvflag/>
- <hour/>
- <second/>
- <gubun/>
- </data>
- </send>
- <main>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <PatInfo>
- <rsrvdd/>
- <reqhospcd/>
- <seq/>
- <suppdeptcd/>
- <srchrsrvhh/>
- <srchrsrvmm/>
- <ampmflag/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <age/>
- <sex/>
- <tel/>
- <addr/>
- <rsrvrem/>
- <flag/>
- </PatInfo>
- <send/>
- </main>
- <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>
- </calendar>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <updtflag/>
- </hidden>
- <init>
- <curerprescondlist>
- <curerprescond>
- <userid/>
- <usernm/>
- </curerprescond>
- <rsrvcalendar>
- <rsrvdd/>
- <count/>
- <max/>
- </rsrvcalendar>
- </curerprescondlist>
- <pseursrvinfo>
- <seq/>
- </pseursrvinfo>
- </init>
- </root>
- </instance>
- <!--onLoading-->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- model.setValue("root/send/data/rtno","-");//default 값 셋팅
- model.setValue("root/send/globalinstance/instance1","2360500000")
- model.setValue("root/send/data/suppdeptcd","2360500000") //사이버나이프
- model.setValue("root/send/data/curersrvflag","Y");//치료플래그(defualt값 셋팅)
- */
-
- var dutplcecd = getUserInfo("dutplcecd");
- var selectplcecd = getScreenPrestDeptCd();
- if ( selectplcecd == "" ) {
- selectplcecd = dutplcecd;
- }
- model.setValue("/root/main/PatInfo/sex","M");
- model.setValue("/root/send/suppdeptcd", selectplcecd);
-
- //달력셋팅
- initCalendar();
- setCurrentDate();
-
- var seq = model.getValue("/root/init/pseursrvinfo/seq");
-
- if (seq != "") {
-
- submit("TRAEA03207");
- model.setValue("/root/send/data/pid", model.getValue("/root/main/PatInfo/pid"));
- model.refresh();
- }
-
- ]]>
- </script>
- <!--임시예약-->
- <submission id="TXAEA01200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAEA03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/PatInfo" replace="instance" resultref="/root/main/PatInfo"/>
- <submission id="TRAEA03207" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/pseursrvinfo" replace="instance" resultref="/root/main/PatInfo"/>
- <!--병원일정-->
- <submission id="TRAEA03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/calendarinfo"/>
- <!--예약가용인원 조회-->
- <submission id="TRAEA01107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
- </model>
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function initCalendar() {
- if( model.getValue("/root/hidden/calendar/year") == "" || model.getValue("/root/hidden/calendar/month") == "" ){
- 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 fGetHospitalCalendar(){
-
- var dd = (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month"));
- model.makeNode("/root/send/date");
- model.setValue("/root/send/date",dd);
-
- if (submit("TRAEA03203") == true) return true;
- else return false;
- }
-
- function setCalendar(dateObj) {
-
- //서버로 자료 요청
- if ( fGetHospitalCalendar() != true ){
- messageBox("병원일정 데이터를 가져올 수", "I004");
- }
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- //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();
- grd_calendar.rebuildStyle();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- var dutflag = '';
-
- for( var i = 1; i <= days; i++ ) {
- //write date
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
- //write memo
- grd_calendar.valueMatrix(rowIndex , colIndex + 7) = fGetCalendarMemo( i );
-
- dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
- if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
- fSetTextColor(rowIndex, colIndex, '#ff0000');
- }
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- grd_calendar.resizeCells();
- }
-
- function setCalendar2(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- //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();
- grd_calendar.rebuildStyle();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- var ampmflag = '';
- var dutflag = '';
-
- for( var i = 1; i <= days; i++ ) {
- //write date
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.cellStyle("font-weight", rowIndex, colIndex) = "bold";
- //write memo
- grd_calendar.valueMatrix(rowIndex , colIndex + 7) = fGetCalendarMemo2( i );
-
- ampmflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/ampmflag");
- dutflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/dutflag");
-
- if( ampmflag == '1' ){
- fSetBGColor(rowIndex, colIndex, '#ffff99');
- }else if( ampmflag == '10' ){
- fSetBGColor(rowIndex, colIndex, '#ccffff');
- }else if( ampmflag == '100' ) {
- fSetBGColor(rowIndex, colIndex, '#ff99cc');
- }else if( ampmflag == '11' || ampmflag == '110' || ampmflag == '101' || ampmflag == '111' ){
- fSetBGColor(rowIndex, colIndex, '#ffcc99');
- }
-
- if( dutflag == '8' ){
- fSetTextColor(rowIndex, colIndex, '#ff0000');
- }
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
-
- grd_calendar.resizeCells();
- }
-
- //그리드의 배경색상을 변경한다.
- function fSetBGColor(calRow, calCol, bgColor) {
-
- //var calRow = gridObj.row;
- //var calCol = gridObj.col;
- if( calCol < 7 ){
- //calCol = calCol + 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("background-color", calRow, calCol + 7) = bgColor;
- }else{
- //calCol = calCol - 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("background-color", calRow, calCol - 7) = bgColor;
- }
- //grd_calendar.rebuildStyle();
- //grd_calendar.cellStyle("background-color", calRow, calCol) = bgColor;
- }
-
- //그리드의 폰트 색상을 변경한다.
- function fSetTextColor(calRow, calCol, bgColor) {
-
- if( calCol < 7 ){
- //calCol = calCol + 7;
- grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("color", calRow, calCol + 7) = bgColor;
- }else{
- //calCol = calCol - 7;
- grd_calendar.cellStyle("color", calRow, calCol) = bgColor;
- grd_calendar.cellStyle("color", calRow, calCol - 7) = bgColor;
- }
- //grd_calendar.rebuildStyle();
-
- }
-
- function setCellColor(calRow, calCol) {
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- //fGetCalendarData();
- setCalendar2(isDate);
-
- if( calCol < 7 ){
- //calCol = calCol + 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- grd_calendar.cellStyle("background-color", calRow, calCol + 7) = "#daa7d9";
- }else{
- //calCol = calCol - 7;
- grd_calendar.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- grd_calendar.cellStyle("background-color", calRow, calCol - 7) = "#daa7d9";
- }
- //gridObj.rebuildStyle();
-
- //gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- }
-
- //해당 일자의 병원 일정 정보를 얻어 온다
- function fGetCalendarMemo( i )
- {
- var holiflag = "";
- var holinm = "";
-
- holiflag = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holiflag");
- holinm = model.getValue("/root/hidden/calendarinfo/calendarinfolist[" + i +"]/holinm");
-
- if( holinm == '-' ){
- holinm = "";
- }
- return holinm;
- }
-
-
- //달력을 클릭(선택) 했을 때
- function fClickOnCalendar(){
- var calRow = grd_calendar.row;
- var calCol = grd_calendar.col;
- 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);
- optRsrvDD.value = dd;
- model.setValue("/root/send/data/schergstdd", dd);
-
- //fGetOutRsgt();
- }
- }
-
-
- function fSetMonth(newMonth){
-
- model.setValue("/root/hidden/calendar/month", newMonth);
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
- //setCalendar(isDate);
-
- fGetCalendarData();
-
- }
-
- //날짜 00 맞추기 위한 방법
- function fncSetFormate(arg) {
- var rtnValue ='';
- if(arg <10)
- {
-
- rtnValue = '0'+arg;
- }
- else
- {
- rtnValue = arg;
- }
- return rtnValue;
- }
- /* @group : 통합예약관리
- * @ver : 2007.08.10
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 오늘날짜 달력에 표시
- */
-
- 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.makeValue("/root/hidden/grdcellcolor/calcol",0);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",0);
- } else if (curWeek == "mon") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",1);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",1);
- } else if (curWeek == "tue") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",2);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",2);
- } else if (curWeek == "wed") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",3);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",3);
- } else if (curWeek == "thu") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",4);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",4);
- } else if (curWeek == "fri") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",5);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",5);
- } else if (curWeek == "sat") {
- model.makeValue("/root/hidden/grdcellcolor/calcol",6);
- model.makeValue("/root/hidden/grdcellcolor/bfcalcol",6);
- }
-
- for(var i = 0 ; i <grd_calendar.rows; i++ ) {
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
- model.makeValue("/root/hidden/grdcellcolor/calrow",i);
- model.makeValue("/root/hidden/grdcellcolor/bfcalrow",i);
- }
- }
-
- model.makeValue("/root/hidden/grdcellcolor/color",1);
-
- setNewCellColor(grd_calendar);
- }
-
- function setNewCellColor(gridObj) {
-
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
-
- 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";
- }
-
-
- // 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");
- }
- model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
- model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
- // 3. 선택한 셀에 보라색 주기
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- if( calCol < 7 ) {
- calCol += 7;
- } else {
- calCol -= 7;
- }
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1020" pageheight="420" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:500px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">임시예약</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:20px; width:1000px; height:365px; ">
- <group id="group2" style="left:465px; top:0px; width:525px; height:355px; vertical-align:top; ">
- <caption id="caption29" class="cell_1" style="left:5px; top:30px; width:105px; height:23px; ">환자ID</caption>
- <input id="optName" ref="/root/main/PatInfo/hngnm" class="input_search" navindex="3" appearance="input" style="left:115px; top:57px; width:135px; height:19px; "/>
- <caption id="caption30" class="tit_2" style="left:0px; top:4px; width:169px; height:13px; ">환자 예약 정보</caption>
- <line id="line15" class="line_1" style="x1:2px; y1:21px; x2:515px; y2:21px; "/>
- <line id="line16" class="line_3" style="x1:2px; y1:236px; x2:515px; y2:236px; "/>
- <line id="line17" class="line_2" style="x1:6px; y1:52px; x2:515px; y2:52px; "/>
- <caption id="caption31" class="cell_1" style="left:5px; top:56px; width:105px; height:23px; ">환자성명</caption>
- <line id="line18" class="line_2" style="x1:6px; y1:79px; x2:515px; y2:79px; "/>
- <textarea id="tar_prcpremfact" ref="/root/main/PatInfo/rsrvrem" navindex="10" style="left:115px; top:135px; width:395px; height:67px; "/>
- <input id="iptPid" ref="/root/send/data/pid" class="input_s_essential" navindex="1" style="left:115px; top:31px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btnPatinfo","DOMActivate");
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- iptPid.value = "";
- ]]>
- </script>
- </input>
- <caption id="caption32" class="cell_1" style="left:5px; top:83px; width:105px; height:23px; ">주민번호</caption>
- <line id="line19" class="line_2" style="x1:6px; y1:106px; x2:515px; y2:106px; "/>
- <caption id="caption33" class="cell_1" style="left:5px; top:110px; width:105px; height:23px; ">주소</caption>
- <caption id="caption34" class="cell_1" style="left:255px; top:83px; width:75px; height:23px; ">연락처</caption>
- <caption id="caption35" class="cell_1" style="left:255px; top:29px; width:75px; height:23px; ">병원</caption>
- <input id="optRrgstNO" ref="/root/main/PatInfo/rrgstno1" class="input_search" navindex="6" maxlength="6" format="#" appearance="input" style="left:115px; top:84px; width:55px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:255px; top:56px; width:75px; height:23px; ">성별/나이</caption>
- <input id="optTel" ref="/root/main/PatInfo/tel" class="input_search" navindex="8" appearance="input" style="left:335px; top:84px; width:167px; height:19px; "/>
- <input id="optAddress1" ref="/root/main/PatInfo/addr" class="input_search" navindex="9" appearance="input" style="left:115px; top:110px; width:387px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:5px; top:136px; width:105px; height:70px; ">참고사항</caption>
- <caption id="caption3" class="cell_1" style="left:5px; top:210px; width:105px; height:23px; ">예약일자</caption>
- <output id="optRsrvDD" ref="/root/main/PatInfo/rsrvdd" class="output_fix" format="yyyy-mm-dd" style="left:115px; top:211px; width:135px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:254px; top:210px; width:80px; height:23px; ">예약시간</caption>
- <caption id="caption20" style="left:383px; top:212px; width:20px; height:20px; ">시</caption>
- <caption id="caption21" style="left:444px; top:212px; width:20px; height:20px; ">분</caption>
- <select1 id="cmbHour" ref="/root/main/PatInfo/srchrsrvhh" navindex="11" appearance="minimal" style="left:340px; top:211px; width:40px; height:19px; ">
- <choices>
- <item>
- <label>--</label>
- <value/>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- <item>
- <label>7</label>
- <value>7</value>
- </item>
- <item>
- <label>8</label>
- <value>8</value>
- </item>
- <item>
- <label>9</label>
- <value>9</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- <item>
- <label>13</label>
- <value>13</value>
- </item>
- <item>
- <label>14</label>
- <value>14</value>
- </item>
- <item>
- <label>15</label>
- <value>15</value>
- </item>
- <item>
- <label>16</label>
- <value>16</value>
- </item>
- <item>
- <label>17</label>
- <value>17</value>
- </item>
- <item>
- <label>18</label>
- <value>18</value>
- </item>
- <item>
- <label>19</label>
- <value>19</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>21</label>
- <value>21</value>
- </item>
- <item>
- <label>22</label>
- <value>22</value>
- </item>
- <item>
- <label>23</label>
- <value>23</value>
- </item>
- <item>
- <label>24</label>
- <value>24</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmbSec" ref="/root/main/PatInfo/srchrsrvmm" navindex="12" appearance="minimal" style="left:400px; top:211px; width:40px; height:19px; ">
- <choices>
- <item>
- <label>--</label>
- <value/>
- </item>
- <item>
- <label>00</label>
- <value>00</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>20</label>
- <value>20</value>
- </item>
- <item>
- <label>30</label>
- <value>30</value>
- </item>
- <item>
- <label>40</label>
- <value>40</value>
- </item>
- <item>
- <label>50</label>
- <value>50</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmbInstCd" ref="/root/main/PatInfo/reqhospcd" navindex="2" appearance="minimal" style="left:335px; top:30px; width:125px; height:19px; ">
- <choices>
- <item>
- <label>강남성모병원</label>
- <value>012</value>
- </item>
- <item>
- <label>성모병원</label>
- <value>011</value>
- </item>
- <item>
- <label>의정부성모병원</label>
- <value>013</value>
- </item>
- </choices>
- </select1>
- <line id="line2" class="line_2" style="x1:6px; y1:206px; x2:515px; y2:206px; "/>
- <line id="line3" class="line_2" style="x1:6px; y1:232px; x2:515px; y2:232px; "/>
- <select1 id="cmbHalf" ref="/root/main/PatInfo/ampmflag" navindex="13" visibility="hidden" appearance="minimal" style="left:464px; top:211px; width:40px; height:19px; ">
- <choices>
- <item>
- <label>AM</label>
- <value>A</value>
- </item>
- <item>
- <label>PM</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <button id="btn_acpt" class="btn4_letter2" navindex="15" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:335px; top:240px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //예약시간
- var flag = model.getValue("/root/main/PatInfo/flag");
-
- if (flag != "U") {
- model.makeValue("/root/main/PatInfo/flag","I");
- }
-
- model.setValue("/root/main/PatInfo/pid",model.getValue("/root/send/data/pid"));
- model.setValue("/root/main/PatInfo/suppdeptcd",model.getValue("/root/send/suppdeptcd"));
- //
- if (model.getValue("/root/main/PatInfo/pid") == "" && model.getValue("/root/main/PatInfo/hngnm") == "" ) {
- messageBox("환자ID 또는 환자성명 중 하나 이상은", "C001");
- return;
- }
-
- //
- if (model.getValue("/root/main/PatInfo/reqhospcd") == "" ) {
- messageBox("병원이 선택되지", "E007");
- return;
- }
-
- if (model.getValue("/root/main/PatInfo/rsrvdd") == "" ) {
- messageBox("예약일자가 선택되지", "E007");
- return;
- }
-
- if (model.getValue("/root/main/PatInfo/srchrsrvhh") == "" ) {
- messageBox("예약시간이 선택되지", "E007");
- return;
- }
-
- if (model.getValue("/root/main/PatInfo/srchrsrvmm") == "" ) {
- messageBox("예약분이 선택되지", "E007");
- return;
- }
-
- // if (model.getValue("/root/main/PatInfo/ampmflag") == "" ) {
- // messageBox("오전/오후가 선택되지", "E007");
- // return;
- // }
-
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd = model.getValue("/root/main/PatInfo/rsrvdd"); //선택일자
- var rsrvtm = model.getValue("/root/main/PatInfo/srchrsrvhh") + model.getValue("/root/main/PatInfo/srchrsrvmm");
-
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > rsrvtm ) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- return;
- }
- } else if (curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- return;
- }
-
- model.makeValue("/root/main/PatInfo/srchrsrvtm", rsrvtm);
-
-
- if (submit("TXAEA03201")) {
-
- model.makeValue("/root/hidden/updtflag","Y");
- //달력셋팅
- initCalendar();
- messageBox("예약이", "I002");
- }
-
- ]]>
- </script>
- </button>
- <button id="button13" class="btn4_letter2" navindex="16" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:450px; top:240px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (checkOpener()) {
- var updtflag = model.getValue("/root/hidden/updtflag");
-
- if (updtflag == "Y") {
- opener.javascript.initCalendar();
- opener.javascript.getRsrvPossTm(grd_calendar);
- }
- }
-
- window.close();
- ]]>
- </script>
- </button>
- <button id="btnPatinfo" class="icon_search" style="left:225px; top:32px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- var ipt_pid = model.getValue("/root/send/data/pid");
- if (ipt_pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
-
- // 환자조회
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
-
- //환자이름
- model.setValue("/root/main/PatInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
-
- //환자아이디
- model.setValue("/root/send/data/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/PatInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- //환자성별
- model.setValue("/root/main/PatInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
-
- //환자나이
- model.setValue("/root/main/PatInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
-
- //환자 주민번호
- model.setValue("/root/main/PatInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/main/PatInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
-
- //환자주소
- model.setValue("/root/main/PatInfo/addr",model.getValue("/root/main/patinfo/patinfolist/detladdr") );
- //환자연락처
- model.setValue("/root/main/PatInfo/rsrvrem",model.getValue("/root/main/patinfo/patinfolist/hometel") );
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter3" navindex="14" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:265px; top:240px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- model.resetInstanceNode("/root/main/PatInfo");
- model.resetInstanceNode("/root/send/data");
- initCalendar();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/main/PatInfo/sex" class="radio_search" navindex="4" appearance="full" cols="2" overflow="visible" style="left:340px; top:60px; width:105px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>M(남)</label>
- <value>M</value>
- </item>
- <item>
- <label>F(여)</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/main/PatInfo/age" class="input_search" navindex="5" maxlength="3" format="#" appearance="input" style="left:447px; top:57px; width:28px; height:19px; text-align:right; "/>
- <line id="line4" class="line_2" style="x1:6px; y1:134px; x2:515px; y2:134px; "/>
- <input id="input2" ref="/root/main/PatInfo/rrgstno2" class="input_search" navindex="7" maxlength="7" format="#" appearance="input" style="left:185px; top:85px; width:65px; height:19px; "/>
- <caption id="caption8" style="left:170px; top:84px; width:15px; height:19px; text-align:center; ">-</caption>
- <button id="button1" class="btn4_letter2" navindex="15" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:392px; top:240px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var seq = model.getValue("/root/main/PatInfo/seq");
-
- if (seq == "") {
- messageBox("삭제할 예약 정보가 없습니다.", "I004");
- return;
- }
-
- model.makeValue("/root/main/PatInfo/flag","D");
- if (submit("TXAEA03201")) {
- model.makeValue("/root/hidden/updtflag","Y");
- //달력셋팅
- initCalendar();
- messageBox("예약이", "I002");
- }
- ]]>
- </script>
- </button>
- </group>
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:1px; width:457px; height:30px; "/>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:228px; top:7px; width:30px; height:19px; "/>
- <caption id="caption5" class="calendar_output" style="left:208px; top:7px; width:20px; height:19px; ">년</caption>
- <caption id="caption7" class="calendar_output" style="left:258px; top:7px; width:20px; height:19px; ">월</caption>
- <button id="btn_premonth" class="icon_pre_month" style="left:152px; top:9px; width:16px; height:16px; ">
- <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();
- model.resetInstanceNode("/root/hidden/calendarinfo")
- setCalendar(isDate);//날짜 셋팅
- ]]>
- </script>
- </button>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colsep="^" colwidth="65, 65, 65, 65, 65, 65, 65" ellipsis="true" focuscolor="transparent" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:32px; width:457px; height:328px; font-size:10pt; ">
- <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 class="color_sat" ref="sat_memo" style="border-top-width:0px; "/>
- </row>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_calendar.isCell(event.target) && grd_calendar.mouseRow >= grd_calendar.fixedrows) {
-
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
-
- setNewCellColor(grd_calendar);
- fClickOnCalendar();
-
- }
- ]]>
- </script>
- </multilinegrid>
- <button id="button31" class="icon_pre_year" style="left:133px; top:9px; width:16px; height:16px; ">
- <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();
-
- model.resetInstanceNode("/root/hidden/calendarinfo")
- setCalendar(isDate);//날짜 셋팅
- ]]>
- </script>
- </button>
- <button id="button32" class="icon_next_year" style="left:308px; top:9px; width:16px; height:16px; ">
- <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();
-
- model.resetInstanceNode("/root/hidden/calendarinfo")
- setCalendar(isDate);//날짜 셋팅
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:178px; top:7px; width:30px; height:19px; "/>
- <button id="button34" class="icon_next_month" style="left:289px; top:9px; width:16px; height:16px; ">
- <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();
-
- model.resetInstanceNode("/root/hidden/calendarinfo")
-
- setCalendar(isDate);//날짜 셋팅
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|