12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHB01500.xrw
- * 설 명 : 예약일정관리
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.04.13
- * 수정이력 : 2007.10.04 김다영 화면권한추가
- 2007.10.08 김다영 예약시간 선택 시 해당 일자 예약자 리스트 조회
- * 기 타 :
- -->
- <?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>
- <total>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <termtm/>
- <mancnt/>
- <womcnt/>
- <comcnt/>
- <schlst>
- <item>
- <rsrvdd/>
- <rsrvweek/>
- <rsrvtm/>
- <psnnomancnt/>
- <psnnowomcnt/>
- <psnnocomcnt/>
- <rsrvpsnnomancnt/>
- <rsrvpsnnowomcnt/>
- <rsrvpsnnocomcnt/>
- </item>
- </schlst>
- <satyn/>
- <sunyn/>
- </total>
- <room>
- <fromdd/>
- <todd/>
- <cnt/>
- <satyn/>
- <sunyn/>
- <schlst>
- <item>
- <rsrvdd/>
- <rsrvweek/>
- <testroomcd/>
- <psnnocnt/>
- </item>
- </schlst>
- </room>
- <cnst>
- <fromdd/>
- <todd/>
- <amfromtm/>
- <amtotm/>
- <amterm/>
- <fmfromtm/>
- <fmtotm/>
- <fmterm/>
- <cnstdrid/>
- <srchcnstdrid/>
- <week>
- <monyn>1</monyn>
- <tueyn>2</tueyn>
- <wedyn>3</wedyn>
- <thuyn>4</thuyn>
- <friyn>5</friyn>
- <satyn/>
- </week>
- <schlst>
- <item>
- <rsrvdd/>
- <rsrvweek/>
- <rsrvtm/>
- <psnnocnt/>
- </item>
- </schlst>
- </cnst>
- <schedule>
- <srchcnstdrid/>
- <srchroomcd/>
- <rsrvacptlst>
- <item>
- <hngnm/>
- <pid/>
- <rgstno/>
- <rsrvtm/>
- <pkgnm/>
- <lastupdtrid/>
- <lastupdtdt/>
- <statfg/>
- <rsrvdd/>
- </item>
- </rsrvacptlst>
- <rsrvtmlst>
- <item>
- <rsrvtm/>
- <testroomcd/>
- <psnnomancnt/>
- <rsrvpsnnomancnt/>
- <psnnowomcnt/>
- <rsrvpsnnowomcnt/>
- <psnnocnt/>
- <rsrvpsnnocnt/>
- </item>
- </rsrvtmlst>
- </schedule>
- <roomschedule>
- <roomschlst>
- <item>
- <rsrvdd/>
- <rsrvweek/>
- <totalcnt/>
- <rsrvcnt/>
- <acptcnt/>
- <cnclcnt/>
- <holdcnt/>
- <remcnts/>
- <todaychoicnt/>
- <roomcd/>
- <roomcnt/>
- </item>
- </roomschlst>
- <inqfromdd/>
- <inqtodd/>
- </roomschedule>
- <dayblist>
- <remdd/>
- <remcnts/>
- <instcd/>
- </dayblist>
- </main>
- <send>
- <srchinstcd/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchroomcd/>
- <srchcnstdrid/>
- <srchfromdd/>
- <srchtodd/>
- <srchcond/>
- <save>
- <savecnst/>
- <saveroom/>
- <savetotal/>
- <instcd/>
- <healexamflag/>
- <mode/>
- <rsrvdd/>
- <cnstdrid/>
- <roomcd/>
- <healexamdetlflag/>
- </save>
- <srchcond/>
- <srchcond2/>
- <srchrsrvmon/>
- <srchrsrvdd/>
- <srchallroomyn/>
- <srchrsrvflag/>
- <srchhopedd/>
- <srchstatfg/>
- <srchrsrvyn/>
- <srchrsltcnstrsrvdd/>
- <srchdateyn/>
- <partchngroomcode>
- <healexamflag/>
- <healexamdetlflag/>
- <fromdd/>
- <todd/>
- <chnglist/>
- </partchngroomcode>
- </send>
- <init>
- <room>
- <roomlst>
- <itemroom>
- <sel/>
- <testroomcd/>
- <testroomnm/>
- <cnt/>
- <rsrvyn/>
- </itemroom>
- </roomlst>
- </room>
- <cnst>
- <drlst>
- <itemdr>
- <drid/>
- <drnm/>
- </itemdr>
- </drlst>
- </cnst>
- <baseinfo>
- <healexamdetlflag/>
- </baseinfo>
- </init>
- <hidden/>
- <temp>
- <templst/>
- <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>
- <holiday/>
- </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/AHA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var flag = getScreenMenuParameter();
- m_vHealexamflag = flag.substr(0, 1);
- if(flag.length >= 3) {
- m_vHealexamdetlflag = flag;
- } else {
- m_vHealexamdetlflag = flag + '01';
- }
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
-
- if(m_vHealexamflag == "G"){
- caption2.visible = true;
- cmb_healexamdetlflag.visible = true;
- zbcfGetCodeList( new Array( "A0070"), new Array("/root/init/baseinfo"));
- submit("TRZBC00101");
- copyNodesetType("/root/init/baseinfo/healexamdetlflag", "/root/init/baseinfo/A0070", "replace", model, model);
- }else if(m_vHealexamflag == "C"){
- caption2.visible = true;
- cmb_healexamdetlflag.visible = true;
- zbcfGetCodeList( new Array("A0069"), new Array("/root/init/baseinfo"));
- submit("TRZBC00101");
- copyNodesetType("/root/init/baseinfo/healexamdetlflag", "/root/init/baseinfo/A0069", "replace", model, model);
-
- if (m_vHealexamdetlflag == 'C01'){
- m_vHealexamplacecd = 'S'
- }else if (m_vHealexamdetlflag == 'C03'){
- m_vHealexamplacecd = 'K'
- }
- model.makeValue("/root/send/srchhealexamplacecd", m_vHealexamplacecd );
- }else{
- caption2.visible = false;
- cmb_healexamdetlflag.visible = false;
- }
- fInitCtrl();
- cmb_healexamdetlflag.value = m_vHealexamdetlflag;
- model.setValue("/root/main/cnst/cnstdrid", model.getValue("/root/init/cnst/drlst/itemdr[1]/drid"));
- model.refresh();
- /**==========================================================================================================================
- * 화면권한추가
- @author : 김다영
- @version : 2007-10-04
- *==========================================================================================================================*/
- btn_searchcnnst.disabled = ! checkAuth("R");
- btn_save.disabled = ! checkAuth("X");
- btn_print.disabled = ! checkAuth("P");
- //T=> 건진전체일정관리, C: 상담의별 인원관리, R: 검사실별 일별 인원관리
- fGetSchList("T");
- fGetSchList("C");
- fGetSchList("R");
- ]]>
- </script>
- <submission id="TRAHB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/schlst"/>
- <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="TRAHB01507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/srchdel"/>
- <submission id="TRAHB01508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/dayblist" resultref="/root/main/dayblist"/>
- <submission id="TRAHB01509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/holiday"/>
- <submission id="TXAHB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/partchngroomcode" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHB01506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cnst"/>
- <submission id="TXAHB01509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/dayblist" resultref="/root/main/dayblist"/>
- <submission id="TRAHA00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/schedule/rsrvacptlst"/>
- <submission id="TRAHA00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/schedule/rsrvacptlst"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
-
- /**==========================================================================================================================
- * 초기화 작업
- *==========================================================================================================================*/
- function fInitCtrl(){
- btn_schmngtcret.selected= true;
- model.toggle("case_cret");
- //건진전체 일정관리 초기화
- var curDt = getCurrentDate();
- initCalendar();
-
- //예약현황집계내역 from/to초기화
- // model.setValue(ipt_inqfromdd.attribute("ref") , curDt);
- // model.setValue(ipt_inqtodd.attribute("ref") , curDt);
- // model.removeNodeset(grd_roominqiry.nodeset );
-
- model.setValue( ipt_totfromdd.attribute("ref") , curDt);
- model.setValue(ipt_tottodd.attribute("ref") , curDt);
- model.setValue(ipt_totfromtm.attribute("ref") , "0800");
- model.setValue(ipt_tottotm.attribute("ref") , "1300");
- model.setValue(ipt_tottermtm.attribute("ref") , "30");
- model.setValue(ipt_totmancnt.attribute("ref") , "10");
- model.setValue(ipt_totwomcnt.attribute("ref") , "10");
- model.setValue(input1.attribute("ref") , "10");
- model.setValue(chx_totsunyn.attribute("ref") , "Y");
- fClearSch("T");
-
- //경과상담예약일정관리 초기화
- model.setValue( ipt_cnstfromdd.attribute("ref") , curDt);
- model.setValue(ipt_cnsttodd.attribute("ref") , curDt);
- model.setValue(ipt_cnstamfromtm.attribute("ref") , "0800");
- model.setValue(ipt_cnstamtotm.attribute("ref") , "1200");
- model.setValue(ipt_cnstfmfromtm.attribute("ref") , "1300");
- model.setValue(ipt_cnstfmtotm.attribute("ref") , "1700");
-
- model.setValue(ipt_cnstamterm.attribute("ref") , "30");
- model.setValue(ipt_cnstfmterm.attribute("ref") , "30");
-
- model.setValue(chx_mon.attribute("ref") , "1");
- model.setValue(chx_tue.attribute("ref") , "2");
- model.setValue(chx_wed.attribute("ref") , "3");
- model.setValue(chx_thu.attribute("ref") , "4");
- model.setValue(chx_fri.attribute("ref") , "5");
- model.setValue(chx_sat.attribute("ref") , "6");
- fClearSch("C");
- model.setValue("/root/send/srchcond", "C" );
- submit("TRAHB01504");
-
- //검사실별 일정관리 초기화
-
- model.setValue(ipt_roomfromdd.attribute("ref") , curDt);
- model.setValue(ipt_roomtodd.attribute("ref") , curDt);
- model.setValue(chx_roomsunyn.attribute("ref") , "Y");
- fClearSch("R");
- model.setValue(ipt_roomcnt.attribute("ref") , 10);
- model.setValue("/root/send/srchrsrvyn" , "Y" );
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
- submit("TRAHB01502");
-
-
- rdo_srchcond2.value = "T";
- fSetSrchCtrlState("T");
- fGetRsrvSchList(2);
-
- }
- /**==========================================================================================================================
- * 조회구분별 control 처리
- * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
- *============================================================================================================================*/
-
- function fSetSrchCtrlState(vMode){
- var col_tm = 1;
- var col_roomcd = 2;
- var col_mancnt = 3;
- var col_rsrvmancnt = 4;
- var col_womcnt = 5;
- var col_rsrvwomcnt = 6;
- var col_cnt = 7;
- var col_rsrvcnt = 8;
- var col_comcnt =9;
- var col_rsrvcomcnt =10;
-
- cap_cnstdr.visible = false;
- cap_room.visible = false;
- cmb_srchcnstdrid.visible = false;
- cmb_srchroomcd.visible = false;
- chk_srchallroom.visible = false;
- for( var i = 1; i < grd_rsrvtmlst.cols; i++){
- grd_rsrvtmlst.colHidden(i) = true;
- }
-
- if( vMode == "T"){
- grd_rsrvtmlst.colHidden(col_tm) = false;
- grd_rsrvtmlst.colHidden(col_mancnt) = false;
- grd_rsrvtmlst.colHidden(col_rsrvmancnt) = false;
- grd_rsrvtmlst.colHidden(col_womcnt) = false;
- grd_rsrvtmlst.colHidden(col_rsrvwomcnt) = false;
- grd_rsrvtmlst.colHidden(col_comcnt) = false;
- grd_rsrvtmlst.colHidden(col_rsrvcomcnt) = false;
- }
- else
- if( vMode == "R" ) {
- chk_srchallroom.visible = true;
- cap_room.visible = true;
- cmb_srchroomcd.visible = true;
- grd_rsrvtmlst.colHidden(col_roomcd) = false;
- grd_rsrvtmlst.colHidden(col_cnt) = false;
- grd_rsrvtmlst.colHidden(col_rsrvcnt) = false;
- }
- else
- if( vMode == "C" ) {
- cap_cnstdr.visible = true;
- cmb_srchcnstdrid.visible = true;
- grd_rsrvtmlst.colHidden(col_tm) = false;
- grd_rsrvtmlst.colHidden(col_cnt) = false;
- grd_rsrvtmlst.colHidden(col_rsrvcnt) = false;
- }
-
- }
- /**==========================================================================================================================
- * 건진전체 일정 생성
- *============================================================================================================================*/
- function fMakeTotSch(){
- var fromdd = ipt_totfromdd.value;
- var todd = ipt_tottodd.value;
- if(fCheckTerm(fromdd, todd, "D") < 0) return;
-
- var fromtm = ipt_totfromtm.value;
- var totm = ipt_tottotm.value;
- if(fCheckTerm(fromtm, totm, "T") < 0) return;
-
- var term = parseInt( ipt_tottermtm.value);
- var man = ipt_totmancnt.value;
- var wom = ipt_totwomcnt.value;
- var com = input1.value;
- var cur_cnt = grd_totalschlst.rows;
-
- fMakeSchlst(grd_totalschlst , fromdd, todd, fromtm, totm, term, man, wom, com, true/*sex*/, false/*week*/ );
-
- for(i=cur_cnt; i<grd_totalschlst.rows; i++){
- grd_totalschlst.addStatus(i, "insert");
- }
- grd_totalschlst.refresh();
- }
- /**==========================================================================================================================
- * 종합건진 전체/결과상담 일정관리- 중복일자/시간 check.
- *============================================================================================================================*/
- function fCheckDupDateTime(vGrdObj, vRsrvdd, vRsrvtm){
- if(vGrdObj == null) return false;
-
- var rsv_cnt = vGrdObj.rows;
- var sNode = vGrdObj.nodeset+ "[";
- for(var i=1; i<rsv_cnt; i++){
- if((vRsrvdd == model.getValue(sNode + i + "]/rsrvdd")) && (vRsrvtm == model.getValue(sNode + i + "]/rsrvtm" ))){
- return false;
- }
- }
- return true;
- }
-
- /**==========================================================================================================================
- * 검사실별 일별 인원관리 일정 생성
- *============================================================================================================================*/
- function fMakeRoomSch(){
- var fromdd = ipt_roomfromdd.value;
- var todd = ipt_roomtodd.value;
- if(fCheckTerm(fromdd, todd, "D") < 0) return;
-
- if(submit("TRAHB01509") == false){
- messageBox("병원일정(공휴일여부)을 관리정보를 조회중 오류", "E008");
- return;
- }
-
- var holiday = "";
- var holidayNode = null;
- var dateFrom = fromdd.toDate();
- var dateTo = todd.toDate();
- var cnt = grd_roomlst.rows;
- var sNode = grd_roomschlst.nodeset+ "[";
- var j = grd_roomschlst.rows ;
- var cur_cnt = j;
- var roomcd = "";
- var psnocnt = "";
- var startdd = fromdd;
- var ret = "";
-
- for(var i=1; i<grd_roomlst.rows; i++){
- if(grd_roomlst.valueMatrix(i, 1) == "N") continue;
-
- roomcd = model.getValue(grd_roomlst.nodeset + "[" + i + "]/testroomcd" );
- psnocnt = model.getValue(grd_roomlst.nodeset + "[" + i + "]/cnt" );
- if(psnocnt == 0) psnocnt = model.getValue("/root/main/room/cnt");
-
- if(roomcd == "" ) continue;
-
- fromdd = startdd;
- dateFrom = fromdd.toDate();
- while(getDateInterval(fromdd, todd) >= 0){
- //중복값 skip
- if(!fCheckRoomDupDate(fromdd, roomcd)){
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- continue;
- }
-
- ret = dateFrom.getDayOfWeek("N" );
- //일요일 skip, 토요일 skip
- if(((chx_roomsunyn.value == "Y" ) && (ret == "0")) || ((chx_roomsatyn.value == "Y") && (ret == "6"))){
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- continue;
- }
- //휴일 skip
- holidayNode = instance1.selectSingleNode("/root/temp/holiday");
- if(holidayNode != null){
- holidayNode = instance1.selectNodes("/root/temp/holiday/item");
- for(var h=1; h<=holidayNode.length; h++){
- holiday = model.getValue("/root/temp/holiday/item[" +h+ "]/basedd" );
- if(holiday == dateFrom.getDateFormat("YYYYMMDD")){
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- continue;
- }
- }
- }
-
- fCheckNodeExist(sNode + j + "]/rsrvdd" , true);
- fCheckNodeExist(sNode + j + "]/rsrvweek" , true);
- fCheckNodeExist(sNode + j + "]/testroomcd" , true);
- fCheckNodeExist(sNode + j + "]/psnnocnt" , true);
-
- model.setValue(sNode + j + "]/rsrvdd" , fromdd);
- model.setValue(sNode + j + "]/rsrvweek" , dateFrom.getDayOfWeek("K"));
- model.setValue(sNode + j + "]/testroomcd" , roomcd);
- model.setValue(sNode + j + "]/psnnocnt" , psnocnt);
-
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- j++;
- }
- }
- grd_roomschlst.refresh();
- for(i=cur_cnt; i<j; i++){
- grd_roomschlst.addStatus(i, "insert");
- }
- grd_roomschlst.refresh();
- }
-
- /**==========================================================================================================================
- * 검사실별 인원관리-중복일자/검사실 check.
- *============================================================================================================================*/
- function fCheckRoomDupDate(vRsrvdd, vRoomcd){
- var rsv_cnt = grd_roomschlst.rows ;
- var sNode = grd_roomschlst.nodeset+ "[";
- for(var i=1; i<rsv_cnt; i++){
- if((vRsrvdd == model.getValue(sNode + i + "]/rsrvdd")) && (vRoomcd == model.getValue(sNode + i + "]/testroomcd"))) return false;
- }
- return true;
- }
- /**==========================================================================================================================
- * 상담의별 상담예약일정 생성
- *============================================================================================================================*/
- function fMakeCnstSch(){
- var fromdd = ipt_cnstfromdd.value;
- var todd = ipt_cnsttodd.value;
- if( fCheckTerm(fromdd, todd, "D") < 0 ) return ;
-
- var cur_cnt = grd_cnstschlst.rows;
-
- var fromtm = ipt_cnstamfromtm.value;
- var totm = ipt_cnstamtotm.value;
- if( fCheckTerm(fromtm, totm, "T") < 0 ) return ;
- var term = parseInt( ipt_cnstamterm.value);
-
- if ((fromtm != '0000') && (totm != '0000')) {
- fMakeSchlst(grd_cnstschlst , fromdd, todd, fromtm, totm, term, 1, 0, 0, false, true );
- }
-
- var tfromtm = ipt_cnstfmfromtm.value;
- var ttotm = ipt_cnstfmtotm.value;
- if( fCheckTerm(tfromtm, ttotm, "T") < 0 ) return ;
- var tterm = parseInt( ipt_cnstfmterm.value);
-
- if ((tfromtm != '0000') && (ttotm != '0000')) {
- fMakeSchlst(grd_cnstschlst , fromdd, todd, tfromtm, ttotm, tterm, 1, 0, 0, false, true );
- }
-
- for( i = cur_cnt ; i < grd_cnstschlst.rows ; i++ ){
- grd_cnstschlst.addStatus(i, "insert");
- }
- grd_cnstschlst.refresh();
- }
-
- /*===================================================================================================================================================================================================
- * grid에 조건에 따른 스케쥴 생성
- * vGrdObj : 대상 grid
- * fromdd : 시작일시
- * todd : 종료일시
- * fromtm : 시작시간
- * totm : 종료시간
- * term : 시간간격
- * mancnt : 예약가능인원(남)
- * womcnt : 예약가능인원(여)
- * comcnt : 예약가능인원(공통)
- * bSexFg : 성별구분(false일 경우 예약가능인원은 mancnt로 들어감)
- * bWeekFg : 요일check여부(false일 경우 토/일요일만 check, true일 경우 월~토 중 check된 일자만 생성)
- *====================================================================================================================================================================================================
- */
- function fMakeSchlst(vGrdObj, fromdd, todd, fromtm, totm, term, mancnt, womcnt, comcnt, bSexFg, bWeekFg){
- if( vGrdObj == null ) return;
- if(submit("TRAHB01509") == false){
- messageBox("병원일정(공휴일여부)을 관리정보를 조회중 오류", "E008");
- return;
- }
-
- var holiday = "";
- var holidayNode = null;
- var i = 0;
- var cur_cnt = vGrdObj.rows;
- var j = cur_cnt;
- var sNode = vGrdObj.nodeset + "[";
- var curtm = fromtm;
- var ret = "";
- var dateFrom = fromdd.toDate();
- var dateTo = todd.toDate();
- var tmFrom = (fromdd + fromtm).toDate("YYYYMMDDhhmm");
- var tmTo = (todd + totm).toDate("YYYYMMDDhhmm");
-
- while(getDateInterval(fromdd, todd) >= 0){
- ret = dateFrom.getDayOfWeek("N");
-
- //중복값 skip
- if(!fCheckDupDateTime(vGrdObj, fromdd, fromtm)){
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- continue;
- }
- //일요일 skip, 토요일 skip
- if(!bWeekFg){
- if(((chx_totsunyn.value == "Y" ) && (ret == "0")) || ((chx_totsatyn.value == "Y" ) && (ret == "6" ))){
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- continue;
- }
- }else{
- //상담예약스케쥴 : 선택되지 않은 요일은 skip
- if((chx_mon.value != ret ) && (chx_tue.value != ret) && (chx_wed.value != ret) && ( chx_thu.value != ret ) && (chx_fri.value != ret ) && (chx_sat.value != ret )){
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- continue;
- }
- }
- //휴일 skip
- holidayNode = instance1.selectSingleNode("/root/temp/holiday");
- if(holidayNode != null){
- holidayNode = instance1.selectNodes("/root/temp/holiday/item");
- for(var h=1; h<=holidayNode.length; h++){
- holiday = model.getValue("/root/temp/holiday/item[" +h+ "]/basedd" );
- if(holiday == dateFrom.getDateFormat("YYYYMMDD")){
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- continue;
- }
- }
- }
- fromtm = curtm;
- tmFrom = (fromdd + fromtm).toDate("YYYYMMDDhhmm");
-
- while(getTimeInterval(fromtm, totm) >= 0){
- //vGrdObj.addRow();
- model.makeNode(sNode + j + "]/rsrvdd");
- model.setValue(sNode + j + "]/rsrvdd", fromdd);
-
- model.makeNode(sNode + j + "]/rsrvtm");
- model.setValue(sNode + j + "]/rsrvtm", fromtm);
-
- model.makeNode(sNode + j + "]/rsrvweek");
- model.setValue(sNode + j + "]/rsrvweek", dateFrom.getDayOfWeek("K"));
-
- if(bSexFg){
- model.makeNode(sNode + j + "]/psnnomancnt");
- model.makeNode(sNode + j + "]/psnnowomcnt");
- model.makeNode(sNode + j + "]/psnnocomcnt");
- model.setValue(sNode + j + "]/psnnomancnt", mancnt );
- model.setValue(sNode + j + "]/psnnowomcnt", womcnt);
- model.setValue(sNode + j + "]/psnnocomcnt", comcnt);
- }else{
- model.makeNode(sNode + j + "]/psnnocnt");
- model.setValue(sNode + j + "]/psnnocnt", mancnt );
- }
- tmFrom.getAddDate(term, "m");
- fromtm = tmFrom.getDateFormat("hhmm");
- j++;
- }
- dateFrom.getAddDate(1);
- fromdd = dateFrom.getDateFormat("YYYYMMDD");
- }
- vGrdObj.refresh();
- }
-
- /**==========================================================================================================================
- * 일자 check
- *============================================================================================================================*/
- function fCheckTerm(vFrom, vTo, vDTFlag){
- var ret = -1 ;
- if( vDTFlag = "D" ){
- ret = getDateInterval(vFrom, vTo) ;
- }
- else {
- ret = getTimeInterval(vFrom, vTo);
- }
-
- if( ret < 0 ) {
- alert("기간설정이 잘못되었습니다.");
- }
-
- return ret;
- }
- /**==========================================================================================================================
- * 건진전체예약일정내역 clear
- * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
- *==========================================================================================================================*/
- function fClearSch(vMode){
- if( vMode == "T" ) model.removeNodeset("/root/main/total/schlst/item");
- else
- if( vMode == "R" ) model.removeNodeset("/root/main/room/schlst/item");
- else
- if( vMode == "C" ) model.removeNodeset("/root/main/cnst/schlst/item");
- model.refresh();
- }
- /**==========================================================================================================================
- * 스케줄 조회
- * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
- *==========================================================================================================================*/
- function fGetSchList(vMode){
- model.removeNodeset("/root/temp/schlst/item");
- model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
- var sFromdd = "";
- var sTodd = "";
- var sDest = "";
-
- if( vMode == "T" ){
- sFromdd = ipt_totfromdd.value;
- sTodd = ipt_tottodd.value;
- sDest = "/root/main/total/schlst";
- }else if( vMode == "R" ){
- sFromdd = ipt_roomfromdd.value;
- sTodd = ipt_roomtodd.value;
- sDest = "/root/main/room/schlst";
- //model.setValue("/root/send/srchroomcd", grd_roomlst.valueMatrix(grd_roomlst.row,2) );
- }else if( vMode == "C" ){
- sFromdd = ipt_cnstfromdd.value;
- sTodd = ipt_cnsttodd.value;
- sDest = "/root/main/cnst/schlst";
- model.setValue("/root/send/srchcnstdrid", model.getValue("/root/main/cnst/cnstdrid"));
- }else{
- return;
- }
-
- model.removeNodeset(sDest + "/item" );
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchcond" , vMode);
- model.setValue("/root/send/srchfromdd" , sFromdd );
- model.setValue("/root/send/srchtodd" , sTodd );
- model.setValue("/root/send/srchhealexamdetlflag" , cmb_healexamdetlflag.value);
-
- //if( ! fCheckTerm(sFromdd, sTodd, "D") )return ;
-
- submit("TRAHB01501");
- var temp = instance1.selectSingleNode("/root/temp/schlst/item");
- if( temp != null ) {
- copyNodeType(sDest, "/root/temp/schlst", "replace");
- model.refresh();
- }
- }
- /**==========================================================================================================================
- * 스케줄 저장
- * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리
- * vCaseFg : 일정생성(I)/ 수정(U) case구분
- *==========================================================================================================================*/
- function fSaveSch(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj, vCaseFg) {
- if( !fCheckSaveSchData(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj) ) {
- alert("저장할 내역이 없습니다.");
- return ;
- }
- model.resetInstanceNode("/root/send/save");
- model.setValue("/root/send/save/healexamflag", m_vHealexamflag );
- if(m_vHealexamflag == "G") {
- model.setValue("/root/send/save/healexamdetlflag", cmb_healexamdetlflag.value );
- }else{
- model.setValue("/root/send/save/healexamdetlflag", cmb_healexamdetlflag.value);
- }
- model.setValue("/root/send/save/mode", vMode );
-
- var Tmp = "";
- if(vCaseFg == "U"){
- if(vMode == "C"){
- Tmp = cmb_srchcnstdrid.value;
- if(Tmp == ""){
- messageBox("상담의를 선택하세요", "E999");
- return ;
- }
- model.setValue("/root/send/save/cnstdrid" , Tmp);
- }else if(vMode == "R"){
- /*
- Tmp = cmb_srchroomcd.value;
- if( Tmp == "" ) {
- messageBox("검사실을 선택하세요", "E999");
- return;
- }
- model.setValue("/root/send/save/roomcd", Tmp);
- */
- }
- model.setValue("/root/send/save/rsrvdd", fGetCalendarDate(grd_calendar));
- }else if( vCaseFg = "I" ){
- if(vMode == "C"){
- Tmp = cmb_cnstdrid.value;
- if(Tmp == ""){
- messageBox("상담의를 선택하세요", "E999");
- return ;
- }
- model.setValue("/root/send/save/cnstdrid", Tmp);
- }
- }
-
- if( vMode == "T" ){
- model.setValue("/root/send/save/savetotal" , vTotGrdObj.getUpdateData());
- }else if( vMode == "R" ){
- model.setValue("/root/send/save/saveroom" , vRoomGrdObj.getUpdateData());
- }else if( vMode == "C" ){
- model.setValue("/root/send/save/savecnst" , vCnstGrdObj.getUpdateData());
- }else{
- model.setValue("/root/send/save/savetotal" , vTotGrdObj.getUpdateData());
- model.setValue("/root/send/save/saveroom" , vRoomGrdObj.getUpdateData());
- model.setValue("/root/send/save/savecnst" , vCnstGrdObj.getUpdateData());
- }
-
- if(submit("TXAHB01501") == true){
- if(vCaseFg == "I"){
- fGetSchList(vMode);
- }else{
- fGetRsrvSchList(2);
- fGetRsrvSchList(1);
- }
- }
- }
-
- /**==========================================================================================================================
- * 저장대상 데이터 check
- * vMode : T=> 건진전체일정관리, R: 검사실별 일별 인원관리, C: 상담의별 인원관리, 공란: all
- *==========================================================================================================================*/
- function fCheckSaveSchData(vMode, vTotGrdObj, vRoomGrdObj, vCnstGrdObj){
- var vSaveData = "";
- if( vMode == "T" ){
- vSaveData = getGridUpdateData(vTotGrdObj);
- if( vSaveData == "" ) return false;
- }
- else
- if( vMode == "R" ){
- vSaveData = getGridUpdateData(vRoomGrdObj);
- if( vSaveData == "" ) return false;
- }
- else
- if( vMode == "C" ){
- vSaveData =getGridUpdateData( vCnstGrdObj);
- if( vSaveData == "" ) return false;
- }
- else {
- if( (getGridUpdateData(vTotGrdObj ) == "" ) && (getGridUpdateData(vRoomGrdObj ) == "" ) && (getGridUpdateData(vCnstGrdObj) == "")
- ) return false;
- }
-
- return true;
- }
- /**==========================================================================================================================
- * 월별 일별 스케쥴내역 조회. (달력으로 조회~~)
- * vMode : 1 : 일자별 시간대별 가능인원 조회( 시간대만 조회)
- 2 : 월별 일자별 가능 인원 조회(달력만 조회~)
- *==========================================================================================================================*/
- function fGetRsrvSchList(vMode ){
-
- model.removeNodeset("/root/temp/templst");
- model.removeNodeset(grd_rsrvpatlst.nodeset);
- model.removeNodeset(grd_rsrvtmlst.nodeset);
- model.setValue("/root/send/srchcond", rdo_srchcond2.value);
-
-
- var sRsrvMon = model.getValue("/root/temp/calendar/year") + model.getValue("/root/temp/calendar/month") ;
- fCheckNodeExist("/root/send/srchhealexamflag" , true);
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag );
- fCheckNodeExist("/root/send/srchrsrvmon" , true);
- model.setValue( "/root/send/srchrsrvmon" , sRsrvMon);
- model.setValue("/root/send/srchcnstdrid" , cmb_srchcnstdrid.value);
- model.setValue("/root/send/srchroomcd" , cmb_srchroomcd.value);
- if (cmb_healexamdetlflag.value=="") {
- model.setValue("/root/send/srchhealexamdetlflag", m_vHealexamdetlflag);
- } else {
- model.setValue("/root/send/srchhealexamdetlflag", cmb_healexamdetlflag.value);
- }
-
- var sNode = null;
- if( vMode == 1 ) {
- model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
- model.setValue("/root/send/srchfromdd" , fGetCalendarDate(grd_calendar) );
- model.setValue("/root/send/srchtodd" , fGetCalendarDate(grd_calendar) );
- submit("TRAHB01501");
- sNode = instance1.selectSingleNode("/root/temp/schlst/item");
- if( sNode != null ) {
- copyNodeListType("/root/main/schedule/rsrvtmlst", "/root/temp/schlst/item", "replace" );
- }
- }
- else
- if( vMode == 2 ) {
- model.setValue("/root/send/srchrsrvdd" , "" );
- submit("TRAHB01503");
- 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" ) ;
- }
- }
- }
-
- model.refresh();
- }
- /**==========================================================================================================================
- * 예약시간 선택 시 해당 일자 예약자 리스트 조회
- @author : 김다영
- @version : 2007-10-08
- *==========================================================================================================================*/
- function fGetRsrvPatList(srchcond2){
-
- //건진전체일정 , 검사실예약인원 리스트 조회
-
- if(rdo_srchcond2.value == "T" || rdo_srchcond2.value == "R"){
-
- model.removeNodeset("/root/main/schedule/rsrvacptlst");
- var sRsrvDate = fGetCalendarDate(grd_calendar);
- var sHealExamFlag = m_vHealexamflag;
- var sStatFg = "C";
-
- model.setValue("/root/send/srchhealexamflag" , sHealExamFlag);
- model.setValue("/root/send/srchstatfg" , sStatFg);
- model.setValue("/root/send/srchdateyn" , "Y");
- model.setValue("/root/send/srchrsltcnstrsrvdd" , sRsrvDate);
- 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);
- model.setValue("/root/send/srchcnstdrid" , "");
- submit("TRAHA00401");
-
- }
-
- else if(rdo_srchcond2.value == "C"){
-
- model.removeNodeset("/root/main/schedule/rsrvacptlst");
- var sRsrvDate = fGetCalendarDate(grd_calendar);
- var sHealExamFlag = m_vHealexamflag;
-
- model.setValue("/root/send/srchhealexamflag" , sHealExamFlag);
- model.setValue("/root/send/srchrsltcnstrsrvdd" , sRsrvDate);
- 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);
- submit("TRAHA00901");
- }
-
- }
- /**==========================================================================================================================
- * 전제삭제 함수
- @author : 김다영
- @version : 2007-10-08
- *==========================================================================================================================*/
- function fDeleteAllRows(vGrd) {
- for(var i = 1; i < vGrd.rows; i++) {
- vGrd.isSelected(i) = true;
- }
- deleteSelectedRows(vGrd,true);
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,737;2,750;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">예약일정관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
- <switch id="switch1" widt6h="1195px" style="left:0px; top:25px; width:1194px; height:707px; border-color:#c0a8c8; border-width:1; border-style:solid; ">
- <case id="case_cret" selected="true">
- <input id="ipt_totfromdd" ref="/root/main/total/fromdd" class="input_essential" inputtype="date" style="left:68px; top:28px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_tottodd");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSchList("T");
- ]]>
- </script>
- </input>
- <input id="ipt_tottodd" ref="/root/main/total/todd" class="input_essential" inputtype="date" style="left:189px; top:29px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_totfromtm");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSchList("T");
- ]]>
- </script>
- </input>
- <input id="ipt_totfromtm" ref="/root/main/total/fromtm" class="input_default" imemode="alpha" maxlength="4" format="hh:nn" style="left:68px; top:53px; width:43px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_tottotm");
- ]]>
- </script>
- </input>
- <input id="ipt_tottotm" ref="/root/main/total/totm" class="input_default" imemode="alpha" maxlength="4" format="hh:nn" style="left:125px; top:53px; width:43px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_tottermtm");
- ]]>
- </script>
- </input>
- <input id="ipt_tottermtm" ref="/root/main/total/termtm" class="input_default" style="left:207px; top:52px; width:55px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_totmancnt");
- ]]>
- </script>
- </input>
- <input id="ipt_totmancnt" ref="/root/main/total/mancnt" class="input_default" style="left:96px; top:78px; width:40px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_totwomcnt");
- ]]>
- </script>
- </input>
- <input id="ipt_totwomcnt" ref="/root/main/total/womcnt" class="input_default" style="left:187px; top:78px; width:40px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("input1");
- ]]>
- </script>
- </input>
- <button id="btn_totalmake" class="btn2_letter2" style="left:350px; top:78px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("스케쥴 생성하고 있습니다.");
- fMakeTotSch();
- closeLoadingBar();
- fMoveFocus("btn_totsave");
- ]]>
- </script>
- </button>
- <caption id="caption6" class="cell_1" style="left:5px; top:51px; width:61px; height:23px; vertical-align:middle; ">시간</caption>
- <caption id="caption13" class="search_no_b" style="left:174px; top:30px; width:12px; height:17px; ">~</caption>
- <line id="line6" class="line_1" style="x1:5px; y1:22px; x2:392px; y2:22px; "/>
- <caption id="caption14" class="tit_2" style="left:5px; top:7px; width:170px; height:14px; ">건진전체예약스케쥴생성</caption>
- <caption id="caption16" class="cell_1" style="left:174px; top:50px; width:31px; height:23px; vertical-align:middle; ">간격</caption>
- <caption id="caption31" class="cell_1" style="left:5px; top:27px; width:61px; height:23px; vertical-align:middle; ">기간</caption>
- <caption id="caption38" class="search_no_b" style="left:266px; top:53px; width:18px; height:17px; ">분</caption>
- <caption id="caption45" class="cell_1" style="left:5px; top:76px; width:61px; height:23px; vertical-align:middle; ">인원</caption>
- <caption id="caption70" class="search_no_b" style="left:138px; top:79px; width:18px; height:17px; ">명</caption>
- <datagrid id="grd_totalschlst" nodeset="/root/main/total/schlst/item" caption="일자^요일^시간^남자^여자^공통" colsep="^" colwidth="90, 35, 60, 50, 50, 50" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:127px; width:387px; height:571px; ">
- <col ref="rsrvdd" type="inputdate"/>
- <col ref="rsrvweek"/>
- <col ref="rsrvtm" type="input" format="hh:nn"/>
- <col ref="psnnomancnt" type="input"/>
- <col ref="psnnowomcnt" type="input"/>
- <col ref="psnnocomcnt" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idx = grd_totalschlst.row;
- if( idx < 1) return ;
- if( grd_totalschlst.col == 1){
- var rsrvdd = grd_totalschlst.valueMatrix(idx, 1);
- if( ! isValidDateTime(rsrvdd, "YYYYMMDD") ) return ;
-
- grd_totalschlst.valueMatrix(idx, 2) = rsrvdd.toDate("YYYYMMDD").getDayOfWeek("K");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line12" class="line_2" style="x1:5px; y1:49px; x2:392px; y2:49px; "/>
- <button id="btn_totclear" class="btn2_letter3" style="left:93px; top:102px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClearSch("T");
- //fGetSchList("T");
- ]]>
- </script>
- </button>
- <button id="btn_totadd" class="btn2_letter2" style="left:149px; top:102px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_totalschlst.addRow();
- grd_totalschlst.col= 1;
- grd_totalschlst.valueMatrix(grd_totalschlst.row, 1) = getCurrentDate();
- grd_totalschlst.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_totdel" class="btn2_letter2" style="left:194px; top:102px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_totalschlst.addStatus(grd_totalschlst.row, "delete");
- deleteSelectedRows(grd_totalschlst, true);
- ]]>
- </script>
- </button>
- <button id="btn_totalldel" class="btn2_letter4" style="left:239px; top:102px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteAllRows(grd_totalschlst);
- ]]>
- </script>
- </button>
- <caption id="caption71" class="tit_2" style="left:5px; top:108px; width:88px; height:14px; ">스케줄내역</caption>
- <line id="line13" class="line_1" style="x1:5px; y1:123px; x2:392px; y2:123px; "/>
- <line id="line19" class="line_3" style="x1:5px; y1:99px; x2:392px; y2:99px; "/>
- <caption id="caption11" class="search_no_b" style="left:229px; top:79px; width:18px; height:17px; ">명</caption>
- <caption id="caption12" class="cell_1" style="left:68px; top:76px; width:26px; height:23px; vertical-align:middle; ">남</caption>
- <button id="btn_totsave" class="btn5_letter6" style="left:306px; top:102px; width:86px; height:19px; ">
- <caption>스케줄 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/temp/srchdel/srchrow/rowcnt");
- model.setValue("/root/send/srchcond", "T");
- submit("TRAHB01507");
-
- if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") > 0){
- if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 예약일정 내역이 존재합니다. 예약일정 내역을", "Q002") != 6) return;
- fSaveSch("T", grd_totalschlst , null, null, "I") ;
- }else{
- if(messageBox("예약일정 내역을", "Q002") != 6) return;
- fSaveSch("T", grd_totalschlst , null, null, "I") ;
- }
-
- // if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") == "0"){
- // if(messageBox("건진예약일정내역을", "Q002") != 6) return;
- // fSaveSch("T", grd_totalschlst , null, null, "I") ;
- // }else{
- // if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 예약일정내역이 존재합니다. 예약 취소후에 변경, 삭제가 가능 합니다. 저장에", "E009") != 6) return;
- // }
- ]]>
- </script>
- </button>
- <datagrid id="grd_roomschlst" nodeset="/root/main/room/schlst/item" caption="일자^요일^검사실^인원" colsep="^" colwidth="85, 34, 170, 52" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:800px; top:288px; width:387px; height:410px; ">
- <col ref="rsrvdd" type="inputdate"/>
- <col ref="rsrvweek"/>
- <col disabled="true" ref="testroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/room/roomlst/itemroom">
- <label ref="testroomnm"/>
- <value ref="testroomcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="psnnocnt" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var idx = grd_roomschlst.row;
- if( idx < 1) return ;
- if( grd_roomschlst.col == 1){
- var rsrvdd = grd_roomschlst.valueMatrix(idx, 1);
- if( ! isValidDateTime(rsrvdd, "YYYYMMDD") ) return ;
-
- grd_roomschlst.valueMatrix(idx, 2) = rsrvdd.toDate("YYYYMMDD").getDayOfWeek("K");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line16" class="line_1" style="x1:800px; y1:285px; x2:1187px; y2:285px; "/>
- <line id="line18" class="line_3" style="x1:800px; y1:261px; x2:1187px; y2:261px; "/>
- <caption id="caption36" class="tit_2" style="left:800px; top:7px; width:226px; height:14px; ">검사실별 예약스케줄생성</caption>
- <line id="line20" class="line_1" style="x1:800px; y1:22px; x2:1187px; y2:22px; "/>
- <caption id="caption32" class="cell_1" style="left:801px; top:27px; width:61px; height:23px; vertical-align:middle; ">기간</caption>
- <caption id="caption33" class="search_no_b" style="left:970px; top:30px; width:12px; height:17px; ">~</caption>
- <input id="ipt_roomfromdd" ref="/root/main/room/fromdd" class="input_essential" inputtype="date" style="left:864px; top:28px; width:100px; height:19px; "/>
- <input id="ipt_roomtodd" ref="/root/main/room/todd" class="input_essential" inputtype="date" style="left:985px; top:29px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSchList("R");
- ]]>
- </script>
- </input>
- <select id="chx_roomsatyn" ref="/root/main/room/satyn" overflow="visible" appearance="full" style="left:1095px; top:30px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>토요일제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chx_roomsunyn" ref="/root/main/room/sunyn" visibility="hidden" overflow="visible" appearance="full" style="left:1050px; top:55px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일요일제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <input id="ipt_roomcnt" ref="/root/main/room/cnt" class="input_default" style="left:864px; top:54px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- var cnt = ipt_roomcnt.currentText ;
- for( var i = 1; i < grd_roomlst.rows ; i++){
- model.setValue(grd_roomlst.nodeset + "[" + i + "]/cnt" , cnt);
- }
- fMoveFocus("btn_roommake");
- }
- ]]>
- </script>
- </input>
- <button id="btn_roommake" class="btn2_letter2" style="left:1145px; top:54px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("스케쥴 생성하고 있습니다.");
- fMakeRoomSch();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <datagrid id="grd_roomlst" nodeset="/root/init/room/roomlst/itemroom" caption="선택^검사실코드^검사실명^인원" colsep="^" colwidth="32, 67, 186, 52" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:800px; top:77px; width:387px; height:183px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="testroomcd"/>
- <col ref="testroomnm"/>
- <col ref="cnt" type="input"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_roomlst.row < 1) return;
- fGetSchList("R");
- ]]>
- </script>
- </datagrid>
- <button id="btn_roomclear" class="btn2_letter3" style="left:887px; top:265px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClearSch("R");
- fGetSchList("R");
- ]]>
- </script>
- </button>
- <button id="btn_roomadd" class="btn2_letter2" style="left:943px; top:265px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_roomschlst.addRow();
- grd_roomschlst.col = 1;
- grd_roomschlst.valueMatrix(grd_roomschlst.row, 1) = getCurrentDate();
- grd_roomschlst.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_roomdel" class="btn2_letter2" style="left:988px; top:265px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_roomschlst, true);
- ]]>
- </script>
- </button>
- <button id="btn_roomsave" class="btn5_letter6" style="left:1100px; top:265px; width:86px; height:19px; ">
- <caption>스케줄 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("검사실별 일별 예약인원 설정내역을", "Q002") != 6) return;
- fSaveSch("R", null , grd_roomschlst, null, "I");
- //fGetSchList("R");
- ]]>
- </script>
- </button>
- <caption id="caption37" class="tit_2" style="left:800px; top:271px; width:82px; height:14px; ">스케줄내역</caption>
- <line id="line21" class="line_2" style="x1:800px; y1:50px; x2:1187px; y2:50px; "/>
- <caption id="caption7" class="search_no_b" style="left:113px; top:55px; width:12px; height:17px; ">~</caption>
- <select id="chx_totsatyn" ref="/root/main/total/satyn" overflow="visible" appearance="full" style="left:300px; top:29px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>토요일제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chx_totsunyn" ref="/root/main/total/sunyn" visibility="hidden" overflow="visible" appearance="full" style="left:305px; top:50px; width:80px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>일요일제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_roomalldel" class="btn2_letter4" style="left:1033px; top:265px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteAllRows(grd_roomschlst);
- ]]>
- </script>
- </button>
- <caption id="caption34" class="cell_1" style="left:801px; top:52px; width:61px; height:23px; vertical-align:middle; ">인원</caption>
- <line id="line7" class="line_3" style="x1:800px; y1:75px; x2:1187px; y2:75px; "/>
- <line id="line17" class="line_2" style="x1:5px; y1:74px; x2:392px; y2:74px; "/>
- <caption id="caption35" class="cell_1" style="left:159px; top:76px; width:26px; height:23px; vertical-align:middle; ">여</caption>
- <caption id="caption39" class="search_no_b" style="left:970px; top:55px; width:18px; height:17px; ">명</caption>
- <line id="line8" class="line_1" style="x1:395px; y1:147px; x2:793px; y2:147px; "/>
- <select id="chx_thu" ref="/root/main/cnst/week/thuyn" overflow="visible" appearance="full" cols="6" style="left:576px; top:54px; width:44px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>목</label>
- <value>4</value>
- </item>
- </choices>
- </select>
- <datagrid id="grd_cnstschlst" nodeset="/root/main/cnst/schlst/item" caption="일자^요일^시간^인원" colsep="^" colwidth="108, 49, 97, 95" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:395px; top:152px; width:398px; height:546px; ">
- <col ref="rsrvdd" type="inputdate"/>
- <col ref="rsrvweek"/>
- <col ref="rsrvtm" type="input" format="hh:nn"/>
- <col ref="psnnocnt" type="input" format="999"/>
- </datagrid>
- <line id="line10" class="line_3" style="x1:395px; y1:121px; x2:793px; y2:121px; "/>
- <button id="btn_cnstclear" class="btn2_letter3" style="left:494px; top:127px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClearSch("C");
- fGetSchList("C");
- ]]>
- </script>
- </button>
- <caption id="caption30" class="search_no_b" style="left:542px; top:103px; width:18px; height:17px; ">~</caption>
- <line id="line11" class="line_1" style="x1:395px; y1:22px; x2:793px; y2:22px; "/>
- <caption id="caption20" class="tit_2" style="left:395px; top:132px; width:98px; height:13px; ">스케줄내역</caption>
- <select id="chx_sat" ref="/root/main/cnst/week/satyn" overflow="visible" appearance="full" cols="6" style="left:660px; top:54px; width:44px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>토</label>
- <value>6</value>
- </item>
- </choices>
- </select>
- <select id="chx_tue" ref="/root/main/cnst/week/tueyn" overflow="visible" appearance="full" cols="6" style="left:488px; top:54px; width:44px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>화</label>
- <value>2</value>
- </item>
- </choices>
- </select>
- <input id="ipt_cnstfromdd" ref="/root/main/cnst/fromdd" class="input_essential" inputtype="date" style="left:443px; top:28px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_cnsttodd");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSchList("C");
- ]]>
- </script>
- </input>
- <input id="ipt_cnsttodd" ref="/root/main/cnst/todd" class="input_essential" inputtype="date" style="left:557px; top:28px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("cmb_cnstdrid");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSchList("C");
- ]]>
- </script>
- </input>
- <select1 id="cmb_cnstdrid" ref="/root/main/cnst/cnstdrid" class="combo_essential" appearance="minimal" style="left:704px; top:28px; width:88px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cnst/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fMoveFocus("ipt_cnstamfromtm");
- fGetSchList("C");
- ]]>
- </script>
- </select1>
- <input id="ipt_cnstamfromtm" ref="/root/main/cnst/amfromtm" class="input_default" format="hh:nn" style="left:492px; top:77px; width:46px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_cnstamtotm");
- ]]>
- </script>
- </input>
- <input id="ipt_cnstamtotm" ref="/root/main/cnst/amtotm" class="input_default" format="hh:nn" style="left:557px; top:77px; width:46px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_cnstamterm");
- ]]>
- </script>
- </input>
- <input id="ipt_cnstamterm" ref="/root/main/cnst/amterm" class="input_default" format="nn" style="left:655px; top:77px; width:46px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_cnstfmfromtm");
- ]]>
- </script>
- </input>
- <input id="ipt_cnstfmfromtm" ref="/root/main/cnst/fmfromtm" class="input_default" format="hh:nn" style="left:492px; top:101px; width:46px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_cnstfmtotm");
- ]]>
- </script>
- </input>
- <input id="ipt_cnstfmtotm" ref="/root/main/cnst/fmtotm" class="input_default" format="hh:nn" style="left:557px; top:101px; width:46px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_cnstfmterm");
- ]]>
- </script>
- </input>
- <input id="ipt_cnstfmterm" ref="/root/main/cnst/fmterm" class="input_default" format="nn" style="left:655px; top:101px; width:46px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("btn_cnstmake");
- ]]>
- </script>
- </input>
- <button id="btn_cnstmake" class="btn2_letter2" style="left:751px; top:100px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("스케쥴 생성하고 있습니다.");
- fMakeCnstSch();
- closeLoadingBar();
- fMoveFocus("btn_savecnst");
- ]]>
- </script>
- </button>
- <button id="btn_savecnst" class="btn5_letter6" style="left:706px; top:127px; width:86px; height:19px; ">
- <caption>스케줄 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/temp/srchdel/srchrow/rowcnt");
- model.setValue("/root/send/srchcond", "C");
- submit("TRAHB01507");
-
- if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") > 0){
- if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 상담예약 내역이 존재합니다. 상담예약 내역을", "Q002") != 6) return;
- fSaveSch("C", null , null, grd_cnstschlst , "I");
- }else{
- if(messageBox("상담예약 내역을", "Q002") != 6) return;
- fSaveSch("C", null , null, grd_cnstschlst , "I");
- }
-
- // if(model.getValue("/root/temp/srchdel/srchrow/rowcnt") == "0"){
- // if(messageBox("상담의별 예약스케쥴 내역을", "Q002") != 6) return;
- // fSaveSch("C", null , null, grd_cnstschlst , "I");
- // }else{
- // if(messageBox(model.getValue("/root/temp/srchdel/srchrow/rowcnt") + " 건의 예약상담 내역이 존재합니다. 상담취소후에 변경, 삭제가 가능 합니다. 저장에", "E009") != 6) return;
- // }
- ]]>
- </script>
- </button>
- <caption id="caption21" class="cell_1" style="left:395px; top:27px; width:46px; height:23px; vertical-align:middle; ">일자</caption>
- <select id="chx_wed" ref="/root/main/cnst/week/wedyn" overflow="visible" appearance="full" cols="6" style="left:532px; top:54px; width:44px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>수</label>
- <value>3</value>
- </item>
- </choices>
- </select>
- <caption id="caption22" class="cell_1" style="left:606px; top:100px; width:46px; height:23px; vertical-align:middle; ">간격</caption>
- <line id="line14" class="line_2" style="x1:395px; y1:49px; x2:793px; y2:49px; "/>
- <caption id="caption23" class="search_no_b" style="left:542px; top:30px; width:12px; height:17px; ">~</caption>
- <caption id="caption4" class="cell_1" style="left:606px; top:73px; width:46px; height:23px; vertical-align:middle; ">간격</caption>
- <caption id="caption24" class="tit_2" style="left:394px; top:7px; width:208px; height:13px; ">상담예약스케줄 생성</caption>
- <caption id="caption5" class="search_no_b" style="left:703px; top:78px; width:18px; height:17px; ">분</caption>
- <caption id="caption25" class="search_no_b" style="left:542px; top:78px; width:18px; height:17px; ">~</caption>
- <line id="line2" class="line_2" style="x1:395px; y1:97px; x2:793px; y2:97px; "/>
- <caption id="caption26" class="cell_1" style="left:443px; top:99px; width:46px; height:23px; vertical-align:middle; ">오후</caption>
- <caption id="caption27" class="cell_1" style="left:395px; top:51px; width:46px; height:23px; vertical-align:middle; ">요일</caption>
- <line id="line4" class="line_2" style="x1:395px; y1:74px; x2:793px; y2:74px; "/>
- <caption id="caption28" class="cell_1" style="left:655px; top:26px; width:46px; height:23px; vertical-align:middle; ">상담의</caption>
- <select id="chx_mon" ref="/root/main/cnst/week/monyn" overflow="visible" appearance="full" cols="6" style="left:443px; top:54px; width:44px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>월</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- <caption id="caption29" class="search_no_b" style="left:703px; top:103px; width:18px; height:17px; ">분</caption>
- <caption id="caption18" class="cell_1" style="left:443px; top:74px; width:46px; height:23px; vertical-align:middle; ">오전</caption>
- <select id="chx_fri" ref="/root/main/cnst/week/friyn" overflow="visible" appearance="full" cols="6" style="left:620px; top:54px; width:44px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>금</label>
- <value>5</value>
- </item>
- </choices>
- </select>
- <caption id="caption15" class="cell_1" style="left:395px; top:76px; width:46px; height:45px; vertical-align:middle; ">시간</caption>
- <button id="button1" class="btn2_letter4" style="left:639px; top:127px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteAllRows(grd_cnstschlst);
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" style="left:594px; top:127px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_cnstschlst, true);
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter2" style="left:549px; top:127px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_cnstschlst.addRow();
- grd_cnstschlst.col = 1;
- grd_cnstschlst.valueMatrix(grd_cnstschlst.row, 1) = getCurrentDate();
- grd_cnstschlst.editCell();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/total/comcnt" class="input_default" style="left:288px; top:78px; width:40px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("btn_totalmake");
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_no_b" style="left:330px; top:79px; width:18px; height:17px; ">명</caption>
- <caption id="caption41" class="cell_1" style="left:250px; top:76px; width:36px; height:23px; vertical-align:middle; ">공통</caption>
- <button id="button3" class="btn5_letter6" style="left:1099px; top:2px; width:86px; height:19px; ">
- <caption>부분영역저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 경고메세지
- messageBox(" !!!!!!!!!! 주의 요망 !!!!!!!!!! \n검사실 기간, 인원 재차 ","I007");
- // 부분영역수정저장가능하게 수정요청함.
- if( messageBox("설정하신 ##기간##, 선택하신 검사실 ##인원##으로", "Q002") != 6) return ;
-
- var fromdd = model.getValue("/root/main/room/fromdd");
- var todd = model.getValue("/root/main/room/todd");
-
- if(fromdd >= todd){
- messageBox("시작일이 종료일보다 클 수 ","I004");
- return;
- }
-
- model.setValue("/root/send/partchngroomcode/healexamflag", m_vHealexamflag );
- model.setValue("/root/send/partchngroomcode/healexamdetlflag", m_vHealexamdetlflag );
- model.setValue("/root/send/partchngroomcode/fromdd", fromdd);
- model.setValue("/root/send/partchngroomcode/todd", todd);
- model.setValue("/root/send/partchngroomcode/chnglist", grd_roomlst.getUpdateData());
-
- submit("TXAHB01502");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_modify">
- <group id="group2" style="left:5px; top:10px; width:1183px; height:35px; vertical-align:top; ">
- <shape id="shape2" class="roundrect" style="left:0px; top:0px; width:1183px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <button id="btn_searchcnnst" class="btn1_letter2" style="left:1115px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRsrvSchList(2);
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1084px; y1:5px; x2:1084px; y2:27px; "/>
- <caption id="cap_cnstdr" class="search_name" visibility="hidden" style="left:530px; top:9px; width:86px; height:17px; ">상담의 :</caption>
- <caption id="cap_room" class="search_name" visibility="hidden" style="left:530px; top:10px; width:75px; height:17px; ">검사실 :</caption>
- <select1 id="cmb_srchroomcd" ref="/root/main/schedule/srchroomcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:605px; top:8px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/room/roomlst/itemroom">
- <label ref="testroomnm"/>
- <value ref="testroomcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fHRefreshCalender("M", 0);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </select1>
- <select1 id="rdo_srchcond2" ref="/root/send/srchcond2" class="radio_search" appearance="full" cellspacing="30" cols="3" overflow="visible" style="left:105px; top:9px; width:405px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>건진전체일정</label>
- <value>T</value>
- </item>
- <item>
- <label>상담예약일정</label>
- <value>C</value>
- </item>
- <item>
- <label>검사실예약인원</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fHRefreshCalender("M", 0);
- fSetSrchCtrlState(rdo_srchcond2.value );
- fGetRsrvSchList(2);
-
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchcnstdrid" ref="/root/main/schedule/srchcnstdrid" class="combo_search" visibility="hidden" appearance="minimal" style="left:605px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cnst/drlst/itemdr">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fHRefreshCalender("M", 0);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </select1>
- <select id="chk_srchallroom" ref="/root/send/srchallroomyn" class="checkbox_search" overflow="visible" appearance="full" style="left:785px; top:9px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체검사실</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if( chk_srchallroom.value == "Y" ){
- cmb_srchroomcd.value = "";
- fHRefreshCalender("M", 0);
- fGetRsrvSchList(2);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- cmb_srchroomcd.select(0);
- fHRefreshCalender("M", 0);
- fGetRsrvSchList(2);
- ]]>
- </script>
- </select>
- </group>
- <caption id="caption17" class="tit_2" style="left:11px; top:57px; width:110px; height:14px; ">예약내역</caption>
- <line id="line9" class="line_1" style="x1:5px; y1:72px; x2:532px; y2:72px; "/>
- <line id="line15" class="line_2" style="x1:5px; y1:382px; x2:532px; y2:382px; "/>
- <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" rowheight="300" rowsep="|" selectionmode="free" mergecellsfixedrows="bycolrec" style="left:5px; top:116px; width:527px; 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[
- setCellColor(grd_calendar);
- fGetRsrvSchList(1);
- fGetRsrvPatList();
-
- //달력의 선택한 일자 일자비고일자에 셋팅.
- model.makeValue("/root/main/dayblist/remdd" , fGetCalendarDate(grd_calendar));
- ipt_remdd.refresh();
- btn_srch_dayb.dispatch("DOMActivate");
- ]]>
- </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_rsrvtmlst" nodeset="/root/main/schedule/rsrvtmlst/item" caption="시간^검사실코드^예약가능인원(남)^예약인원(남)^예약가능인원(여)^예약인원(여)^예약가능인원^예약인원" colsep="^" colwidth="58, 111, 100, 100, 100, 100, 100, 100" dataheight="23" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:537px; top:77px; width:649px; height:304px; ">
- <col ref="rsrvtm" type="input" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="testroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/room/roomlst/itemroom">
- <label ref="testroomnm"/>
- <value ref="testroomcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="psnnomancnt" type="input" style="text-align:right; "/>
- <col ref="rsrvpsnnomancnt" style="text-align:right; "/>
- <col ref="psnnowomcnt" type="input" style="text-align:right; "/>
- <col ref="rsrvpsnnowomcnt" style="text-align:right; "/>
- <col ref="psnnocnt" type="input" style="text-align:right; "/>
- <col ref="rsrvpsnnocnt" style="text-align:right; "/>
- </datagrid>
- <datagrid id="grd_rsrvpatlst" nodeset="/root/main/schedule/rsrvacptlst/item" caption="환자명^등록번호^주민번호^예약시간^건진명^최종수정자^최종수정일시" colsep="^" colwidth="93, 80, 127, 78, 181, 100, 161, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:450px; width:1183px; height:249px; ">
- <col ref="hngnm"/>
- <col ref="pid"/>
- <col ref="rgstno" style="text-align:center; "/>
- <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="pkgnm"/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="rsrvdd" visibility="hidden"/>
- </datagrid>
- <button id="btn_modify" class="btn5_letter2" style="left:1144px; top:52px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox( rdo_srchcond2.label + " 변경내역을 " , "Q002" ) != 6) return;
- fSaveSch(rdo_srchcond2.value , grd_rsrvtmlst , grd_rsrvtmlst, grd_rsrvtmlst , "U") ;
- ]]>
- </script>
- </button>
- <button id="btn_tmdel" class="btn2_letter5" style="left:1067px; top:52px; width:75px; height:19px; ">
- <caption>선택행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_rsrvtmlst, true);
- ]]>
- </script>
- </button>
- <button id="btn_tmadd" class="btn2_letter3" style="left:1012px; top:52px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_rsrvtmlst.addRow();
- grd_rsrvtmlst.col = 1;
- grd_rsrvtmlst.valueMatrix(grd_rsrvtmlst.row, 1) = getCurrentTime().substr(0, 4);
- grd_rsrvtmlst.editCell();
- ]]>
- </script>
- </button>
- <line id="line22" class="line_1" style="x1:537px; y1:72px; x2:1186px; y2:72px; "/>
- <caption id="caption40" class="tit_2" style="left:540px; top:57px; width:159px; height:14px; ">시간대별인원</caption>
- <group id="grp_calendar" style="left:5px; top:77px; 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>
- <line id="line23" class="line_2" style="x1:537px; y1:382px; x2:1186px; y2:382px; "/>
- <button id="btn_scheduletmclear" class="btn2_letter3" style="left:955px; top:52px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRsrvSchList(1);
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:389px; width:159px; height:13px; ">일자별 비고</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:404px; x2:1188px; y2:404px; "/>
- <textarea id="tar_remcnts" ref="/root/main/dayblist/remcnts" style="left:5px; top:409px; width:1183px; height:40px; "/>
- <button id="button2" class="btn5_letter2" style="left:1144px; top:384px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/dayblist/instcd" , getUserInfo("dutplceinstcd"));
- model.makeValue("/root/main/dayblist/instcd" , getUserInfo("dutplceinstcd"));
- submit("TXAHB01509",false);
- if(model.getValue("/root/main/dayblist/remdd") == ""){
- //해당 일자에 데이터가 없으므로 노드와 일자를 셋팅해줌
- model.makeNode("/root/main/dayblist/remcnts");
- model.makeValue("/root/main/dayblist/remdd" , fGetCalendarDate(grd_calendar));
- }
-
- tar_remcnts.refresh();
- ipt_remdd.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_srch_dayb" class="btn2_letter2" style="left:1100px; top:384px; 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));
- }
-
- tar_remcnts.refresh();
- ipt_remdd.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_remdd" ref="/root/main/dayblist/remdd" inputtype="date" style="left:100px; top:384px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_srch_dayb.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- </case>
- </switch>
- <button id="btn_schmngtcret" class="btn_sw" group="tab" selected="true" style="left:0px; top:4px; width:120px; height:22px; ">
- <caption>건진예약일정관리</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case_cret");
- ]]>
- </script>
- </button>
- <button id="btn_schmngtmodify" class="btn_sw" group="tab" selected="false" style="left:120px; top:4px; width:120px; height:22px; ">
- <caption>예약일정수정/조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case_modify");
- model.setValue("/root/main/schedule/srchcnstdrid", model.getValue("/root/init/cnst/drlst/itemdr[1]/drid"));
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:255px; top:5px; width:86px; height:17px; ">건진구분 :</caption>
- <select1 id="cmb_healexamdetlflag" ref="/root/init/baseinfo/healexamdetlflag" class="combo_default" visibility="hidden" appearance="minimal" style="left:343px; top:5px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (cmb_healexamdetlflag.value == 'C01') {
- m_vHealexamplacecd = 'S'
- } else if (cmb_healexamdetlflag.value == 'C03') {
- m_vHealexamplacecd = 'K'
- }
- model.makeValue("/root/send/srchhealexamdetlflag", cmb_healexamdetlflag.value );
- model.makeValue("/root/send/srchhealexamplacecd", m_vHealexamplacecd );
- fInitCtrl();
-
- model.setValue("/root/main/cnst/cnstdrid", model.getValue("/root/init/cnst/drlst/itemdr[1]/drid"));
- cmb_cnstdrid.refresh();
- grd_roomlst.refresh();
-
- btn_searchcnnst.disabled = ! checkAuth("R");
- btn_save.disabled = ! checkAuth("X");
- btn_print.disabled = ! checkAuth("P");
-
- fGetSchList("T");
- fGetSchList("C");
- fGetSchList("R");
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button26" class="btn3_letter4" style="left:59px; top:5px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|