12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>통합예약관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <rsrvposstmlist>
- <rsrvposstm>
- <rsrvtm/>
- <count/>
- <max/>
- </rsrvposstm>
- <rsrvlist>
- <srchrsrvtm/>
- <pid/>
- <hngnm/>
- <prcpcd/>
- <rgstdepthngnm/>
- </rsrvlist>
- <deptmemo>
- <memodt/>
- <memorem/>
- </deptmemo>
- <updtlist>
- <updtresndesc/>
- </updtlist>
- </rsrvposstmlist>
- <exculist>
- <mainordlist5>
- <check/>
- <rsrvflagyn/>
- <rcptyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <calcscorcd/>
- <prcpnm/>
- <excuroom/>
- <prcphopedd/>
- <srchrsrvtm/>
- <excutm/>
- <endtime/>
- <rsrvrem/>
- <excuroomnm/>
- <genrflag/>
- <prcpdd/>
- <execprcpuniqno/>
- <execprcpstatcd/>
- <prcpkindcd/>
- <excupartcd/>
- <indd/>
- <actorddd/>
- <orddrid/>
- <execrid/>
- <suppdeptcd/>
- <cnclrescd/>
- <pid/>
- <prcpdelivefact/>
- <rsrvplceflag/>
- <rsrvexcupossyn/>
- <rsrvexmptmplcd/>
- <tmpldata/>
- <rsrvflag/>
- <cretno/>
- <orddd/>
- <rsrvdt/>
- <excuroomcd/>
- <bf_srchrsrvtm/>
- <pacsnocretyn/>
- <rgsttm/>
- <rgstrid/>
- <orddeptcd/>
- <rsrvtmcntlyn/>
- <rsrvpsnnocntlyn/>
- <excucdrem/>
- <prcpgenrflag/>
- </mainordlist5>
- <subordlist2>
- <rsrvflagyn/>
- <rcptyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <execprcpstatcd/>
- <calcscorcd/>
- <prcpnm/>
- <excuroom/>
- <prcphopedd/>
- <srchrsrvtm/>
- <exectm/>
- <excutm/>
- <endtime/>
- <rsrvrem/>
- </subordlist2>
- <subordlist3>
- <rows>
- <pid/>
- <cmtdd/>
- <patcmt/>
- <iudgb/>
- </rows>
- </subordlist3>
- <mainordlist1>
- <ordnm/>
- <orddt/>
- <orddrnm/>
- <deptengabbr/>
- <orddd/>
- <pid/>
- <orddrid/>
- <orddeptcd/>
- </mainordlist1>
- <mainordlist2>
- <suminfo/>
- <orddt/>
- </mainordlist2>
- <mainordlist3>
- <opschedd/>
- </mainordlist3>
- <mainordlist4>
- <rsrvdt/>
- <prcpnm/>
- <basecdflagdesc/>
- <execprcpstatcd/>
- <acttime/>
- <usernm/>
- <rsrvrid/>
- </mainordlist4>
- <mainordlist6>
- <inhopedd/>
- </mainordlist6>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </exculist>
- <orddeptinfo>
- <orddeptlist>
- <orddeptcd/>
- </orddeptlist>
- </orddeptinfo>
- <exculist2>
- <subordlist2>
- <excuroomnm/>
- <prcpdd/>
- <prcpnm/>
- <calcscorcd/>
- <execprcpstatcd/>
- </subordlist2>
- </exculist2>
- <curfile>
- <filename/>
- <rtfcode/>
- </curfile>
- <rtflist/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <comment1>
- <prcpcmt/>
- </comment1>
- <popupendflag/>
- </main>
- <send>
- <data>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- </initexecroom>
- </cmb_info>
- <srchpid/>
- <hngnm/>
- <acptlistflag/>
- <orddd/>
- <rsrvdd/>
- <excuroomcd/>
- <suppdeptcd/>
- <suppdeptcd1/>
- <chkflag/>
- <rsrvdate/>
- <orddeptcd/>
- <autorsrvtmset>
- <autorsrvtm/>
- </autorsrvtmset>
- <excuroomnm/>
- <print/>
- <prcpgenrflag/>
- <excucd/>
- </data>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <cnclcd/>
- <flag/>
- <chkflag/>
- <data/>
- </req>
- <req1>
- <data/>
- </req1>
- <rtfcode/>
- <filename/>
- </send>
- <init>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- <userid/>
- </initexecroom>
- <initexecward>
- <execwardcdid/>
- <execwardcdnm/>
- </initexecward>
- </cmb_info>
- <curerprescondlist>
- <curerprescond>
- <userid/>
- <usernm/>
- </curerprescond>
- <rsrvcalendar>
- <rsrvdd/>
- <count/>
- <max/>
- </rsrvcalendar>
- <orddeptlist>
- <orddeptcd/>
- </orddeptlist>
- </curerprescondlist>
- <baseinfo>
- <initexecprcpstatcd/>
- </baseinfo>
- </init>
- <hidden>
- <calendar>
- <year/>
- <month/>
- <weeklist>
- <list>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- <sun_memo/>
- <mon_memo/>
- <tue_memo/>
- <wed_memo/>
- <thu_memo/>
- <fri_memo/>
- <sat_memo/>
- </list>
- </weeklist>
- <dd/>
- </calendar>
- <grdcellcolor>
- <calrow/>
- <calcol/>
- <bfcalrow/>
- <bfcalcol/>
- <color/>
- </grdcellcolor>
- <cnclcdlist>
- <cnclcd/>
- </cnclcdlist>
- <beforersrvtm>
- <rsrvdtlist>
- <before/>
- </rsrvdtlist>
- </beforersrvtm>
- <con>
- <date/>
- </con>
- <rsrvbtn>
- <rsrvyn/>
- </rsrvbtn>
- <autorsrvtmset>
- <autorsrvtm/>
- </autorsrvtmset>
- <boolcontrol>
- <bool/>
- </boolcontrol>
- <chkgam/>
- <orddeptcheck/>
- <tmp/>
- <rsrvrem/>
- </hidden>
- <reqdata>
- <srchcond/>
- <pid/>
- <hngnm/>
- </reqdata>
- <reqdata1>
- <subordlist3>
- <rows>
- <pid/>
- <cmtdd/>
- <patcmt/>
- <iudgb/>
- </rows>
- </subordlist3>
- </reqdata1>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
- model.removeNodeset("/root/main/exculist/subordlist3");
- aezfSetSuppDeptcd();
- model.setValue("/root/hidden/chkgam","");
- submit("TRAEA02002", false);
-
- //처방상태 공통코드 갖고오기
- zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
- submit("TRZBC00101", false);
-
- //grd_mainordlist5.fixedcellcheckbox(0,0)=true;
- model.removeNodeset("/root/hidden/beforersrvtm/rsrvdtlist"); //변경전 시간 담아놓는 그리드
-
- cmb_excuroom.select(3);
- //initCalendar();
- //setCurrentDate();
-
- model.toggle("case1");
- btn_case1.selected = true;
- btn_case2.selected = false;
-
- //타과링크시 등로
- //flag : T => 통합, A : 영상, S : 건진
- model.setValue("/root/send/data/chkflag", "T");
-
- /*
- param = "34104" + "▦" + "A" + "▦" + "2160000000";
- condarray = param.split("▦");
- model.setValue("/root/send/data/srchpid", condarray[0]);
- model.setValue("/root/send/data/chkflag", condarray[1]);
- model.setValue("/root/send/data/suppdeptcd1", condarray[2]);
- //btn_sea.dispatch("DOMActivate");
- */
-
- if ( model.getValue("/root/send/data/srchpid") != "" ) {
- btn_sea.dispatch("DOMActivate");
- }else
- if(checkOpener()) //opener 검사
- {
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
-
- if(param != "") // opener parameter value가 있는 경우
- {
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/send/data/srchpid", condarray[0]);
- model.setValue("/root/send/data/chkflag", condarray[1]);
- model.setValue("/root/send/data/suppdeptcd1", condarray[2]);
- btn_sea.dispatch("DOMActivate");
- }
- else // opener parameter가 없는 경우 화면 원무 정보 check
- {
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
-
- if(paminfo != "") //원무 정보(기본 정보)가 있는 경우
- {
- model.removeNodeset("/root/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
- model.makeNode("/root/paminfo");
- setCSVToNode("/root/paminfo", paminfo);
-
- //상단 정보를 이용하여 프로그램 수행
- var pid = model.getValue("/root/paminfo" + "/list/pid");
- model.setValue("/root/send/data/srchpid", pid);
- btn_sea.dispatch("DOMActivate");
- }
- else //원무 정보(기본 정보)가 없는 경우
- {
- //원무 정보가 없는 상태로 프로그램 수행
-
- }
- }
- }else {
- if ( model.getValue("/root/send/data/srchpid") != "" ) {
- btn_sea.dispatch("DOMActivate");
- }
- }
- model.setFocus("ipt_pid");
- if (model.getValue("/root/send/data/chkflag") != "T"){
- document.title = "자체예약관리";
- caption6.text = "자체예약관리";
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist"/>
- <submission id="TRAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
- <submission id="TRAEA02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAEA02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
- <submission id="TRAEA02010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
- <submission id="TXAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- <submission id="TXAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req1" replace="instance" resultref="/root/temp"/>
- <submission id="TRAEA02009" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/reqdata1"/>
- <bind id="bind_orddeptlist" ref="/root/main/orddeptinfo/orddeptlist/orddeptcd" readonly="../orddeptcd!=''"/>
- <bind id="bind_mainordlist5" ref="/root/main/exculist/mainordlist5/excuroom" readonly="../excuroom!=''"/>
- <submission id="TRAEA02008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/autorsrvtmset" replace="instance" resultref="/root/hidden/autorsrvtmset"/>
- <submission id="TRZBC00101"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력초기화
- */
-
- function initCalendar() {
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- //model.refresh();
-
- setCalendar(curDate);
-
- }
-
- function initCalendar2() {
-
- var curDate = getCurrentDate().toDate();
-
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- model.refresh();
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
-
- grd_calendar.rebuild();
-
- var dateObj = curDate;
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
-
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
-
- }
- }
- model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- }
-
-
- /* @group : 통합예약관리
- * @ver : 2007.05.18
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력에 일자별로 가용현황을 보여준다.
- */
-
- function setRsrvPresCondByMonth() {
- if (grd_mainordlist5.row > 0){
- model.setValue("/root/send/data/prcpgenrflag", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpgenrflag"));
- }
- submit("TRAEA02004");
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate();
-
- var startDay = isDate.getDay();
-
- grd_calendar.rebuildStyle();
-
- for (var i = 1; i < grd_temp.rows; i++) {
- var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
-
- //예약가능일자 녹색주기
- if(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") < model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max")){
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
- grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
- }
- }
- }
-
- function readfunc(){
- initCalendar2();
- setCurrentDate();
-
-
- model.removeNodeset("root/main/exculist/mainordlist1");
- model.removeNodeset("root/main/exculist/mainordlist2");
- model.removeNodeset("root/main/exculist/mainordlist3");
- model.removeNodeset("root/main/exculist/mainordlist4");
-
- model.removeNodeset("root/main/exculist/mainordlist5");
- model.setValue("/root/send/data/orddeptcd","");
- //model.resetInstanceNode("/root/send/data/cmb_info/initexecroom/excuroomcdid");
-
- model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
- model.removeNodeset("/root/hidden/beforersrvtm/rsrvdtlist");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/exculist/subordlist3");
- // 환자내역
- //submit("TRAEA02001");
- //처방현황
- model.setValue("/root/send/data/srchpid",model.getValue("/root/send/data/srchpid"));
- model.setValue("/root/send/data/orddd","");
-
- if (submit("TRAEA02010")){
- patcmt();
- }
- }
-
- /* @group : 통합예약관리
- * @ver : 2007.08.10
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 오늘날짜 달력에 표시
- */
-
- function setCurrentDate() {
-
- var curDate = getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if(curDate <10) {
- curDate= curDate.substr(1,1);
- }
-
- if(curWeek == "sun")
- model.setValue("/root/hidden/grdcellcolor/calcol",0);
- if(curWeek == "mon")
- model.setValue("/root/hidden/grdcellcolor/calcol",1);
- if(curWeek == "tue")
- model.setValue("/root/hidden/grdcellcolor/calcol",2);
- if(curWeek == "wed")
- model.setValue("/root/hidden/grdcellcolor/calcol",3);
- if(curWeek == "thu")
- model.setValue("/root/hidden/grdcellcolor/calcol",4);
- if(curWeek == "fri")
- model.setValue("/root/hidden/grdcellcolor/calcol",5);
- if(curWeek == "sat")
- model.setValue("/root/hidden/grdcellcolor/calcol",6);
-
- for(var i = 0 ; i <grd_calendar.rows; i++ ) {
- if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
- model.setValue("/root/hidden/grdcellcolor/calrow",i);
-
- }
- }
-
- setCellColor(grd_calendar);
- }
-
-
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
-
- function setCalendar(dateObj) {
-
- // 그리드 초기화
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
-
- grd_calendar.rebuild();
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- /*
- for( var i = 0; i < rows; i++ )
- grd_calendar.addRow(false);
-
- grd_calendar.rebuild();
- */
-
- if (rows != grd_calendar.rows - 1){
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- for( var i = 0; i < rows; i++ ){
- grd_calendar.addRow(false);
- }
- }else{
- model.setValue("/root/hidden/calendar/weeklist/list", "");
-
- }
- grd_calendar.rebuild();
- var rowIndex = grd_calendar.fixedRows;
- var colIndex = startDay;
- for( var i = 1; i <= days; i++ ) {
- grd_calendar.valueMatrix(rowIndex, colIndex) = i;
- grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
- colIndex++;
- if( colIndex == 7 ) {
- colIndex = 0;
- rowIndex++;
-
- }
- }
- model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
-
- setRsrvPresCondByMonth();
-
- }
-
-
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택날짜 색 주기
- */
-
- function setCellColor(gridObj) {
-
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- var white = 1; //#ffffff
- var green = 2; //#c4e693
-
-
- calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
- calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
-
- bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
- bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
-
-
- // 1. 원래 색으로 돌려놓기
- if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
- }
- else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
-
- if( bfcalCol < 7 )
- bfcalCol += 7;
- else
- bfcalCol -= 7;
-
- gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
- }
-
-
- // 2. bf 인스턴스에 선택한 원래 셀 담아두기
-
- if(gridObj.cellStyle("background-color", calRow, calCol) == "white" ) {
-
- model.setValue("/root/hidden/grdcellcolor/color", "1");
- }
- if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
-
- model.setValue("/root/hidden/grdcellcolor/color", "2");
- }
- model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
- model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
- //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
-
- // 3. 선택한 셀에 보라색 주기
-
-
- // gridObj.rebuildStyle();
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
- if( calCol < 7 )
- calCol += 7;
- else
- calCol -= 7;
-
- gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
-
-
- }
-
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약가능시간보여주기
- */
-
- function getRsrvPossTm(gridObj) {
-
- /*
- if(model.getValue("/root/send/ioflag") == "") {
- messageBox("입원,외래중","C002");
- return;
- } else if(model.getValue("/root/send/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- } else { */
-
- // var calRow = gridObj.row;
- // var calCol = gridObj.col;
- var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
- var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
-
- if( calCol >= 7 )
- calCol -= 7;
-
- var yyyy = model.getValue("/root/hidden/calendar/year");
- var mm = model.getValue("/root/hidden/calendar/month");
- var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
-
-
- if (getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
-
- model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
- /*
- if (gridObj.cellStyle("background-color", calRow, calCol) == "#daa7d9") {
- grd_temp2.addRow();
- grd_temp2.setValue("/root/send/rsrvdd[" + grd_temp2.bottomRow + "]/yyyymmdd", yyyy + mm + dd);
- }*/
- if (grd_mainordlist5.row > 0){
- model.setValue("/root/send/data/prcpgenrflag", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpgenrflag"));
- model.setValue("/root/send/data/excucd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
- }
- submit("TRAEA02005",false);
-
- model.refresh();
- // }
- }
-
-
- /* @group : 통합예약
- * @ver : 2007.07.03
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약, 취소 버튼의 click 이벤트 처리
- */
- function exeRsrvTransaction(str) {
-
- var sColSep = "▦";
- var sRowSep = "▩";
- var rCSV = "";
-
- // PACS연동하기 위해 추가함. 20071017,장준원
- // pacsnocretyn,rgsttm,rgstrid,prcpdelivefact,orddepthngnm,prcpnm,orddd,rgstdepthngnm
- rCSV += "pid" + sColSep + "excuroomcd" + sColSep +"prcpdd" + sColSep + "execprcpuniqno" + sColSep + "rsrvflag" + sColSep + "rsrvdt" + sColSep + "srchrsrvtm" + sColSep + "prcpkindcd" + sColSep + "excupartcd" + sColSep + "indd" + sColSep + "actorddd" + sColSep + "orddeptcd" + sColSep + "orddrid" + sColSep + "calcscorcd" + sColSep+ "execrid" + sColSep+ "rsrvrem" + sColSep +"suppdeptcd" + sColSep+ "cnclresncd" + sColSep+ "pacsnocretyn" + sColSep+ "rgsttm" + sColSep+ "rgstrid" + sColSep+ "prcpdelivefact" + sColSep+ "orddepthngnm" + sColSep+ "prcpnm" + sColSep+ "orddd" + sColSep+ "rgstdepthngnm"+ sColSep+ "examroomnm" + sColSep+ "bf_srchrsrvtm" + sColSep+ "rsrvflagyn" + sColSep+ "prcpexecdeptcd" + sColSep+ "rsrvtmcntlyn" + sColSep + "rsrvpsnnocntlyn" + sColSep + "excuroom" + sRowSep;
- //헤더인 excuroomcd를 앞에 붙여줘서 보냄.
-
- var k = 0;
- for (var i = 1;i < grd_mainordlist5.rows;i++){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/check")=="true"){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/examroomnm") == ""){
- messageBox(i + "번째행에 수행부서를 선택하시기 바랍니다.", "E999", "");
- return false;
- }
- //rCSV += model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd") + sColSep + sRowSep;
- rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("pid")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroomcd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpdd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("execprcpuniqno")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvflag")) + sColSep+ grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvdt")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("srchrsrvtm")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpkindcd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excupartcd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("indd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("actorddd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddeptcd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddrid")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("calcscorcd")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("execrid")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvrem")) + sColSep +grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("suppdeptcd")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("cnclresncd")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("pacsnocretyn")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgsttm")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgstrid")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpdelivefact")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddepthngnm")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpnm")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddd")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgstdepthngnm"))+ sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("examroomnm")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("bf_srchrsrvtm")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvflagyn")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpexecdeptcd")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvtmcntlyn")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvpsnnocntlyn")) + sColSep + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroom")) + sRowSep;
- k = parseInt(k) + 1;
- }
- }
-
- model.resetInstanceNode("/root/send/req/data");
- // model.setValue("/root/send/req/data", rCSV);
- model.setValue("/root/send/req/flag", str);
- model.setValue("/root/send/req/chkflag", model.getValue("/root/send/data/chkflag"));
-
- model.removeNode("/root/temp");
- model.makeNode("/root/temp");
-
- setCSVToNode("/root/temp", rCSV);
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/req/data", "/root/temp");
-
-
- if (submit("TXAEA02001", false)){
- model.removeNodeset("/root/main/rehbprcpsubinfolist");
- return true;
- }else{
- return false;
- }
-
- // submit("TRAEA01905");
- // setTree(grd_prcpsubinfo, 1, 3, false);
-
- //getRsrvPossTm(grd_calendar);
-
- }
-
- /* @group : 통합예약
- * @ver : 2007.08.07
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력 월버튼 이벤트
- */
-
- function fGetCalendar(arg)
- {
-
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- if(model.getValue("/root/hidden/calendar/month") < arg) {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
-
- }
- if(model.getValue("/root/hidden/calendar/month") > arg) {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
- setCalendar(isDate);
-
- }
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약증 출력
- */
- function fOpenRtfFileDialog() {
- var file = window.fileDialog("open","","false","","","RTF Files(*.rtf)|*.rtf");
- return file;
- }
-
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약증 출력
- */
- function fGetFileName(path) {
- var lastIdx = path.lastIndexOf("\\");
- if (lastIdx >= 0) {
- return path.substr(lastIdx+1);
- } else {
- return path;
- }
- }
-
-
-
- /* @group : 통합예약
- * @ver : 2007.08.21
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약증 출력 초기화
- */
- function fInitialize() {
- model.removeNodeset("/root/main/rtflist");
- model.resetInstanceNode("/root/main/curfile/filename");
- model.resetInstanceNode("/root/main/curfile/rtfcode");
- model.resetInstanceNode("/root/send/rtfcode");
- model.resetInstanceNode("/root/send/filename");
- rtfviewer.clear();
- model.refresh();
- }
-
-
-
- function fSetGrdMainordlist(){
-
- setRowStyle("grd_mainordlist5" , "5" , "미수납" , "rcptyn" ); //미수납
-
- // submit("TRPMC02500");
-
-
- //자동예약시간뿌려주기
- //미예약인 처방에 제일 빠른 시간 뿌려줌.
- /*
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약']"); //미예약 다 뿌려줌
- var rCSV = getNodeListCSV(nodeList);
- */
- /* 유재정 처리 - 2007.10.25
- var sColSep = "▦";
- var sRowSep = "▩";
- var rCSV = "";
-
- rCSV += "excuroomcd" + sRowSep; //헤더인 excuroomcd를 앞에 붙여줘서 보냄.
-
- var k = 0;
- for (var i = 1;i < grd_mainordlist5.rows;i++){
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn") == "미예약" && model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm") != ""){
- //rCSV += model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd") + sColSep + sRowSep;
- rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroomcd")) + sRowSep;
- k = parseInt(k) + 1;
- }
- }
- model.setValue("/root/send/data/autorsrvtmset/autorsrvtm", rCSV);
- if (k > 0){
- submit("TRAEA02008");
- }
- */
- var j = 1;
- cap_sleep.visible = false;
- for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
- /* 유재정 처리 - 2007.10.25
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" && model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm") != ""){
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
- j++;
- }
- */
-
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm"));
-
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvtmcntlyn") == "Y"){
- grd_mainordlist5.isReadOnly(i, grd_mainordlist5.colRef("srchrsrvtm")) = true;
- }else{
- grd_mainordlist5.isReadOnly(i, grd_mainordlist5.colRef("srchrsrvtm")) = false;
- }
-
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001") {
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- }
-
- for(var chk = 1; chk < grd_anoprcplist.rows; chk++){
- if (model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GMA0001") {
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- }
-
- model.refresh();
-
- }
- function fTopInfo(){
-
- //TOP 정보 보여주기
- schk = "N";
-
- if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="O" ){
- var pat_info = "O▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- schk = "Y";
- }
-
- else if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="I" ){
- //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- var pat_info = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- schk = "Y";
- }
- else if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="S" ){
- //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- var pat_info = "S▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdd") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpuniqno")+"▦"+getUserInfo("dutplcecd");
- schk = "Y";
- }
- if (schk == "Y"){
- setParameter("condparam", pat_info);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
- }
- function patcmt(){
- if (datagrid2.rows > 1){
- var irow = datagrid2.findRow(getCurrentDate(), 1, 1);
- if (irow < 1){
- datagrid2.insertRow(1, "above");
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /iudgb", "I");
- }
- }else{
- datagrid2.insertRow(0);
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /iudgb", "I");
- }
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /pid", model.getValue("/root/send/data/srchpid"));
- model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /cmtdd", getCurrentDate());
- button1.disabled = false;
- datagrid2.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <input id="opt_hngnm" ref="/root/main/exculist/patinfolist/hngnm" class="output_fix" disabled="true" style="left:497px; top:30px; width:55px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:450px; top:27px; width:46px; height:23px; vertical-align:middle; ">환자명</caption>
- <multilinegrid id="grd_calendar" nodeset="/root/hidden/calendar/weeklist/list" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="56, 55, 55, 55, 55, 56, 56" dataheight="20" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:261px; top:482px; width:390px; height:297px; ">
- <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[
-
- if(grd_calendar.row != 0 ) {
-
- model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
- model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
-
- setCellColor(grd_calendar);
- getRsrvPossTm(grd_calendar);
-
-
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
-
- if(curDate <= rsrvdd) {
- for(var i = 1; i <grd_rsrvlist.rows ; i++ ) {
-
- if(model.getValue("/root/main/exculist/patinfolist/hngnm")== model.getValue("/root/main/rsrvposstmlist/rsrvlist["+i+"]/hngnm") && model.getValue("/root/send/data/srchpid") != model.getValue("/root/main/rsrvposstmlist/rsrvlist["+i+"]/pid") ) {
- messageBox("동명이인 예약", "E008");
- return 0;
- }
- }
- }
- }
-
- ]]>
- </script>
- </multilinegrid>
- <datagrid id="datagrid1" nodeset="/root/main/rsrvposstmlist/updtlist" visibility="hidden" autoresize="true" caption="변동사유" colsep="^" colwidth="245" mergecellsfixedrows="bycolrec" rowsep="|" style="left:350px; top:680px; width:258px; height:71px; ">
- <col ref="updtresndesc"/>
- </datagrid>
- <caption id="caption11" class="cell_1" style="left:646px; top:29px; width:50px; height:23px; vertical-align:middle; ">집전화</caption>
- <caption id="caption4" class="cell_1" style="left:939px; top:29px; width:50px; height:23px; vertical-align:middle; ">집주소</caption>
- <caption id="caption5" class="cell_1" style="left:795px; top:29px; width:50px; height:23px; vertical-align:middle; ">핸드폰</caption>
- <caption id="caption22" class="tit_2" style="left:4px; top:60px; width:107px; height:13px; ">환자내역(처방)</caption>
- <caption id="caption7" class="tit_2" style="left:238px; top:60px; width:95px; height:13px; ">진료예약내역</caption>
- <caption id="caption8" class="tit_2" style="left:573px; top:59px; width:121px; height:13px; ">당일검사예약현황</caption>
- <caption id="caption13" class="tit_2" style="left:4px; top:681px; width:106px; height:13px; ">환자Comment</caption>
- <caption id="caption14" class="tit_2" style="left:4px; top:413px; width:69px; height:13px; ">수행부서</caption>
- <group id="grp_sea" style="left:0px; top:20px; width:443px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:440px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption17" class="search_name" style="left:10px; top:8px; width:91px; height:17px; ">등록번호 :</caption>
- <line id="line13" class="line_4" style="x1:369px; y1:8px; x2:369px; y2:30px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="3" style="left:375px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_pid.value == "" ) {
- messageBox("환자번호를 ", "C001")
- return 0 ;
- }
-
- else {
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- readfunc();
- if (grd_mainordlist5.rows > 1){
- grd_mainordlist5.row = 1;
- fTopInfo();
- }else{
- delPatientInfos();
- }
- //상태별 색상주기
- fSetGrdMainordlist();
-
- if (model.getValue("/root/send/data/srchpid") != ""){
- //btn_execcncl.dispatch("DOMActivate");
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.model.setValue("/root/init/srchcond2" , model.getValue("/root/send/data/srchpid"));
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- child.btn_bfprcpsrch.dispatch("DOMActivate");
- if (child.grd_patchosinfo.rows > 0){
- child.grd_patchosinfo.row = 1;
- }
- child.javascript.fPatChosInfo();
- }
- }
-
- }
- ]]>
- </script>
- </button>
- <caption id="caption19" class="search_name" style="left:195px; top:9px; width:91px; height:17px; ">환자명 :</caption>
- <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" navindex="1" style="left:98px; top:8px; width:92px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // inputEnterKey("btn_pid","DOMActivate");
- if(event.keyCode == "13") {
- inputEnterKey("btn_sea","DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_execcncl.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" style="left:346px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자조회
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data/srchpid","/root/main/send");
- if (model.getValue("/root/main/popupendflag") != "cancel"){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- // 환자내역
- //submit("TRAEA02001");
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/data/hngnm" navindex="2" imemode="hangul" style="left:270px; top:8px; width:70px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- if (input1.currentText == ""){
- model.setValue("/root/reqdata/srchcond", "3");
- model.setValue("/root/reqdata/hngnm", "");
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/reqdata","/root/send");
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }else{
- model.setValue("/root/reqdata/srchcond", "2");
- model.setValue("/root/reqdata/hngnm", input1.currentText);
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/reqdata","/root/send");
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/data/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
- if (model.getValue("/root/main/popupendflag") != "cancel"){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- // 환자내역
- //submit("TRAEA02001");
- btn_sea.dispatch("DOMActivate");
- }else{
- model.setValue("/root/send/data/hngnm", "");
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">통합예약관리</caption>
- </group>
- <line id="line12" class="line_1" style="x1:449px; y1:23px; x2:1192px; y2:22px; "/>
- <line id="line1" class="line_1" style="x1:2px; y1:624px; x2:260px; y2:624px; "/>
- <line id="line7" class="line_1" style="x1:2px; y1:548px; x2:260px; y2:548px; "/>
- <caption id="caption20" class="tit_2" style="left:4px; top:534px; width:191px; height:14px; ">수행부서/변동내역 Comment</caption>
- <caption id="caption21" class="tit_2" style="left:4px; top:609px; width:173px; height:13px; ">처방 Comment</caption>
- <input id="opt_age" ref="/root/main/exculist/patinfolist/age" class="output_fix" disabled="true" style="left:599px; top:30px; width:25px; height:19px; text-align:center; "/>
- <input id="opt_sex" ref="/root/main/exculist/patinfolist/sex" class="output_fix" disabled="true" style="left:623px; top:30px; width:20px; height:19px; text-align:center; "/>
- <input id="opt_hometel" ref="/root/main/exculist/patinfolist/hometel" class="output_fix" disabled="true" style="left:697px; top:30px; width:95px; height:19px; "/>
- <input id="opt_mpphontel" ref="/root/main/exculist/patinfolist/mpphontel" class="output_fix" disabled="true" style="left:846px; top:30px; width:90px; height:19px; "/>
- <input id="opt_addr" ref="/root/main/exculist/patinfolist/addr" class="output_fix" disabled="true" style="left:990px; top:30px; width:203px; height:19px; "/>
- <datagrid id="grd_mainordlist1" nodeset="/root/main/exculist/mainordlist1" caption="진료과(진료의)^진료일시^진료의^진료과^orddd^pid^orddrid^orddeptcd" colsep="^" colwidth="107, 104, 44, 75, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:79px; width:233px; height:116px; ">
- <col ref="ordnm" style="text-align:left; "/>
- <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="orddrnm" visibility="hidden"/>
- <col ref="deptengabbr" visibility="hidden"/>
- <col ref="orddd"/>
- <col ref="pid"/>
- <col ref="orddrid"/>
- <col ref="orddeptcd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- for (var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
- if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/orddeptcd") == model.getValue("/root/main/exculist/mainordlist1[" + grd_mainordlist1.row + "]/orddeptcd")){
- grd_mainordlist5.rowHidden(i) = false;
- }else{
- grd_mainordlist5.rowHidden(i) = true;
- }
- }
- for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001") {
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- }
-
- for(var chk = 1; chk < grd_anoprcplist.rows; chk++){
- if (model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GMA0001") {
- cap_sleep.visible = true;
- model.setValue("/root/hidden/chkgam","수면");
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_mainordlist2" nodeset="/root/main/exculist/mainordlist2" caption="진료과(진료의)^예약일시" colsep="^" colwidth="89, 103" mergecellsfixedrows="bycolrec" rowsep="|" style="left:238px; top:79px; width:211px; height:116px; ">
- <col ref="suminfo"/>
- <col ref="orddt" format="yyyy-mm-dd hh:nn"/>
- </datagrid>
- <datagrid id="grd_mainordlist3" nodeset="/root/main/exculist/mainordlist6" caption="입원예정일" colsep="^" colwidth="99" mergecellsfixedrows="bycolrec" rowsep="|" style="left:452px; top:79px; width:115px; height:48px; ">
- <col ref="inhopedd" format="yyyy-mm-dd" style="left:0px; top:23px; width:158px; height:23px; "/>
- </datagrid>
- <datagrid id="grd_mainordlist4" nodeset="/root/main/exculist/mainordlist4" caption="검사예약일^검사명^검사실^상태^수행시간^예약자^rsrvid" colsep="^" colwidth="100, 195, 99, 71, 58, 79, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:570px; top:79px; width:623px; height:116px; ">
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpnm"/>
- <col ref="basecdflagdesc"/>
- <col ref="execprcpstatcd"/>
- <col ref="acttime"/>
- <col ref="usernm"/>
- <col ref="rsrvrid"/>
- </datagrid>
- <datagrid id="grd_rsrvlist" nodeset="/root/main/rsrvposstmlist/rsrvlist" caption="시간^등록번호^이름^처방코드^진료과(진료의)" colsep="^" colwidth="35, 70, 49, 90, 103" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:806px; top:436px; width:385px; height:342px; ">
- <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="prcpcd"/>
- <col ref="rgstdepthngnm"/>
- </datagrid>
- <datagrid id="grd_rsrvposstm" nodeset="/root/main/rsrvposstmlist/rsrvposstm" caption="시간^현황^가용" colsep="^" colwidth="41, 33, 32" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:656px; top:436px; width:144px; height:343px; ">
- <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
- <col ref="count" style="text-align:center; "/>
- <col ref="max" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (+grd_mainordlist5.row != "" ) {
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
- if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvtmcntlyn") == "Y"){
- messageBox("예약시간을 변경할 수 없는 검사/치료실입니다.", "E999", "");
- return;
- }
- //현황과 가용인원 같을 경우 예약 불가능
- if(model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/count") >= model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/max")) {
- if (messageBox("가용인원을 초과하였습니다.", "Q003") != 6) {
-
- }else {
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- }
- else { //현재시간 이후시간을 예약
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/check", "true");
- }
- }
-
- else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- }
- else { // 당일 이후 예약
-
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/check", "true");
- }
- model.refresh();
- }
- }else {
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- }
- else { //현재시간 이후시간을 예약
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/check", "true");
- }
- }
-
- else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
- }
- else { // 당일 이후 예약
-
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/check", "true");
- }
- model.refresh();
- }
-
- }
- else {
- messageBox("처방을", "C002");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_temp" nodeset="/root/init/curerprescondlist/rsrvcalendar" visibility="hidden" caption="일자(dd)^가용현황^max^caption3" colsep="^" colwidth="76, 62, 32" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:831px; top:560px; width:175px; height:170px; ">
- <col ref="rsrvdd"/>
- <col ref="count"/>
- <col ref="max"/>
- </datagrid>
- <datagrid id="grd_orddept" nodeset="/root/main/orddeptinfo/orddeptlist" caption="수행부서" colsep="^" colwidth="237" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" style="left:0px; top:432px; width:258px; height:94px; ">
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( (grd_orddept.row >= grd_orddept.fixedRows) && (grd_orddept.isCell(event.target))) {
- model.setValue("/root/hidden/orddeptcheck","check");
-
- model.setValue("/root/send/data/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
- //model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
- initCalendar();
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_excuroom" ref="/root/send/data/cmb_info/initexecroom/excuroomcdid" class="combo_default" visibility="hidden" appearance="minimal" style="left:280px; top:755px; width:255px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- model.setValue("/root/send/data/excuroomcd",model.getValue("/root/send/data/cmb_info/initexecroom/excuroomcdid"));
-
- initCalendar();
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button5" class="icon_top" style="left:203px; top:528px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_momolist.attribute("height") = 49;
- ]]>
- </script>
- </button>
- <button id="button15" class="icon_bottom" style="left:232px; top:528px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_momolist.attribute("height") = 142;
- ]]>
- </script>
- </button>
- <button id="button16" class="icon_bottom" style="left:232px; top:604px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_prcpremfact.attribute("height") = 142;
- ]]>
- </script>
- </button>
- <button id="button17" class="icon_top" style="left:203px; top:604px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- tar_prcpremfact.attribute("height") = 43;
- ]]>
- </script>
- </button>
- <group id="group2" scroll="auto" style="left:261px; top:425px; width:394px; height:55px; ">
- <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:3px; width:390px; height:52px; "/>
- <button id="button7" class="icon_month" style="left:20px; top:25px; width:27px; height:27px; ">
- <caption>1</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "01") {
- fGetCalendar("01");
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="icon_month" style="left:50px; top:25px; width:27px; height:27px; ">
- <caption>2</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "02") {
- fGetCalendar("02");
- }
- ]]>
- </script>
- </button>
- <button id="button9" class="icon_month" style="left:80px; top:25px; width:27px; height:27px; ">
- <caption>3</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "03") {
- fGetCalendar("03");
- }
- ]]>
- </script>
- </button>
- <button id="button10" class="icon_month" style="left:110px; top:25px; width:27px; height:27px; ">
- <caption>4</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "04") {
- fGetCalendar("04");
- }
- ]]>
- </script>
- </button>
- <button id="button11" class="icon_month" style="left:140px; top:25px; width:27px; height:27px; ">
- <caption>5</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "05") {
- fGetCalendar("05");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="icon_month" style="left:170px; top:25px; width:27px; height:27px; ">
- <caption>6</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "06") {
- fGetCalendar("06");
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="icon_month" style="left:200px; top:25px; width:27px; height:27px; ">
- <caption>7</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "07") {
- fGetCalendar("07");
- }
- ]]>
- </script>
- </button>
- <button id="button14" class="icon_month" style="left:230px; top:25px; width:27px; height:27px; ">
- <caption>8</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "08") {
- fGetCalendar("08");
- }
- ]]>
- </script>
- </button>
- <button id="button18" class="icon_month" style="left:260px; top:25px; width:27px; height:27px; ">
- <caption>9</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "09") {
- fGetCalendar("09");
- }
- ]]>
- </script>
- </button>
- <button id="button19" class="icon_month" style="left:290px; top:25px; width:27px; height:27px; ">
- <caption>10</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "10") {
- fGetCalendar("10");
- }
- ]]>
- </script>
- </button>
- <button id="button20" class="icon_month" style="left:320px; top:25px; width:27px; height:27px; ">
- <caption>11</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "11") {
- fGetCalendar("11");
- }
- ]]>
- </script>
- </button>
- <button id="button21" class="icon_month" style="left:350px; top:25px; width:27px; height:27px; ">
- <caption>12</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_month.value!== "12") {
- fGetCalendar("12");
- }
- ]]>
- </script>
- </button>
- <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:200px; top:2px; width:20px; height:19px; "/>
- <caption id="caption24" class="calendar_output" style="left:178px; top:2px; width:20px; height:19px; ">년</caption>
- <caption id="caption25" class="calendar_output" style="left:220px; top:2px; width:20px; height:19px; ">월</caption>
- <button id="button31" class="icon_next_year" style="left:270px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button33" class="icon_pre_month" visibility="hidden" style="left:121px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- // if(model.getValue("/root/send/data/excuroomcd") == "") {
- // messageBox("치료실","C002");
- // return;
- // }
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:148px; top:2px; width:30px; height:19px; "/>
- <button id="button35" class="icon_next_month" visibility="hidden" style="left:246px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_next_m.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- if(model.getValue("/root/send/data/excuroomcd") == "") {
- messageBox("치료실","C002");
- return;
- }
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- <button id="button36" class="icon_pre_year" style="left:98px; top:5px; width:16px; height:16px; background-image:../../../com/commonweb/images/cal_pre_y.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var isMonth = model.getValue("/root/hidden/calendar/month");
- var isYear = model.getValue("/root/hidden/calendar/year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
-
- model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
- model.refresh();
-
- setCalendar(isDate);
- // getCurerPresCond();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_case1" class="btn_sw" group="tab" selected="true" style="left:3px; top:198px; width:72px; height:22px; ">
- <caption>검사현황</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- btn_case1.selected = true;
- btn_case2.selected = false;
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab" selected="false" style="left:76px; top:198px; width:83px; height:22px; ">
- <caption>타검사현황</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- btn_case1.selected = false;
- btn_case2.selected = true;
- ]]>
- </script>
- </button>
- <button id="btn_execcncl" class="btn2_letter4" style="left:1066px; top:197px; width:64px; height:19px; ">
- <caption>처방조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- if ( model.getValue("/root/send/data/srchpid") == "" ) {
- messageBox("[조회필수항목-등록번호] 를 입력하십시오.","I999");
- model.setfocus( "ipt_pid" );
- return;
- }
- */
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.model.setValue("/root/init/srchcond2" , model.getValue("/root/send/data/srchpid"));
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- child.btn_bfprcpsrch.dispatch("DOMActivate");
- if (child.grd_patchosinfo.rows > 0){
- child.grd_patchosinfo.row = 1;
- }
- child.javascript.fPatChosInfo();
-
- }else{
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- open("SMMMO02500", "","","", "SMMMO02500", "/root/send/data/srchpid","/root/init/srchcond2");
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:1038px; top:54px; width:64px; height:19px; ">
- <caption>예약현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //var child = getChildWindow("SMMMO02500");
- /*
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.close();
- }
- */
-
- /*
- if ( model.getValue("/root/send/data/srchpid") == "" ) {
- messageBox("[조회필수항목-등록번호] 를 입력하십시오.","I999");
- model.setfocus( "ipt_pid" );
- return;
- }
- */
- open("SMAEA00300", "","","", "SMAEA00300", "/root/send/data/srchpid","/root/send/srchpid");
- //modal("SMAEA00900", "1","150", "150", "SMAEA00900", "/root/send/data/srchpid", "/root/send/pid"); //팝업
-
- ]]>
- </script>
- </button>
- <line id="line11" class="line_1" style="x1:2px; y1:74px; x2:235px; y2:74px; "/>
- <line id="line3" class="line_1" style="x1:570px; y1:74px; x2:1195px; y2:74px; "/>
- <line id="line4" class="line_1" style="x1:238px; y1:74px; x2:449px; y2:74px; "/>
- <line id="line9" class="line_1" style="x1:2px; y1:695px; x2:260px; y2:695px; "/>
- <datagrid id="grd_rsrvtemp" nodeset="/root/hidden/beforersrvtm/rsrvdtlist" visibility="hidden" caption="변경전" colsep="^" colwidth="122" mergecellsfixedrows="bycolrec" rowsep="|" style="left:975px; top:490px; width:120px; height:235px; ">
- <col ref="before" style="left:0px; top:23px; width:159px; height:23px; "/>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:452px; top:60px; width:95px; height:13px; ">입원예정일</caption>
- <line id="line10" class="line_1" style="x1:452px; y1:74px; x2:567px; y2:74px; "/>
- <line id="line15" class="line_1" style="x1:452px; y1:142px; x2:567px; y2:142px; "/>
- <caption id="caption12" class="tit_2" style="left:450px; top:128px; width:95px; height:13px; ">수술예정일</caption>
- <button id="button3" class="icon_bottom" style="left:1164px; top:197px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // switch1.attribute("height") = 501;
- // grd_mainordlist5.attribute("height") = 490;
- // grd_anoprcplist.attribute("height") = 490;
- switch1.attribute("top") = 216;
- switch1.attribute("height") = 189;
- case1.attribute("height") = 212;
- case2.attribute("height") = 212;
- grd_mainordlist5.attribute("height") = 179;
- grd_anoprcplist.attribute("height") = 179;
-
- //btn_timecls.attribute("top") = 236;
- cap_sleep.attribute("top") = 197;
- btn_execcncl.attribute("top") = 197;
- button4.attribute("top") = 197;
- button3.attribute("top") = 197;
- ]]>
- </script>
- </button>
- <button id="button4" class="icon_top" style="left:1134px; top:197px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // switch1.attribute("height") = 132;
- // grd_mainordlist5.attribute("height") = 123;
- // grd_anoprcplist.attribute("height") = 123;
- switch1.attribute("top") = 20;
- switch1.attribute("height") = 356;
- case1.attribute("height") = 379;
- case2.attribute("height") = 379;
- grd_mainordlist5.attribute("height") = 347;
- grd_anoprcplist.attribute("height") = 347;
- //btn_timecls.attribute("top") = 358;
- cap_sleep.attribute("top") = 383;
- btn_execcncl.attribute("top") = 383;
- button4.attribute("top") = 383;
- button3.attribute("top") = 383;
- ]]>
- </script>
- </button>
- <datagrid id="grd_opschedd" nodeset="/root/main/exculist/mainordlist3" caption="수술예정일" colsep="^" colwidth="99" mergecellsfixedrows="bycolrec" rowsep="|" style="left:452px; top:147px; width:115px; height:48px; ">
- <col ref="opschedd" format="yyyy-mm-dd" style="left:0px; top:23px; width:159px; height:23px; "/>
- </datagrid>
- <datagrid id="grd_momolist" nodeset="/root/main/rsrvposstmlist/deptmemo" class="datagrid0" scroll="vertical" caption="일자^메모내용" colsep="^" colwidth="0, 245" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:553px; width:258px; height:49px; ">
- <col ref="memodt"/>
- <col disabled="true" ref="memorem" type="input" style="left:0px; top:0px; width:54px; height:23px; "/>
- </datagrid>
- <textarea id="tar_prcpremfact" ref="/root/main/comment1/prcpcmt" disabled="true" style="left:0px; top:629px; width:258px; height:43px; "/>
- <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:855px; top:680px; width:40px; height:45px; "/>
- <caption id="cap_sleep" ref="/root/hidden/chkgam" visibility="hidden" style="left:997px; top:196px; width:63px; height:20px; font-family:굴림; font-size:12pt; font-weight:bold; color:#ffffff; text-align:center; vertical-align:bottom; background-color:#ff0000; "/>
- <button id="btn_timecls" class="btn2_letter4" visibility="hidden" style="left:930px; top:196px; width:64px; height:19px; ">
- <caption>시간배정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약' & excuroomnm != '' ]"); //미예약 다 뿌려줌
- var rCSV = getNodeListCSV(nodeList);
-
- model.setValue("/root/send/data/autorsrvtmset/autorsrvtm", rCSV);
-
- submit("TRAEA02008");
-
-
- var j = 1;
- for(var i = 0 ; i < grd_mainordlist5.rows ; i++ ){
-
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약") {
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
- j++;
- }
-
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption16" class="cell_1" style="left:555px; top:27px; width:43px; height:23px; vertical-align:middle; ">S/A</caption>
- <button id="button6" class="btn2_letter6" style="left:1106px; top:54px; width:86px; height:19px; ">
- <caption>예약변경조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var child = getChildWindow("SMMMO02500");
- if (child != null ) {
- child.javascript.window.close();
- }
- */
- open("SMAEA00800", "","","", "SMAEA00800", "/root/send/data/srchpid","/root/send/pid");
- // window.setInterval("getChildWindow('SMAEA00800').window.activate()", 1000);
- ]]>
- </script>
- </button>
- <line id="line14" class="line_3" style="x1:449px; y1:52px; x2:1194px; y2:52px; "/>
- <line id="line2" class="line_1" style="x1:2px; y1:427px; x2:260px; y2:427px; "/>
- <button id="button22" class="btn2_letter6" style="left:172px; top:407px; width:86px; height:19px; ">
- <caption>예약변경관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- var child = getChildWindow("SMMMO02500");
- if (child != null ) {
- child.javascript.window.close();
- }
- */
- open("SMAEA00700", "","","", "SMAEA00700", "","");
- ]]>
- </script>
- </button>
- <button id="btn_rsrv" class="btn4_letter2" style="left:1008px; top:408px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[check='true' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- var nodeList2= instance1.selectNodes("/root/main/exculist/mainordlist5[srchrsrvtm='-' ]");
- var rCSV2 = getNodeListCSV(nodeList2);
-
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
- if ( rCSV != null && rCSV2 != null ) {
- messageBox("예약시간을 ","C002");
- return "0";
- }
-
-
-
- //얘약 수정시 메시지박스 띄워주기
- var modifyinfo = "";
- var j = 1;
- var checknum = 0;
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/check") == "true" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약" ) {
- var before =model.getValue("/root/main/exculist/mainordlist5["+i+"]/bf_srchrsrvtm");
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var bf_cdnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
- checknum = checknum +1;
- modifyinfo +=checknum +"."+ bf_cdnm+" \r\n"+ " → 전 :"+before.substr(0,4)+"-"+before.substr(4,2)+"-"+before.substr(6,2)+" "+before.substr(8,2)+":"+before.substr(10,2) +" / 후 : "+rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" \r\n\r\n" ;
- j++;
- }
- }
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/check") == "true" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" ) {
- var sexcuroomcd = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd");
- if (sexcuroomcd.length > 3){
- var ssonogb = sexcuroomcd.substring(0, 4)
- if (ssonogb == "SONO"){
- messageBox("수행부서를 선택하시기 바랍니다.", "E999", "");
- return;
- }
- }
- }
- }
-
- if (model.getValue("/root/send/data/chkflag") == "T"){
- var message = messageBox( modifyinfo +"\r\n\r\n예약(수정) 저장 후 예약증 출력","S001","\r\n예약(수정)를 취소하시려면 취소를 누르십시오.");
- var chk = "N";
- if ( message == 6 ) { //예
- if (exeRsrvTransaction("rsrv") == true){
- chk = "Y";
- for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/check") == "true" ) {
-
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
- var sna = opt_sex.value+"/"+opt_age.value ;
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
- var year = rsrvdt.substr(0,4);
- var month = rsrvdt.substr(4,2);
- var day = rsrvdt.substr(6,2);
- var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
- var hh = rsrvdt.substr(8,2);
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
- var mm = rsrvdt.substr(10,2);
-
- //예약증 출력
- if(tmpldata != "") {
- //1. 예약예문내용을 뷰어로 보여주기
- rtfviewer.TextRtf = tmpldata;
-
- //2. 바꾸기
-
- rtfviewer.ReplaceRtfCode("pid",ipt_pid.value); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",opt_hngnm.value); //성명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
-
- //3. 현재내용을 파일에 저장
- rtfviewer.SaveRtfFile();
-
- //4. 출력
- rtfviewer.print();
-
- //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- fInitialize();
- }
- }
- }
- }
- }
- if (message == 7 ) { //아니오
- if (exeRsrvTransaction("rsrv") == true){
- chk = "Y";
- }
- }
- }else{
- if( messageBox("해당 선택 정보내역을 " , "Q002" ) == 6 ){
- if (exeRsrvTransaction("rsrv") == true){
- chk = "Y";
- }
- }
- }
- if (chk == "Y"){
- readfunc();
- //상태별 색상주기
- fSetGrdMainordlist();
- }
- ]]>
- </script>
- </button>
- <button id="btn_can" class="btn4_letter2" style="left:1066px; top:408px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt");
-
- // if ( messageBox(rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" 예약취소를","Q002")==6 ) {
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[check='true' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
- exeRsrvTransaction("cncl");
-
- readfunc();
- //상태별 색상주기
- fSetGrdMainordlist();
- // }
-
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1125px; top:408px; width:68px; height:22px; ">
- <caption>재출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //********************************
- // ******예약증 출력 20070821******
- //********************************
-
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpnm");
- var sna = opt_sex.value+"/"+opt_age.value ;
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/tmpldata");
-
- var year = rsrvdt.substr(0,4);
- var month = rsrvdt.substr(4,2);
- var day = rsrvdt.substr(6,2);
- var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
- var hh = rsrvdt.substr(8,2);
- var mm = rsrvdt.substr(10,2);
- if(hh > 12)
- {
- hh = "오후 "+(hh-12);
- }
- else{
- hh = "오전 "+hh;
- }
- var mm = rsrvdt.substr(10,2);
-
- if(tmpldata != "") {
- //1. 예약예문내용을 뷰어로 보여주기
- // alert(tmpldata);
- rtfviewer.TextRtf = tmpldata;
-
- //2. 바꾸기
-
- rtfviewer.ReplaceRtfCode("pid",ipt_pid.value); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",opt_hngnm.value); //성명
- // rtfviewer.ReplaceRtfCode("@@gender/age",sna); //성별,연령
- // rtfviewer.ReplaceRtfCode("@@prcpnm",prcpnm); //검사명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
-
- //3. 현재내용을 파일에 저장
- rtfviewer.SaveRtfFile();
-
- //4. 출력
- rtfviewer.print();
-
- //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- fInitialize();
-
- }
- else {
- messageBox("등록된 예약예문이 ", "I004");
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption10" class="tit_2" style="left:806px; top:416px; width:85px; height:13px; ">예약내역</caption>
- <line id="line5" class="line_1" style="x1:806px; y1:431px; x2:1191px; y2:431px; "/>
- <line id="line6" class="line_1" style="x1:657px; y1:431px; x2:799px; y2:431px; "/>
- <caption id="caption15" class="tit_2" style="left:659px; top:416px; width:85px; height:13px; ">예약시간</caption>
- <switch id="switch1" style="left:2px; top:216px; width:1192px; height:189px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1190px; height:212px; ">
- <line id="line16" class="line_1" style="x1:0px; y1:1px; x2:1188px; y2:1px; "/>
- <datagrid id="grd_mainordlist5" nodeset="/root/main/exculist/mainordlist5" caption="^구분^수납^처방일자^진료과^처방의^검사코드^검사명^수행부서^희망일자^예약시간^소요시간^종료시간^Remark^수행가능부서^prcpgenflag^prcpdd^execprcpuniqno^execprcpstatcd^prcpkindcd^excupartcd^indd^actorddd^orddrid^execrid^suppdeptcd^cnclresncd^pid^prcpdelivefact^rsrvplceflag^rsrvexcupossyn^rsrvexmptmplcd^tmpldata^rsrvflag^cretno^orddd^rsrvdt^excuroomcd^bf_srchrsrvtm^pacsnocretyn^rgsttm^rgstrid^examroomnm^caption1^caption2^caption3^caption4^caption5^caption6^orddd" colsep="^" colwidth="26, 49, 53, 77, 89, 54, 73, 280, 100, 77, 109, 60, 58, 360, 147, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 27, 25, 33, 31, 29, 32" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:1188px; height:179px; ">
- <col checkvalue="true,false" ref="check" type="checkbox"/>
- <col ref="rsrvflagyn"/>
- <col ref="rcptyn"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col ref="calcscorcd"/>
- <col disabled="true" ref="prcpnm"/>
- <col disabled="true" ref="excuroom" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
- <col ref="srchrsrvtm" type="input" format="yyyy-mm-dd hh:nn"/>
- <col ref="excutm" style="text-align:center; "/>
- <col ref="endtime" format="hh:nn" style="text-align:center; "/>
- <col ref="rsrvrem" type="input"/>
- <col ref="excuroomnm" visibility="hidden"/>
- <col ref="genrflag"/>
- <col ref="prcpdd"/>
- <col ref="execprcpuniqno"/>
- <col ref="execprcpstatcd"/>
- <col ref="prcpkindcd"/>
- <col ref="excupartcd"/>
- <col ref="indd"/>
- <col ref="actorddd"/>
- <col ref="orddrid"/>
- <col ref="execrid"/>
- <col ref="suppdeptcd"/>
- <col ref="cnclrescd"/>
- <col ref="pid"/>
- <col ref="prcpdelivefact"/>
- <col ref="rsrvplceflag"/>
- <col ref="rsrvexcupossyn"/>
- <col ref="rsrvexmptmplcd"/>
- <col ref="tmpldata"/>
- <col ref="rsrvflag"/>
- <col ref="cretno"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="rsrvdt" visibility="hidden"/>
- <col ref="excuroomcd" visibility="hidden"/>
- <col ref="bf_srchrsrvtm" visibility="hidden"/>
- <col ref="pacsnocretyn" visibility="hidden"/>
- <col ref="rgsttm" visibility="hidden"/>
- <col ref="rgstrid" visibility="hidden"/>
- <col ref="examroomnm" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="prcpexecdeptcd" visibility="hidden"/>
- <col ref="rsrvtmcntlyn" visibility="hidden"/>
- <col ref="rsrvpsnnocntlyn" visibility="hidden"/>
- <col ref="excucdrem" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- //스크롤 조작시 온클릭 이벤트 안타도록
- if( isDataCell() ){
- if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem") != ""){
- //alert(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"));
- messageBox(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"), "E999", "");
- }
- if(grd_mainordlist5.col != 0 && grd_mainordlist5.col != 10 && grd_mainordlist5.col != 13 ) {
- // 예약 Comment 복사
- model.setValue("/root/hidden/rsrvrem", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem"));
- var schk = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/check");
- if (schk == "true"){
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/check", "false");
- }else{
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/check", "true");
- }
- grd_mainordlist5.refresh();
- // 달력에 처음 로딩시 color값 안들어 가기 위해
- model.setValue("/root/hidden/grdcellcolor/color","");
- //tar_prcpremfact.value = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact");
- model.setValue("/root/main/comment1/prcpcmt", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact"));
- // model.setValue("/root/main/comment1/prcpcmt",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact"));
- model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/suppdeptcd"));
- model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
- grd_orddept.refresh();
- //수행부서 리스트 담기
- //var excuroomnm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomnm");
- model.setValue("/root/send/data/excuroomnm", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomnm"));
- /*
- var str = excuroomnm.split("^");
- var row = 1;
- for(var i =0 ; i < str.length ; i++ ) {
- grd_orddept.addRow(false);
- var aa = str[i];
- model.setValue("/root/main/orddeptinfo/orddeptlist["+row+"]/orddeptcd",aa.getTrim());
- row++ ;
- }
- grd_orddept.refresh();
- if(model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.bottomRow+"]/orddeptcd") == "")
- {
- grd_orddept.deleteItem(grd_orddept.bottomRow);
- }
-
- model.setValue("/root/send/data/excuroomcd",str[0]);
- */
- model.setValue("/root/send/data/excuroomcd", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom"));
-
- initCalendar();
- setCurrentDate();
-
- model.makeNode("/root/main/orddeptinfo/orddeptlist");
- copyNodesetType("/root/main/orddeptinfo/orddeptlist", "/root/init/curerprescondlist/orddeptlist", "replace");
- grd_orddept.refresh();
-
- model.setValue("/root/send/data/excuroomnm", "");
-
- if (model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn") == "예약"){
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_mainordlist5.labelmatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("excuroom")));
- }else{
- var iname = grd_mainordlist5.labelmatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("excuroom"));
- if (iname == ""){
- iname = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddrnm");
- }
- if (instance1.selectSingleNode("/root/init/cmb_info/initexecroom[excuroomcdnm='" + iname + "']") == null){
- var icode = "";
- }else{
- var icode = instance1.selectSingleNode("/root/init/cmb_info/initexecroom[excuroomcdnm='" + iname + "']").excuroomcdid.nodeValue;
- }
- var irow = grd_orddept.findRow(icode, 1, 0, false, true);
- if (irow > 0){
- grd_orddept.row = irow;
- grd_orddept.topRow = irow;
- model.refresh();
- }
- }
- //model.refresh();
-
- if( grd_mainordlist5.valueMatrix(grd_mainordlist5.row, 0) == "true" && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvplceflag") !="1") {
- if (model.getValue("/root/send/data/chkflag") == "T"){
- messageBox("통합예약실에서 예약", "E001");
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/check", "false");
- }
- }
- else{
- if(model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn") == "예약"){
- grd_rsrvtemp.addRow();
- model.setValue("/root/hidden/beforersrvtm/rsrvdtlist["+grd_rsrvtemp.bottomRow+"]/before",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm"));
- }
- }
-
- fTopInfo();
-
- //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
- getRsrvPossTm(grd_calendar);
-
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- //예약시간 수정후
- if(grd_mainordlist5.col == "10") {
-
- var srchrsrvtm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm");
- var rsrvtm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt");
- var term = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excutm");
- var posstm ="";
-
-
- //수기로 입력시 과거시간 체크
- if( srchrsrvtm < getCurrentDate().substr(0,8) + getCurrentTime().substr(0,4) ) {
- messageBox("예약시간이 과거시간", "E008");
- return ;
- }
- //수기로 입력시 미래일자 체크
- /*
- if( srchrsrvtm.substr(0,8) != rsrvtm.substr(0,8) ) {
- messageBox("수정일자와 선택일자가", "E004");
- return ;
- }
- */
-
- else {
- for( var i = 1 ; i < grd_rsrvlist.rows ; i++ ) {
- var min = model.getValue("/root/main/rsrvposstmlist/rsrvlist["+i+"]/srchrsrvtm");
- if(srchrsrvtm.substr(8,4) > min.substr(0,4) ) {
- posstm = min.substr(0,4);
- }
- else {
- posstm = min.substr(0,4);
- break;
- }
- }
- var dateObj = new Date();
- var dateObj2 = new Date();
- // alert("posstm : "+posstm);
-
-
- if(posstm > srchrsrvtm.substr(8,4) ) {
- dateObj.setHours(posstm.substr(0,2)- srchrsrvtm.substr(8,2), posstm.substr(2,2)- srchrsrvtm.substr(10,2));
- dateObj2.setHours(00,term);
- // alert("후 : " + dateObj.getHours()+ "시" + dateObj.getMinutes() + "분");
- // alert("후 : " + dateObj2.getHours()+ "시" + dateObj2.getMinutes() + "분");
- // alert(dateObj.getHours()+ "" + dateObj.getMinutes() );
-
- if( dateObj.setHours(posstm.substr(0,2)- srchrsrvtm.substr(8,2), posstm.substr(2,2)- srchrsrvtm.substr(10,2)) < dateObj2.setHours(00,term)) {
- messageBox("소요시간 초과로 예약", "E001");
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm","-");
-
- }
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //예약시간이 변경되거나 Remark가 변경된 경우
- if(grd_mainordlist5.col == 10 || grd_mainordlist5.col == 13){
- if (grd_mainordlist5.col == 10 && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom") == ""){
- messageBox("미예약된 항목의 예약시간 수정을 위해서 수행부서 선택은 필수", "E008", "수행부서를 선택해 주세요");
- return false;
- }
-
- if (model.getValue("/root/hidden/orddeptcheck") != "check"){
- //model.alert("aaa");
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_mainordlist5.labelmatrix(grd_mainordlist5.row,8));
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom"));
-
- }
- model.setValue("/root/hidden/orddeptcheck","");
- model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/check" ,"true");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist5.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <bool id="bool1" ref="/root/hidden/boolcontrol/bool" style="left:4px; top:9px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- // var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + ( grd_mainordlist5.row - grd_mainordlist5.fixedRows + 1 ) + "]/rsrvflagyn");
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약']");
- var node;
- while( node = nodeList.nextNode() ) {
- node.check.text = "true";
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
-
- // var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + ( grd_mainordlist5.row - grd_mainordlist5.fixedRows + 1 ) + "]/execprcpuniqno");
- // var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[execprcpuniqno!='" + execprcpuniqno + "']");
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[check='true']");
- var node;
- while( node = nodeList.nextNode() ) {
- node.check.text = "false";
- }
-
- ]]>
- </script>
- </bool>
- </case>
- <case id="case2">
- <line id="line17" class="line_1" style="x1:0px; y1:1px; x2:1190px; y2:1px; "/>
- <datagrid id="grd_anoprcplist" nodeset="/root/main/exculist/subordlist2" caption="구분^수납^처방일자^진료과^처방의^처방상태^검사코드^검사명^수행부서^희망일자^예약시간^실시시간^소요시간^종료시간^Remark^prcpgenflag^prcpdd^execprcpuniqno^execprcpstatcd^prcpkindcd^excupartcd^indd^actorddd^orddrid^execrid^suppdeptcd^cnclresncd^pid^prcpdelivefact^rsrvplceflag^rsrvexcupossyn^rsrvexmptmplcd^tmpldata^rsrvflag^cretno^orddd" colsep="^" colwidth="49, 53, 77, 89, 54, 100, 73, 280, 100, 77, 109, 100, 60, 58, 360" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:1188px; height:179px; ">
- <col ref="rsrvflagyn" visibility="hidden"/>
- <col ref="rcptyn"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col disabled="true" ref="execprcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="calcscorcd"/>
- <col disabled="true" ref="prcpnm"/>
- <col disabled="true" ref="excuroom"/>
- <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
- <col ref="srchrsrvtm" format="yyyy-mm-dd hh:nn"/>
- <col ref="exectm" format="yyyy-mm-dd hh:nn"/>
- <col ref="excutm" style="text-align:center; "/>
- <col ref="endtime" format="hh:nn" style="text-align:center; "/>
- <col ref="rsrvrem"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_anoprcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <datagrid id="datagrid2" nodeset="/root/main/exculist/subordlist3/rows" caption="환자번호^일자^Comment^caption1" colsep="^" colwidth="100, 77, 162, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:700px; width:258px; height:79px; ">
- <col ref="pid" visibility="hidden"/>
- <col ref="cmtdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="patcmt" type="input"/>
- <col ref="iudgb" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/iudgb") != "I"){
- model.setValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/iudgb", "U");
- }
- datagrid2.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn4_letter2" disabled="true" style="left:200px; top:673px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var update = getGridUpdateData(datagrid2);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req1/data", update);
- if (submit("TXAEA02002", false)){
- if (submit("TRAEA02009", false)){
- //model.removeNodeset("/root/main/exculist/subordlist3");
- //model.makeNode("/root/main/exculist/subordlist3");
- //model.resetInstanceNode("/root/main/exculist/subordlist3/rows");
- model.removeNodeset("/root/main/exculist/subordlist3/rows");
- copyNodeType("/root/main/exculist/subordlist3", "/root/reqdata1/subordlist3", "replace");
- datagrid2.refresh();
- patcmt();
- }
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|