123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582 |
- <?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/>
- <rsrvdd/>
- <excuroomcd/>
- <suppdeptcd/>
- <maxoutcnt/>
- <maxincnt/>
- <maxhealexamcnt/>
- <maxallcnt/>
- </rsrvposstm>
- <rsrvlist>
- <srchrsrvtm/>
- <pid/>
- <hngnm/>
- <prcpnm/>
- <rgstdepthngnm/>
- <roomcd/>
- <prcpcd/>
- </rsrvlist>
- </rsrvposstmlist>
- <exculist>
- <mainordlist5>
- <chk/>
- <rsrvflagyn/>
- <rsrvflagdispyn/>
- <rcptyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <calcscorcd/>
- <prcpnm/>
- <excuroomcd/>
- <prcphopedd/>
- <srchrsrvtm/>
- <roomcd/>
- <prcpkindnm/>
- <rsrvrem/>
- <prcpdelivefact/>
- <execprcpstatcd/>
- <pid/>
- <suppdeptcd/>
- <execprcpuniqno/>
- <pacsnocretyn/>
- <eqmtifyn/>
- <bonedentestyn/>
- <prcpexecdeptcd/>
- <bf_srchrsrvtm/>
- <prcpgenrflag/>
- <rsrvflag/>
- <excupartcd/>
- <indd/>
- <actorddd/>
- <orddeptcd/>
- <orddrid/>
- <lrgcd/>
- <autroomassgyn/>
- <prcpno/>
- <prcphistno/>
- <instcd/>
- <aftrcptinfo/>
- <tmpldata/>
- <rsrvtmplcd/>
- <rsrvmultitmplcd/>
- <excucdnm/>
- <excutm/>
- <wardengabbr/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptrem/>
- <rcptdd/>
- <rcptflag/>
- <rgstdt/>
- </mainordlist5>
- <subordlist2>
- <rsrvflagyn/>
- <rcptyn/>
- <prcpdd/>
- <orddepthngnm/>
- <orddrnm/>
- <execprcpstatcd/>
- <calcscorcd/>
- <prcpnm/>
- <excuroom/>
- <prcphopedd/>
- <srchrsrvtm/>
- <exectm/>
- <rsrvrem/>
- </subordlist2>
- <mainordlist2>
- <suminfo/>
- <orddt/>
- </mainordlist2>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <mainordlist8>
- <prcpcd/>
- <prcpdd/>
- <rsrvdd/>
- <execdd/>
- <payflagcdnm/>
- <prcpgenrflag/>
- </mainordlist8>
- <bmdcnt>
- <cnt/>
- </bmdcnt>
- </exculist>
- <exculist2>
- <subordlist2>
- <excuroomnm/>
- <prcpdd/>
- <prcpnm/>
- <calcscorcd/>
- <execprcpstatcd/>
- </subordlist2>
- </exculist2>
- <curfile>
- <filename/>
- <rtfcode/>
- </curfile>
- <rtflist/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <comment1>
- <prcpcmt/>
- </comment1>
- <popupendflag/>
- <ordlist1>
- <mainordlist>
- <rsrvflagyn/>
- <pid/>
- <patnm/>
- <roomcd/>
- <depthngnm/>
- <prcpnm/>
- <prcpdelivefact/>
- <clinccmtcnts/>
- <execprcpuniqno/>
- <prcpdd/>
- </mainordlist>
- </ordlist1>
- </main>
- <send>
- <data>
- <srchpid/>
- <hngnm/>
- <rsrvdd/>
- <excuroomcd/>
- <srchdate1/>
- <srchdate2/>
- <excuroomgrpcdid/>
- <listexcuroomcdid/>
- <acptlistflag/>
- <excucd/>
- <prcpgenrflag/>
- <excuroomnm/>
- <print/>
- <orddeptcd/>
- <suppdeptcd1/>
- <suppdeptcd/>
- <rsrvdate/>
- <srchexecflag/>
- </data>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <cnclcd/>
- <flag/>
- <data/>
- </req>
- <req1>
- <data/>
- </req1>
- <rtfcode/>
- <filename/>
- <popup>
- <basecdflag/>
- </popup>
- <autoreq>
- <data/>
- </autoreq>
- <windowloadinstance>SMAER13000</windowloadinstance>
- <canclroom>
- <data/>
- </canclroom>
- <barcnt/>
- </send>
- <init>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- <userid/>
- </initexecroom>
- </cmb_info>
- <cmb_info1>
- <initexcuroomgrp>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp>
- <listexcuroomgrp>
- <listexcuroomgrpcdid/>
- <listexcuroomgrpcdnm/>
- </listexcuroomgrp>
- </cmb_info1>
- <cmb_info2>
- <initexecroom>
- <excuroomcdnm/>
- <excuroomcdid/>
- </initexecroom>
- </cmb_info2>
- <cmb_info3>
- <initexecr>
- <listexecridnm/>
- <listexecrid/>
- </initexecr>
- </cmb_info3>
- <curerprescondlist>
- <curerprescond>
- <userid/>
- <usernm/>
- </curerprescond>
- <rsrvcalendar>
- <rsrvdd/>
- <count/>
- <max/>
- </rsrvcalendar>
- <orddeptlist>
- <orddeptcd/>
- </orddeptlist>
- </curerprescondlist>
- <baseinfo>
- <initexecprcpstatcd/>
- <initprcpgenrflagcd/>
- </baseinfo>
- <calenlist>
- <calendinfo>
- <basedd/>
- <dutflag/>
- </calendinfo>
- </calenlist>
- </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/>
- <cnclcdnm/>
- </cnclcdlist>
- <beforersrvtm>
- <rsrvdtlist>
- <before/>
- </rsrvdtlist>
- </beforersrvtm>
- <con>
- <date/>
- </con>
- <rsrvbtn>
- <rsrvyn/>
- </rsrvbtn>
- <boolcontrol>
- <bool/>
- </boolcontrol>
- <rsrvrem/>
- <rsrvprtyn/>
- <rexprtyn/>
- <isolinfo>
- <isoldata/>
- </isolinfo>
- </hidden>
- <hidden1>
- <popupmenu>
- <menu>
- <label>변경/취소사유조회</label>
- <func>ChangeCanFunc</func>
- </menu>
- <menu>
- <label>예약예문선택</label>
- <func>ChangeTmplcd</func>
- </menu>
- <menu>
- <label>검사실정보저장</label>
- <func>SaveAcptrem</func>
- </menu>
- </popupmenu>
- <popupmenu2>
- <menu>
- <label>예약케파 초기화</label>
- <func>ChangRsrvposstm</func>
- </menu>
- </popupmenu2>
- </hidden1>
- <reqdata>
- <srchcond/>
- <pid/>
- <hngnm/>
- </reqdata>
- <chngcol>
- <chngcolflag/>
- </chngcol>
- <rexsend>
- <rexbarcode>
- <pid/>
- <patnm/>
- <gbn/>
- <rrgstno1/>
- <rrgstno2/>
- <barpid/>
- <excugrp/>
- <rsrvdd/>
- <sex/>
- <age/>
- <wardcddeptengabbr/>
- <excupartcd/>
- <roomcd/>
- <prcpnm/>
- <examroomnm/>
- <wardcdnm/>
- <prcphopedd/>
- <prcpdelivefact/>
- <orddepthngnm/>
- <isoldispcd/>
- </rexbarcode>
- </rexsend>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //2010.11.30 c y w 해당근무지에 따라 타이틀 변경
- var dutplcenm = getUserInfo("dutplcenm");
- document.title = "자체예약관리(" + dutplcenm + ")";
- caption6.text = "자체예약관리(" + dutplcenm + ")";
-
- aezfSetSuppDeptcd();
-
- var scrnid = getScreenID();
- fOrderInfoOfCol( "grd_mainordlist5", scrnid,"01");
- fOrderInfoOfCol( "grd_anoprcplist", scrnid,"02");
-
- submit("TRAER13003", false);
-
- ipt_date1.value = getCurrentDate();
- ipt_date2.value = getCurrentDate();
- submit("TRAEA02014", false);
-
- // 그룹 조회 그리드의 전체와 DR 부분을 안보이게 함.
-
- model.removeNode("/root/main/exculist/mainordlist5");
- model.removeNode("/root/init/cmb_info1/listexcuroomgrp[listexcuroomgrpcdid='']");
- model.removeNode("/root/init/cmb_info1/listexcuroomgrp[listexcuroomgrpcdid='DR']");
-
-
- // 그룹 , 검사실, Sono검사자 초기화
- //model.resetInstanceNode("/root/init/cmb_info1/listexcuroomgrp");
- //model.resetInstanceNode("/root/init/cmb_info2/initexecroom");
- //model.resetInstanceNode("/root/init/cmb_info3/initexecr");
-
- //처방상태 공통코드 갖고오기
- zbcfGetCodeList( new Array("M0011", "M0010"), new Array("/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initprcpgenrflagcd") );
- submit("TRZBC00101", false);
-
- model.removeNodeset("/root/hidden/beforersrvtm/rsrvdtlist"); //변경전 시간 담아놓는 그리드
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
-
- model.toggle("case1");
- btn_case1.selected = true;
- //btn_case2.selected = false;
- 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/suppdeptcd1", condarray[2]);
- btn_sea.dispatch("DOMActivate");
-
- // object에 제어를 하기 위해서 , 장준원(20080416)
- chkobjvisible();
-
- }
- 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");
- // caption2.visible = true;
- // cmb_excuroomgrp.visible = true;
- // caption3.visible = true;
- // ipt_date1.visible = true;
- // caption18.visible = true;
- // button23.visible = true;
- model.setValue("/root/hidden/rsrvprtyn", "Y");
-
- // 2010.12.07 c y w 바코드미출력 여부 Y로 default
- model.setValue("/root/hidden/rexprtyn", "");
-
- // 바코드 출력매수 초기값 셋팅
- model.setValue("/root/send/barcnt", "1");
-
- // 2010.12.16 c y w 바코드프린트 셋팅
- model.makeValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
-
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- <submission id="TRAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist"/>
- <submission id="TRAER13003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAER13004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info3"/>
- <submission id="TRAER01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
- <submission id="TRAER13006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
- <submission id="TRAEA02014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info1"/>
- <submission id="TRAEA02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
- <submission id="TRAER13005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAER13002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
- <submission id="TRAER13001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
- <submission id="TXAER13001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
- <submission id="TXAER13002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/autoreq" replace="instance" resultref="/root/temp"/>
- <submission id="TRAEA02009" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/reqdata1"/>
- <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
- <submission id="TRAEA02013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
- <submission id="TXAEA01304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acptremdata" resultref="/root/hidden/count"/>
- <submission id="TXAEA01305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acptremdata" replace="instance" resultref="/root/hidden/item"/>
- <submission id="TXAEB00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/canclroom" replace="instance" resultref="/root/hidden/data"/>
- <bind id="bind_mainordlist5" ref="/root/main/exculist/mainordlist5/excuroomcd" readonly="../excuroomcd!=''"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAAA00001"/>
- <submission id="TRAER01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userscrnenvinfo"/>
- </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" src="../../../ast/examcureweb/js/SPAER13000.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
-
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Object Visible 체크
- * 1. 영상의학과의 자체예약일 경우
- * - 검사현황 Grid의 병실컬럼.
- */
- function chkobjvisible() {
- }
- /*
- function chkobjvisible(check) {
- if ( check == "A" ) {
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("roomcd")) = false;
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("telrsrvyn")) = true;
- } else {
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("roomcd")) = true;
- grd_mainordlist5.colhidden(grd_mainordlist5.colref("telrsrvyn")) = false;
- }
- }
- */
-
- /* @group : 통합예약관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 달력초기화
- */
-
- function initCalendar() {
- //alert("/root/hidden/calendar/year->"+model.getValue("/root/hidden/calendar/year"));
-
- if (model.getValue("/root/hidden/calendar/year") == ""){
- var curDate = getCurrentDate().toDate();
-
- //alert('1->'+curDate);
- model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
- model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
- //model.setValue("/root/hidden/calendar/dd", curDate.getDateFormat('DD'));
- setCalendar(curDate);
- }else{
- var curDate = model.getValue("/root/send/data/rsrvdd");
-
- //alert('2->'+curDate);
- model.setValue("/root/hidden/calendar/year", curDate.substr(0, 4));
- model.setValue("/root/hidden/calendar/month", curDate.substr(4, 2));
- //fCalendar();
-
- //setRsrvPresCondByMonth();
- setCalendar(curDate.toDate());
- }
- //model.refresh();
-
-
- }
-
- 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");
-
- fCalendar();
- }
-
- function fCalendar(){
-
- if (submit("TRAEA02012")){
- 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();
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
-
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
- }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
- }else{
- grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
- }
- }
- grd_calendar.refresh();
- }
- }
-
- //=====================================================================================================================================================================================
- // @ 프린터 설정
- //=====================================================================================================================================================================================
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- // open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- // 렉스퍼트로 라벨출력가능하게 수정
- open("SPZUR00300", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- /* @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("TRAER13005", false);
- //submit("TRAER13005");
-
- //grd_calendar.refresh();
- grd_temp.refresh();
- 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();
- for (var i = 1; i < datagrid3.rows; i++) {
- var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
- var colidx = dd.toDate().getDay();
- var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
- grd_calendar.cellStyle("background-color", rowidx, colidx) = "white";
- grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "white";
- }
- grd_calendar.refresh();
- //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(parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) < parseFloat(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
- }
- }
- model.refresh();
- }
-
- function readfunc(){
-
- model.setValue("/root/send/data/orddeptcd","");
- model.setValue("/root/send/data/excuroomcd","");
- model.setValue("/root/send/data/listexcuroomcdid","");
-
- // Grid Init
- fSetGridInit();
-
- //처방현황
- model.setValue("/root/send/data/srchpid",model.getValue("/root/send/data/srchpid"));
-
- model.setValue("/root/hidden/calendar/year", "");
- model.setValue("/root/hidden/calendar/month", "");
-
- model.setValue("/root/hidden/boolcontrol/bool","false");
-
- if (submit("TRAER13001")){
-
- // object에 제어를 하기 위해서 , 장준원(20080416)
- chkobjvisible();
- var k = 0;
- var grpcnt = 0;
- var curDD = getCurrentDate();
-
- for (var i = 1; i < grd_mainordlist5.rows; i++){
- var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + i +"]/rsrvmultitmplcd");
- k =0;
- for(var j=0; j < stmpcd.length; j++){
- //var ch = escape(str.charAt(i));
- var ch = stmpcd.charAt(j);
- if (ch == "^"){
- k = parseInt(k) + 1;
- }
- }
- if (k > 0){
- grd_mainordlist5.cellstyle("color", i, grd_mainordlist5.colRef("prcpnm")) = "#0000ff";
- }else{
- grd_mainordlist5.cellstyle("color", i, grd_mainordlist5.colRef("prcpnm")) = "";
- }
- // 2011.05.02 cyw 검사실이 PET이고 수납일자가 2011.05.02 이전일 경우 안내메시지 띄우기.
- //2011.10.12 kya 처방확인추가
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd") < "20110501" ) {
- if ( ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "CT" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rcptdd") < "20110501" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/execprcpstatcd") < "610" )
- || ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "MRI" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rcptdd") < "20110501" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/execprcpstatcd") < "610" ) ){
- grpcnt++;
- }
- }
- //}
-
- //2012.07.04 kya 처방확인추가
- //2012.07.15 부터 PET, CT, MRI 수가인하로 인해 실시일이 7/15 이후인 해당검사의 경우, 안내메시지 띄우기
- if ( curDD >= "20120715" ) {
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd") < "20120715" ) {
- if ( ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "CT" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rcptdd") < "20120715" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/execprcpstatcd") < "610" )
- || ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "MRI" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rcptdd") < "20120715" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/execprcpstatcd") < "610" ) ){
- grpcnt++;
- }
- }
- }
- }
-
- if( grpcnt > 0 ){ // 환급을 위해 원무 창구로 안내바랍니다.
- messageBox("환급을 위해 원무 창구로 안내", "I008");
- }
-
- }
-
- // ADR정보 조회 후 표기, 20160923, 권영애
- //시작
- model.makeValue("/root/hidden/isolinfo/isoldata", "");
- if (model.getValue("/root/main/exculist/isolinfo/isoldispcd") != "") {
- model.setValue("/root/hidden/isolinfo/isoldata", "확인");
- }
- //끝
-
- //BMD 검사 사전점검 2012.12.17 by kya
- var bmdcnt = model.getValue("/root/main/exculist/bmdcnt/cnt");
- if ( bmdcnt > 0){
- messageBox("최근 1년이내에 실시된 검사가 있습니다. BMD는 1년에 1회만 급여", "I006");
- }
- model.refresh();
- }
-
- /* @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.refresh();
-
- dateObj.setDate(1);
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
-
- var rows = Math.ceil( ( startDay + days ) / 7 );
- 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.refresh();
- 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");
- //model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+model.getValue("/root/hidden/calendar/dd"));
- //alert("/root/send/data/rsrvdd->"+model.getValue("/root/send/data/rsrvdd"));
-
- fCalendar();
-
- 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) {
-
- 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 (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("TRAER13002",false);
-
- model.refresh();
- }
-
-
- /* @group : 통합예약
- * @ver : 2007.07.03
- * @by : 임혜정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약, 취소 버튼의 click 이벤트 처리
- */
- function exeRsrvTransaction(str) {
-
- var sColSep = "▦";
- var sRowSep = "▩";
- var rCSV = "";
-
- rCSV += "pid" + sColSep +
- "excuroomcd" + sColSep +
- "prcpdd" + sColSep +
- "execprcpuniqno" + sColSep +
- "rsrvflag" + sColSep +
- "rsrvdt" + sColSep +
- "srchrsrvtm" + sColSep +
- "calcscorcd" + sColSep+
- "rsrvrem" + sColSep +
- "suppdeptcd" + sColSep+
- "pacsnocretyn" + sColSep+
- "prcpdelivefact" + sColSep+
- "orddepthngnm" + sColSep+
- "prcpnm" + sColSep+
- "bf_srchrsrvtm" + sColSep+
- "rsrvflagyn" + sColSep+
- "prcpexecdeptcd" + sColSep+
- "eqmtifyn" + sColSep +
- "prcpgenrflag" + sColSep +
- "excupartcd" + sColSep +
- "indd" + sColSep +
- "actorddd" + sColSep +
- "orddeptcd" + sColSep +
- "orddrid" + sColSep +
- "rsrvtmplcd" + sColSep+
- "acptrem" + sColSep+
- "aftrcptinfo" + sRowSep ;
- //헤더인 excuroomcd를 앞에 붙여줘서 보냄.
-
- var k = 0;
- for (var i = 1;i < grd_mainordlist5.rows;i++){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk")=="true"){
-
- /*
- if (str == "rsrv"){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/examroomnm") == ""){
- messageBox(i + "번째행에 수행부서를 선택하시기 바랍니다.", "E999", "");
- return false;
- }
- if (grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("srchrsrvtm")) == ""){
- messageBox(i + "번째행에 예약시간을 선택하시기 바랍니다.", "E999", "");
- return false;
- }
- }
- */
- 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("bf_srchrsrvtm")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("srchrsrvtm")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("calcscorcd")) + 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("pacsnocretyn")) + 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("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("eqmtifyn")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpgenrflag")) + 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("rsrvtmplcd")) +sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("acptrem")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("aftrcptinfo")) + sRowSep; //20150224 추가함 aftrcptinfo
-
- k = parseInt(k) + 1;
- }
- }
-
- model.resetInstanceNode("/root/send/req/data");
- model.setValue("/root/send/req/flag", str);
-
- 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");
-
- //alert(rCSV);
- //return;
-
- if (submit("TXAER13001", false)){
- return true;
- }else{
- return false;
- }
-
-
- }
-
- /* @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);
-
- }
-
-
- function fSetGrdMainordlist(){
- for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
- grd_mainordlist5.rowstyle(i, "data", "background-color") = "#ffffff";
- }
- // 예약일 경우, 색깔 뺌.
- //aezfSetRowStyle("grd_mainordlist5" , "5" , "예약" , "rsrvflagdispyn" ); //예약
- //20140205 kya 수정 후불 수납외에는 색깔지정 뺌
- // 'V' 후불, 'P' 처방당일후수납, 'A' 미수납
- //aezfSetCellStyle("grd_mainordlist5" , "0^1^2" , "V^P^A" , "aftrcptinfo", "rcptyn", "F");
- aezfSetCellStyle("grd_mainordlist5" , "0^1" , "V^P" , "aftrcptinfo", "rcptyn", "F");
-
-
- // 구분컬럼 ( 예약일 경우 색변경 )
- if( grd_mainordlist5.rows > 1 ) {
- for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ) {
-
- if( model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약" ) {
- grd_mainordlist5.cellStyle("color", i, 2, i, 2) = "#ff0000";
- } else {
- grd_mainordlist5.cellStyle("color", i, 2, i, 2) = "#000000";
- }
-
- //20130306 권영애 후불수납 추가
- if( model.getValue("/root/main/exculist/mainordlist5["+i+"]/aftrcptinfo") == "V" ) {
- model.setValue("/root/main/exculist/mainordlist5[" +i + "]/rcptflag", "후불");
- //start
- //20140205 by kya 진료비후불표시
- grd_mainordlist5.cellstyle("background-color", i, 0, i, 26) = "yellow";
- //end
- } else {
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/rcptflag", " ");
- }
-
- }
- }
- grd_mainordlist5.colStyle(2, "data", "font-weight") = "bold";
-
- model.refresh();
- }
-
- function fPamRsrvInfo() {
- open("SMPMO00300");
- }
-
- function fGetWideListX2(tab1, grd1) {
- if ( btn_case1.selected == true ) {
- var extnGrdWidht = 1180;
- var extnGrdWidht2 = 1170;
-
- }
- if ( btn_case2.selected == true ) {
- var extnGrdWidht = 1180;
- var extnGrdWidht2 = 1170;
-
- }
- tab1.attribute("width") = extnGrdWidht;
- grd1.attribute("width") = extnGrdWidht2;
- line16.attribute("width") = extnGrdWidht;
- }
-
- function fGetWideListX1(tab1, grd1) {
-
- var extnGrdWidht = 725;
- var extnGrdWidht2 = 715;
-
- tab1.attribute("width") = extnGrdWidht;
- grd1.attribute("width") = extnGrdWidht2;
- line16.attribute("width") = extnGrdWidht;
- }
-
- function fSetParamInitSet() {
-
- setParameter("SMAER13000_SrchrsrvtmEditYN" , "N");
- }
-
-
- function fSetGridInit() {
-
- model.removeNodeset("root/main/exculist/mainordlist2");
-
- model.removeNodeset("root/main/exculist/mainordlist5");
- model.removeNodeset("root/main/exculist/mainordlist8");
-
- 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/init/cmb_info1/listexcuroomgrp");
- model.removeNodeset("/root/init/cmb_info2/initexecroom");
- model.removeNodeset("/root/init/cmb_info3/initexecr");
- model.refresh();
- }
- function ChangeTmplcd(){
- var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row +"]/rsrvmultitmplcd");
- if (stmpcd == ""){
- messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
- }
- var k =0;
- for(var j=0; j < stmpcd.length; j++){
- //var ch = escape(str.charAt(i));
- var ch = stmpcd.charAt(j);
- if (ch == "^"){
- k = parseInt(k) + 1;
- }
- }
- if (k == 0){
- messageBox("멀티예약예문이 아닙니다.", "E999", "");
- return;
- }
- model.makeValue("/root/hidden/checkseq","01");
- model.makeValue("/root/hidden/calcscorcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
- model.makeValue("/root/hidden/tmplcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvmultitmplcd"));
- window.load( "SPAEA02303_예약예문코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
- model.refresh();
- }
- function ChangeCanFunc(){
- model.setValue("/root/send/popup/basecdflag","A");
- modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
- var srem = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem");
- if (srem == "-"){
- srem = "";
- }
- if (srem != ""){
- srem = srem + " ";
- }
- var srem = srem + model.getValue("/root/hidden/cnclcdlist/cnclcdnm");
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem", srem);
- model.refresh();
- }
- //20150625 검사실정보 저장
- function SaveAcptrem(){
- if (grd_mainordlist5.row < 1){
- messageBox("처리할 자료를 선택한 후 진행하시기 바랍니다.", "E999", "");
- return;
- }
- var aftrcptinfo = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/aftrcptinfo");
- //alert( " aftrcptinfo = " + aftrcptinfo );
-
- if ( aftrcptinfo == "A" ) { //미수납일경우
- model.makeValue("/root/send/acptremdata/pid", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/pid"));
- model.makeValue("/root/send/acptremdata/suppdeptcd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/suppdeptcd"));
- model.makeValue("/root/send/acptremdata/patrem", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/acptrem"));
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/srchrsrvtm" )
- model.makeValue("/root/send/acptremdata/pexcuroomcd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excuroomcd"));
- model.makeValue("/root/send/acptremdata/memorgstddprcpdd", rsrvdt.substr(0,8));
- //model.makeValue("/root/send/acptremdata/memorgstddprcpdd", model.getValue("/root/main/subordlist/subordlist1[" + grd_subordlist1.row + "]/prcpdd"));
-
- if(submit("TXAEA01305")) {
- messageBox("저장이 완료되었습니다.","I999");
- }
- } else {
- model.makeValue("/root/send/acptremdata/execprcpuniqno", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/execprcpuniqno"));
- model.makeValue("/root/send/acptremdata/acptrem", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/acptrem"));
- model.makeValue("/root/send/acptremdata/prcpdd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpdd"));
- model.makeValue("/root/send/acptremdata/basesuppdeptcd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/suppdeptcd"));
-
- if (submit("TXAEA01304")) {
- messageBox("저장이 완료되었습니다.","I999");
- }
- }
- model.refresh();
- }
- /* @group : 선택된 예약케파 가용인원 초기화하기
- * @ver : 2010.02.10
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 외래에서 예약을 못하도록 선택된 예약케파 가용인원 초기화를 위한 Function
- * update시 필요한 초기자료는 예약시간 현황 가져올때 map file에서 기본 "0"으로 셋팅하여 가져옴.
- */
- function ChangRsrvposstm(){
- if ( grd_rsrvposstm.rows < grd_rsrvposstm.fixedRows + 1){ // 로딩된 데이터가 없으면 리턴
- return;
- }
- for ( var i =0 ; i < grd_rsrvposstm.selectedRows ; i++){
- grd_rsrvposstm.addStatus( grd_rsrvposstm.selectedRow(i) ,"update" );
- }
-
- model.setValue("/root/send/canclroom/data",getGridUpdateData(grd_rsrvposstm) );
- //alert("전송대상 내역 : " + model.getValue("/root/send/canclroom/data") );
- // 정말 저장할건지 물어보고 진행
- if ( messageBox("","Q002")==6 ) {
- //alert("저장실행");
- submit("TXAEB00903");
- grd_calendar.dispatch("onclick");
- model.setValue("/root/send/canclroom/data", "");
- }else{
- return;
- }
-
- model.refresh();
- }
-
- /* @group : 예약된 검사의 검사 소요 시간과 현재 예약 검사에 대한 시간 비교 체크
- * @ver : 2010.07.01
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약된 검사별 검사 소요 시간을 체크하여 선택된 예약 시간에 대해 예약 가능 여부 체크
- */
- function fChkEaxmUseTm(rsrvdd, currow){
- var rsrvdt = rsrvdd + model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ currow +"]/rsrvtm");
- var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ currow +"]/rsrvtm");
- var rsrvcnt = getNodesetCount("/root/main/rsrvposstmlist/rsrvlist");
-
- var excuroomcdid = model.getValue("/root/send/data/listexcuroomcdid");
- var cntrage = model.getValue("/root/init/cmb_info2/initexecroom[excuroomcdid = '" + excuroomcdid + "']/rsrvcntrage");
- var frominterval = model.getValue("/root/init/cmb_info2/initexecroom[excuroomcdid = '" + excuroomcdid + "']/rsrvfrominterval");
- var tointerval = model.getValue("/root/init/cmb_info2/initexecroom[excuroomcdid = '" + excuroomcdid + "']/rsrvtointerval");
- var age = model.getValue("/root/main/exculist/patinfolist/age");
- if (eval(age) <= eval(cntrage)) {
- if (rsrvtm < frominterval || rsrvtm > tointerval ) {
- if (messageBox("소아 예약 가능 시간을 초과 하였습니다. " , "Q003") != 6) {
- rsrvdd = "";
- rsrvtm = "";
- return;
- }
- }
- }
-
- var prersrvdt = "";
- var prersrvtm = "";
- var nextrsrvdt = "";
- var nextrsrvtm = "";
- var excutm = "";
- var chktm = "";
- var chkflag = "N";
-
- var prerow = currow - 1;
- var nextrow = currow + 1;
-
- var count = 0;
- var maxCnt = 0;
- var useCnt = 0;
-
- // 선택한 예약 시간 바로 전 체크
- prersrvdt = rsrvdd + model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ prerow +"]/rsrvtm");
- prersrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ prerow +"]/rsrvtm");
- count = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ prerow +"]/count");
- maxCnt = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ prerow +"]/max");
- useCnt = maxCnt - count;
- // 선택한 예약 시간 바로 전 가용인원이 없는 경우
- if (useCnt < 1) {
- // alert("메시지 : 선택한 예약 시간 바로 전 가용인원이 없는 경우");
- // alert("prersrvtm ["+ prersrvtm +"]");
- // 이전 예약 시간이 있는 경우
- if (prersrvtm != "") {
- // alert("메시지 : 이전 예약 시간이 있는 경우");
- var nodeSet = "/root/main/rsrvposstmlist/rsrvlist[srchrsrvtm = '" + prersrvtm + "']/excutm";
- var xPathFunction = "max(" + nodeSet + ")";
-
- // 동일 시간대에 가장 검사 소요 시간이 큰건을 조회
- excutm = model.getXPathValue(xPathFunction);
- if (excutm != "NaN") {
- excutm = eval(excutm) * eval(maxCnt);
- chktm = prersrvdt.toDate("YYYYMMDDhhmm").getAddDate(eval(excutm), "m").getDateFormat("hhmm");
- } else {
- chktm = "0000";
- }
-
- if (chktm > rsrvtm) {
- // alert("chktm > rsrvtm [ " + chktm + " > " + rsrvtm +"]");
- if (messageBox("예약된 검사 소요 시간으로 인하여 선택된 예약 시간을 초과 하였습니다. " , "Q003") != 6) {
- rsrvdd = "";
- rsrvtm = "";
- }
- } else {
- // alert("메시지 : 이전 예약 시간 체크 통과");
- // 선택한 예약 시간 바로 후 체크
- nextrsrvdt = rsrvdd + model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/rsrvtm");
- nextrsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/rsrvtm");
- count = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/count");
- maxCnt = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/max");
- useCnt = maxCnt - count;
-
- // 다음 예약 시간이 있는 경우
- if (nextrsrvtm != "") {
- // alert("메시지 : 다음 예약 시간이 있는 경우");
- // 가용인원이 없는 경우
- if (useCnt < 1) {
- var srchLength1 = model.instances(0).selectNodes( "/root/main/exculist/mainordlist5" ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
- if (model.getValue("/root/main/exculist/mainordlist5["+ i +"]/chk") == "true" ) {
- excutm = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excutm");
- chktm = rsrvdt.toDate("YYYYMMDDhhmm").getAddDate(eval(excutm), "m").getDateFormat("hhmm");
- if (chktm > nextrsrvtm) {
- chkflag = "Y";
- }
- }
- }
- if (chkflag == "Y" ) {
- if (messageBox("예약된 검사 소요 시간으로 인하여 선택된 예약 시간을 초과 하였습니다. " , "Q003") != 6) {
- rsrvdd = "";
- rsrvtm = "";
- }
- }
- }
- } else {
- // alert("메시지 : 다음 예약 시간이 없는 경우");
- }
- }
- // 이전 예약 시간이 없는 경우
- } else {
- // alert("메시지 : 이전 예약 시간이 없는 경우");
- // 선택한 예약 시간 바로 후 체크
- nextrsrvdt = rsrvdd + model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/rsrvtm");
- nextrsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/rsrvtm");
- count = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/count");
- maxCnt = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/max");
- useCnt = maxCnt - count;
- // 다음 예약 시간이 있는 경우
- if (nextrsrvtm != "") {
- // alert("메시지 : 다음 예약 시간이 있는 경우");
- // 가용인원이 없는 경우
- if (useCnt < 1) {
- // alert("메시지 : 가용인원이 없는 경우");
- var srchLength1 = model.instances(0).selectNodes( "/root/main/exculist/mainordlist5" ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
- if (model.getValue("/root/main/exculist/mainordlist5["+ i +"]/chk") == "true" ) {
- excutm = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excutm")
- chktm = rsrvdt.toDate("YYYYMMDDhhmm").getAddDate(eval(excutm), "m").getDateFormat("hhmm");
- if (chktm > nextrsrvtm) {
- chkflag = "Y";
- }
- }
- }
- if (chkflag == "Y" ) {
- if (messageBox("예약된 검사 소요 시간으로 인하여 선택된 예약 시간을 초과 하였습니다. " , "Q003") != 6) {
- rsrvdd = "";
- rsrvtm = "";
- }
- }
- } else {
- // alert("메시지 : 가용인원이 있는 경우");
- }
- }
- }
-
- // 선택한 예약 시간 바로 전 가용인원이 있는 경우
- } else {
- // alert("메시지 : 선택한 예약 시간 바로 전 가용인원이 있는 경우");
- // 선택한 예약 시간 바로 후 체크
- nextrsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/rsrvtm");
- count = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/count");
- maxCnt = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+ nextrow +"]/max");
- useCnt = maxCnt - count;
-
- // 다음 예약 시간이 있는 경우
- if (nextrsrvtm != "") {
- // alert("메시지 : 다음 예약 시간이 있는 경우");
- // 가용인원이 없는 경우
- if (useCnt < 1) {
- // alert("메시지 : 가용인원이 없는 경우");
- var srchLength1 = model.instances(0).selectNodes( "/root/main/exculist/mainordlist5" ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
- if (model.getValue("/root/main/exculist/mainordlist5["+ i +"]/chk") == "true" ) {
- excutm = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excutm")
- chktm = rsrvdt.toDate("YYYYMMDDhhmm").getAddDate(eval(excutm), "m").getDateFormat("hhmm");
- if (chktm > nextrsrvtm) {
- chkflag = "Y";
- }
- }
- }
- if (chkflag == "Y" ) {
- if (messageBox("예약된 검사 소요 시간으로 인하여 선택된 예약 시간을 초과 하였습니다. " , "Q003") != 6) {
- rsrvdd = "";
- rsrvtm = "";
- }
- }
- } else {
- // alert("메시지 : 가용인원이 있는 경우");
- }
- } else {
- // alert("메시지 : 다음 예약 시간이 없는 경우");
- }
- }
-
-
- // for (var i = 1; i <= rsrvcnt; i++) {
- // srchrsrvtm = rsrvdd + model.getValue("/root/main/rsrvposstmlist/rsrvlist["+ i +"]/srchrsrvtm");
- // excutm = model.getValue("/root/main/rsrvposstmlist/rsrvlist["+ i +"]/excutm");
- // chktm = srchrsrvtm.toDate("YYYYMMDDhhmm").getAddDate(excutm, "m").getDateFormat("hhmm");
- //
- // alert("chktm : " + chktm);
- // alert("rsrvtm : " + rsrvtm);
- //
- // if (useCnt < 2 ) {
- // if (srchrsrvtm != rsrvtm && && chktm > rsrvtm ) {
- // chkflag = "Y";
- // }
- // }
- // }
- //
- // if (chkflag == "Y") {
- // if (messageBox("예약된 검사 소요 시간으로 인하여 선택된 예약 시간을 초과 하였습니다. " , "Q003") != 6) {
- // rsrvdd = "";
- // rsrvtm = "";
- // }
- // }
- var excuroomcd = model.getValue("/root/send/data/listexcuroomcdid");
- var age = model.getValue("/root/main/exculist/patinfolist/age");
-
- var cntrage = model.getValue("/root/init/cmb_info2/initexecroom[excuroomcdid = '"+ excuroomcd + "']/rsrvcntrage");
- var frominterval = model.getValue("/root/init/cmb_info2/initexecroom[excuroomcdid = '"+ excuroomcd + "']/rsrvfrominterval");
- var tointerval = model.getValue("/root/init/cmb_info2/initexecroom[excuroomcdid = '"+ excuroomcd + "']/rsrvtointerval");
-
- if (eval(cntrage) > eval(age)) {
- // 예약 가능 시간 이전일 경우
- if (rsrvtm < frominterval) {
- if (messageBox(" 선택된 예약 시간이 예약 가능 시간 이전 시간입니다. " , "Q003") != 6) {
- rsrvdd = "";
- rsrvtm = "";
- }
- }
- // 예약 가능 시간 이후일 경우
- if (rsrvtm > tointerval) {
- if (messageBox("선택된 예약 시간이 예약 가능 시간 이후 시간입니다. " , "Q003") != 6) {
- rsrvdd = "";
- rsrvtm = "";
- }
- }
- }
-
- var srchLength1 = model.instances(0).selectNodes( "/root/main/exculist/mainordlist5" ).length;
- for ( var i = 1; i <= srchLength1; i++ ) {
- if (model.getValue("/root/main/exculist/mainordlist5["+ i +"]/chk") == "true" ) {
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/srchrsrvtm", rsrvdd + rsrvtm ); // 예약시간
- model.setValue("/root/main/exculist/mainordlist5["+ i +"]/chk", "true");
- }
- }
- }
- //2011.05.03 cyw 상단정보 띄우기
- function fTopInfo(){
- //TOP 정보 보여주기
- schk = "N";
-
- var pid = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/pid");
- var prcpgenrflag = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpgenrflag");
- var dschdd = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/dschdd");
- var srchdd = "";
-
- if ( prcpgenrflag =="O" ) {
- var pat_info = prcpgenrflag
- +"▦"+pid
- +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")
- +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")
- +"▦"+getUserInfo("dutplceinstcd")
- +"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
- schk = "Y";
- } else if ( prcpgenrflag =="I" || prcpgenrflag =="D" || prcpgenrflag =="E" ) {
-
- if (dschdd == "" || dschdd == "99991231") {
- srchdd = getCurrentDate();
- } else {
- srchdd = dschdd;
- }
- var pat_info = prcpgenrflag
- +"▦"+ pid
- +"▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")
- +"▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")
- +"▦"+ getUserInfo("dutplceinstcd")
- +"▦"+ srchdd;
- schk = "Y";
- } else if ( prcpgenrflag =="S" || prcpgenrflag =="-" ) {
- var pat_info = prcpgenrflag + "▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdd")
- +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpuniqno")
- +"▦"+getUserInfo("dutplceinstcd");
- 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 fTopInfo2() {
-
- var path = "";
- path = "/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/";
-
- var patinfo = "S▦" + model.getValue(path + "prcpdd") + "▦" + model.getValue(path + "execprcpuniqno") + "▦" + getUserInfo("dutplcecd");
-
- setParameter("condparam", patinfo);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- /*
- var paminfo = getGlobalVariable("paminfo");
- if (paminfo != "") {
- model.removeNodeset("/root/paminfo");
- model.makeNode("/root/paminfo");
- setCSVToNode("/root/paminfo", paminfo);
- }
- */
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <datagrid id="grd_mainordlist7" nodeset="/root/main/ordlist1/mainordlist" visibility="visible" autoresize="true" caption="구분^등록번호^환자명^병실^과^검사명^임상소견^전달사항^처방일련번호^처방일자" colsep="^" colwidth="55, 65, 60, 40, 30, 210, 150, 150, 100, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:725px; top:27px; width:468px; height:368px; ">
- <col ref="rsrvflagyn" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="depthngnm" style="text-align:center; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="prcpdelivefact" style="text-align:left; "/>
- <col ref="clinccmtcnts" style="text-align:left; "/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist7.row + "]/pid"));
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist7.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button27" class="btn2_letter6" visibility="visible" style="left:259px; top:142px; width:86px; height:19px; ">
- <caption>골밀도현황</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- group3.visible = true;
- model.refresh();
-
- ]]>
- </script>
- </button>
- <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>
- <caption id="caption14" class="tit_2" style="left:4px; top:413px; width:69px; height:13px; ">수행부서</caption>
- <group id="grp_sea" style="left:0px; top:25px; width:500px; height:105px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:497px; height:100px; background-color:#FFDFA6; border-color:#f2b20c; border-width:2px; border-style:dashed; "/>
- <line id="line13" class="line_4" style="x1:424px; y1:68px; x2:424px; y2:90px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="3" style="left:430px; top:67px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_pid.value != "" )
- {
-
- // 펼치기
- button103.dispatch("onclick");
-
- // Parameter Init Setting
- fSetParamInitSet();
-
- model.removeNodeset("/root/hidden/calendar/weeklist/list");
- model.setValue("/root/send/data/hngnm", "");
- model.setValue("/root/main/comment1/prcpcmt",""); //20120424 by kya
- readfunc();
- delPatientInfos();
- //상태별 색상주기
- fSetGrdMainordlist();
-
- if (model.getValue("/root/send/data/srchpid") != ""){
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.model.makeValue("/root/main/patinfolist/pid" , model.getValue("/root/send/data/srchpid"));
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- child.javascript.fReqGetPatComnInfo("/root/send/reqdata", model.getValue("/root/send/data/srchpid"));
- child.button1.selected = true;
- child.model.toggle("case1");
-
- child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
- child.model.removeNodeset("/root/main/bfprcp/prcplist");
- child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
- child.grd_prcpdd.visible = false;
- child.grd_bfprcplist.attribute("left") = 2;
- child.grd_bfprcplist.attribute("width")= 1190;
- child.model.refresh();
- }
- var child = getOpenWindow("SMAEA00300") ;
- if (child != null ) {
- child.model.makeValue("/root/send/srchpid" , model.getValue("/root/send/data/srchpid"));
- child.btn_sea.dispatch("DOMActivate");
- child.model.refresh();
- }
- var child = getOpenWindow("SMAEA04400") ;
- if (child != null ) {
- child.model.makeValue("/root/send/pid" , model.getValue("/root/send/data/srchpid"));
- child.btn_sea.dispatch("DOMActivate");
- child.model.refresh();
- }
- }
-
- }
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" navindex="1" style="left:73px; top:8px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_sea","DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_execcncl.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <output id="opt_hngnm" ref="/root/main/exculist/patinfolist/hngnm" class="output_fix" disabled="true" style="left:246px; top:8px; width:74px; height:19px; "/>
- <caption id="caption1" class="cell_1" style="left:195px; top:5px; width:46px; height:23px; vertical-align:middle; background-color:#f2b20c; ">환자명</caption>
- <output id="opt_sex" ref="/root/main/exculist/patinfolist/sex" class="output_fix" disabled="true" style="left:409px; top:8px; width:30px; height:19px; text-align:center; "/>
- <caption id="caption16" class="cell_1" style="left:342px; top:5px; width:63px; height:23px; vertical-align:middle; background-color:#f2b20c; ">성별/나이</caption>
- <output id="opt_age" ref="/root/main/exculist/patinfolist/age" class="output_fix" disabled="true" style="left:442px; top:8px; width:30px; height:19px; text-align:center; "/>
- <output id="opt_addr" ref="/root/main/exculist/patinfolist/addr" class="output_fix" disabled="true" style="left:246px; top:70px; width:174px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:195px; top:37px; width:46px; height:23px; vertical-align:middle; background-color:#f2b20c; ">집전화</caption>
- <caption id="caption4" class="cell_1" style="left:195px; top:69px; width:46px; height:23px; vertical-align:middle; background-color:#f2b20c; ">집주소</caption>
- <output id="opt_hometel" ref="/root/main/exculist/patinfolist/hometel" class="output_fix" style="left:246px; top:40px; width:90px; height:19px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( model.getValue("/root/main/exculist/patinfolist/hngnm") != "" || model.getValue("/root/main/exculist/patinfolist/hngnm") != " " ) {
- // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
- //예약내역이 없는 필드 체크
- var hngnm = model.getValue("/root/main/exculist/patinfolist/hngnm");
- var pid = model.getValue("/root/send/data/srchpid");
- if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
- return false;
- }
- //setParameter("opener_parameter_id", pid);
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- var hometel = getParameter("SMPMO01400_hometel");
- var mpphontel = getParameter("SMPMO01400_mpphontel");
- if( hometel != '' && mpphontel != '' ){
- model.setValue("/root/main/exculist/patinfolist/hometel", hometel) ;
- model.setValue("/root/main/exculist/patinfolist/mpphontel", mpphontel) ;
- }
- model.removeNodeset("/root/temp/source");
- model.refresh();
- }
- ]]>
- </script>
- </output>
- <caption id="caption5" class="cell_1" style="left:341px; top:37px; width:63px; height:23px; text-align:center; background-color:#f2b20c; ">핸드폰</caption>
- <output id="opt_mpphontel" ref="/root/main/exculist/patinfolist/mpphontel" class="output_fix" style="left:409px; top:40px; width:85px; height:19px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( model.getValue("/root/main/exculist/patinfolist/hngnm") != "" || model.getValue("/root/main/exculist/patinfolist/hngnm") != " " ) {
- // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
- //예약내역이 없는 필드 체크
- var hngnm = model.getValue("/root/main/exculist/patinfolist/hngnm");
- var pid = model.getValue("/root/send/data/srchpid");
- if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
- return false;
- }
- //setParameter("opener_parameter_id", pid);
- model.removeNodeset("/root/temp/source");
- model.makeValue("/root/temp/source/srchcond", "1");
- model.makeValue("/root/temp/source/pid", pid);
- modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
-
- var hometel = getParameter("SMPMO01400_hometel");
- var mpphontel = getParameter("SMPMO01400_mpphontel");
- if( hometel != '' && mpphontel != '' ){
- model.setValue("/root/main/exculist/patinfolist/hometel", hometel) ;
- model.setValue("/root/main/exculist/patinfolist/mpphontel", mpphontel) ;
- }
- model.removeNodeset("/root/temp/source");
- model.refresh();
- }
- ]]>
- </script>
- </output>
- <output id="output1" ref="/root/main/exculist/patinfolist/rrgstno1" class="output_fix" style="left:73px; top:40px; width:50px; height:19px; font-weight:bold; border-color:#f2b20c; border-width:1px; "/>
- <output id="output2" ref="/root/main/exculist/patinfolist/rrgstno2" class="output_fix" style="left:125px; top:40px; width:60px; height:19px; font-weight:bold; border-color:#f2b20c; border-width:1px; "/>
- <caption id="caption8" class="cell_1" style="left:3px; top:5px; width:65px; height:23px; text-align:center; vertical-align:middle; background-color:#f2b20c; ">등록번호</caption>
- <caption id="caption9" class="cell_1" style="left:3px; top:37px; width:65px; height:23px; text-align:center; vertical-align:middle; background-color:#f2b20c; ">주민번호</caption>
- <caption id="caption12" class="cell_1" style="left:3px; top:69px; width:65px; height:23px; text-align:center; vertical-align:middle; background-color:#f2b20c; ">병실</caption>
- <output id="output3" ref="/root/main/exculist/patinfolist/ward" class="output_fix" disabled="true" style="left:73px; top:70px; width:112px; height:19px; "/>
- <button id="btn_pid" class="icon_search" style="left:325px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 환자조회
-
- model.makeValue("/root/send/data2/pid","");
- model.makeValue("/root/send/data2/srchcond","4");
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/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>
- <caption id="cpt_isolinfo" ref="/root/hidden/isolinfo/isoldata" style="left:155px; top:5px; width:40px; height:25px; font-size:12pt; font-weight:bold; color:#ff0000; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- group7.visible = true;
- cpt_isoldata.visible = true;
- txt_isol.visible = true;
- button1.visible = true;
- line_isol.visible = true;
- line_isol2.visible = true;
- cpt_isoltitle.visible = true;
-
- ]]>
- </script>
- </caption>
- </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:195px; height:13px; ">
- <![CDATA[자체예약관리(영상의학과)]]>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- open("SMAEA04300", "","","", "SMAEA04300", "","");
- ]]>
- </script>
- </caption>
- </group>
- <line id="line1" class="line_1" style="x1:2px; y1:715px; x2:260px; y2:715px; "/>
- <caption id="caption21" class="tit_2" style="left:4px; top:701px; width:173px; height:13px; ">처방 Comment</caption>
- <datagrid id="grd_mainordlist2" nodeset="/root/main/exculist/mainordlist2" caption="진료과(진료의)^예약일시" colsep="^" colwidth="89, 103" mergecellsfixedrows="bycolrec" rowsep="|" style="left:506px; top:29px; width:211px; height:97px; ">
- <col ref="suminfo"/>
- <col ref="orddt" format="yyyy-mm-dd hh:nn"/>
- </datagrid>
- <datagrid id="grd_rsrvlist" nodeset="/root/main/rsrvposstmlist/rsrvlist" autoresize="true" caption="시간^등록번호^이름^처방명^과^병실^검사코드^검사소요시간" colsep="^" colwidth="35, 60, 45, 138, 31, 40, 100, 100" 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" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="rgstdepthngnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="prcpcd" visibility="hidden"/>
- <col ref="excutm" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( isDataCell() ){
- model.setValue("/root/send/data/srchpid", model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + grd_rsrvlist.row + "]/pid"));
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_rsrvposstm" nodeset="/root/main/rsrvposstmlist/rsrvposstm" caption="시간^현황^가용^rsrvno_h^excuroomcd_h^rsrvdd_h^suppdeptcd_h^maxoutcnt_h^maxincnt_h^maxhealexamcnt_h^maxallcnt_h" colsep="^" colwidth="37, 33, 32, 100, 100, 100, 100, 100, 100, 100, 100" 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; "/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="excuroomcd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="maxoutcnt" visibility="hidden"/>
- <col ref="maxincnt" visibility="hidden"/>
- <col ref="maxhealexamcnt" visibility="hidden"/>
- <col ref="maxallcnt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( isDataCell() ){
-
- var curCnt = getNodesetCount("/root/main/exculist/mainordlist5[chk = 'true']");
-
- /* if (+grd_mainordlist5.row != "" ) {*/
-
- var count = eval(model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/count"));
- var maxcnt = eval(model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/max"));
- var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")
- if (curCnt > 0) {
- var curDate = getCurrentDate().substr(0,8); //오늘날짜
- var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
-
- //현황과 가용인원 같을 경우 예약 불가능
- if (count >= maxcnt) {
- if (messageBox("가용인원을 초과하였습니다.", "Q003") != 6) {
-
- } else {
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > rsrvtm) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- } else {
- // 예약된 검사의 검사 소요 시간과 현재 예약 검사에 대한 시간 비교 체크 및 예약 시간 설정 통합 [2010.07.01]
- fChkEaxmUseTm(rsrvdd, grd_rsrvposstm.row);
- }
- } else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
-
- } else {
- // 예약된 검사의 검사 소요 시간과 현재 예약 검사에 대한 시간 비교 체크 및 예약 시간 설정 통합 [2010.07.01]
- fChkEaxmUseTm(rsrvdd, grd_rsrvposstm.row);
- }
- }
-
- } else {
- //당일예약
- if(curDate == rsrvdd) {
- if(getCurrentTime().substr(0,4) > rsrvtm) { //현재시간 이전시간을 예약
- messageBox("예약시간이 과거시간", "E008");
- } else {
- // 예약된 검사의 검사 소요 시간과 현재 예약 검사에 대한 시간 비교 체크 및 예약 시간 설정 통합 [2010.07.01]
- fChkEaxmUseTm(rsrvdd, grd_rsrvposstm.row);
- }
- } else if(curDate > rsrvdd) { //당일 이전 예약
- messageBox("예약일자가 과거일자", "E008");
-
- } else {
- // 예약된 검사의 검사 소요 시간과 현재 예약 검사에 대한 시간 비교 체크 및 예약 시간 설정 통합 [2010.07.01]
- fChkEaxmUseTm(rsrvdd, grd_rsrvposstm.row);
- }
- }
-
- model.refresh();
-
- } else {
- messageBox("처방을", "C002");
- model.refresh();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // 선택된 예약 가용시간을 초기화 한다. (외래에서 예약을 잡지 못하도록 2010/02/10 박상준)
- // setPopupMenu("grd_rsrvposstm", false, "/root/hidden1/popupmenu2/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- // 선택된 예약 가용시간을 초기화 한다. (외래에서 예약을 잡지 못하도록 2010/02/10 박상준)
- setPopupMenu("grd_rsrvposstm", false, "/root/hidden1/popupmenu2/menu", "label", "func");
- ]]>
- </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>
- <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();
-
- setCalendar(isDate);
- ]]>
- </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);
- ]]>
- </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);
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_case1" class="btn_sw" group="tab" selected="true" style="left:3px; top:143px; 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" visibility="hidden" group="tab" selected="false" style="left:80px; top:125px; 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:347px; top:142px; width:64px; height:19px; ">
- <caption>환자정보</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var child = getOpenWindow("SMMMO02500") ;
- if (child != null ) {
- child.model.setValue("/root/main/patinfolist/pid" , model.getValue("/root/send/data/srchpid"));
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- child.javascript.fReqGetPatComnInfo("/root/send/reqdata", model.getValue("/root/send/data/srchpid"));
- child.button1.selected = true;
- child.model.toggle("case1");
-
- child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
- child.model.removeNodeset("/root/main/bfprcp/prcplist");
- child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
- child.grd_prcpdd.visible = false;
- child.grd_bfprcplist.attribute("left") = 2;
- child.grd_bfprcplist.attribute("width")= 1190;
- child.model.refresh();
- }else{
- setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
- open("SMMMO02500", "","","", "SMMMO02500", "/root/send/data/srchpid","/root/init/srchcond2");
- }
-
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:725px; y1:24px; x2:1192px; y2:24px; "/>
- <line id="line4" class="line_1" style="x1:506px; y1:24px; x2:717px; y2:24px; "/>
- <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>
- <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:855px; top:680px; width:40px; height:45px; "/>
- <button id="button6" class="btn2_letter6" style="left:479px; top:142px; width:86px; height:19px; ">
- <caption>예약변경조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEA04400", "","","", "SMAEA04400", "/root/send/data/srchpid","/root/send/pid");
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:2px; y1:427px; x2:260px; y2:427px; "/>
- <button id="button22" class="btn2_letter6" style="left:573px; top:142px; width:86px; height:19px; ">
- <caption>휴검관리내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- 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[chk='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";
- }
-
- //2011.03.22 처방 예약시 실시된 처방은 제외.
- var execprcpstatcd = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpstatcd");
- if( parseInt(execprcpstatcd) == 610 || parseInt(execprcpstatcd) == 720 || parseInt(execprcpstatcd) == 730 ){
- messageBox("실시된 처방을 예약","E001");
- return "0";
- }
-
- //얘약 수정시 메시지박스 띄워주기
- var modifyinfo = "";
- var j = 1;
- var checknum = 0;
-
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true"){
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- if (isValidDateTime(rsrvdt, "YYYYMMDDhhmm") == false){
- messageBox("예약시간 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
- return;
- }
- }
- }
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "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+"]/chk") == "true" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" ) {
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/bonedentestyn") == "Y"){
- if (datagrid4.rows > 1){
- if (model.getValue("/root/main/exculist/mainordlist8[" + 1 + "]/payflagcd") == "0" && (model.getValue("/root/main/exculist/mainordlist8[" + 1 + "]/prcpdd") != model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd"))){
- var rsrvdt1 = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var rsrvdt = rsrvdt1.substr(0, 8);
- var sdate1 = model.getValue("/root/main/exculist/mainordlist8[" + 1 + "]/execdd");
- var sdate = sdate1.toDate().getAddDate(+365,"D").getDateFormat("YYYYMMDD");
- if (sdate > rsrvdt){
- if ( messageBox("해당 골밀도 처방코드는 1년이 지나지 않았습니다. ","Q002") !=6 ) {
- //messageBox("해당 골밀도 처방코드는 1년이 지나지 않아 예약할 수 없습니다. ", "E999", "");
- return;
- }
- }
- }
- }
- }
- }
- }
-
- // 선택한 검사실 Setting
- //alert("/root/send/data/excuroomcd->"+model.getValue("/root/send/data/excuroomcd"));
- if ( model.getValue("/root/send/data/excuroomcd") != "" && model.getValue("/root/send/data/excuroomgrpcdid") != "") {
-
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" ) {
-
- var listexecrid = model.getValue("/root/init/cmb_info3/initexecr["+grd_execrid.row+"]/listexecrid");
-
- if ( listexecrid != "") {
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd" , model.getValue("/root/init/cmb_info3/initexecr["+grd_execrid.row+"]/listexecrid") );
-
- }else {
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd" , model.getValue("/root/send/data/excuroomcd") );
- }
-
- /*
- // 예약할 검사실이 SONO이면 의사까지 선택을 해야 한다.
- if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "SONO" || model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "SO" ) {
-
- if ( grd_execrid.row < 0 ) {
-
- messageBox("예약 검사실을 선택하지 않아서 예약할 수 없습니다. ", "E999", "");
- return;
-
- }else {
-
- //alert(grd_execrid.row);
-
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd" , model.getValue("/root/init/cmb_info3/initexecr["+grd_execrid.row+"]/listexecrid") );
- }
-
- }else {
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd" , model.getValue("/root/send/data/excuroomcd") );
- }
- */
- }
-
- }
-
- }else {
-
-
- // GR 그룹은 검사실을 미선택하여도 예약진행 가능하게 함.
- var grcnt = 0;
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" ) {
- if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "GR" ) {
- grcnt++;
- }
-
- }
- }
-
- if ( grcnt == 0 ) {
- messageBox("예약 검사실을 선택하지 않아서 예약할 수 없습니다. ", "E999", "");
- return;
- }
- }
-
- //alert(grd_rsrvposstm.row);
-
- if ( grd_rsrvposstm.row < 0 ) {
-
- for(var i = 0; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true"&&
- model.getValue("/root/main/exculist/mainordlist5["+i+"]/lrgcd") == "GR") {
-
- // var curDate = getCurrentDate().toDate();
- //alert(getCurrentDate().substr(0,8) + getCurrentTime().substr(0,4));
- //alert(getParameter("SMAER13000_SrchrsrvtmEditYN" )) ;
- // 시간을 수정한 이력이 있으면 수정된 시간으로 세팅한다. 아니면 현재시간으로 세팅한다.
- var editrsrvtmYN = getParameter("SMAER13000_SrchrsrvtmEditYN" );
- if ( editrsrvtmYN == "Y" ) {
- //
- }else {
- model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm" , getCurrentDate().substr(0,8) + getCurrentTime().substr(0,4) );
- }
-
-
-
- }
- }
-
- }
-
- model.refresh();
- //************ start
- //20140417 by 권영애
- // var aftrcptinfo = "N";
- // for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- // if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true"){
- // var aftrcptinfo = model.getValue("/root/main/exculist/mainordlist5["+i+"]/aftrcptinfo");
- //
- // if (aftrcptinfo == "A"){
- // messageBox("미수납상태에서는 저장할 수 없습니다. 수납 후 작업하시기 바랍니다.", "E999", "");
- // return;
- // }
- // }
- // }
-
- //************* end
- var chk = "N";
- if (exeRsrvTransaction("rsrv") == true){
- chk = "Y";
- //alert("예약됐당~ 출력해야징");
-
- ////////////////////////////////////////////////////
- // 예약증 출력 추가, 장준원, 20090421
- // 예약증 출력을 체크하였을 경우만.
- ////////////////////////////////////////////////////
- var max = 0;
- //alert("rsrvprint==>"+model.getValue("/root/hidden/rsrvprtyn") );
- if ( model.getValue("/root/hidden/rsrvprtyn") == "" ) {
- //alert("출력한당");
- for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
- max = parseInt(max) + 1;
- //alert("max===>"+max);
- }
- }
- if (max > 0){
- rtfviewer.OpenProgressBar(max);
- }
- for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
- var roomcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd");
- var sna = model.getValue("/root/main/exculist/patinfolist/sex") + "/" + model.getValue("/root/main/exculist/patinfolist/age");
- //var sna = opt_sex.value+"/"+opt_age.value ;
-
- // 예약증 출력 추가
- var age = model.getValue("/root/main/exculist/patinfolist/age");
- var sex = model.getValue("/root/main/exculist/patinfolist/sex");
- var orddeptcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddepthngnm");
- var orddrid = model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddrnm");
-
- 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",model.getValue("/root/send/data/srchpid")); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",model.getValue("/root/main/exculist/patinfolist/hngnm")); //성명
- rtfviewer.ReplaceRtfCode("roomcd",roomcd); //검사실명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
- rtfviewer.ReplaceRtfCode("excucdnm",model.getValue("/root/main/exculist/mainordlist5["+i+"]/excucdnm"));
- // rtfviewer.ReplaceRtfCode("vacntno",vacntno); // 가상계좌
- // 예약증 출력 추가
- rtfviewer.ReplaceRtfCode("age",age); //나이
- rtfviewer.ReplaceRtfCode("sex",sex); //성별
- rtfviewer.ReplaceRtfCode("orddeptcd",orddeptcd); //진료과명
- rtfviewer.ReplaceRtfCode("orddrid",orddrid); //진료의명
- //3. 현재내용을 파일에 저장
- //rtfviewer.SaveRtfFile();
- //alert("PID=>"+model.getValue("/root/send/data/srchpid")+", patnm=>"+model.getValue("/root/main/exculist/patinfo/patinfolist/hngnm")+", roomcd=>"+roomcd+", yearmonthdayweekhhmm"+year+"/"+month+"/"+day+"/"+week+"/"+hh+"/"+mm);
- //4. 출력
- rtfviewer.print();
-
- //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //fInitialize();
- }
- }
- }
- }
-
- // 2010.12.08 c y w
- // 바코드미출력 여부를 체크해 예약시 자동출력 기능 추가
- if ( model.getValue("/root/hidden/rexprtyn") == "" ) {
- btn_barprnt.dispatch("DOMActivate");
- }// 바코드 미출력여부 닫음.
-
- ////////////////////////////////////////////////////
- // 예약증 출력 종료
- ////////////////////////////////////////////////////
-
- }
- if (max > 0){
- rtfviewer.CloseProgressBar();
- }
- if (chk == "Y"){
- readfunc();
- //상태별 색상주기
- fSetGrdMainordlist();
- }
- model.setFocus("ipt_pid");
- ]]>
- </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");
-
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002")
- return "0";
- }
-
-
- //2011.03.22 처방 취소시 예약인 경우에만 취소가능.
- var execprcpstatcd = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpstatcd");
- //20150224
- var rsrvflagyn = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn");
- if ( rsrvflagyn != "예약" ) {
- messageBox("처방의 상태가 예약일 경우에만","I006");
- return "0";
- }
- // if( parseInt(execprcpstatcd) != 440 ){
- // messageBox("처방의 상태가 예약일 경우에만","I006");
- // return "0";
- // }
-
- exeRsrvTransaction("cncl")
-
- readfunc();
- //상태별 색상주기
- fSetGrdMainordlist();
- model.setFocus("ipt_pid");
- ]]>
- </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[
- ////////////////////////////////////////////////////
- // 예약증 출력 추가, 장준원, 20090421
- // 예약증 출력을 체크하였을 경우만.
- ////////////////////////////////////////////////////
- var max = 0;
- //alert("rsrvprint==>"+model.getValue("/root/hidden/rsrvprtyn") );
- if ( model.getValue("/root/hidden/rsrvprtyn") == "" ) {
- //alert("출력한당");
- for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
- max = parseInt(max) + 1;
- //alert("max===>"+max);
- }
- }
- if (max > 0){
- rtfviewer.OpenProgressBar(max);
- }
- for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
- var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
- var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
- var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
- var roomcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd");
- var sna = model.getValue("/root/main/exculist/patinfolist/sex") + "/" + model.getValue("/root/main/exculist/patinfolist/age");
- //var sna = opt_sex.value+"/"+opt_age.value ;
-
- // 예약증 출력 추가
- var age = model.getValue("/root/main/exculist/patinfolist/age");
- var sex = model.getValue("/root/main/exculist/patinfolist/sex");
- var orddeptcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddepthngnm");
- var orddrid = model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddrnm");
- 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",model.getValue("/root/send/data/srchpid")); //등록번호
- rtfviewer.ReplaceRtfCode("patnm",model.getValue("/root/main/exculist/patinfolist/hngnm")); //성명
- rtfviewer.ReplaceRtfCode("roomcd",roomcd); //검사실명
- rtfviewer.ReplaceRtfCode("year",year); //년
- rtfviewer.ReplaceRtfCode("month",month); //월
- rtfviewer.ReplaceRtfCode("day",day); //일
- rtfviewer.ReplaceRtfCode("week",week); //요일
- rtfviewer.ReplaceRtfCode("hh",hh); //시
- rtfviewer.ReplaceRtfCode("mm",mm); //분
- rtfviewer.ReplaceRtfCode("excucdnm",model.getValue("/root/main/exculist/mainordlist5["+i+"]/excucdnm"));
- // rtfviewer.ReplaceRtfCode("vacntno",vacntno); // 가상계좌
- // 예약증 출력 추가
- rtfviewer.ReplaceRtfCode("age",age); //나이
- rtfviewer.ReplaceRtfCode("sex",sex); //성별
- rtfviewer.ReplaceRtfCode("orddeptcd",orddeptcd); //진료과명
- rtfviewer.ReplaceRtfCode("orddrid",orddrid); //진료의명
-
- //3. 현재내용을 파일에 저장
- //rtfviewer.SaveRtfFile();
- //alert("PID=>"+model.getValue("/root/send/data/srchpid")+", patnm=>"+model.getValue("/root/main/exculist/patinfo/patinfolist/hngnm")+", roomcd=>"+roomcd+", yearmonthdayweekhhmm"+year+"/"+month+"/"+day+"/"+week+"/"+hh+"/"+mm);
- //4. 출력
- rtfviewer.print();
-
- //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //fInitialize();
- }
- }
- }
- }
- ]]>
- </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>
- <datagrid id="datagrid3" nodeset="/root/init/calenlist/calendinfo" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:940px; top:620px; width:220px; height:150px; ">
- <col ref="basedd"/>
- <col ref="dutflag"/>
- </datagrid>
- <switch id="switch1" style="left:2px; top:161px; width:723px; height:234px; ">
- <case id="case1" selected="true" style="left:0px; top:0px; width:1190px; height:232px; ">
- <datagrid id="grd_mainordlist5" nodeset="/root/main/exculist/mainordlist5" disabled="false" caption="^실구분^구분^수납^수납^처방적용일자^처방입력일시^진료과^처방의^검사코드^검사명^수행부서^희망일자^예약시간^병실^종류^검사실정보^Remark^처방전달사항^execprcpstatcd^pid^suppdeptcd^execprcpuniqno^pacsnocretyn^eqmtifyn^bonedentestyn^prcpexecdeptcd^bf_srchrsrvtm^prcpgenflag^rsrvflag^excupartcd^indd^actorddd^orddeptcd^orddrid^lrgcd^autroomassgyn^prcpno^prcphistno^instcd^aftrcptinfo^tmpldata^rsrvtmplcd^rsrvmultitmplcd^excucdnm^excutm" colsep="^" colwidth="26, 55, 59, 46, 43, 81, 115, 68, 47, 73, 280, 88, 100, 120, 38, 45, 240, 240, 147, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:6px; width:715px; height:229px; ">
- <col checkvalue="true,false" disabled="false" ref="chk" type="checkbox"/>
- <col ref="rsrvflagyn" visibility="hidden"/>
- <col ref="rsrvflagdispyn"/>
- <col ref="rcptyn" style="text-align:center; background-color:#ffffff; "/>
- <col ref="rcptflag" style="font-weight:bold; color:#800080; text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="orddepthngnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="calcscorcd"/>
- <col disabled="true" ref="prcpnm"/>
- <col ref="excuroomcd" type="combo" visibility="visible" style="font-weight:bold; color:#6600cc; ">
- <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" style="text-align:center; "/>
- <col ref="srchrsrvtm" type="input" format="yyyy-mm-dd hh:nn" style="font-weight:bold; color:#ff0000; text-align:center; "/>
- <col ref="roomcd"/>
- <col ref="prcpkindnm"/>
- <col ref="acptrem" type="input"/>
- <col ref="rsrvrem" type="input" visibility="hidden"/>
- <col ref="prcpdelivefact" visibility="hidden"/>
- <col ref="execprcpstatcd" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="pacsnocretyn" visibility="hidden"/>
- <col ref="eqmtifyn" visibility="hidden"/>
- <col ref="bonedentestyn" visibility="hidden"/>
- <col ref="prcpexecdeptcd" visibility="hidden"/>
- <col ref="bf_srchrsrvtm" visibility="hidden"/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="rsrvflag" visibility="hidden"/>
- <col ref="excupartcd" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="actorddd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="autroomassgyn" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="aftrcptinfo" visibility="hidden"/>
- <col ref="tmpldata" visibility="hidden"/>
- <col ref="rsrvtmplcd" visibility="hidden"/>
- <col ref="rsrvmultitmplcd" visibility="hidden"/>
- <col ref="excucdnm" visibility="hidden"/>
- <col ref="excutm" visibility="hidden"/>
- <col ref="rcptdd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- //스크롤 조작시 온클릭 이벤트 안타도록
- if( isDataCell() ){
-
- // Grid Colidx 정리함. 장준원 20080603
- var colidx = grd_mainordlist5.col;
- //alert ( grd_mainordlist5.colAttribute(colidx, "ref") );
-
- if (grd_mainordlist5.colAttribute(colidx, "ref") != "chk" &&
- grd_mainordlist5.colAttribute(colidx, "ref") != "srchrsrvtm" && grd_mainordlist5.colAttribute(colidx, "ref") != "rsrvrem" && grd_mainordlist5.colAttribute(colidx, "ref") != "acptrem" ) {
- // 예약 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 + "]/chk");
- if (schk == "true"){
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "false");
- }else{
- model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "true");
- //20140731 선택진료비 제도변경에 대한 알림메시지
- //start
- var pid = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/pid");
- var prcpdd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpdd");
- var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/execprcpuniqno");
-
- getPrcpRcptCheck('AST', pid, '','', prcpdd, execprcpuniqno );
- //end
- }
-
- grd_mainordlist5.refresh();
- // 달력에 처음 로딩시 color값 안들어 가기 위해
- model.setValue("/root/hidden/grdcellcolor/color","");
- 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"));
-
-
- //if(model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn") == "예약"){
- // 예약, 미예약 일때 모두 처방 comment 를 보여준다.
- grd_rsrvtemp.addRow();
- model.setValue("/root/hidden/beforersrvtm/rsrvdtlist["+grd_rsrvtemp.bottomRow+"]/before",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm"));
- //}
-
-
- }else {
-
- if(grd_mainordlist5.colAttribute(colidx, "ref") == "chk" ) {
-
-
- // 검사의 그룹코드를 수행부서의 그룹코드에 자동 세팅한다. 20090109
- var chk = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk");
- var lrgcd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/lrgcd");
-
- //alert(lrgcd);
-
- if ( chk == "true" ) {
-
- //20140731 선택진료비 제도변경에 대한 알림메시지
- //start
- var pid = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/pid");
- var prcpdd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpdd");
- var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/execprcpuniqno");
-
- getPrcpRcptCheck('AST', pid, '','', prcpdd, execprcpuniqno );
- //end
-
- var irow = grd_excuroomgrp.findRow(lrgcd, 1, grd_excuroomgrp.colRef("listexcuroomgrpcdid"), false, false);
-
- if (irow > 0){
- grd_excuroomgrp.row = irow;
- grd_excuroomgrp.topRow = irow;
- grd_excuroomgrp.refresh();
-
- model.setValue("/root/main/comment1/prcpcmt",""); //20120424 by kya
-
- grd_excuroomgrp.dispatch("onclick");
-
- }
- }
- }
-
- }
-
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- // Grid Colidx 정리함. 장준원 20080603
- // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
- var colidx = grd_mainordlist5.col;
-
- //예약시간 수정후
- if(grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm") {
-
- var srchrsrvtm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm");
-
- setParameter("SMAER13000_SrchrsrvtmEditYN" , "Y");
-
- //수기로 입력시 과거시간 체크
- if( srchrsrvtm < getCurrentDate().substr(0,8) + getCurrentTime().substr(0,4) ) {
- messageBox("예약시간이 과거시간", "E008");
- return ;
- }
-
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_mainordlist5", false, "/root/hidden1/popupmenu/menu", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist5.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line16" class="line_1" style="x1:0px; y1:1px; x2:715px; y2:1px; "/>
- <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[
-
- for (var i = 1; i < grd_mainordlist5.rows; i ++){
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "true");
- }
- grd_mainordlist5.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
-
- for (var i = 1; i < grd_mainordlist5.rows; i ++){
- model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "false");
- }
- grd_mainordlist5.refresh();
- ]]>
- </script>
- </bool>
- </case>
- <case id="case2">
- <line id="line17" class="line_1" style="x1:0px; y1:1px; x2:714px; y2:1px; "/>
- <datagrid id="grd_anoprcplist" nodeset="/root/main/exculist/subordlist2" caption="구분^수납^처방일자^진료과^처방의^처방상태^검사코드^검사명^수행부서^희망일자^예약시간^실시시간^Remark" colsep="^" colwidth="49, 53, 77, 89, 54, 100, 73, 280, 100, 77, 109, 100, 360" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:715px; height:229px; ">
- <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 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="rsrvrem"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_anoprcplist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <textarea id="tar_prcpremfact" ref="/root/main/comment1/prcpcmt" disabled="false" style="left:0px; top:720px; width:258px; height:59px; "/>
- <group id="group3" visibility="hidden" style="left:405px; top:165px; width:485px; height:235px; ">
- <datagrid id="datagrid4" nodeset="/root/main/exculist/mainordlist8" caption="검사코드^처방일^예약일^검사일^구분^발생구분" colsep="^" colwidth="100, 78, 80, 78, 59, 64" mergecellsfixedrows="bycolrec" rowsep="|" style="left:11px; top:28px; width:463px; height:175px; ">
- <col ref="prcpcd" style="text-align:left; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="payflagcdnm"/>
- <col ref="prcpgenrflag"/>
- </datagrid>
- <button id="button26" class="btn4_letter2" style="left:406px; top:208px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group3.visible = false;
- ]]>
- </script>
- </button>
- <caption id="caption23" class="tit_2" style="left:11px; top:8px; width:113px; height:13px; ">골밀도 검사현황</caption>
- <shape id="rectangle1" appearance="rectangle" style="left:2px; top:3px; width:480px; height:230px; font-weight:bold; "/>
- </group>
- <input id="input1" ref="/root/send/data/hngnm" navindex="2" visibility="hidden" imemode="hangul" style="left:385px; top:5px; 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>
- <caption id="caption19" class="search_name" visibility="hidden" style="left:310px; top:12px; width:91px; height:17px; ">환자명 :</caption>
- <caption id="caption7" class="tit_2" style="left:506px; top:5px; width:95px; height:13px; ">진료예약내역</caption>
- <caption id="caption2" class="search_name" visibility="visible" style="left:789px; top:3px; width:65px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:635px; top:5px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">적용일자 :</caption>
- <select1 id="cmb_excuroomgrp" ref="/root/send/data/excuroomgrpcdid" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:851px; top:3px; width:70px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info1/initexcuroomgrp">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- button23.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="button23" class="btn1_letter2" navindex="3" visibility="visible" style="left:1132px; top:2px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- button102.dispatch("onclick");
- submit("TRAEA02013");
- ]]>
- </script>
- </button>
- <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" visibility="visible" inputtype="date" style="left:949px; top:3px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- button23.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption18" class="tit_2" visibility="visible" style="left:726px; top:5px; width:66px; height:13px; ">미예약</caption>
- <button id="button3" class="btn2_letter4" style="left:413px; top:142px; width:64px; height:19px; ">
- <caption>재진예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPamRsrvInfo();
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter6" style="left:167px; top:142px; width:86px; height:19px; ">
- <caption>자동실배정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( btn_case1.selected == false ) {
- messageBox("검사현황 탭에서만 실배정이 가능합니다.", "E999", "");
- return;
- }
- var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return;
- }
-
- var cnt = 0;
- var cnt2 = 0;
- for (var i = 1; i < grd_mainordlist5.rows ; i++) {
- if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true"){ // 보류처방에 대해서도 자동실 배정 가능하도록 상태값 440 인것도 배정하게 수정 (빈센트 요청 2009.09.11 임여원)
- if( model.getValue("/root/main/exculist/mainordlist5["+i+"]/autroomassgyn") != "Y" || model.getValue("/root/main/exculist/mainordlist5["+i+"]/execprcpstatcd") > "440" ) cnt++;
- if( model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpgenrflag") != "O" ) {
- cnt2++;
- }
- }
- }
- if ( cnt > 0 ) {
- messageBox("선택하신 처방 중 검사코드의 자동방배정여부 'N' 이거나 이미 배정완료된 처방이 존재합니다. [실배정불가]", "E999", "");
- return;
- }
- if ( cnt2 > 0 ) {
- messageBox("외래처방만 실배정이 가능합니다. [실배정불가]", "E999", "");
- return;
- }
-
- var sColSep = "▦";
- var sRowSep = "▩";
- var rCSV = "";
-
- rCSV += "pid" + sColSep +
- "prcpdd" + sColSep +
- "prcpno" + sColSep +
- "prcphistno" + sColSep +
- "prcpgenrflag" + sColSep +
- "workflag" + sColSep +
- "instcd" + sRowSep;
-
-
- var k = 0;
- for (var i = 1;i < grd_mainordlist5.rows;i++){
- if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk")=="true"){
- rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("pid")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpdd")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpno")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcphistno")) + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpgenrflag")) + sColSep +
- "9" + sColSep +
- grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("instcd")) + sRowSep;
-
- k = parseInt(k) + 1;
- }
- }
-
- model.resetInstanceNode("/root/send/autoreq/data");
-
- model.removeNode("/root/temp");
- model.makeNode("/root/temp");
- setCSVToNode("/root/temp", rCSV);
- instance1.selectSingleNode("/root/temp").xml;
-
- model.copyNode("/root/send/autoreq/data", "/root/temp");
-
- //alert(rCSV);
- //return;
-
- if ( submit("TXAER13002") ) {
- btn_sea.dispatch("DOMActivate");
- return;
- }else {
- messageBox("실배정 실패입니다.", "E999", "");
- return;
- }
-
-
- ]]>
- </script>
- </button>
- <button id="button102" class="icon_left" style="left:665px; top:142px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if ( btn_case1.selected == true ) fGetWideListX1(switch1, grd_mainordlist5);
- if ( btn_case2.selected == true ) fGetWideListX1(switch1, grd_anoprcplist);
- ]]>
- </script>
- </button>
- <button id="button103" class="icon_right" style="left:692px; top:142px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if ( btn_case1.selected == true ) fGetWideListX2(switch1, grd_mainordlist5);
- if ( btn_case2.selected == true ) fGetWideListX2(switch1, grd_anoprcplist);
- ]]>
- </script>
- </button>
- <datagrid id="grd_excuroomgrp" nodeset="/root/init/cmb_info1/listexcuroomgrp" class="datagrid_noborder" caption="caption1^caption2^caption3" colsep="^" colwidth="65, 30" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:432px; width:70px; height:255px; ">
- <col ref="listexcuroomgrpcdid"/>
- <col ref="listexcuroomgrpcdnm" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if ( grd_excuroomgrp.rows == 0 ) return;
- model.setValue("/root/send/data/excuroomgrpcdid", model.getValue("/root/init/cmb_info1/listexcuroomgrp["+grd_excuroomgrp.row+"]/listexcuroomgrpcdid"));
-
- // submit("TRAER01201");
- // // 검사실 조회 그리드의 전체 안보이게 함.
- // model.removeNode("/root/init/cmb_info2/initexecroom[excuroomcdid='']");
-
- submit("TRAER13006");
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_excuroom" nodeset="/root/init/cmb_info2/initexecroom" class="datagrid_noborder" autoresize="true" caption="caption1^caption2^caption3" colsep="^" colwidth="92, 30" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:72px; top:432px; width:97px; height:255px; ">
- <col ref="excuroomcdnm"/>
- <col ref="excuroomcdid" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( grd_excuroom.rows == 0 ) return;
- model.setValue("/root/send/data/listexcuroomcdid", model.getValue("/root/init/cmb_info2/initexecroom["+grd_excuroom.row+"]/excuroomcdid"));
- submit("TRAER13004");
-
-
- if ( (grd_excuroom.row >= grd_excuroom.fixedRows) && (grd_excuroom.isCell(event.target))) {
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
- model.setValue("/root/send/data/excuroomcd" , model.getValue("/root/init/cmb_info2/initexecroom["+grd_excuroom.row+"]/excuroomcdid"));
- initCalendar();
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_execrid" nodeset="/root/init/cmb_info3/initexecr" class="datagrid_noborder" autoresize="true" caption="caption1^caption2^caption3" colsep="^" colwidth="85, 30" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:169px; top:432px; width:90px; height:255px; ">
- <col ref="listexecridnm"/>
- <col ref="listexecrid" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //alert('rows->'+grd_execrid.rows);
- //alert('row->'+grd_execrid.row);
- if ( grd_execrid.rows == 0 ) return;
-
- if ( (grd_execrid.row >= grd_execrid.fixedRows) && (grd_execrid.isCell(event.target))) {
- //alert('IN');
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
- model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
- model.setValue("/root/send/data/excuroomcd" , model.getValue("/root/init/cmb_info3/initexecr["+grd_execrid.row+"]/listexecrid"));
- initCalendar();
- }
- ]]>
- </script>
- </datagrid>
- <select id="chk_rsrvprint" ref="/root/hidden/rsrvprtyn" visibility="visible" overflow="visible" appearance="full" style="left:882px; top:410px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>예약증미출력</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <button id="btn_colchset" class="btn4_letter4" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:573px; top:402px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>컬럼순서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( btn_case1.selected == true ) {
- var grdid = "grd_mainordlist5";
- var caseid = "case1";
- var compscd = "01";
- }
- fClkBtnSetCol(grdid, caseid, compscd);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_temprsrv" class="btn2_letter4" visibility="visible" style="left:195px; top:407px; width:64px; height:19px; ">
- <caption>임시예약</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var excuroomgrp = model.getValue("/root/send/data/excuroomgrpcdid");
-
- if (excuroomgrp == "") {
- messageBox("검사실을 ", "C002");
- return;
- }
-
- setParameter("suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- setParameter("excuroomcd", model.getValue("/root/send/data/excuroomcd"));
- setParameter("excuroomgrp", excuroomgrp);
- setParameter("excucd", "");
- modal("SPAEA02201", "", "200", "200", "popup", "", "");
- ]]>
- </script>
- </button>
- <input id="ipt_date2" ref="/root/send/data/srchdate2" class="input_default" visibility="visible" inputtype="date" style="left:1038px; top:3px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- button23.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/barcnt" style="left:377px; top:403px; width:20px; height:19px; "/>
- <button id="btn_barprnt" class="btn3_letter4" style="left:399px; top:402px; width:80px; height:22px; ">
- <caption>라벨출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- for( var idx = 1 ; idx < grd_mainordlist5.rows ; idx++ ){
- model.resetInstanceNode("/root/rexsend/rexbarcode");
-
- //model.removeNodeset("/root/rexsend/rexbarcode");
- //model.makeNode("/root/rexsend/rexbarcode");
-
- if(model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/chk") == "true"){
- /* var pid = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/pid");
-
- var rsrvdd = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/srchrsrvtm").substring(0,8);
- var excupartcd = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/excupartcd");
- var roomcd = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/roomcd");
- var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/prcpnm");
- var wardcddeptengabbr = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/wardengabbr");
- var examroomnm = grd_mainordlist5.labelMatrix(idx, grd_mainordlist5.colRef("excuroomcd"));*/
- //20130315 by 권영애
- var patnm = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/hngnm");
- var sex = model.getValue("/root/main/exculist/patinfolist/sex");
- var age = model.getValue("/root/main/exculist/patinfolist/age");
-
- var isoldispcd = model.getValue("/root/main/exculist/isolinfo/isoldispcd"); //20161024 감염코드추가
-
- if (patnm == "") {
- messageBox("환자명을 확인후 재출력해주십시오.");
- return;
- }
- if (sex == "") {
- messageBox("환자의 성별을 확인후 재출력해주십시오.");
- return;
- }
- if (age == "") {
- messageBox("환자의 나이를 확인후 재출력해주십시오.");
- return;
- }
-
- var gbn = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/rrgstno2").substring(0, 1);
- var rrgstno1 = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/rrgstno2");
-
-
- /* 20130315 by kya 성별/나이 이상정보로 가져옴. 막음
- if ( gbn == "1" ) {
- var sex = "M";
- var age = aezfgetFullAge(rrgstno1+rrgstno2);
- }else {
- var sex = "F";
- var age = aezfgetFullAge(rrgstno1+rrgstno2);
- }
- */
-
- // model.makeNode("/root/rexsend/rexbarcode");
- model.setValue("/root/rexsend/rexbarcode/pid",model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/pid"));
- model.setValue("/root/rexsend/rexbarcode/patnm",model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/hngnm"));
- model.setValue("/root/rexsend/rexbarcode/prcpnm", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/prcpnm"));
- model.setValue("/root/rexsend/rexbarcode/gbn", gbn);
- model.setValue("/root/rexsend/rexbarcode/rrgstno1", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/rrgstno1"));
- model.setValue("/root/rexsend/rexbarcode/rrgstno2", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/rrgstno2"));
- model.setValue("/root/rexsend/rexbarcode/rsrvdd", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/srchrsrvtm"));
- model.setValue("/root/rexsend/rexbarcode/sex", sex);
- model.setValue("/root/rexsend/rexbarcode/age", age);
- model.setValue("/root/rexsend/rexbarcode/wardcddeptengabbr", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/wardengabbr"));
- model.setValue("/root/rexsend/rexbarcode/excupartcd", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/excupartcd"));
- model.setValue("/root/rexsend/rexbarcode/roomcd", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/roomcd"));
- model.setValue("/root/rexsend/rexbarcode/examroomnm", grd_mainordlist5.labelMatrix(idx, grd_mainordlist5.colRef("excuroomcd")));
- model.setValue("/root/rexsend/rexbarcode/wardcdnm", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/wardcdnm"));
-
- //20130314 권영애
- model.setValue("/root/rexsend/rexbarcode/orddepthngnm", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/orddepthngnm"));
-
- // 2011.01.17 cyw 희망일자 추가
- model.setValue("/root/rexsend/rexbarcode/prcphopedd", model.getValue("/root/main/exculist/mainordlist5["+ idx +"]/prcphopedd"));
-
- // 2011.10.11 처방컨맨드 kya
- //model.setValue("/root/rexsend/rexbarcode/prcpdelivefact", model.getValue("/root/main/comment1/prcpcmt") );
- model.setValue("/root/rexsend/rexbarcode/prcpdelivefact", model.getValue("/root/main/exculist/mainordlist5["+idx+"]/prcpdelivefact"));
-
- //2016.10.24 감염정보코드추가 kya
- model.setValue("/root/rexsend/rexbarcode/isoldispcd", isoldispcd);
-
- //렉스포트형 바코드 출력
- // rexnm : 레포트코드
- // closeYn : 미리보기 여부(보기:true, 안보기:비우거나 false)
- // printCount : 출력 숫자
- // dataXPath : 파라메터 위치 ?
- // paramsXPath : 파라메터 위치 ?
- // infoXPath : 바코드 프린터 정보 위치 /root/send/rexbarcode
- modal("SPMNZ00300", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- var cnt = model.getValue("/root/send/barcnt");
- for ( var i = 1; i <= cnt ; i++ ) {
- // if( model.getValue("/root/hidden/rexprtyn") == "N" || model.getValue("/root/hidden/rexprtyn") == "" ){
- makeReportPreview(0,0,10, 10, "");
- fPrintRexbar("RPAER01200");
- // exeReportPreview("RPAER01200", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- // }else{
- // fPrintRexbar("RPAER01200", "true");
- // }
- }//for문 닫음.
- }// if절 check여부 닫음.
- model.refresh();
- }// 그리드 row for문 닫음.
-
- /* } else {
- // 20090617 SATO 관련 추가
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- if ( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fBarcdLbPrtSato(pid, patnm, gbn, rrgstno1, rrgstno2, barpid, excugrp, currentdate, sex, age); // SATO 출력스크립트 호출
- } else{
- var portOpenTF = ""; //오픈 성공 여부
- CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
- CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
-
- portOpenTF = CommAX.PortOpen("true");
-
- if(portOpenTF == "TRUE"){
- fBarcdLbPrtZebra(pid, patnm, gbn, rrgstno1, rrgstno2, barpid, excugrp, currentdate, sex, age); // Zebra 출력스크립트 호출
- CommAX.PortOpen("false");
- } else {
- messageBox("아래 사항을 확인후 재출력해주십시오."
- + " \n 1.프린트설정 화면에서 통신유형을 com 으로 선택한 경우 port 번호 확인"
- + " \n 2.케이블 확인"
- + " \n 3.먼저 출력중인 바코드 확인(모두 출력된 후 재출력하십시오.)", "I", "");
- return;
- }
- }
-
- // var portOpenTF = ""; //오픈 성공 여부
- // CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
- // CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
- //
- // portOpenTF = CommAX.PortOpen("true");
- // if(portOpenTF == "TRUE"){
- //
- // fLabelPrint();
- //
- // CommAX.PortOpen("false");
- //
- // }else {
- //
- // messageBox("아래 사항을 확인후 재출력해주십시오."
- // + " \n 1.프린트설정 화면에서 통신유형을 com 으로 선택한 경우 port 번호 확인"
- // + " \n 2.케이블 확인"
- // + " \n 3.먼저 출력중인 바코드 확인(모두 출력된 후 재출력하십시오.)", "I", "");
- // return;
- // }
-
- //modal("SMLLC00300","","","","SMLLC00300","/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/pid","/root/send/data/singdata/srchpid");
- }*/
- // }
- ]]>
- </script>
- </button>
- <button id="btn_prntset" class="btn3_letter5" style="left:480px; top:402px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <select id="cbx_rexprtyn" ref="/root/hidden/rexprtyn" visibility="visible" overflow="visible" appearance="full" style="left:280px; top:404px; width:95px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>바코드미출력</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="checkbox1" ref="/root/send/data/srchexecflag" overflow="visible" appearance="full" style="left:85px; top:144px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>실시포함</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <output id="output4" ref="/root/main/exculist/bmdcnt/cnt" visibility="visible" style="left:750px; top:405px; width:45px; height:15px; "/>
- <group id="group7" visibility="hidden" style="left:155px; top:55px; width:279px; height:119px; vertical-align:top; background-color:#080808; ">
- <caption id="cpt_isoldata" visibility="hidden" style="left:2px; top:2px; width:275px; height:115px; font-size:11pt; font-weight:bold; color:#ff0000; background-color:#d6dadc; "/>
- <button id="button1" class="btn5_letter2" visibility="hidden" style="left:227px; top:95px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group7.visible = false;
- cpt_isoldata.visible = false;
- txt_isol.visible = false;
- button1.visible = false;
- line_isol.visible = false;
- line_isol2.visible = false;
- cpt_isoltitle.visible = false;
- ]]>
- </script>
- </button>
- <line id="line_isol" class="line_1" visibility="hidden" style="x1:10px; y1:21px; x2:270px; y2:21px; "/>
- <line id="line_isol2" class="line_3" visibility="hidden" style="x1:10px; y1:93px; x2:270px; y2:93px; "/>
- <textarea id="txt_isol" ref="/root/main/exculist/isolinfo/etccnts" visibility="hidden" style="left:10px; top:26px; width:260px; height:66px; "/>
- <caption id="cpt_isoltitle" class="tit_2" visibility="hidden" style="left:12px; top:7px; width:115px; height:13px; ">감염정보</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|