123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMC03000" position="absolute 0 0 1100 700" titletext="병원달력" onload="SPPMC03000_onload">
- <Layouts>
- <Layout>
- <Div id="Div00" taborder="1" position="absolute 1 1 1100 30" class="div_SA2"/>
- <Button id="button31" class="icon_pre_year" position="absolute 433 9 449 25" style="" text="" onclick="button31_onclick"/>
- <Button id="button32" class="icon_next_year" position="absolute 608 9 624 25" style="" text="" onclick="button32_onclick"/>
- <Button id="btn_premonth" class="icon_pre_month" position="absolute 452 9 468 25" style="" text="" onclick="btn_premonth_onclick"/>
- <Button id="button34" class="icon_next_month" position="absolute 589 9 605 25" style="" text="" onclick="button34_onclick"/>
- <Edit id="opt_year" position="absolute 472 7 515 26" anchor="default" readonly="true" style="background:transparent stretch 5,5;align:center middle;font:Dotum,9,bold;"/>
- <Edit id="opt_month" position="absolute 530 7 564 26" anchor="default" readonly="true" style="background:transparent stretch 5,5;align:center middle;font:Dotum,9,bold;"/>
- <Static id="caption1" class="calendar_output" position="absolute 517 7 529 26" style="color:black;" text="년"/>
- <Static id="caption2" class="calendar_output" position="absolute 558 7 578 26" style="color:black;" text="월"/>
- <Grid id="grd_calendar" binddataset="ds_hidden_calendar_weeklist_list" class="gridcalendar" position="absolute 0 54 1100 692" style="border:1 solid #1771beff ;font:Dotum,9;" oncellclick="grd_calendar_oncellclick" autofittype="col" selecttype="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="135"/>
- <Column size="160"/>
- <Column size="160"/>
- <Column size="160"/>
- <Column size="160"/>
- <Column size="160"/>
- <Column size="160"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="60"/>
- <Row size="60"/>
- </Rows>
- <Band id="head">
- <Cell text="일"/>
- <Cell col="1" text="월"/>
- <Cell col="2" text="화"/>
- <Cell col="3" text="수"/>
- <Cell col="4" text="목"/>
- <Cell col="5" text="금"/>
- <Cell col="6" text="토"/>
- </Band>
- <Band id="body">
- <Cell style="color:red;color2:red;" text="bind:sun"/>
- <Cell col="1" style="color:EXPR(mon_dutflag == '8' ? 'red' : 'black');color2:EXPR(mon_dutflag == '8' ? 'red' : 'black');" text="bind:mon"/>
- <Cell col="2" style="color:EXPR(tue_dutflag == '8' ? 'red' : 'black');color2:EXPR(tue_dutflag == '8' ? 'red' : 'black');" text="bind:tue"/>
- <Cell col="3" style="color:EXPR(wed_dutflag == '8' ? 'red' : 'black');color2:EXPR(wed_dutflag == '8' ? 'red' : 'black');" text="bind:wed"/>
- <Cell col="4" style="color:EXPR(thu_dutflag == '8' ? 'red' : 'black');color2:EXPR(thu_dutflag == '8' ? 'red' : 'black');" text="bind:thu"/>
- <Cell col="5" style="color:EXPR(fri_dutflag == '8' ? 'red' : 'black');color2:EXPR(fri_dutflag == '8' ? 'red' : 'black');" text="bind:fri"/>
- <Cell col="6" style="color:EXPR(sat_dutflag == '8' ? 'red' : 'blue');color2:EXPR(sat_dutflag == '8' ? 'red' : 'blue');" text="bind:sat"/>
- <Cell row="1" text="bind:sun_memo"/>
- <Cell row="1" col="1" text="bind:mon_memo"/>
- <Cell row="1" col="2" text="bind:tue_memo"/>
- <Cell row="1" col="3" text="bind:wed_memo"/>
- <Cell row="1" col="4" text="bind:thu_memo"/>
- <Cell row="1" col="5" text="bind:fri_memo"/>
- <Cell row="1" col="6" text="bind:sat_memo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" class="btn2" position="absolute 280 33 322 52" style="" text="1월" onclick="button1_onclick"/>
- <Button id="button2" class="btn2" position="absolute 324 33 366 52" style="" text="2월" onclick="button2_onclick"/>
- <Button id="button3" class="btn2" position="absolute 368 33 410 52" style="" text="3월" onclick="button3_onclick"/>
- <Button id="button4" class="btn2" position="absolute 412 33 454 52" style="" text="4월" onclick="button4_onclick"/>
- <Button id="button5" class="btn2" position="absolute 456 33 498 52" style="" text="5월" onclick="button5_onclick"/>
- <Button id="button6" class="btn2" position="absolute 500 33 542 52" style="" text="6월" onclick="button6_onclick"/>
- <Button id="button7" class="btn2" position="absolute 544 33 586 52" style="" text="7월" onclick="button7_onclick"/>
- <Button id="button8" class="btn2" position="absolute 587 33 629 52" style="" text="8월" onclick="button8_onclick"/>
- <Button id="button9" class="btn2" position="absolute 630 33 672 52" style="" text="9월" onclick="button9_onclick"/>
- <Button id="button10" class="btn2" position="absolute 673 33 715 52" style="" text="10월" onclick="button10_onclick"/>
- <Button id="button11" class="btn2" position="absolute 716 33 758 52" style="" text="11월" onclick="button11_onclick"/>
- <Button id="button12" class="btn2" position="absolute 759 33 801 52" style="" text="12월" onclick="button12_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_list_grdschedule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun_memo" type="STRING" size="256"/>
- <Column id="mon_memo" type="STRING" size="256"/>
- <Column id="tue_memo" type="STRING" size="256"/>
- <Column id="wed_memo" type="STRING" size="256"/>
- <Column id="thu_memo" type="STRING" size="256"/>
- <Column id="fri_memo" type="STRING" size="256"/>
- <Column id="sat_memo" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sun"/>
- <Col id="mon"/>
- <Col id="tue"/>
- <Col id="wed"/>
- <Col id="thu"/>
- <Col id="fri"/>
- <Col id="sat"/>
- <Col id="sun_memo"/>
- <Col id="mon_memo"/>
- <Col id="tue_memo"/>
- <Col id="wed_memo"/>
- <Col id="thu_memo"/>
- <Col id="fri_memo"/>
- <Col id="sat_memo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="year" type="STRING" size="256"/>
- <Column id="month" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="year"/>
- <Col id="month"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_calendarinfo_calendarinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_list_rcvmemo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
- <BindItem id="item1" compid="opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function SPPMC03000_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(this.grd_calendar);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- initCalendar();
- }
- function initCalendar() {
- var curDate = utlf_getCurrentDate().toDate();
- ds_hidden_calendar.setColumn( 0, "year", curDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn( 0, "month", curDate.getDateFormat('MM'));
- //model.refresh();
- setCalendar(curDate);
- }
- function fGetHospitalCalendar(){
- // ds_hidden_result.clearData();
- var dd = (ds_hidden_calendar.getColumn(0, "year")).concat(ds_hidden_calendar.getColumn(0, "month"));
- //submit("TRPMC03000");
- var oParam = {};
- oParam.id = "TRPMC03000";
- oParam.service = "patinfomngtapp.OrgnJudgPat";
- oParam.method = "reqGetOJSchedule";
- oParam.inds = "req=ds_hidden_calendar";
- oParam.outds = "ds_main_list_grdschedule=grdschedule";
- oParam.async = false;
- tranf_submit(oParam);
- var index = 0;
- for(var i = 0 ; !utlf_isNull(ds_main_list_grdschedule.getColumn(i, "rsltworkdd")) ; i++){
- var tmp = String(ds_main_list_grdschedule.getColumn(i, "rsltworkdd"));
- tmp = tmp.substring(0, 6);
- if(tmp == dd){
- ds_main_list_rcvmemo.setColumn( index, "pid", ds_main_list_grdschedule.getColumn(i, "pid") );
- ds_main_list_rcvmemo.setColumn( index, "hngnm", ds_main_list_grdschedule.getColumn(i, "hngnm") );
- ds_main_list_rcvmemo.setColumn( index, "patnm", ds_main_list_grdschedule.getColumn(i, "patnm") );
- ds_main_list_rcvmemo.setColumn( index, "rsltworkdd", ds_main_list_grdschedule.getColumn(i, "rsltworkdd") );
- // 20100201 JHP 예약일, 진료일, 진료시, 과, 의사 추가
- ds_main_list_rcvmemo.setColumn( index, "rsrvdd", ds_main_list_grdschedule.getColumn(i, "rsrvdd") );
- ds_main_list_rcvmemo.setColumn( index, "orddd", ds_main_list_grdschedule.getColumn(i, "orddd") );
- ds_main_list_rcvmemo.setColumn( index, "ordtm", ds_main_list_grdschedule.getColumn(i, "ordtm") );
- ds_main_list_rcvmemo.setColumn( index, "orddeptcd", ds_main_list_grdschedule.getColumn(i, "orddeptcd") );
- ds_main_list_rcvmemo.setColumn( index, "atdoctid", ds_main_list_grdschedule.getColumn(i, "atdoctid") );
- index++ ;
- //alert(instance1.selectSingleNode("ds_main_rcv_rcvmemo").xml );
- }
- }
- dsf_makeValue( ds_send, "date", "string", "" );
- ds_send.setColumn( 0, "date",dd);
- //if (submit("TRPMB01001") == true) {
- var oParam = {};
- oParam.id = "TRPMB01001";
- oParam.service = "pambaseinfomngtapp.OrdSche";
- oParam.method = "reqGetHospitalCalendar";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_hidden_calendarinfo_calendarinfolist=caldata";
- oParam.async = false;
- oParam.callback = "cf_TRPMB01001";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRPMB01001") > -1) {
- return true;
- } else {
- return false;
- }
- //model.refresh();
- }
- function cf_TRPMB01001(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function setCalendar(dateObj) {
- //서버로 자료 요청
- if ( fGetHospitalCalendar() != true ){
- sysf_messageBox("병원일정 데이터를 가져올 수", "I004");
- }
- // 그리드 초기화
-
- dsf_makeValue(ds_hidden_calendar_weeklist_list, "sun_dutflag", "string", "");
- dsf_makeValue(ds_hidden_calendar_weeklist_list, "mon_dutflag", "string", "");
- dsf_makeValue(ds_hidden_calendar_weeklist_list, "tue_dutflag", "string", "");
- dsf_makeValue(ds_hidden_calendar_weeklist_list, "wed_dutflag", "string", "");
- dsf_makeValue(ds_hidden_calendar_weeklist_list, "thu_dutflag", "string", "");
- dsf_makeValue(ds_hidden_calendar_weeklist_list, "fri_dutflag", "string", "");
- dsf_makeValue(ds_hidden_calendar_weeklist_list, "sat_dutflag", "string", "");
-
- ds_hidden_calendar_weeklist_list.clearData();
- //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);
- ds_hidden_calendar_weeklist_list.addRow();
- }
- // grd_calendar.rebuild();
- // grd_calendar.rebuildStyle();
- var rowIndex = 0;
- var colIndex = startDay;
- var dutflag = '';
- for( var i = 0; i < days; i++ ) {
- //write date
- //grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex, i + 1);
- //write memo
- //grd_calendar.valueMatrix(rowIndex , colIndex + 7) = fGetCalendarMemo( i );
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex + 7, fGetCalendarMemo( i ));
- //grd_calendar.valueMatrix(rowIndex , colIndex + 7) = fGetCallenderSchedule(i);
- // dutflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag");
- // if( dutflag == '8' ){ //'0' 평일, '4' 토요일, '8' 휴일
- // fSetTextColor(rowIndex, colIndex, '#ff0000');
- // }
- if(colIndex == 0) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sun_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag"));
- if(colIndex == 1) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "mon_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag"));
- if(colIndex == 2) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "tue_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag"));
- if(colIndex == 3) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "wed_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag"));
- if(colIndex == 4) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "thu_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag"));
- if(colIndex == 5) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "fri_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag"));
- if(colIndex == 6) ds_hidden_calendar_weeklist_list.setColumn(rowIndex, "sat_dutflag", ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "dutflag"));
-
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
- }
- }
- //grd_calendar.resizeCells();
- }
- //2017.02.20 kimdo3 사용되지 않아서 수정없이 코멘트 처리함.
- // function setCalendar2(dateObj) {
- //
- // // 그리드 초기화
- // ds_hidden_calendar_weeklist_list.clearData();
- // //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;
- // //write memo
- // grd_calendar.valueMatrix(rowIndex , colIndex + 7) = fGetCalendarMemo2( i );
- //
- // ampmflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "ampmflag");
- // dutflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(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();
- // }
- //그리드의 배경색상을 변경한다.
- // 2017.02.20 kimdo3 사용되지 않아서 코멘트 처리함.
- // 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;
- // }
- //그리드의 폰트 색상을 변경한다.
- // 2017.02.20 kimdo3 사용되지 않아서 코멘트 처리함.
- // expr로 대체함.
- // 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();
- // }
- // 2017.02.20 kimdo3 사용되지 않아서 추가 수정 없이 코멘트 처리함.
- // function setCellColor(calRow, calCol) {
- //
- // var isMonth = ds_hidden_calendar.getColumn(0, "month");
- // var isYear = ds_hidden_calendar.getColumn(0, "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 = "";
- var yearmonth = (ds_hidden_calendar.getColumn(0, "year")).concat(ds_hidden_calendar.getColumn(0, "month"));
- holiflag = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "holiflag");
- holinm = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "holinm");
- for(var index = 0 ; !utlf_isNull(ds_main_list_rcvmemo.getColumn(index, "rsltworkdd")) ; index++)
- {
- tmp = ds_main_list_rcvmemo.getColumn(index, "rsltworkdd").substring(6, 8);
- if(i== tmp){
- //holinm ="";
- //holinm += "신체감정 예약";
- holinm = ds_main_list_rcvmemo.getColumn(index, "pid");
- holinm += " "+ ds_main_list_rcvmemo.getColumn(index, "hngnm")+"\n";
- // 20100201 JHP 수정추가 과, 의사 정보 추가함.
- holinm += " "+ ds_main_list_rcvmemo.getColumn(index, "orddeptcd");
- holinm += " "+ ds_main_list_rcvmemo.getColumn(index, "atdoctid")+" ";
- //holinm += "test";
- holinm += ds_main_list_rcvmemo.getColumn(index, "ordtm")+"\n\n";
- }
- }
- return holinm;
- }
- //2017.02.20 kimdo3 사용되지 않아서 수정없이 코멘트 처리함.
- // function fGetCalendarMemo2( i )
- // {
- // //var holiflag = "";
- // //var dutflag = "";
- // var holinm = "";
- // var ordendresn = "";
- // var fstexamcnt = 0;
- // var reexamcnt = 0;
- // var totalexamcnt = 0;
- // //var fstexamcap = 0;
- // //var reexamcap = 0;
- // var totalexamcap = 0;
- // var totalrsrvcnt = 0;
- // var telrsrvcnt = 0;
- //
- // var retValue = " " ;
- // holinm = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "holinm");
- // ordendresn = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "ordendresn");
- //
- // for(var index = 1 ; !utlf_isNull(ds_main_list_rcvmemo.getColumn(index, "rsrvdd")) ; index++)
- // {
- // tmp = ds_main_list_rcvmemo.getColumn(index, "rsrvdd").substring(6, 8);
- //
- // if(i== tmp){
- // retValue = ds_main_list_rcvmemo.getColumn(index, "deptnm")
- // + " " +ds_main_list_rcvmemo.getColumn(index, "doctnm")
- // + "\n환자 " +ds_main_list_rcvmemo.getColumn(index, "patnm") ;
- //
- // }
- // }
- //
- // //예약 현황
- // /*
- // if( caloption == '2' ){
- // totalrsrvcnt = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "totalrsrvcnt");
- // telrsrvcnt = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "telrsrvcnt");
- //
- // if( ordendresn == "" || ordendresn == null || ordendresn == "0"){
- //
- // retValue = holinm + "\n" + telrsrvcnt + "/" + totalrsrvcnt;
- // }else{
- // retValue = ordendresn + "\n" + telrsrvcnt + "/" + totalrsrvcnt;
- // }
- //
- // //예약가능 인원
- // }else{
- // fstexamcnt = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "fstexamcnt");
- // reexamcnt = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "reexamcnt");
- // totalexamcnt = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "totalexamcnt");
- // totalexamcap = ds_hidden_calendarinfo_calendarinfolist.getColumn(i, "totalexamcap");
- //
- // if( ordendresn == "" || ordendresn == null || ordendresn == "0"){
- // if( totalexamcap == '0' || totalexamcap == ''){
- // retValue = holinm + "\n" + fstexamcnt + "/" + reexamcnt;
- // }else{
- // retValue = holinm + "\n" + totalexamcnt;
- // }
- // }else{
- // if( totalexamcap == '0' ){
- // retValue = ordendresn + "\n" + fstexamcnt + "/" + reexamcnt;
- // }else{
- // retValue = ordendresn + "\n" + totalexamcnt;
- // }
- //
- // }
- // }
- // */
- // return retValue;
- // }
- /* */
- //달력을 클릭(선택) 했을 때
- // 2017.02.20 kimdo3 사용되지 않아서 코멘트 처리함.
- // 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 = ( (ds_hidden_calendar.getColumn(0, "year")).concat(ds_hidden_calendar.getColumn(0, "month")) ).concat(isDay);
- // ds_main_reservation.setColumn( 0, "orddd", dd);
- //
- // fGetOutRsgt();
- // }
- // }
- function fGetCalendarData() {
- }
- function fSetMonth(newMonth){
- ds_hidden_calendar.setColumn( 0, "month", newMonth);
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendar(isDate);
- //fGetCalendarData();
- }
- function fSetYear(newYear){
- ds_hidden_calendar.setColumn( 0, "year", newYear);
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate();
- setCalendar(isDate);
- //fGetCalendarData();
- }
- function button31_onclick(obj:Button, e:ClickEventInfo) {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- ds_hidden_calendar.setColumn( 0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn( 0, "month", isDate.getDateFormat('MM'));
- //model.refresh();
- ds_hidden_calendarinfo_calendarinfolist.clearData();
- fGetCalendarData();
- fSetYear(ds_hidden_calendar.getColumn(0, "year"));
- }
- function button32_onclick(obj:Button, e:ClickEventInfo) {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- ds_hidden_calendar.setColumn( 0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn( 0, "month", isDate.getDateFormat('MM'));
- //model.refresh();
- ds_hidden_calendarinfo_calendarinfolist.clearData();
- fGetCalendarData();
- fSetYear(ds_hidden_calendar.getColumn(0, "year"));
- }
- function btn_premonth_onclick(obj:Button, e:ClickEventInfo) {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- ds_hidden_calendar.setColumn( 0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn( 0, "month", isDate.getDateFormat('MM'));
- //model.refresh();
- ds_hidden_calendarinfo_calendarinfolist.clearData();
- //fGetCalendarData();
- fSetMonth(ds_hidden_calendar.getColumn(0, "month"));
- }
- function button34_onclick(obj:Button, e:ClickEventInfo) {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- ds_hidden_calendar.setColumn( 0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn( 0, "month", isDate.getDateFormat('MM'));
- //model.refresh();
- ds_hidden_calendarinfo_calendarinfolist.clearData();
- //fGetCalendarData();
- fSetMonth(ds_hidden_calendar.getColumn(0, "month"));
- }
- function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo) {
- //fClickOnCalendar();
- //var row = grd_calendar.row;
- //var col = grd_calendar.col;
- //setCellColor( row ,col);
- }
- function button1_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("01");
- }
- function button2_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("02");
- }
- function button3_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("03");
- }
- function button4_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("04");
- }
- function button5_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("05");
- }
- function button6_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("06");
- }
- function button7_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("07");
- }
- function button8_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("08");
- }
- function button9_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("09");
- }
- function button10_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("10");
- }
- function button11_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("11");
- }
- function button12_onclick(obj:Button, e:ClickEventInfo) {
- fSetMonth("12");
- }
- ]]></Script>
- </Form>
- </FDL>
|