123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHA00110.xrw
- * 설 명 : 결과상담예약시간 선택
- * 설 계 자 : 손범성
- * 작 성 자 : 손범성
- * 작 성 일 : 2009.03.13
- * 기 타 :
- -->
- <?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>
- <rsrvtmlst>
- <rsrvpsnnocnt/>
- <rsrvtm/>
- <psnnocnt/>
- </rsrvtmlst>
- <rsltcnstinfo>
- <cnst>
- <rsltcnstrsrvstarttm/>
- <rsltcnstrsrvendtm/>
- <rsltcnstdd/>
- <rsltcnstdr/>
- <rsltcnstremcnts/>
- <outexamyn/>
- <rsltrsrvid/>
- <rsltrsrvnm/>
- <rsltrsrvsaveyn/>
- <rsltcnstflag/>
- <m/>
- <rsltcnstseqno/>
- <ownyn/>
- <visitor/>
- <visittm/>
- <rsltcnststarttm/>
- <rsltcnstendtm/>
- <rsltcnstendyn/>
- <rsltcnsthistcd/>
- <spcffact/>
- </cnst>
- </rsltcnstinfo>
- <dayblist>
- <remdd/>
- <remcnts/>
- <instcd/>
- </dayblist>
- </main>
- <send>
- <srchcond/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchrsrvdd/>
- <srchrsrvmon/>
- <srchcnstdrid/>
- <srchinstcd/>
- <srchdateyn/>
- <srchstatfg/>
- <srchfromdd/>
- <srchtodd/>
- <srchrsltcnstrsrvdd/>
- <srchrsltcnstrsrvtm/>
- <srchrsrvflag/>
- <srchrsltremcnts/>
- <srchcnstdrnm/>
- </send>
- <init>
- <cnst>
- <drlst>
- <itemdr>
- <drid/>
- <drnm/>
- </itemdr>
- </drlst>
- </cnst>
- <cnstinfo>
- <rsltcnstremcnts/>
- </cnstinfo>
- </init>
- <hidden>
- <default>
- <sex>M</sex>
- </default>
- </hidden>
- <temp>
- <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>
- <templst/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitCtrl();
- ]]>
- </script>
- <submission id="TRAHB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/room/roomlst"/>
- <submission id="TRAHB01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/templst"/>
- <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cnst/drlst"/>
- <submission id="TRAHB01508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/dayblist" resultref="/root/main/dayblist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var xDesPath = "";
- var xRsltPath = "";
- /** ==============================================================================================================================================================
- * 초기화 작업
- *SPAHA00100_PARAM1 : 건진구분
- *SPAHA00100_PARAM2 : 건진상세구분
- *SPAHA00100_PARAM3 : opener 선택노드 xPath
- *SPAHA00100_PARAM4 : opener 결과노드셋 xPath
- ==================================================================================================================================================================*/
- function fInitCtrl(){
- model.removeNodeset("/root/main/rsrvtmlst");
- model.removeNodeset("/root/main/rsrvpatlst");
- opener.model.makeValue("/root/hidden/okflag" , "");
- if( checkOpener() ){
- var sHealexamFlag = opener.javascript.getParameter("SPAHA00110_PARAM1");
- var sHealexamdetlFlag = opener.javascript.getParameter("SPAHA00110_PARAM2");
- var sRsltcnstremcnts = opener.javascript.getParameter("SPAHA00110_PARAM5");
- xDesPath = opener.javascript.getParameter("SPAHA00110_PARAM3");
- xRsltPath = opener.javascript.getParameter("SPAHA00110_PARAM4");
-
- model.setValue("/root/send/srchhealexamflag", sHealexamFlag); // 건진구분
- model.setValue("/root/send/srchhealexamdetlflag", sHealexamdetlFlag); // 건진상세구분
- model.setValue("/root/send/srchcond" , "C"); // 건진 의사조회 구분 (판정의: J 상담의: C)
- copyNodesetType("/root/init/cnstinfo" , xDesPath , "replace" , model, opener.model);
- if (sRsltcnstremcnts !='') {
- model.setValue("/root/init/cnstinfo/rsltcnstremcnts",sRsltcnstremcnts);
- }
- // 상담의 리스트 조회
- submit("TRAHB01504");
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/temp/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/temp/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(curDate);
- } else {
- initCalendar();
- }
- model.refresh();
- }
- /**==========================================================================================================================
- * 월별 일별 스케쥴내역 조회.
- * vMode : 1 : 일자별 시간대별 가능인원 조회( 시간대만 조회)
- 2 : 월별 일자별 가능 인원 조회(달력만 조회~)
- 0 : 1, 2 동시 조회
- *==========================================================================================================================*/
- function fGetRsrvSchList(vMode ){
- if(grd_calendar.row == 0) return false;
- if( !checkOpener() ) return ;
-
- model.removeNodeset("/root/temp/templst");
- model.removeNodeset("/root/main/rsrvddlst");
- model.removeNodeset("root/main/rsrvtmlst");
- model.removeNodeset(grd_rsrvtmlst.nodeset);
-
- var sRsrvMon = model.getValue("/root/temp/calendar/year") + model.getValue("/root/temp/calendar/month") ;
- model.setValue( "/root/send/srchrsrvmon" , sRsrvMon);
-
- if( vMode == 1 ) {
- model.setValue( "/root/send/srchrsrvmon" , "");
- model.setValue("/root/send/srchrsrvdd" , fGetCalendarDate(grd_calendar) );
- }
- else
- if( vMode == 2 ) {
- model.setValue("/root/send/srchrsrvdd" , "" );
- }
- model.removeNodeset("/root/temp/templst");
- model.removeNodeset("/root/main/rsrvddlst");
-
- submit("TRAHB01503");
-
- var sNode = null;
- if( (vMode == 0 ) || (vMode == 2) ) {
- sNode = instance1.selectSingleNode("/root/temp/templst/rsrvddlst");
- if( sNode != null ){
- var dd = null ;
- var iCol = null;
- var iRow = null;
- var firstDay = (sRsrvMon+ "01").toDate().getDay();
- sNode = instance1.selectNodes("/root/temp/templst/rsrvddlst");
- for( var i = 1 ; i <= sNode.length ; i++){
- dd = model.getValue("/root/temp/templst/rsrvddlst[" +i+ "]/rsrvdd" ) ;
- iCol = ( sRsrvMon + dd).toDate().getDay();
- iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
- grd_calendar.valueMatrix(iRow , iCol + 7) = model.getValue("/root/temp/templst/rsrvddlst[" +i+ "]/psnnocnt" ) ;
- }
- }else {
- // 일자별 캐파 초기화
- var firstDay = Number( (sRsrvMon+ "01").toDate().getDay() );
- var lastDay = Number( fGetCalendarDate(grd_calendar).toDate().getMonthDay() );
- for( var i = firstDay ; i <= lastDay; i++) {
- iRow = Math.ceil( ( firstDay + i ) / 7 );
- iCol = ( sRsrvMon + i ).toDate().getDay();
- grd_calendar.valueMatrix(iRow , iCol + 7) = "" ;
- }
- }
- }
-
- if( (vMode == 0 ) || (vMode == 1) ) {
- model.removeNodeset("/root/main/rsrvddlst");
- sNode = instance1.selectSingleNode("/root/temp/templst/rsrvtmlst");
- if( sNode != null )
- {
- copyNodeListType("/root/main", "/root/temp/templst/rsrvtmlst", "after");
- grd_rsrvtmlst.rebuild();
- for(var i=0; i <= grd_rsrvtmlst.rows; i++) {
- var sRsrvCnt = grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- if( sRsrvCnt == "1") {
- grd_rsrvtmlst.isReadOnly( i , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) = true;
- }else if(sRsrvCnt == "0") {
- grd_rsrvtmlst.isReadOnly( i , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) = false;
- }
- }
- }
- }
- model.refresh();
- }
- /**==========================================================================================================================
- * 선택된 시간 얻기
- *==========================================================================================================================*/
- function fGetGrdTm(){
- var idx = grd_rsrvtmlst.row;
- if( idx < 1) {
- messageBox("시간을 선택하세요", "E999");
- return "";
- }
-
- if( (grd_rsrvtmlst.valueMatrix(idx, 2) == "0" ) ||(grd_rsrvtmlst.valueMatrix(idx, 2) == "" ) ) {
- messageBox( "예약정원을 초과하였습니다.", "E999");
- return "";
- }
-
- return grd_rsrvtmlst.valueMatrix(idx, 1);
- }
-
- /**==========================================================================================================================
- * 예약시간을 연속된 시간이 아닌 Interval이 있게 등록하였는지 체크
- *==========================================================================================================================*/
- function fChkInterVal() {
- var sOutExamYN = model.getValue("/root/init/cnstinfo/outexamyn");
- var sRsrvdd = fGetCalendarDate(grd_calendar) ;
- var sRsltCnstDr = model.getValue("/root/send/srchcnstdrid");
- var sel = false;
- var selCnt = 0;
-
- var topIdx = 0;
- var bottomIdx = 0;
-
- for( var i = 0; i < grd_rsrvtmlst.rows; i++) {
- // 읽기전용 상태는 이미 예약 된 결과상담신간
- // 읽기전용이 아닌 선택된 결과상담시간
- var sRsrvCnt = grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- if(!grd_rsrvtmlst.isReadOnly(i , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) && sRsrvCnt == "1") {
- // 선택된 행의 전과 뒤의 인텍스 셋팅
- topIdx = i - 1;
- bottomIdx = i + 1;
-
- // 선택된 행의 전과 뒤의 선택 값 초기화
- var top = "";
- var middle = grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- var bottom = "";
-
- // 맨처음 일 경우는 미선택
- // 전에 선택이 이미 선택된 경우에는 미선택으로 셋팅 그외에는 원래 선택 상태값을 가져온다.
- if(topIdx == 0) {
- top = "0"
- }else {
- if(grd_rsrvtmlst.isReadOnly(topIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"))) {
- top = "0"
- }else {
- top = grd_rsrvtmlst.valueMatrix( topIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- }
- }
- // 맨마지막 일 경우는 미선택
- //뒤에 선택이 이미 선택된 경우에는 미선택으로 셋팅 그외에는 원래 선택 상태값을 가져온다.
- if(bottomIdx == grd_rsrvtmlst.rows ) {
- bottom = "0";
- }else {
- if(grd_rsrvtmlst.isReadOnly(bottomIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"))) {
- bottom = "0"
- }else {
- bottom = grd_rsrvtmlst.valueMatrix( bottomIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- }
- }
-
- // 전에 선택 된 값이 미선택이고 현재이 선택이 되어 있으면 시작된 예약시간의 시작시간
- // 선택 행 값이 선택이고 다음 선택 값이 미선택이면 예약시간의 끝 시간
- if(top == "0" && middle == "1") {
- var dtRsrvdd = ( sRsrvdd + " " + grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvtm")) + "00" ).toDate("YYYYMMDD hhmmss");
- if( dtRsrvdd <= getCurrentDateTime().toDate("YYYYMMDD hhmmss") ) {
- messageBox("예약시간이 현재 시간 전입니다. ", "E999");
- return ;
- }
- }
- if(middle == "1" && bottom == "0") {
- selCnt++;
- if(selCnt > 1) {
- sel = false;
- }else if(selCnt <= 1 ){
- sel = true;
- }
- }
- }
- }
- return sel;
- }
- /**==========================================================================================================================
- * 부모창에 예약일자/시간 설정
- *==========================================================================================================================*/
- function fSetRsrvDT(){
- if ( checkOpener() ){
- var sOutExamYN = model.getValue("/root/init/cnstinfo/outexamyn");
- var sRsrvdd = fGetCalendarDate(grd_calendar) ;
- var sRsltCnstDr = model.getValue("/root/send/srchcnstdrid");
- var sel = false;
- var selCnt = 0;
-
- var topIdx = 0;
- var bottomIdx = 0;
-
- for( var i = 0; i < grd_rsrvtmlst.rows; i++) {
- // 읽기전용 상태는 이미 예약 된 결과상담신간
- // 읽기전용이 아닌 선택된 결과상담시간
- var sRsrvCnt = grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- if(!grd_rsrvtmlst.isReadOnly(i , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) && sRsrvCnt == "1") {
- // 선택된 행의 전과 뒤의 인텍스 셋팅
- topIdx = i - 1;
- bottomIdx = i + 1;
-
- // 선택된 행의 전과 뒤의 선택 값 초기화
- var top = "";
- var middle = grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- var bottom = "";
-
- // 맨처음 일 경우는 미선택
- // 전에 선택이 이미 선택된 경우에는 미선택으로 셋팅 그외에는 원래 선택 상태값을 가져온다.
- if(topIdx == 0) {
- top = "0"
- }else {
- if(grd_rsrvtmlst.isReadOnly(topIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"))) {
- top = "0"
- }else {
- top = grd_rsrvtmlst.valueMatrix( topIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- }
- }
- // 맨마지막 일 경우는 미선택
- //뒤에 선택이 이미 선택된 경우에는 미선택으로 셋팅 그외에는 원래 선택 상태값을 가져온다.
- if(bottomIdx == grd_rsrvtmlst.rows ) {
- bottom = "0";
- }else {
- if(grd_rsrvtmlst.isReadOnly(bottomIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"))) {
- bottom = "0"
- }else {
- bottom = grd_rsrvtmlst.valueMatrix( bottomIdx , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- }
- }
-
- // 전에 선택 된 값이 미선택이고 현재이 선택이 되어 있으면 시작된 예약시간의 시작시간
- // 선택 행 값이 선택이고 다음 선택 값이 미선택이면 예약시간의 끝 시간
- if(top == "0" && middle == "1") {
- var dtRsrvdd = ( sRsrvdd + " " + grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvtm")) + "00" ).toDate("YYYYMMDD hhmmss");
- if( dtRsrvdd <= getCurrentDateTime().toDate("YYYYMMDD hhmmss") ) {
- messageBox("예약시간이 현재 시간 전입니다. ", "E999");
- return ;
- }
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltcnstrsrvstarttm" , grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvtm")) );
- }
- if(middle == "1" && bottom == "0") {
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltcnstrsrvendtm" , grd_rsrvtmlst.valueMatrix( i , grd_rsrvtmlst.colRef("rsrvtm")) );
- sel = true;
- selCnt++;
- }
- // 선택된 구간을 구분하여 예약시간 리스트를 만든다.
- if(sel) {
- var sRsltCnstDr = model.getValue("/root/send/srchcnstdrid");
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltcnstdd" , sRsrvdd);
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltcnstdr" , sRsltCnstDr);
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltcnstremcnts" , model.getValue("/root/init/cnstinfo/rsltcnstremcnts"));
- model.setValue("/root/main/rsltcnstinfo/cnst/outexamyn" , sOutExamYN);
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltcnstflag" , model.getValue("/root/init/cnstinfo/rsltcnstflag"));
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltrsrvid" , sRsrvdd
- + model.getValue("/root/main/rsltcnstinfo/cnst/rsltcnstrsrvstarttm")
- + model.getValue("/root/main/rsltcnstinfo/cnst/rsltcnstrsrvendtm") );
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltrsrvnm" , sRsrvdd.toDate().getDateFormat('YYYY-MM-DD') + " "
- + model.getValue("/root/main/rsltcnstinfo/cnst/rsltcnstrsrvstarttm") + " ~ "
- + model.getValue("/root/main/rsltcnstinfo/cnst/rsltcnstrsrvendtm") + " "
- + model.getValue("/root/send/srchcnstdrnm"));
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltrsrvsaveyn" , "N");
- model.setValue("/root/main/rsltcnstinfo/cnst/rsltcnstendyn" , "N");
- model.setValue("/root/main/rsltcnstinfo/cnst/m" , "i");
-
- copyNodesetType(xRsltPath, "/root/main/rsltcnstinfo/cnst" , "after" , opener.model, model);
- opener.model.makeValue("/root/hidden/okflag" , "ok");
- sel = false;
- }
- }
- }
- window.close();
- }
- }
- /**==========================================================================================================================
- * 예약시간 선택 시 해당 일자 예약자 리스트 조회
- @author : 김다영
- @version : 2007-10-08
- *==========================================================================================================================*/
- function fGetRsrvPatList(){
- if(grd_calendar.row == 0) return false;
-
- //건진전체일정 , 검사실예약인원 리스트 조회
- model.removeNodeset("/root/main/schedule/rsrvacptlst");
- var sRsrvDate = fGetCalendarDate(grd_calendar);
- var sHealExamFlag = opener.javascript.getParameter("SPAHA00100_PARAM6");
- var sRsrvFlag = opener.javascript.getParameter("SPAHA00100_PARAM1");
-
- model.setValue("/root/send/srchhealexamflag" , opener.javascript.getParameter("SPAHA00100_PARAM6"));
- model.setValue("/root/send/srchfromdd" , fGetCalendarDate(grd_calendar) );
- model.setValue("/root/send/srchtodd" , fGetCalendarDate(grd_calendar) );
- model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
- model.removeNodeset(grd_rsrvpatlst.nodeset);
-
- // 예약,결과상담,검사실 일자 등록
- if(sRsrvFlag == "C") {
- model.setValue("/root/send/srchrsltcnstrsrvdd" , sRsrvDate);
- }else if(sRsrvFlag == "T") {
- model.setValue("/root/send/srchrsrvdd" , sRsrvDate);
- }else if(sRsrvFlag == "R") {
-
- }
- submit("TRAHA00901");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="720" pageheight="530" guideline="1,701;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:701px; height:490px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:121px; height:14px; ">결과상담시간선택</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:697px; y2:25px; "/>
- <datagrid id="grd_rsrvtmlst" nodeset="/root/main/rsrvtmlst" caption="선택^예약시간^예약가능인원" colsep="^" colwidth="30, 109, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:530px; top:30px; width:167px; height:456px; ">
- <col checkvalue="1,0" ref="rsrvpsnnocnt" type="checkbox"/>
- <col ref="rsrvtm" format="hh:nn"/>
- <col ref="psnnocnt" visibility="hidden"/>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- if(isDataCell()) {
- for( var i = 0; i < grd_rsrvtmlst.selectedRows; i++) {
- var sRsrvCnt = grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.selectedRow(i) , grd_rsrvtmlst.colRef("rsrvpsnnocnt"));
- if(grd_rsrvtmlst.col == grd_rsrvtmlst.colRef("rsrvpsnnocnt")) {
- if( sRsrvCnt == "1" ) {
- if(!grd_rsrvtmlst.isReadOnly(grd_rsrvtmlst.selectedRow(i) ,grd_rsrvtmlst.colRef("rsrvpsnnocnt") )) {
- grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.selectedRow(i) , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) = "1"
- }
- }else if( sRsrvCnt == "0") {
- if(!grd_rsrvtmlst.isReadOnly(grd_rsrvtmlst.selectedRow(i) ,grd_rsrvtmlst.colRef("rsrvpsnnocnt") )) {
- grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.selectedRow(i) , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) = "0"
- }
- }
- }else {
- if( sRsrvCnt == "0" ) {
- if(!grd_rsrvtmlst.isReadOnly(grd_rsrvtmlst.selectedRow(i) ,grd_rsrvtmlst.colRef("rsrvpsnnocnt") )) {
- grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.selectedRow(i) , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) = "1"
- }
- }else if( sRsrvCnt == "1") {
- if(!grd_rsrvtmlst.isReadOnly(grd_rsrvtmlst.selectedRow(i) ,grd_rsrvtmlst.colRef("rsrvpsnnocnt") )) {
- grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.selectedRow(i) , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) = "0"
- }
- }
- }
- }
- if(!fChkInterVal()) {
- for( var i = 0; i < grd_rsrvtmlst.selectedRows; i++) {
- grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.selectedRow(i) , grd_rsrvtmlst.colRef("rsrvpsnnocnt")) = "0"
- }
- messageBox("예약시간은 분리","E001");
- return;
- }
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_calendar" style="left:0px; top:167px; width:528px; height:40px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:527px; height:40px; "/>
- <button id="btn_preyear" class="icon_pre_year" style="left:165px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHRefreshCalender("Y", -1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <button id="btn_nextyear" class="icon_next_year" style="left:340px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHRefreshCalender("Y", 1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <button id="btn_premonth" class="icon_pre_month" style="left:184px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fHRefreshCalender("M", -1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <button id="btn_nextmonth" class="icon_next_month" style="left:321px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fHRefreshCalender("M", 1);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/temp/calendar/year" class="calendar_output" style="left:210px; top:9px; width:30px; height:19px; "/>
- <output id="opt_month" ref="/root/temp/calendar/month" class="calendar_output" style="left:260px; top:9px; width:30px; height:19px; "/>
- <caption id="caption8" class="calendar_output" style="left:240px; top:9px; width:20px; height:19px; ">년</caption>
- <caption id="caption9" class="calendar_output" style="left:290px; top:9px; width:20px; height:19px; ">월</caption>
- </group>
- <multilinegrid id="grd_calendar" nodeset="/root/temp/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="75, 75, 75, 75, 75, 75, 75" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:0px; top:211px; width:527px; height:275px; ">
- <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[
- setCellColor(grd_calendar); //선택 셀의 컬러처리
- model.removeNodeset(grd_rsrvtmlst.nodeset);
- fGetRsrvSchList(1);
- //달력의 선택한 일자 일자비고일자에 셋팅.
- model.makeValue("/root/main/dayblist/remdd" , fGetCalendarDate(grd_calendar));
- ipt_remdd.refresh();
- btn_srch_dayb.dispatch("DOMActivate");
-
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- <script type="javascript" ev:event="oncolchanged">
- <![CDATA[
- setCellColor(grd_calendar);
- ]]>
- </script>
- </multilinegrid>
- <datagrid id="grd_drlst" nodeset="/root/init/cnst/drlst/itemdr" caption="상담의ID^상담의명" colsep="^" colwidth="85, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:225px; height:132px; ">
- <col ref="drid"/>
- <col ref="drnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()) {
- model.setValue("/root/send/srchcnstdrid" , grd_drlst.valueMatrix(grd_drlst.row , grd_drlst.colRef("drid")) );
- model.setValue("/root/send/srchcnstdrnm" , grd_drlst.valueMatrix(grd_drlst.row , grd_drlst.colRef("drnm")) , true);
-
- fGetRsrvSchList(2);
- }
- ]]>
- </script>
- </datagrid>
- <textarea id="textarea1" ref="/root/init/cnstinfo/rsltcnstremcnts" style="left:229px; top:50px; width:298px; height:45px; "/>
- <caption id="caption2" class="tit_2" style="left:229px; top:30px; width:121px; height:13px; ">비고사항</caption>
- <line id="line3" class="line_1" style="x1:229px; y1:45px; x2:527px; y2:45px; "/>
- <caption id="caption3" class="tit_2" style="left:229px; top:97px; width:121px; height:14px; ">일자비고</caption>
- <textarea id="textarea2" ref="/root/main/dayblist/remcnts" style="left:229px; top:117px; width:298px; height:45px; "/>
- <line id="line2" class="line_1" style="x1:229px; y1:112px; x2:527px; y2:112px; "/>
- <input id="ipt_remdd" ref="/root/main/dayblist/remdd" visibility="hidden" inputtype="date" style="left:315px; top:90px; width:100px; height:19px; "/>
- <button id="btn_srch_dayb" class="btn2_letter2" visibility="hidden" style="left:415px; top:90px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/dayblist/instcd" , getUserInfo("dutplceinstcd"));
- submit("TRAHB01508",false);
- if(model.getValue("/root/main/dayblist/remdd") == ""){
- //해당 일자에 데이터가 없으므로 노드와 일자를 셋팅해줌
- model.makeNode("/root/main/dayblist/remcnts");
- model.makeValue("/root/main/dayblist/remdd" , fGetCalendarDate(grd_calendar));
- }
-
- textarea2.refresh();
- ipt_remdd.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:490px; width:701px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:585px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRsrvDT();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:644px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.model.makeValue("/root/hidden/okflag" , "");
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|