SMAEA02000_통합예약관리.xrw 215 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>통합예약관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <rsrvposstmlist>
  11. <rsrvposstm>
  12. <rsrvtm/>
  13. <count/>
  14. <max/>
  15. </rsrvposstm>
  16. <rsrvlist>
  17. <srchrsrvtm/>
  18. <pid/>
  19. <hngnm/>
  20. <age/>
  21. <prcpgenrflag/>
  22. <excutm/>
  23. <prcpcd/>
  24. <rgstdepthngnm/>
  25. <lastupdtrnm/>
  26. <lastupdtdt/>
  27. <prcpcmt/>
  28. <rsrvrem/>
  29. </rsrvlist>
  30. <deptmemo>
  31. <memodt/>
  32. <memorem/>
  33. </deptmemo>
  34. <updtlist>
  35. <updtresndesc/>
  36. </updtlist>
  37. </rsrvposstmlist>
  38. <exculist>
  39. <mainordlist5>
  40. <chk/>
  41. <rsrvflagyn/>
  42. <rcptyn/>
  43. <telrsrvyn/>
  44. <prcpdd/>
  45. <orddepthngnm/>
  46. <orddrnm/>
  47. <calcscorcd/>
  48. <prcpnm/>
  49. <excuroom/>
  50. <prcphopedd/>
  51. <srchrsrvtm/>
  52. <excutm/>
  53. <endtime/>
  54. <roomcd/>
  55. <rsrvrem/>
  56. <excuroomnm/>
  57. <genrflag/>
  58. <prcpdd/>
  59. <execprcpuniqno/>
  60. <execprcpstatcd/>
  61. <prcpkindcd/>
  62. <excupartcd/>
  63. <indd/>
  64. <actorddd/>
  65. <orddrid/>
  66. <execrid/>
  67. <suppdeptcd/>
  68. <cnclrescd/>
  69. <pid/>
  70. <prcpdelivefact/>
  71. <rsrvplceflag/>
  72. <rsrvexcupossyn/>
  73. <rsrvexmptmplcd/>
  74. <tmpldata/>
  75. <rsrvflag/>
  76. <cretno/>
  77. <orddd/>
  78. <rsrvdt/>
  79. <excuroomcd/>
  80. <bf_srchrsrvtm/>
  81. <pacsnocretyn/>
  82. <rgsttm/>
  83. <rgstrid/>
  84. <orddeptcd/>
  85. <rsrvtmcntlyn/>
  86. <rsrvpsnnocntlyn/>
  87. <excucdrem/>
  88. <prcpgenrflag/>
  89. <pexcuroomnm/>
  90. <prcpexecdeptcd/>
  91. <eqmtifyn/>
  92. <baseexcuroomcd/>
  93. <glycostestyn/>
  94. <bonedentestyn/>
  95. <glycosyn/>
  96. <glycoscure/>
  97. <reqhospcd/>
  98. <onestop/>
  99. <specdrid/>
  100. <specdrnm/>
  101. <dschdd/>
  102. <ioflag/>
  103. <lastupdtnm/>
  104. <payflagnm/>
  105. <basecdcnts/>
  106. <calcamt/>
  107. </mainordlist5>
  108. <subordlist2>
  109. <rsrvflagyn/>
  110. <rcptyn/>
  111. <prcpdd/>
  112. <orddepthngnm/>
  113. <orddrnm/>
  114. <execprcpstatcd/>
  115. <calcscorcd/>
  116. <prcpnm/>
  117. <excuroom/>
  118. <prcphopedd/>
  119. <srchrsrvtm/>
  120. <exectm/>
  121. <excutm/>
  122. <endtime/>
  123. <rsrvrem/>
  124. </subordlist2>
  125. <subordlist3>
  126. <rows>
  127. <pid/>
  128. <cmtdd/>
  129. <patcmt/>
  130. <iudgb/>
  131. <upnm/>
  132. <updtm/>
  133. </rows>
  134. </subordlist3>
  135. <mainordlist1>
  136. <ordnm/>
  137. <orddt/>
  138. <orddrnm/>
  139. <deptengabbr/>
  140. <orddd/>
  141. <pid/>
  142. <orddrid/>
  143. <orddeptcd/>
  144. </mainordlist1>
  145. <mainordlist2>
  146. <suminfo/>
  147. <orddt/>
  148. </mainordlist2>
  149. <mainordlist3>
  150. <opschedd/>
  151. </mainordlist3>
  152. <mainordlist4>
  153. <rsrvdt/>
  154. <prcpnm/>
  155. <basecdflagdesc/>
  156. <execprcpstatcd/>
  157. <acttime/>
  158. <usernm/>
  159. <rsrvrid/>
  160. </mainordlist4>
  161. <mainordlist6>
  162. <inhopedd/>
  163. </mainordlist6>
  164. <patinfo>
  165. <patinfolist/>
  166. </patinfo>
  167. <mainordlist8>
  168. <prcpcd/>
  169. <prcpdd/>
  170. <rsrvdd/>
  171. <execdd/>
  172. <payflagcdnm/>
  173. <prcpgenrflag/>
  174. </mainordlist8>
  175. <mainImpsirsrvlist>
  176. <calcscorcd/>
  177. </mainImpsirsrvlist>
  178. </exculist>
  179. <orddeptinfo>
  180. <orddeptlist>
  181. <orddeptcd/>
  182. </orddeptlist>
  183. </orddeptinfo>
  184. <exculist2>
  185. <subordlist2>
  186. <excuroomnm/>
  187. <prcpdd/>
  188. <prcpnm/>
  189. <calcscorcd/>
  190. <execprcpstatcd/>
  191. </subordlist2>
  192. </exculist2>
  193. <curfile>
  194. <filename/>
  195. <rtfcode/>
  196. </curfile>
  197. <rtflist/>
  198. <patinfo>
  199. <patinfolist/>
  200. </patinfo>
  201. <comment1>
  202. <prcpcmt/>
  203. </comment1>
  204. <popupendflag/>
  205. <ordlist1>
  206. <mainordlist>
  207. <no/>
  208. <pid/>
  209. <patnm/>
  210. <prcpgenrflag/>
  211. <roomcd/>
  212. <depthngnm/>
  213. <execprcpuniqno/>
  214. <orddeptcd/>
  215. <rsrvdd/>
  216. <execprcpstatcd/>
  217. <prcpdd/>
  218. <sna/>
  219. <roomcd/>
  220. <orddrid/>
  221. <rcptyn/>
  222. </mainordlist>
  223. </ordlist1>
  224. <printinfo>
  225. <printlist>
  226. <printdata/>
  227. </printlist>
  228. </printinfo>
  229. <deptmemolist>
  230. <deptmemo>
  231. <memodt/>
  232. <memorem/>
  233. <lastupdtdt/>
  234. </deptmemo>
  235. </deptmemolist>
  236. </main>
  237. <send>
  238. <data>
  239. <cmb_info>
  240. <initexecroom>
  241. <excuroomcdid/>
  242. </initexecroom>
  243. </cmb_info>
  244. <srchpid/>
  245. <hngnm/>
  246. <acptlistflag/>
  247. <orddd/>
  248. <rsrvdd/>
  249. <excuroomcd/>
  250. <suppdeptcd/>
  251. <suppdeptcd1/>
  252. <chkflag/>
  253. <rsrvdate/>
  254. <orddeptcd/>
  255. <autorsrvtmset>
  256. <autorsrvtm/>
  257. </autorsrvtmset>
  258. <excuroomnm/>
  259. <print/>
  260. <prcpgenrflag/>
  261. <excucd/>
  262. <srchdate1/>
  263. <timeyn/>
  264. <ampmyn>9</ampmyn>
  265. <multiyn/>
  266. <cmb_info1>
  267. <initexcuroomgrp>
  268. <excuroomgrpcdid/>
  269. <excuroomgrpcdnm/>
  270. </initexcuroomgrp>
  271. </cmb_info1>
  272. <memodd/>
  273. <inptflag/>
  274. <passdataflag/>
  275. <serdiagtodd/>
  276. </data>
  277. <globalinstance>
  278. <instance1/>
  279. </globalinstance>
  280. <req>
  281. <cnclcd/>
  282. <flag/>
  283. <chkflag/>
  284. <data/>
  285. </req>
  286. <req1>
  287. <data/>
  288. </req1>
  289. <rtfcode/>
  290. <filename/>
  291. <popup>
  292. <basecdflag/>
  293. </popup>
  294. <windowloadinstance>SMAEA02000</windowloadinstance>
  295. <rsrvsuppdeptcd/>
  296. <memodt1>00000000</memodt1>
  297. <memodt2>00000000</memodt2>
  298. <memorem/>
  299. </send>
  300. <send1>
  301. <suppdeptcd/>
  302. <excuroomcd/>
  303. <gb/>
  304. <instance1/>
  305. </send1>
  306. <send2>
  307. <instance1>0000000000</instance1>
  308. <grupcdid>A900</grupcdid>
  309. </send2>
  310. <send3>
  311. <instance1>0000000000</instance1>
  312. <memodt1>00000000</memodt1>
  313. <memodt2>00000000</memodt2>
  314. <memorem/>
  315. </send3>
  316. <init>
  317. <cmb_info>
  318. <initexecroom>
  319. <excuroomcdid/>
  320. <excuroomcdnm/>
  321. <userid/>
  322. </initexecroom>
  323. <initexecward>
  324. <execwardcdid/>
  325. <execwardcdnm/>
  326. </initexecward>
  327. </cmb_info>
  328. <cmb_info2>
  329. <initexecroom>
  330. <excuroomcdid/>
  331. <excuroomcdnm/>
  332. <userid/>
  333. </initexecroom>
  334. </cmb_info2>
  335. <cmb_info1>
  336. <initexcuroomgrp>
  337. <excuroomgrpcdid/>
  338. <excuroomgrpcdnm/>
  339. </initexcuroomgrp>
  340. </cmb_info1>
  341. <curerprescondlist>
  342. <curerprescond>
  343. <userid/>
  344. <usernm/>
  345. </curerprescond>
  346. <rsrvcalendar>
  347. <rsrvdd/>
  348. <count/>
  349. <max/>
  350. </rsrvcalendar>
  351. <orddeptlist>
  352. <orddeptcd/>
  353. </orddeptlist>
  354. </curerprescondlist>
  355. <curerprescondlist2>
  356. <orddeptlist>
  357. <orddeptcd/>
  358. </orddeptlist>
  359. </curerprescondlist2>
  360. <baseinfo>
  361. <initexecprcpstatcd/>
  362. <initprcpgenrflagcd/>
  363. </baseinfo>
  364. <calenlist>
  365. <calendinfo>
  366. <basedd/>
  367. <dutflag/>
  368. </calendinfo>
  369. </calenlist>
  370. <cmb_info3>
  371. <suppdeptlist>
  372. <suppdept>
  373. <suppdeptcd/>
  374. <depthngnm/>
  375. </suppdept>
  376. </suppdeptlist>
  377. <excuroomcdlist>
  378. <excuroom>
  379. <basecd/>
  380. <basecdflagdesc/>
  381. </excuroom>
  382. </excuroomcdlist>
  383. </cmb_info3>
  384. </init>
  385. <init1>
  386. <baseinfo>
  387. <initmulti/>
  388. <initsrchtm/>
  389. <initinptflag/>
  390. </baseinfo>
  391. <onestopordinfo>
  392. <codelist>
  393. <item>
  394. <suppdeptcd/>
  395. <grupcdid/>
  396. <cdid/>
  397. <cdnm/>
  398. <detldesc/>
  399. <useyn/>
  400. <dispseq/>
  401. <cntlyn1/>
  402. <cntlcd1/>
  403. </item>
  404. </codelist>
  405. </onestopordinfo>
  406. <onestoptminfo>
  407. <mintm/>
  408. </onestoptminfo>
  409. <onestopsuppdeptcd>
  410. <deptinfo/>
  411. </onestopsuppdeptcd>
  412. <onestopexcuroom>
  413. <roominfo/>
  414. </onestopexcuroom>
  415. <patcmt/>
  416. <rsrvidinfo/>
  417. </init1>
  418. <hidden>
  419. <calendar>
  420. <year/>
  421. <month/>
  422. <weeklist>
  423. <list>
  424. <sun/>
  425. <mon/>
  426. <tue/>
  427. <wed/>
  428. <thu/>
  429. <fri/>
  430. <sat/>
  431. <sun_memo/>
  432. <mon_memo/>
  433. <tue_memo/>
  434. <wed_memo/>
  435. <thu_memo/>
  436. <fri_memo/>
  437. <sat_memo/>
  438. </list>
  439. </weeklist>
  440. <dd/>
  441. </calendar>
  442. <grdcellcolor>
  443. <calrow/>
  444. <calcol/>
  445. <bfcalrow/>
  446. <bfcalcol/>
  447. <color/>
  448. </grdcellcolor>
  449. <cnclcdlist>
  450. <cnclcd/>
  451. <cnclcdnm/>
  452. </cnclcdlist>
  453. <beforersrvtm>
  454. <rsrvdtlist>
  455. <before/>
  456. </rsrvdtlist>
  457. </beforersrvtm>
  458. <con>
  459. <date/>
  460. </con>
  461. <rsrvbtn>
  462. <rsrvyn/>
  463. </rsrvbtn>
  464. <autorsrvtmset>
  465. <autorsrvtm/>
  466. </autorsrvtmset>
  467. <boolcontrol>
  468. <bool/>
  469. </boolcontrol>
  470. <chkgam/>
  471. <orddeptcheck/>
  472. <tmp/>
  473. <rsrvrem/>
  474. <beforeorder>
  475. <brow/>
  476. <excuroomnm/>
  477. </beforeorder>
  478. </hidden>
  479. <hidden1>
  480. <popupmenu>
  481. <menu>
  482. <label>변경/취소사유조회</label>
  483. <func>ChangeCanFunc</func>
  484. </menu>
  485. <menu>
  486. <label>예약예문선택</label>
  487. <func>ChangeTmplcd</func>
  488. </menu>
  489. <menu>
  490. <label>예약 Remark 등록</label>
  491. <func>ChangeTmplcd</func>
  492. </menu>
  493. <menu>
  494. <label>추가예약</label>
  495. <func>fPseuRsrvInfo</func>
  496. </menu>
  497. </popupmenu>
  498. </hidden1>
  499. <hidden2>
  500. <popupmenu>
  501. <menu>
  502. <label>환자Comment조회</label>
  503. <func>ChangeCanFunc2</func>
  504. </menu>
  505. </popupmenu>
  506. </hidden2>
  507. <reqdata>
  508. <srchcond/>
  509. <pid/>
  510. <hngnm/>
  511. </reqdata>
  512. <reqdata1>
  513. <subordlist3>
  514. <rows>
  515. <pid/>
  516. <cmtdd/>
  517. <patcmt/>
  518. <iudgb/>
  519. <upnm/>
  520. <updtm/>
  521. </rows>
  522. </subordlist3>
  523. </reqdata1>
  524. <popdata>
  525. <poplist>
  526. <prcpnm/>
  527. <examroomnm/>
  528. <excuroomcd/>
  529. <suppdeptcd/>
  530. <rowcnt/>
  531. </poplist>
  532. </popdata>
  533. <temp/>
  534. <ctrl>
  535. <send>
  536. <rsrvinfo/>
  537. </send>
  538. <main>
  539. <ctrllist>
  540. <ctrlinfo>
  541. <rsrvplce/>
  542. <suppdeptcd/>
  543. <excuroomcd/>
  544. <excucd/>
  545. <ctrlseq/>
  546. <ctrldesc/>
  547. <ctrlflag/>
  548. <appflag/>
  549. </ctrlinfo>
  550. </ctrllist>
  551. </main>
  552. <temp>
  553. <ctrllist>
  554. <ctrlinfo/>
  555. </ctrllist>
  556. <termlist>
  557. <terminfo/>
  558. </termlist>
  559. </temp>
  560. <hidden>
  561. <excplist>
  562. <excpinfo>
  563. <userid/>
  564. </excpinfo>
  565. </excplist>
  566. </hidden>
  567. </ctrl>
  568. </root>
  569. </instance>
  570. <script type="javascript" ev:event="xforms-ready">
  571. <![CDATA[
  572. RSRV_PLCE = "T";
  573. // 예약 제어 정보 확인 기능 칠곡 제한
  574. if (getUserInfo("dutplceinstcd") == "032") {
  575. btn_ctrlshow.visible = false;
  576. switch1.attribute("width") = "1195px"
  577. grd_mainordlist5.attribute("width") = grd_anoprcplist.attribute("width") = "1193px";
  578. line16.attribute("x2") = line17.attribute("x2") = "1193px";
  579. }
  580. model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
  581. model.removeNodeset("/root/main/exculist/subordlist3");
  582. aezfSetSuppDeptcd();
  583. model.setValue("/root/hidden/chkgam","");
  584. submit("TRAEA02002", false);
  585. // 미예약자(입원) 영상학과 전용화면
  586. ipt_date1.value = getCurrentDate();
  587. submit("TRAEA02014", false);
  588. //처방상태 공통코드 갖고오기
  589. zbcfGetCodeList( new Array("M0011", "M0010"), new Array("/root/init/baseinfo/initexecprcpstatcd", "/root/init/baseinfo/initprcpgenrflagcd") );
  590. submit("TRZBC00101", false);
  591. //20140911 by kya 추가예약할 수 있는 코드 : 핵의학과 MIBI 처방임
  592. model.setValue("/root/send2/instance1", "2180000000");
  593. model.setValue("/root/send2/grupcdid", "A0003");
  594. submit("TRAEB00010", false);
  595. model.removeNodeset("/root/init1/prsrcdinfo/codelist");
  596. model.makeNode("/root/init1/prsrcdinfo/codelist");
  597. model.copyNode("/root/init1/prsrcdinfo/codelist", "/root/init1/onestopordinfo/codelist" );
  598. //20100527 "A901","A902","A903"원스탑 시간,원스탑검사실 만든부서,원스탑검사실 가져오기 추가
  599. model.setValue("/root/send2/instance1", "0000000000");
  600. model.setValue("/root/send2/grupcdid", "A900");
  601. submit("TRAEB00010", false);
  602. //T0001 : 통합예약사용자
  603. astGetComboList( new Array("A630", "A640","A901","A902","A903","A660","T0001"), new Array("/root/init1/baseinfo/initmulti", "/root/init1/baseinfo/initsrchtm",
  604. "/root/init1/onestoptminfo/mintm","/root/init1/onestopsuppdeptcd/deptinfo","/root/init1/onestopexcuroom/roominfo","/root/init1/baseinfo/initinptflag","/root/init1/rsrvidinfo") );
  605. submit("TRAAA00001", false);
  606. model.removeNodeset("/root/init1/baseinfo/initmulti/A630[" + 1 + "]");
  607. if (model.getValue("/root/init1/baseinfo/initmulti/A630[" + 1 + "]/cdid") == "Y"){
  608. model.setValue("/root/send/data/multiyn", "Y");
  609. }
  610. model.removeNodeset("/root/init1/baseinfo/initsrchtm/A640[" + 1 + "]");
  611. //20100929 통합예약 입원조회 조건 여부 - 박재영
  612. model.removeNodeset("/root/init1/baseinfo/initinptflag/A660[" + 1 + "]");
  613. model.setValue("/root/send/data/inptflag",model.getValue("/root/init1/baseinfo/initinptflag/A660[" + 1 + "]/cdid") );
  614. submit("TRAEA05301", false); //지원부서
  615. //grd_mainordlist5.fixedcellcheckbox(0,0)=true;
  616. model.removeNodeset("/root/hidden/beforersrvtm/rsrvdtlist"); //변경전 시간 담아놓는 그리드
  617. //initCalendar();
  618. //setCurrentDate();
  619. model.toggle("case1");
  620. btn_case1.selected = true;
  621. btn_case2.selected = false;
  622. model.setValue("/root/send/data/timeyn", "N");
  623. model.setValue("/root/send/data/ampmyn", "9");
  624. model.setValue("/root/send/rsrvsuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  625. //타과링크시 등로
  626. //flag : T => 통합, A : 영상, S : 건진
  627. model.setValue("/root/send/data/chkflag", "T");
  628. /*
  629. param = "19526804" + "▦" + "S" + "▦" + "2160000000";
  630. condarray = param.split("▦");
  631. model.setValue("/root/send/data/srchpid", condarray[0]);
  632. model.setValue("/root/send/data/chkflag", condarray[1]);
  633. model.setValue("/root/send/data/suppdeptcd1", condarray[2]);
  634. //btn_sea.dispatch("DOMActivate");
  635. */
  636. if ( model.getValue("/root/send/data/srchpid") != "" ) {
  637. btn_sea.dispatch("DOMActivate");
  638. }else
  639. if(checkOpener()) //opener 검사
  640. {
  641. var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
  642. if(param != "") // opener parameter value가 있는 경우
  643. {
  644. //parameter value를 이용하여 프로그램 수행
  645. condarray = param.split("▦");
  646. model.setValue("/root/send/data/srchpid", condarray[0]);
  647. model.setValue("/root/send/data/chkflag", condarray[1]);
  648. RSRV_PLCE = model.getValue("/root/send/data/chkflag");
  649. model.setValue("/root/send/data/suppdeptcd1", condarray[2]);
  650. btn_sea.dispatch("DOMActivate");
  651. // 영상의학과에서의 object에 제어를 하기 위해서 , 장준원(20080416)
  652. chkobjvisible( model.getValue("/root/send/data/chkflag") );
  653. }
  654. else // opener parameter가 없는 경우 화면 원무 정보 check
  655. {
  656. var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
  657. if(paminfo != "") //원무 정보(기본 정보)가 있는 경우
  658. {
  659. model.removeNodeset("/root/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
  660. model.makeNode("/root/paminfo");
  661. setCSVToNode("/root/paminfo", paminfo);
  662. //상단 정보를 이용하여 프로그램 수행
  663. var pid = model.getValue("/root/paminfo" + "/list/pid");
  664. model.setValue("/root/send/data/srchpid", pid);
  665. btn_sea.dispatch("DOMActivate");
  666. }
  667. else //원무 정보(기본 정보)가 없는 경우
  668. {
  669. //원무 정보가 없는 상태로 프로그램 수행
  670. }
  671. }
  672. }else {
  673. if ( model.getValue("/root/send/data/srchpid") != "" ) {
  674. btn_sea.dispatch("DOMActivate");
  675. }
  676. }
  677. model.setFocus("ipt_pid");
  678. if (model.getValue("/root/send/data/chkflag") != "T"){
  679. document.title = "자체예약관리";
  680. caption6.text = "자체예약관리";
  681. caption2.visible = true;
  682. cmb_excuroomgrp.visible = true;
  683. caption3.visible = true;
  684. ipt_date1.visible = true;
  685. caption18.visible = true;
  686. button23.visible = true;
  687. grd_mainordlist7.visible = true;
  688. caption8.visible = false;
  689. button2.visible = false;
  690. button24.visible = true;
  691. button25.visible = true;
  692. }else{
  693. caption2.visible = false;
  694. cmb_excuroomgrp.visible = false;
  695. caption3.visible = false;
  696. ipt_date1.visible = false;
  697. caption18.visible = false;
  698. button23.visible = false;
  699. grd_mainordlist7.visible = false;
  700. caption8.visible = true;
  701. button2.visible = true;
  702. button24.visible = false;
  703. button25.visible = false;
  704. }
  705. //2011.01.26 c y w 달력 현재 날짜로 초기화.
  706. initCalendar();
  707. // 2011.04.06 cyw 통합예약자만이 예약 가능하도록 수정.
  708. //2012.11.12 by kya 통합예약자만이 취소 가능하도록 수정.
  709. var idx_rsrv = 0;
  710. var rsrvidCnt = getNodesetCount("/root/init1/rsrvidinfo/T0001");
  711. for( var i = 1 ; i<= rsrvidCnt ; i++){
  712. if( model.getValue("/root/init1/rsrvidinfo/T0001["+ i +"]/cdid") == getUserId() ){
  713. idx_rsrv++;
  714. }
  715. }
  716. if( idx_rsrv == 0 ){
  717. btn_rsrv.disabled = true;
  718. btn_cncl.disabled = true;
  719. IS_RSRVUSER = false;
  720. }
  721. model.setValue("/root/send/data/passdataflag", "Y");
  722. //2013.2.06 by kya 임시예약 추가
  723. btn_temp.disabled = true;
  724. var dutplceinstcd = getUserInfo("dutplceinstcd");
  725. if ( dutplceinstcd == "031" ) {
  726. btn_temp.disabled = false;
  727. }
  728. //20130320 권영애 수행부서 비교위해 초기화
  729. //model.setValue("/root/hidden/beforeorder/brow", "");
  730. //model.setValue("/root/hidden/beforeorder/excuroom", "");
  731. model.resetInstanceNode("/root/hidden/beforeorder");
  732. model.refresh();
  733. ]]>
  734. </script>
  735. <submission id="TRAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist"/>
  736. <submission id="TRAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  737. <submission id="TRAEA02017" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info2"/>
  738. <submission id="TRAEA02003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
  739. <submission id="TRAEA02004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist"/>
  740. <submission id="TRAEA02005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvposstmlist"/>
  741. <submission id="TRAEA02010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exculist"/>
  742. <submission id="TXAEA02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/temp"/>
  743. <submission id="TXAEA02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req1" replace="instance" resultref="/root/temp"/>
  744. <submission id="TRAEA02009" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/reqdata1"/>
  745. <submission id="TRAEA02012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/calenlist"/>
  746. <submission id="TRAEA02013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordlist1"/>
  747. <submission id="TRAEA02016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/curerprescondlist2"/>
  748. <bind id="bind_orddeptlist" ref="/root/main/orddeptinfo/orddeptlist/orddeptcd" readonly="../orddeptcd!=''"/>
  749. <bind id="bind_mainordlist5" ref="/root/main/exculist/mainordlist5/excuroom" readonly="../excuroom!=''"/>
  750. <submission id="TRAEA02008" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/autorsrvtmset" replace="instance" resultref="/root/hidden/autorsrvtmset"/>
  751. <submission id="TRZBC00101"/>
  752. <submission id="TRAAA00001"/>
  753. <submission id="TRAEA02014" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info1"/>
  754. <submission id="TRAEA05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info3/suppdeptlist"/>
  755. <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" resultref="/root/init/cmb_info3/excuroomcdlist"/>
  756. <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" replace="instance" resultref="/root/init1/onestopordinfo/codelist"/>
  757. <submission id="TRAEA00920" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/printinfo/printlist"/>
  758. <submission id="TRAEB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send3" replace="instance" resultref="/root/main/deptmemolist"/>
  759. <submission id="TXAEB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send3" replace="instance" resultref="/root/hidden/temp"/>
  760. <submission id="TRAEA01132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" replace="instance" resultref="/root/hidden/excuroomgrplist"/>
  761. <submission id="TRPMC06904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patprivacy" replace="instance" resultref="/root/temp/patprivacy"/>
  762. <submission id="TRPEA00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/ctrl/send/rsrvinfo" replace="instance" resultref="/root/ctrl/temp"/>
  763. <submission id="TRPEA00211" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/ctrl/hidden/excplist/excpinfo"/>
  764. </model>
  765. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  766. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  767. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  768. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  769. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  770. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  771. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  772. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  773. <script type="javascript" src="../../../pam/pamexcuweb/js/SMPEA00200.js"/>
  774. <script type="javascript">
  775. <![CDATA[
  776. /* @group : 임시예약
  777. * @ver :
  778. * @by :
  779. * @-----------------------------------
  780. * @type : function
  781. * @access : public
  782. * @desc :
  783. */
  784. function fPseuRsrvInfo() {
  785. var i = grd_mainordlist5.row;
  786. var rsrvflagyn = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn");
  787. if ( rsrvflagyn != "예약" )
  788. {
  789. messageBox("예약한 후에 추가예약을 해주세요!!.", "E999", "");
  790. return;
  791. }
  792. //검사실의 basecdcnts 정보가져오기
  793. var excuroomgrp = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/basecdcnts");
  794. if (excuroomgrp == "") {
  795. messageBox("검사실을 ", "C002");
  796. return;
  797. }
  798. setParameter("excuroomgrp", excuroomgrp );
  799. model.makeValue("/root/hidden/pseursrvinfo/seq", model.getValue("/root/hidden/popupmenu/seq"));
  800. model.makeValue("/root/hidden/pseursrvinfo/suppdeptcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/suppdeptcd"));
  801. model.makeValue("/root/hidden/pseursrvinfo/instcd", getUserInfo("dutplceinstcd"));
  802. model.makeValue("/root/hidden/pseursrvinfo/rsrvdt", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvdt"));
  803. model.makeValue("/root/hidden/pseursrvinfo/menuparam", "R");
  804. model.makeValue("/root/hidden/pseursrvinfo/excuroomcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd"));
  805. model.makeValue("/root/hidden/pseursrvinfo/pid", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/pid"));
  806. model.makeValue("/root/hidden/pseursrvinfo/calcscorcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd"));
  807. model.makeValue("/root/hidden/pseursrvinfo/hngnm", model.getValue("/root/main/exculist/patinfolist/hngnm"));
  808. model.makeValue("/root/hidden/pseursrvinfo/age", model.getValue("/root/main/exculist/patinfolist/age"));
  809. model.makeValue("/root/hidden/pseursrvinfo/sex", model.getValue("/root/main/exculist/patinfolist/sex"));
  810. var rrgstno = model.getValue("/root/main/exculist/patinfolist/rrgstno");
  811. model.makeValue("/root/hidden/pseursrvinfo/rrgstno1", rrgstno.substr(0, 6));
  812. model.makeValue("/root/hidden/pseursrvinfo/rrgstno2", rrgstno.substr(6, 1));
  813. //20140914 by kya 추가예약가능 품목인지 비교함
  814. var icount = 0;
  815. var pcode = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd");
  816. var rowCnt = getNodesetCount("/root/init1/prsrcdinfo/codelist/item");
  817. for( var j = 1 ; j<= rowCnt ; j++){
  818. var cdid = model.getValue("/root/init1/prsrcdinfo/codelist/item["+ j +"]/cdid");
  819. if ( pcode == model.getValue("/root/init1/prsrcdinfo/codelist/item["+ j +"]/cdid") ) {
  820. icount++;
  821. }
  822. }
  823. if (icount > 0 ) {
  824. modal("SPAEA02201", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
  825. } else {
  826. messageBox("추가예약이 가능한 처방이 아닙니다[진료지원A0003].", "E999", "");
  827. }
  828. //modal("SPAEA02201", "", "200", "200", "popup", "/root/main/exculist/mainordlist5[" + i + "]", "/root/init/pseursrvinfo");
  829. }
  830. /* @group : 통합예약관리
  831. * @ver : 2007.08.09
  832. * @by : 임헤정
  833. * @-----------------------------------
  834. * @type : function
  835. * @access : public
  836. * @desc : 달력초기화
  837. */
  838. function initCalendar() {
  839. model.setValue("/root/send/data/memodd", getCurrentDate());
  840. if (model.getValue("/root/hidden/calendar/year") == ""){
  841. var curDate = getCurrentDate().toDate();
  842. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  843. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  844. setCalendar(curDate);
  845. // 현재일자 색상 표시
  846. setCurrentDate(grd_calendar);
  847. }else{
  848. curDate = model.getValue("/root/send/data/rsrvdd");
  849. model.setValue("/root/hidden/calendar/year", curDate.substr(0, 4));
  850. model.setValue("/root/hidden/calendar/month", curDate.substr(4, 2));
  851. //fCalendar();
  852. setRsrvPresCondByMonth();
  853. // 현재일자 색상 표시
  854. setCurrentDate(grd_calendar);
  855. }
  856. }
  857. function initCalendar2() {
  858. var curDate = getCurrentDate().toDate();
  859. model.setValue("/root/hidden/calendar/year", curDate.getDateFormat('YYYY'));
  860. model.setValue("/root/hidden/calendar/month", curDate.getDateFormat('MM'));
  861. model.refresh();
  862. // 그리드 초기화
  863. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  864. model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  865. grd_calendar.rebuild();
  866. var dateObj = curDate;
  867. dateObj.setDate(1);
  868. var startDay = dateObj.getDay();
  869. var days = dateObj.getMonthDay();
  870. var rows = Math.ceil( ( startDay + days ) / 7 );
  871. for( var i = 0; i < rows; i++ )
  872. grd_calendar.addRow(false);
  873. grd_calendar.rebuild();
  874. var rowIndex = grd_calendar.fixedRows;
  875. var colIndex = startDay;
  876. for( var i = 1; i <= days; i++ ) {
  877. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  878. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  879. colIndex++;
  880. if( colIndex == 7 ) {
  881. colIndex = 0;
  882. rowIndex++;
  883. }
  884. }
  885. model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  886. fCalendar();
  887. // 현재일자 색상 표시
  888. setCurrentDate(grd_calendar);
  889. }
  890. function fCalendar(){
  891. if (submit("TRAEA02012")){
  892. var isMonth = model.getValue("/root/hidden/calendar/month");
  893. var isYear = model.getValue("/root/hidden/calendar/year");
  894. var isDate = (isYear+isMonth+1).toDate();
  895. var startDay = isDate.getDay();
  896. for (var i = 1; i < datagrid3.rows; i++) {
  897. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  898. var colidx = dd.toDate().getDay();
  899. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  900. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  901. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  902. if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "8"){
  903. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "red";
  904. }else if (model.getValue("/root/init/calenlist/calendinfo[" + i + "]/dutflag") == "4"){
  905. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "blue";
  906. }else{
  907. grd_calendar.cellstyle("color", rowidx, colidx, rowidx, colidx) = "black";
  908. }
  909. }
  910. grd_calendar.refresh();
  911. }
  912. }
  913. /* @group : 통합예약관리
  914. * @ver : 2007.08.09
  915. * @by : 임헤정
  916. * @-----------------------------------
  917. * @type : function
  918. * @access : public
  919. * @desc : 선택날짜 색 주기
  920. */
  921. function setCalendar(dateObj) {
  922. // 그리드 초기화
  923. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  924. model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  925. grd_calendar.refresh();
  926. dateObj.setDate(1);
  927. var startDay = dateObj.getDay();
  928. var days = dateObj.getMonthDay();
  929. var rows = Math.ceil( ( startDay + days ) / 7 );
  930. /*
  931. for( var i = 0; i < rows; i++ )
  932. grd_calendar.addRow(false);
  933. grd_calendar.rebuild();
  934. */
  935. if (rows != grd_calendar.rows - 1){
  936. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  937. for( var i = 0; i < rows; i++ ){
  938. grd_calendar.addRow(false);
  939. }
  940. }else{
  941. model.setValue("/root/hidden/calendar/weeklist/list", "");
  942. }
  943. grd_calendar.refresh();
  944. var rowIndex = grd_calendar.fixedRows;
  945. var colIndex = startDay;
  946. for( var i = 1; i <= days; i++ ) {
  947. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  948. grd_calendar.valueMatrix(rowIndex, colIndex + 7) = "0/0";
  949. colIndex++;
  950. if( colIndex == 7 ) {
  951. colIndex = 0;
  952. rowIndex++;
  953. }
  954. }
  955. model.setValue("/root/send/data/rsrvdd",model.getValue("/root/hidden/calendar/year")+model.getValue("/root/hidden/calendar/month")+"01");
  956. fCalendar(); //공휴일 표시
  957. setRsrvPresCondByMonth(); //가용인원표시
  958. }
  959. /* @group : 통합예약관리
  960. * @ver : 2007.08.09
  961. * @by : 임헤정
  962. * @-----------------------------------
  963. * @type : function
  964. * @access : public
  965. * @desc : 선택날짜 색 주기
  966. */
  967. function setCellColor(gridObj) {
  968. var calRow = 0; //현재선택
  969. var calCol = 0; //현재선택
  970. var bfcalRow = 0; //전에 선택
  971. var bfcalCol = 0; //전에 선택
  972. var white = 1; //#ffffff
  973. var green = 2; //#c4e693
  974. calRow = Number(model.getValue("/root/hidden/grdcellcolor/calrow"));
  975. calCol = Number(model.getValue("/root/hidden/grdcellcolor/calcol"));
  976. bfcalRow = Number(model.getValue("/root/hidden/grdcellcolor/bfcalrow"));
  977. bfcalCol = Number(model.getValue("/root/hidden/grdcellcolor/bfcalcol"));
  978. // 1. 원래 색으로 돌려놓기
  979. if(model.getValue("/root/hidden/grdcellcolor/color") == "1" ) {
  980. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  981. if( bfcalCol < 7 )
  982. bfcalCol += 7;
  983. else
  984. bfcalCol -= 7;
  985. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#ffffff";
  986. }
  987. else if (model.getValue("/root/hidden/grdcellcolor/color") == "2" ) {
  988. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  989. if( bfcalCol < 7 )
  990. bfcalCol += 7;
  991. else
  992. bfcalCol -= 7;
  993. gridObj.cellStyle("background-color", bfcalRow, bfcalCol) = "#c4e693";
  994. }
  995. // 2. bf 인스턴스에 선택한 원래 셀 담아두기
  996. if(gridObj.cellStyle("background-color", calRow, calCol) == "#ffffff" ) {
  997. model.setValue("/root/hidden/grdcellcolor/color", "1");
  998. }
  999. if(gridObj.cellStyle("background-color", calRow, calCol) == "#c4e693" ) {
  1000. model.setValue("/root/hidden/grdcellcolor/color", "2");
  1001. }
  1002. model.setValue("/root/hidden/grdcellcolor/bfcalrow",calRow);
  1003. model.setValue("/root/hidden/grdcellcolor/bfcalcol",calCol);
  1004. //alert("인스턴스 : "+model.getValue("/root/hidden/grdcellcolor/color"));
  1005. // 3. 선택한 셀에 보라색 주기
  1006. // gridObj.rebuildStyle();
  1007. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1008. if( calCol < 7 )
  1009. calCol += 7;
  1010. else
  1011. calCol -= 7;
  1012. gridObj.cellStyle("background-color", calRow, calCol) = "#daa7d9";
  1013. // 현재일자 색상 표시 2011.07.20 by kya
  1014. var curdate = getCurrentDate();
  1015. var caldate = model.getValue("/root/hidden/calendar/year") + model.getValue("/root/hidden/calendar/month");
  1016. var curday = curdate.substring(6,8);
  1017. var calday = "";
  1018. if ( curdate.substring(0,6) == caldate ) {
  1019. for (i=0; i<gridObj.rows; i++) {
  1020. for (j=0; j<gridObj.cols; j++) {
  1021. calday = gridObj.valueMatrix(i,j);
  1022. if (eval(curday) == calday) {
  1023. calRow = i;
  1024. calCol =j;
  1025. // 현재일자 색상 표시
  1026. gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  1027. if ( calCol < 7 ) {
  1028. calCol += 7;
  1029. } else {
  1030. calCol -= 7;
  1031. }
  1032. gridObj.cellStyle("background-color", calRow, calCol) = "#95d4fb";
  1033. }
  1034. }
  1035. }
  1036. }
  1037. }
  1038. /* @group : 통합예약관리
  1039. * @ver : 2007.08.09
  1040. * @by : 장준원
  1041. * @-----------------------------------
  1042. * @type : function
  1043. * @access : public
  1044. * @desc : Object Visible 체크
  1045. * 1. 영상의학과의 자체예약일 경우
  1046. * - 검사현황 Grid의 병실컬럼.
  1047. */
  1048. function chkobjvisible(check) {
  1049. if ( check == "A" ) {
  1050. grd_mainordlist5.colhidden(grd_mainordlist5.colref("roomcd")) = false;
  1051. grd_mainordlist5.colhidden(grd_mainordlist5.colref("telrsrvyn")) = true;
  1052. } else {
  1053. grd_mainordlist5.colhidden(grd_mainordlist5.colref("roomcd")) = true;
  1054. grd_mainordlist5.colhidden(grd_mainordlist5.colref("telrsrvyn")) = false;
  1055. }
  1056. }
  1057. /* @group : 통합예약관리
  1058. * @ver : 2007.05.18
  1059. * @by : 이선경
  1060. * @-----------------------------------
  1061. * @type : function
  1062. * @access : public
  1063. * @desc : 달력에 일자별로 가용현황을 보여준다.
  1064. */
  1065. function setRsrvPresCondByMonth() {
  1066. if (grd_mainordlist5.row > 0){
  1067. model.setValue("/root/send/data/prcpgenrflag", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpgenrflag"));
  1068. model.setValue("/root/send/data/excucd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
  1069. }
  1070. /*
  1071. if (model.getValue("/root/send/data/chkflag") != "T"){
  1072. model.setValue("/root/send/data/prcpgenrflag", "");
  1073. }
  1074. */
  1075. model.removeNodeset("/root/init/curerprescondlist/deptmemo");
  1076. model.removeNodeset("/root/main/rsrvposstmlist/deptmemo");
  1077. submit("TRAEA02004", false);
  1078. // 수행부서 선택 시 수행부서/변동내역 Comment 조회 부분 추가 [2010.05.20 김건기]
  1079. var rowCnt = getNodesetCount("/root/init/curerprescondlist/deptmemo");
  1080. for (var i = 1; i <= rowCnt ; i++) {
  1081. model.makeValue("/root/main/rsrvposstmlist/deptmemo[" + i + "]/memodt", model.getValue("/root/init/curerprescondlist/deptmemo[" + i + "]/memodt"));
  1082. model.makeValue("/root/main/rsrvposstmlist/deptmemo[" + i + "]/memorem", model.getValue("/root/init/curerprescondlist/deptmemo[" + i + "]/memorem"));
  1083. }
  1084. grd_temp.refresh();
  1085. var isMonth = model.getValue("/root/hidden/calendar/month");
  1086. var isYear = model.getValue("/root/hidden/calendar/year");
  1087. var isDate = (isYear+isMonth+1).toDate();
  1088. var startDay = isDate.getDay();
  1089. for (var i = 1; i < datagrid3.rows; i++) {
  1090. var dd = model.getValue("/root/init/calenlist/calendinfo[" + i + "]/basedd");
  1091. var colidx = dd.toDate().getDay();
  1092. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  1093. //var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  1094. //alert("DD==" + dd + "==colidx==" + rowidx + "==rowidx");
  1095. grd_calendar.cellStyle("background-color", rowidx, colidx) = "white";
  1096. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "white";
  1097. //2010.09.25 예약스케줄없을시 기존검사실 캐퍼 그대로 적용되어 reset시킴 - 박재영
  1098. grd_calendar.valueMatrix(rowidx, colidx+7) = "0/0";
  1099. }
  1100. grd_calendar.refresh();
  1101. //grd_calendar.rebuildStyle();
  1102. for (var i = 1; i < grd_temp.rows; i++) {
  1103. var dd = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/rsrvdd");
  1104. var colidx = dd.toDate().getDay();
  1105. var rowidx = Math.ceil( ( startDay + Number(dd.substr(6,2)) ) / 7 );
  1106. grd_calendar.valueMatrix(rowidx, colidx+7) = model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count") + "/" + model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max") ;
  1107. //예약가능일자 녹색주기
  1108. if(parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/count")) < parseFloat(model.getValue("/root/init/curerprescondlist/rsrvcalendar[" + i + "]/max"))){
  1109. grd_calendar.cellStyle("background-color", rowidx, colidx) = "#c4e693";
  1110. grd_calendar.cellStyle("background-color", rowidx, colidx+7) = "#c4e693"; // #D9EFB9 < #C4E693 < #ABDC65
  1111. }
  1112. }
  1113. model.refresh();
  1114. // 수행부서 선택 시 수행부서/변동내역 Comment 조회 부분 추가 [2010.05.20 김건기]
  1115. grd_momolist.autoResize = true;
  1116. }
  1117. function readfunc(){
  1118. //initCalendar2();
  1119. //setCurrentDate();
  1120. //20140911 by kya 환자정보 초기화
  1121. model.removeNodeset("/root/main/exculist/patinfolist");
  1122. //end
  1123. model.removeNodeset("root/main/exculist/mainordlist1");
  1124. model.removeNodeset("root/main/exculist/mainordlist2");
  1125. model.removeNodeset("root/main/exculist/mainordlist3");
  1126. model.removeNodeset("root/main/exculist/mainordlist4");
  1127. model.removeNodeset("root/main/exculist/mainordlist5");
  1128. model.removeNodeset("root/main/exculist/mainordlist8");
  1129. model.setValue("/root/send/data/orddeptcd","");
  1130. //model.resetInstanceNode("/root/send/data/cmb_info/initexecroom/excuroomcdid");
  1131. model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
  1132. model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
  1133. model.removeNodeset("/root/init/curerprescondlist/rsrvcalendar");
  1134. model.removeNodeset("/root/hidden/beforersrvtm/rsrvdtlist");
  1135. model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
  1136. model.removeNodeset("/root/main/rsrvposstmlist/deptmemo");
  1137. model.removeNodeset("/root/main/exculist/subordlist3");
  1138. model.removeNodeset("/root/main/printinfo/printlist"); //20100927
  1139. //20121030 중증만기일자표시
  1140. model.setValue("/root/send/data/serdiagtodd","");
  1141. // 환자내역
  1142. //submit("TRAEA02001");
  1143. //처방현황
  1144. model.setValue("/root/send/data/srchpid",model.getValue("/root/send/data/srchpid"));
  1145. model.setValue("/root/send/data/orddd","");
  1146. // 2011.01.27 c y w 조회시 계속 현재일자 보여주기.
  1147. // model.setValue("/root/hidden/calendar/year", "");
  1148. // model.setValue("/root/hidden/calendar/month", "");
  1149. if (submit("TRAEA02010")){
  1150. for (var i = 1; i < grd_mainordlist2.rows; i++){
  1151. if (model.getValue("/root/main/exculist/mainordlist2[" + i + "]/rsrvflag") == "2"){
  1152. grd_mainordlist2.rowstyle(i, "data", "background-color") = "#ccffff";
  1153. }else if (model.getValue("/root/main/exculist/mainordlist2[" + i + "]/calcyn") == "Y"){ //수납이 아니면
  1154. grd_mainordlist2.rowstyle(i, "data", "background-color") = "#FF9A00";
  1155. }else if (model.getValue("/root/main/exculist/mainordlist2[" + i + "]/calcyn") == "V"){ //VIP일 경우 2012.08.20 by kya
  1156. grd_mainordlist2.rowstyle(i, "data", "background-color") = "#ffff00";
  1157. }else{
  1158. grd_mainordlist2.rowstyle(i, "data", "background-color") = "#ffffff";
  1159. }
  1160. }
  1161. if (model.getValue("/root/init1/baseinfo/initsrchtm/A640[" + 1 + "]/cdid") == "N"){
  1162. for (var i = 1; i < grd_mainordlist5.rows ; i++) {
  1163. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" ||
  1164. model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약취소"){
  1165. model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm", "");
  1166. }
  1167. }
  1168. }
  1169. // 영상의학과에서의 object에 제어를 하기 위해서 , 장준원(20080416)
  1170. chkobjvisible( model.getValue("/root/send/data/chkflag") );
  1171. patcmt();
  1172. /* 2013.02.13 by kya 개정 : VIP 후불 수납체크 추가 */
  1173. //20100824 외래미수납 처방만 (입원처방 통합예약에서 예약시 prcpgenrflag = 'I'제외되어야됨)
  1174. //old===> var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist[prcpgenrflag = 'O']");
  1175. //new ====>
  1176. var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist[prcpgenrflag = 'O' && aftrcptinfo != 'V']");
  1177. //var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist[prcpgenrflag != 'S']");
  1178. // var Impsirsrvcnt = getNodesetCount("/root/main/exculist/mainImpsirsrvlist");
  1179. if ( Impsirsrvcnt > 0 ) {
  1180. messageBox("미수납 검사처방이 있습니다. 처방 확인 요망 ","E999");
  1181. }
  1182. // 환자 조회시 중증이나 산정특례 만료일부터 6개월이내 환자 알림 기능
  1183. var serdiagtodd = model.getValue("/root/main/exculist/patinfolist/serdiagtodd");
  1184. //if ( ( grd_mainordlist2.rows > 1 ) && (serdiagtodd != "-" ) ) {
  1185. if (serdiagtodd != "-" ) { //진료예약내역 여부와 상관없이 있으면 나오도록 함 20140307 by kya
  1186. if (serdiagtodd.length == 8) {
  1187. serdiagtodd = serdiagtodd.substr(0,4) + "년 " + serdiagtodd.substr(4,2) + "월 " + serdiagtodd.substr(6,2) + "일";
  1188. //20121030 중증만기일자표시
  1189. model.setValue("/root/send/data/serdiagtodd",serdiagtodd);
  1190. messageBox("중증이나 산정특례 등록이 " + serdiagtodd + " 만료예정입니다","E999");
  1191. } else {
  1192. messageBox("중증이나 산정특례 등록이 " + serdiagtodd + " 만료예정입니다","E999");
  1193. }
  1194. }
  1195. }
  1196. }
  1197. /* @group : 통합예약관리
  1198. * @ver : 2007.08.10
  1199. * @by : 임헤정
  1200. * @-----------------------------------
  1201. * @type : function
  1202. * @access : public
  1203. * @desc : 오늘날짜 달력에 표시
  1204. */
  1205. function setCurrentDate() {
  1206. var curDate = getCurrentDate().substr(6,2); //오늘날짜
  1207. var curWeek = getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
  1208. if(curDate <10) {
  1209. curDate= curDate.substr(1,1);
  1210. }
  1211. if(curWeek == "sun")
  1212. model.setValue("/root/hidden/grdcellcolor/calcol",0);
  1213. if(curWeek == "mon")
  1214. model.setValue("/root/hidden/grdcellcolor/calcol",1);
  1215. if(curWeek == "tue")
  1216. model.setValue("/root/hidden/grdcellcolor/calcol",2);
  1217. if(curWeek == "wed")
  1218. model.setValue("/root/hidden/grdcellcolor/calcol",3);
  1219. if(curWeek == "thu")
  1220. model.setValue("/root/hidden/grdcellcolor/calcol",4);
  1221. if(curWeek == "fri")
  1222. model.setValue("/root/hidden/grdcellcolor/calcol",5);
  1223. if(curWeek == "sat")
  1224. model.setValue("/root/hidden/grdcellcolor/calcol",6);
  1225. for(var i = 0 ; i <grd_calendar.rows; i++ ) {
  1226. if(model.getValue("/root/hidden/calendar/weeklist/list["+i+"]/"+curWeek) ==curDate) {
  1227. model.setValue("/root/hidden/grdcellcolor/calrow",i);
  1228. }
  1229. }
  1230. setCellColor(grd_calendar);
  1231. }
  1232. /* @group : 통합예약관리
  1233. * @ver : 2007.08.09
  1234. * @by : 임헤정
  1235. * @-----------------------------------
  1236. * @type : function
  1237. * @access : public
  1238. * @desc : 예약가능시간보여주기
  1239. */
  1240. function getRsrvPossTm(gridObj) {
  1241. /*
  1242. if(model.getValue("/root/send/ioflag") == "") {
  1243. messageBox("입원,외래중","C002");
  1244. return;
  1245. } else if(model.getValue("/root/send/excuroomcd") == "") {
  1246. messageBox("치료실","C002");
  1247. return;
  1248. } else { */
  1249. // var calRow = gridObj.row;
  1250. // var calCol = gridObj.col;
  1251. var calRow = model.getValue("/root/hidden/grdcellcolor/calrow");
  1252. var calCol = model.getValue("/root/hidden/grdcellcolor/calcol");
  1253. if( calCol >= 7 )
  1254. calCol -= 7;
  1255. var yyyy = model.getValue("/root/hidden/calendar/year");
  1256. var mm = model.getValue("/root/hidden/calendar/month");
  1257. var dd = model.getValue("/root/hidden/calendar/weeklist/list[" + calRow + "]/" + gridObj.colAttribute(calCol, "ref"));
  1258. if (getStringLength(dd) == 1) {
  1259. dd = "0" + dd;
  1260. }
  1261. model.setValue("/root/send/data/rsrvdd", yyyy + mm + dd);
  1262. model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/rsrvdd"));
  1263. /*
  1264. if (gridObj.cellStyle("background-color", calRow, calCol) == "#daa7d9") {
  1265. grd_temp2.addRow();
  1266. grd_temp2.setValue("/root/send/rsrvdd[" + grd_temp2.bottomRow + "]/yyyymmdd", yyyy + mm + dd);
  1267. }*/
  1268. if (grd_mainordlist5.row > 0){
  1269. model.setValue("/root/send/data/prcpgenrflag", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpgenrflag"));
  1270. model.setValue("/root/send/data/excucd", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
  1271. }
  1272. grd_momolist.autoResize = true;
  1273. submit("TRAEA02005");
  1274. var idx = 1;
  1275. model.removeNodeset("/root/main/hidden3/rsrvtmlst");
  1276. // 2011.01.28 c y w 예약시간 리스트 배경색 디폴드값 셋팅.
  1277. for(var b = 1; b <= grd_rsrvposstm.rows ; b++ ){
  1278. grd_rsrvposstm.rowstyle(b, "data", "background-color") = "#ffffff";
  1279. }
  1280. // 2011.01.28 c y w 예약내역에 소요시간이 있을경우 그 시간내에는 예약을 잡지 못하도록 배경색 변경
  1281. for (var i = 1; i < grd_rsrvlist.rows; i++){
  1282. //2011.01.28 c y w 소요시간이 0 이 아닐경우,
  1283. if( parseInt(model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/excutm")) != 0 && model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/excutm") != "" ){
  1284. for(var a = 1; a <= grd_rsrvposstm.rows ; a++ ){
  1285. var rsrvcapatm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm[" + a + "]/rsrvtm");
  1286. var excutm = model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/excutm");
  1287. var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvlist["+ i +"]/rsrvtm").substring(0,4);
  1288. var addrsrvtext = model.getValue("/root/send/data/rsrvdd") + model.getValue("/root/main/rsrvposstmlist/rsrvlist["+ i +"]/rsrvtm").substring(0,4);
  1289. var addrsrvtm = addrsrvtext.toDate("YYYYMMDDhhmm").getAddDate(parseInt(excutm),"m").getDateFormat("hhmm");
  1290. // 예약시간 <= 예약켑파 && 예약시간+소요시간 >= 예약켑파
  1291. if( rsrvtm < rsrvcapatm && addrsrvtm > rsrvcapatm ){
  1292. grd_rsrvposstm.rowstyle(a, "data", "background-color") = "#99cc00";
  1293. }
  1294. }
  1295. }
  1296. if (model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/slepyn") == "Y"){
  1297. grd_rsrvlist.rowstyle(i, "data", "background-color") = "#ffcc00";
  1298. }else{
  1299. grd_rsrvlist.rowstyle(i, "data", "background-color") = "#ffffff";
  1300. }
  1301. //2011.03.14 오전오후 구분 2011.03.21
  1302. var srchrsrvtm = parseInt(model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + i +"]/srchrsrvtm"));
  1303. if(srchrsrvtm >= 1300){
  1304. grd_rsrvlist.cellstyle("background-color", i, 1, i, 1) = "#ffcc00";
  1305. }else{
  1306. grd_rsrvlist.cellstyle("background-color", i, 1, i, 1) = "#ffffff";
  1307. }
  1308. }
  1309. model.refresh();
  1310. // }
  1311. }
  1312. /* @group : 통합예약
  1313. * @ver : 2007.07.03
  1314. * @by : 임혜정
  1315. * @-----------------------------------
  1316. * @type : function
  1317. * @access : public
  1318. * @desc : 예약, 취소 버튼의 click 이벤트 처리
  1319. */
  1320. function exeRsrvTransaction(str) {
  1321. var sColSep = "▦";
  1322. var sRowSep = "▩";
  1323. var rCSV = "";
  1324. // PACS연동하기 위해 추가함. 20071017,장준원
  1325. // pacsnocretyn,rgsttm,rgstrid,prcpdelivefact,orddepthngnm,prcpnm,orddd,rgstdepthngnm
  1326. // 전화예약여부 컬럼 추가함. 20080603,장준원
  1327. rCSV += "pid" + sColSep + "excuroomcd" + sColSep +"prcpdd" + sColSep + "execprcpuniqno" + sColSep + "rsrvflag" + sColSep + "rsrvdt" + sColSep
  1328. + "srchrsrvtm" + sColSep + "prcpkindcd" + sColSep + "excupartcd" + sColSep + "indd" + sColSep + "actorddd" + sColSep + "orddeptcd" + sColSep
  1329. + "orddrid" + sColSep + "calcscorcd" + sColSep+ "execrid" + sColSep+ "rsrvrem" + sColSep +"suppdeptcd" + sColSep+ "cnclresncd" + sColSep
  1330. + "pacsnocretyn" + sColSep+ "rgsttm" + sColSep+ "rgstrid" + sColSep+ "prcpdelivefact" + sColSep+ "orddepthngnm" + sColSep+ "prcpnm" + sColSep
  1331. + "orddd" + sColSep+ "rgstdepthngnm"+ sColSep+ "examroomnm" + sColSep+ "bf_srchrsrvtm" + sColSep+ "rsrvflagyn" + sColSep
  1332. + "prcpexecdeptcd" + sColSep+ "rsrvtmcntlyn" + sColSep + "rsrvpsnnocntlyn" + sColSep + "excuroom" + sColSep + "telrsrvyn" + sColSep
  1333. + "eqmtifyn" + sColSep + "glycosyn" + sColSep + "glycoscure" + sColSep + "reqhospcd" + sColSep + "prcpgenrflag" + sColSep + "rsrvtmplcd"
  1334. + sColSep + "emryn" + sColSep + "timeyn" + sColSep + "rsrvsuppdeptcd" + sColSep + "prercptyn"+ sColSep + "rcptrsrvyn"+ sColSep + "prcptdayrcptyn" + sRowSep;
  1335. //헤더인 excuroomcd를 앞에 붙여줘서 보냄.
  1336. var k = 0;
  1337. for (var i = 1;i < grd_mainordlist5.rows;i++){
  1338. if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk")=="true"){
  1339. if (str == "rsrv"){
  1340. if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/examroomnm") == ""){
  1341. messageBox(i + "번째행에 수행부서를 선택하시기 바랍니다.", "E999", "");
  1342. return false;
  1343. }
  1344. if (grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("srchrsrvtm")) == ""){
  1345. messageBox(i + "번째행에 예약시간을 선택하시기 바랍니다.", "E999", "");
  1346. return false;
  1347. }
  1348. }
  1349. //rCSV += model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd") + sColSep + sRowSep;
  1350. rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("pid")) + sColSep
  1351. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroomcd")) + sColSep
  1352. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpdd")) + sColSep
  1353. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("execprcpuniqno")) + sColSep
  1354. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvflag")) + sColSep
  1355. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvdt")) + sColSep
  1356. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("srchrsrvtm")) + sColSep
  1357. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpkindcd")) + sColSep
  1358. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excupartcd")) + sColSep
  1359. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("indd")) + sColSep
  1360. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("actorddd")) + sColSep
  1361. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddeptcd")) + sColSep
  1362. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddrid")) + sColSep
  1363. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("calcscorcd")) + sColSep
  1364. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("execrid")) + sColSep
  1365. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvrem")) + sColSep
  1366. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("suppdeptcd")) + sColSep
  1367. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("cnclresncd")) + sColSep
  1368. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("pacsnocretyn")) + sColSep
  1369. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgsttm")) + sColSep
  1370. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgstrid")) + sColSep
  1371. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpdelivefact")) + sColSep
  1372. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddepthngnm")) + sColSep
  1373. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpnm")) + sColSep
  1374. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("orddd")) + sColSep
  1375. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rgstdepthngnm")) + sColSep
  1376. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("examroomnm")) + sColSep
  1377. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("bf_srchrsrvtm")) + sColSep
  1378. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvflagyn")) + sColSep
  1379. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpexecdeptcd")) + sColSep
  1380. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvtmcntlyn")) + sColSep
  1381. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvpsnnocntlyn")) + sColSep
  1382. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroom")) + sColSep
  1383. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("telrsrvyn")) + sColSep
  1384. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("eqmtifyn")) + sColSep
  1385. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("glycosyn")) + sColSep
  1386. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("glycoscure")) + sColSep
  1387. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("reqhospcd")) + sColSep
  1388. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcpgenrflag")) + sColSep
  1389. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rsrvtmplcd")) + sColSep
  1390. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("emryn")) + sColSep
  1391. + model.getValue("/root/send/data/timeyn") + sColSep
  1392. + model.getValue("/root/send/rsrvsuppdeptcd") + sColSep;
  1393. //2015/02/02 이정택 추가
  1394. if(grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("aftrcptinfo"))=="V" || // 후불 수납환자
  1395. grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rcptyn"))=="수납" || // 기수납자
  1396. grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("genrflag"))=="S" || // 건진환자
  1397. grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("genrflag"))=="I" || // 입원환자
  1398. grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("genrflag"))=="E"){ // 응급환자
  1399. rCSV += "Y" + sColSep;
  1400. }else{
  1401. rCSV += "N" + sColSep;
  1402. }
  1403. //2015/02/02 이정택 추가
  1404. rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("rcptrsrvyn")) + sColSep // 미수예약
  1405. + grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("prcptdayrcptyn")) + sRowSep; //당일선수납
  1406. k = parseInt(k) + 1;
  1407. }
  1408. }
  1409. model.resetInstanceNode("/root/send/req/data");
  1410. // model.setValue("/root/send/req/data", rCSV);
  1411. model.setValue("/root/send/req/flag", str);
  1412. model.setValue("/root/send/req/chkflag", model.getValue("/root/send/data/chkflag"));
  1413. model.removeNode("/root/temp");
  1414. model.removeNode("/root/count/item");
  1415. model.makeNode("/root/temp");
  1416. setCSVToNode("/root/temp", rCSV);
  1417. instance1.selectSingleNode("/root/temp").xml;
  1418. model.copyNode("/root/send/req/data", "/root/temp");
  1419. if (submit("TXAEA02001", false)){
  1420. model.removeNodeset("/root/main/rehbprcpsubinfolist");
  1421. return true;
  1422. }else{
  1423. return false;
  1424. }
  1425. // submit("TRAEA01905");
  1426. // setTree(grd_prcpsubinfo, 1, 3, false);
  1427. //getRsrvPossTm(grd_calendar);
  1428. }
  1429. /* @group : 통합예약
  1430. * @ver : 2007.08.07
  1431. * @by : 임혜정
  1432. * @-----------------------------------
  1433. * @type : function
  1434. * @access : public
  1435. * @desc : 달력 월버튼 이벤트
  1436. */
  1437. function fGetCalendar(arg)
  1438. {
  1439. var isMonth = model.getValue("/root/hidden/calendar/month");
  1440. var isYear = model.getValue("/root/hidden/calendar/year");
  1441. //alert(isYear + "==" + isMonth);
  1442. if(model.getValue("/root/hidden/calendar/month") < arg) {
  1443. var num = arg- isMonth ;
  1444. var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
  1445. }
  1446. if(model.getValue("/root/hidden/calendar/month") > arg) {
  1447. var num = isMonth - arg ;
  1448. var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
  1449. }
  1450. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  1451. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  1452. model.refresh();
  1453. setCalendar(isDate);
  1454. // 2011.08.10 현재일자 색상 표시추가
  1455. setCurrentDate(grd_calendar);
  1456. }
  1457. /* @group : 통합예약
  1458. * @ver : 2007.08.21
  1459. * @by : 임혜정
  1460. * @-----------------------------------
  1461. * @type : function
  1462. * @access : public
  1463. * @desc : 예약증 출력
  1464. */
  1465. function fOpenRtfFileDialog() {
  1466. var file = window.fileDialog("open","","false","","","RTF Files(*.rtf)|*.rtf");
  1467. return file;
  1468. }
  1469. /* @group : 통합예약
  1470. * @ver : 2007.08.21
  1471. * @by : 임혜정
  1472. * @-----------------------------------
  1473. * @type : function
  1474. * @access : public
  1475. * @desc : 예약증 출력
  1476. */
  1477. function fGetFileName(path) {
  1478. var lastIdx = path.lastIndexOf("\\");
  1479. if (lastIdx >= 0) {
  1480. return path.substr(lastIdx+1);
  1481. } else {
  1482. return path;
  1483. }
  1484. }
  1485. /* @group : 통합예약
  1486. * @ver : 2007.08.21
  1487. * @by : 임혜정
  1488. * @-----------------------------------
  1489. * @type : function
  1490. * @access : public
  1491. * @desc : 예약증 출력 초기화
  1492. */
  1493. function fInitialize() {
  1494. model.removeNodeset("/root/main/rtflist");
  1495. model.resetInstanceNode("/root/main/curfile/filename");
  1496. model.resetInstanceNode("/root/main/curfile/rtfcode");
  1497. model.resetInstanceNode("/root/send/rtfcode");
  1498. model.resetInstanceNode("/root/send/filename");
  1499. rtfviewer.clear();
  1500. model.refresh();
  1501. }
  1502. function fSetGrdMainordlist(){
  1503. setRowStyle("grd_mainordlist5" , "5" , "미수납" , "rcptyn" ); //미수납
  1504. // submit("TRPMC02500");
  1505. //자동예약시간뿌려주기
  1506. //미예약인 처방에 제일 빠른 시간 뿌려줌.
  1507. /*
  1508. var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약']"); //미예약 다 뿌려줌
  1509. var rCSV = getNodeListCSV(nodeList);
  1510. */
  1511. /* 유재정 처리 - 2007.10.25
  1512. var sColSep = "▦";
  1513. var sRowSep = "▩";
  1514. var rCSV = "";
  1515. rCSV += "excuroomcd" + sRowSep; //헤더인 excuroomcd를 앞에 붙여줘서 보냄.
  1516. var k = 0;
  1517. for (var i = 1;i < grd_mainordlist5.rows;i++){
  1518. if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn") == "미예약" && model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm") != ""){
  1519. //rCSV += model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd") + sColSep + sRowSep;
  1520. rCSV += grd_mainordlist5.valueMatrix(i, grd_mainordlist5.colRef("excuroomcd")) + sRowSep;
  1521. k = parseInt(k) + 1;
  1522. }
  1523. }
  1524. model.setValue("/root/send/data/autorsrvtmset/autorsrvtm", rCSV);
  1525. if (k > 0){
  1526. submit("TRAEA02008");
  1527. }
  1528. */
  1529. var j = 1;
  1530. cap_sleep.visible = false;
  1531. for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
  1532. /* 유재정 처리 - 2007.10.25
  1533. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" && model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm") != ""){
  1534. model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
  1535. model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
  1536. j++;
  1537. }
  1538. */
  1539. grd_mainordlist5.rowstyle(i, "data", "background-color") = "#ffffff";
  1540. model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm"));
  1541. if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvtmcntlyn") == "Y"){
  1542. grd_mainordlist5.isReadOnly(i, grd_mainordlist5.colRef("srchrsrvtm")) = true;
  1543. }else{
  1544. grd_mainordlist5.isReadOnly(i, grd_mainordlist5.colRef("srchrsrvtm")) = false;
  1545. }
  1546. if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/slepyn") == "Y"){
  1547. cap_sleep.visible = true;
  1548. model.setValue("/root/hidden/chkgam","수면");
  1549. }
  1550. /* 수면코드는 검사치료코드에서 수면여부로 체크(향후 컬럼추가후 수정
  1551. if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
  1552. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
  1553. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
  1554. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
  1555. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
  1556. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
  1557. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
  1558. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
  1559. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
  1560. cap_sleep.visible = true;
  1561. model.setValue("/root/hidden/chkgam","수면");
  1562. }
  1563. */
  1564. }
  1565. /* 수면코드는 검사치료코드에서 수면여부로 체크(향후 컬럼추가후 수정
  1566. for(var chk = 1; chk < grd_anoprcplist.rows; chk++){
  1567. if ( model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GMA0001" ||
  1568. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE761103G" ||
  1569. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE766002G" ||
  1570. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE766004G" ||
  1571. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE768002G" ||
  1572. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "RMAU00602G" ||
  1573. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "RNAU00702G" ||
  1574. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE764002G" ||
  1575. model.getValue("/root/main/exculist/subordlist2["+chk+"]/calcscorcd") == "GE762101G") {
  1576. cap_sleep.visible = true;
  1577. model.setValue("/root/hidden/chkgam","수면");
  1578. }
  1579. }
  1580. */
  1581. fSetSubDetailGrid("/root/main/exculist/mainordlist5");
  1582. model.refresh();
  1583. }
  1584. function fTopInfo(){
  1585. //TOP 정보 보여주기
  1586. // schk = "N";
  1587. // var genrflag = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag");
  1588. //
  1589. //
  1590. // if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="O" ){
  1591. // var pat_info = "O▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
  1592. // schk = "Y";
  1593. // }
  1594. //
  1595. // else if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="I" ||
  1596. // model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="D" ||
  1597. // model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="E" ){
  1598. // //2010.12.23 cyw 상단정보 데이터 던져줄때 제일 마지막 데이터값은 입원일 경우 등록일자 말고 퇴원일자!!
  1599. // var srchdd = "";
  1600. // var dschdd = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/dschdd");
  1601. // if (dschdd == "" || dschdd == "99991231") {
  1602. // srchdd = getCurrentDate();
  1603. // } else {
  1604. // srchdd = dschdd;
  1605. // }
  1606. //
  1607. // //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
  1608. // var pat_info = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+getUserInfo("dutplcecd")+"▦"+srchdd;
  1609. // schk = "Y";
  1610. // }
  1611. // else if ( model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/genrflag") =="S" ){
  1612. // //var pat_infoready = "I▦"+ model.getValue("/root/send/data/srchpid") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd")+"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/cretno")+"▦"+"012"+"▦1▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddd");
  1613. // var pat_info = "S▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdd") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpuniqno")+"▦"+getUserInfo("dutplcecd");
  1614. // schk = "Y";
  1615. // }
  1616. // 20140801 by kya 외래, 응급실->입원전환, 입원 상관없이 상단정보 띄우도록 수정함
  1617. var pat_info = "S▦"+ model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdd") +"▦"+model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/execprcpuniqno")+"▦"+getUserInfo("dutplcecd");
  1618. schk = "Y";
  1619. if (schk == "Y"){
  1620. setParameter("condparam", pat_info);
  1621. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1622. }
  1623. }
  1624. function patcmt(){
  1625. group4.visible = false;
  1626. if (datagrid2.rows > 1){
  1627. var irow = datagrid2.findRow(getCurrentDate(), 1, 1);
  1628. if (irow < 1){
  1629. datagrid2.insertRow(1, "above");
  1630. model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /iudgb", "I");
  1631. model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /cmtdd", getCurrentDate());
  1632. }
  1633. var patcmts1 = "";
  1634. for (var i = 1; i < datagrid2.rows ; i++) {
  1635. var patcmt = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/patcmt");
  1636. var cmtdd = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/cmtdd");
  1637. patcmts1 = patcmts1 + cmtdd.substr(0,4) + "-" + cmtdd.substr(4,2) + "-" + cmtdd.substr(6,2) + " : " + patcmt + "\n\n";//\n\r\n
  1638. }
  1639. model.setValue("/root/init1/patcmt", patcmts1);
  1640. group4.visible = true;
  1641. }else{
  1642. //datagrid2.insertRow(0);
  1643. datagrid2.addRow();
  1644. model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /iudgb", "I");
  1645. model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /cmtdd", getCurrentDate());
  1646. }
  1647. model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /pid", model.getValue("/root/send/data/srchpid"));
  1648. //2010.11.01 환자주의정보 존재시 visible(true) 주석처리후 if문안에 넣음 -박재영
  1649. //model.setValue("/root/main/exculist/subordlist3/rows[" + 1 + "] /cmtdd", getCurrentDate());
  1650. button1.disabled = false;
  1651. datagrid2.refresh();
  1652. }
  1653. function ChangeCanFunc(){
  1654. model.setValue("/root/send/popup/basecdflag","A");
  1655. modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
  1656. var srem = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem");
  1657. if (srem == "-"){
  1658. srem = "";
  1659. }
  1660. if (srem != ""){
  1661. srem = srem + " ";
  1662. }
  1663. var srem = srem + model.getValue("/root/hidden/cnclcdlist/cnclcdnm");
  1664. model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem", srem);
  1665. model.refresh();
  1666. }
  1667. function ChangeTmplcd(){
  1668. var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row +"]/rsrvmultitmplcd");
  1669. if (stmpcd == ""){
  1670. messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
  1671. }
  1672. var k =0;
  1673. for(var j=0; j < stmpcd.length; j++){
  1674. //var ch = escape(str.charAt(i));
  1675. var ch = stmpcd.charAt(j);
  1676. if (ch == "^"){
  1677. k = parseInt(k) + 1;
  1678. }
  1679. }
  1680. if (k == 0){
  1681. messageBox("멀티예약예문이 아닙니다.", "E999", "");
  1682. return;
  1683. }
  1684. model.makeValue("/root/hidden/checkseq","01");
  1685. model.makeValue("/root/hidden/calcscorcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
  1686. model.makeValue("/root/hidden/tmplcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvmultitmplcd"));
  1687. window.load( "SPAEA02303_예약예문코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1688. model.refresh();
  1689. }
  1690. /* @group : 통합예약
  1691. * @ver : 2007.08.21
  1692. * @by : 임혜정
  1693. * @-----------------------------------
  1694. * @type : function
  1695. * @access : public
  1696. * @desc :
  1697. */
  1698. function ChangeTmplcd(){
  1699. var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row +"]/rsrvmultitmplcd");
  1700. if (stmpcd == ""){
  1701. messageBox("처리할 자료를 클릭한 후 처리하시기 바랍니다.", "E999", "");
  1702. }
  1703. var k =0;
  1704. for(var j=0; j < stmpcd.length; j++){
  1705. //var ch = escape(str.charAt(i));
  1706. var ch = stmpcd.charAt(j);
  1707. if (ch == "^"){
  1708. k = parseInt(k) + 1;
  1709. }
  1710. }
  1711. if (k == 0){
  1712. messageBox("멀티예약예문이 아닙니다.", "E999", "");
  1713. return;
  1714. }
  1715. model.makeValue("/root/hidden/checkseq","01");
  1716. model.makeValue("/root/hidden/calcscorcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/calcscorcd"));
  1717. model.makeValue("/root/hidden/tmplcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvmultitmplcd"));
  1718. window.load( "SPAEA02303_예약예문코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  1719. model.refresh();
  1720. }
  1721. function ChangeCanFunc2(){
  1722. model.setValue("/root/send/popup/basecdflag","Y");
  1723. modal("SPAEA01500", 0,100,150,"SPAEA01500", "/root/send/popup/basecdflag", "/root/hidden/receivedata");
  1724. var srem = model.getValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/patcmt");
  1725. if (srem == "-"){
  1726. srem = "";
  1727. }
  1728. if (srem != ""){
  1729. srem = srem + " ";
  1730. }
  1731. var srem = srem + model.getValue("/root/hidden/cnclcdlist/cnclcdnm");
  1732. model.setValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/patcmt", srem);
  1733. model.refresh();
  1734. }
  1735. function DateChng(){
  1736. var irow = grd_mainordlist5.row;
  1737. irow = irow + 1;
  1738. var sroom = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excuroom");
  1739. var sdatetime = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/srchrsrvtm");
  1740. var stime = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excutm");
  1741. var sexamroomnm = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/sexamroomnm");
  1742. for (var i = irow; i < grd_mainordlist5.rows; i ++){
  1743. var sdate = sdatetime.substr(0, 8);
  1744. var shh = sdatetime.substr(8, 2);
  1745. var smm = sdatetime.substr(10, 2);
  1746. // 20110915 by kya
  1747. if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
  1748. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  1749. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  1750. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  1751. }
  1752. //alert(shh + "==" + smm);
  1753. if (stime == "" || stime == "0"){
  1754. if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
  1755. model.setValue("/root/main/exculist/mainordlist5[" + i + "]/srchrsrvtm",sdatetime);
  1756. }
  1757. }else{
  1758. if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
  1759. //sdatetime = sdate.toDate().getAddDate(stime,"m").getDateFormat("YYYYMMDDhhmm");
  1760. smm = parseFloat(smm) + parseFloat(stime);
  1761. if (parseFloat(smm) >= 60){
  1762. shh = parseFloat(shh) + 1;
  1763. smm = parseFloat(smm) - 60;
  1764. if (parseFloat(shh) < 10){
  1765. shh = "0" + shh;
  1766. }
  1767. if (parseFloat(smm) < 10){
  1768. smm = "0" + smm;
  1769. }
  1770. }else{
  1771. if (parseFloat(smm) < 10){
  1772. smm = "0" + smm;
  1773. }
  1774. }
  1775. sdatetime = sdate + shh + smm;
  1776. model.setValue("/root/main/exculist/mainordlist5[" + i + "]/srchrsrvtm",sdatetime);
  1777. }
  1778. }
  1779. stime = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excutm");
  1780. }
  1781. model.refresh();
  1782. }
  1783. /* @group : 통합예약
  1784. * @ver : 2010.05.27
  1785. * @by : 박재영
  1786. * @-----------------------------------
  1787. * @type : function
  1788. * @access : public
  1789. * @desc : 원스탑환자 일자,시간 계산
  1790. */
  1791. function OnestopDateChng(){
  1792. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  1793. var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
  1794. if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvtmcntlyn") == "Y"){
  1795. messageBox("예약시간을 변경할 수 없는 검사/치료실입니다.", "E999", "");
  1796. return;
  1797. }
  1798. //현황과 가용인원 같을 경우 예약 불가능
  1799. if(model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/count") >= model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/max")) {
  1800. if (messageBox("가용인원을 초과하였습니다.", "Q003") != 6) {
  1801. }else {
  1802. //당일예약
  1803. if(curDate == rsrvdd) {
  1804. if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
  1805. messageBox("예약시간이 과거시간", "E008");
  1806. }
  1807. else { //현재시간 이후시간을 예약
  1808. }
  1809. }
  1810. else if(curDate > rsrvdd) { //당일 이전 예약
  1811. messageBox("예약일자가 과거일자", "E008");
  1812. }
  1813. else {
  1814. }
  1815. //model.refresh();
  1816. }
  1817. }else {
  1818. //당일예약
  1819. if(curDate == rsrvdd) {
  1820. if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
  1821. messageBox("예약시간이 과거시간", "E008");
  1822. }
  1823. else { //현재시간 이후시간을 예약
  1824. }
  1825. }
  1826. else if(curDate > rsrvdd) { //당일 이전 예약
  1827. messageBox("예약일자가 과거일자", "E008");
  1828. }
  1829. else { // 당일 이후 예약
  1830. }
  1831. //model.refresh();
  1832. }
  1833. var rsrvtm = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm");
  1834. var rsrvdd = model.getValue("/root/send/data/rsrvdd")
  1835. //20100527 첫째날의 예약시간과 같은 cdnm("A901")의 시간값을 예약일로부터 cntlyn1날짜만큼후의 날자값으로 셋팅한다.
  1836. for (var i = 1; i < grd_mainordlist5.rows; i ++){
  1837. var gonestop = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/onestop");
  1838. var gcalcscorcd = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd");
  1839. if(gonestop == "H"){
  1840. var cnt = model.instances(0).selectNodes( "/root/init1/onestopordinfo/codelist/item" ).length + 1;
  1841. for(var j = 1; j < cnt ; j++){
  1842. var cdid = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cdid");
  1843. if(gcalcscorcd == cdid){
  1844. var cntlyn1 = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cntlyn1");
  1845. }
  1846. }
  1847. if(cntlyn1 == "0"){
  1848. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/rsrvdt",rsrvdd+rsrvtm); // 예약시간
  1849. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/srchrsrvtm",rsrvdd+rsrvtm); // 예약시간
  1850. }else{
  1851. var cnt = model.instances(0).selectNodes( "/root/init1/onestoptminfo/mintm/A901" ).length + 1;
  1852. var onestopchk = 0;
  1853. for(var j = 1; j < cnt ; j++){
  1854. var cdid = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdid");
  1855. if(rsrvtm == cdid){
  1856. var cdnm = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdnm");
  1857. onestopchk = onestopchk + 1;
  1858. }
  1859. }
  1860. if(onestopchk == 0){
  1861. messageBox("예약시간이 Onestop으로 지정되지 않은 시간", "E008");
  1862. return;
  1863. }
  1864. var grsrvdd = rsrvdd.toDate().getAddDate(parseInt( cntlyn1),"D").getDateFormat("YYYYMMDD");
  1865. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/rsrvdt",grsrvdd+cdnm); // 예약시간
  1866. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/srchrsrvtm",grsrvdd+cdnm); // 예약시간
  1867. }
  1868. }
  1869. }
  1870. model.refresh();
  1871. }
  1872. /* @group : 통합예약
  1873. * @ver : 2007.08.21
  1874. * @by : 임혜정
  1875. * @-----------------------------------
  1876. * @type : function
  1877. * @access : public
  1878. * @desc : 후수납 구분 표시
  1879. */
  1880. function fSetSubDetailGrid(path) {
  1881. // 통합예약에서 건진환자 오늘결과 FLAG 의 폰트색깔변경요청 20110706 BY kya
  1882. //aezfSetCellStyle("grd_mainordlist5" , "0^1^2" , "V^P^A" , "aftrcptinfo", "rcptyn", "F");
  1883. aezfSetCellStyle("grd_mainordlist5" , "0^2^2" , "V^P^A" , "aftrcptinfo", "rcptyn", "F");
  1884. var k = 0;
  1885. for (var i = 1; i < grd_mainordlist5.rows; i++){
  1886. var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + i +"]/rsrvmultitmplcd");
  1887. k =0;
  1888. for(var j=0; j < stmpcd.length; j++){
  1889. //var ch = escape(str.charAt(i));
  1890. var ch = stmpcd.charAt(j);
  1891. if (ch == "^"){
  1892. k = parseInt(k) + 1;
  1893. }
  1894. }
  1895. if (k > 0){
  1896. grd_mainordlist5.cellstyle("color", i, grd_mainordlist5.colRef("prcpnm")) = "#0000ff";
  1897. }else{
  1898. grd_mainordlist5.cellstyle("color", i, grd_mainordlist5.colRef("prcpnm")) = "";
  1899. }
  1900. }
  1901. // 구분컬럼 ( 예약일 경우 색변경 ) , 예약시간이 존재할 경우 색변경
  1902. if( grd_mainordlist5.rows > 1 ) {
  1903. for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ) {
  1904. if( model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약" ) {
  1905. grd_mainordlist5.cellStyle("color", i, 1, i, 1) = "#ff0000";
  1906. } else {
  1907. grd_mainordlist5.cellStyle("color", i, 1, i, 1) = "#000000";
  1908. }
  1909. }
  1910. }
  1911. grd_mainordlist5.colStyle(2, "data", "font-weight") = "bold";
  1912. model.refresh();
  1913. }
  1914. ]]>
  1915. </script>
  1916. </xhtml:head>
  1917. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1918. <caption id="caption39" style="left:965px; top:220px; width:33px; height:15px; ">제어</caption>
  1919. <caption id="caption38" style="left:911px; top:220px; width:27px; height:15px; ">확인</caption>
  1920. <shape id="rectangle9" appearance="rectangle" style="left:892px; top:219px; width:15px; height:15px; background-color:#ffffff; border-color:#808080; "/>
  1921. <shape id="rectangle10" appearance="rectangle" style="left:946px; top:219px; width:15px; height:15px; background-color:#ffffa0; border-color:#808080; "/>
  1922. <shape id="rectangle11" appearance="rectangle" style="left:1001px; top:219px; width:15px; height:15px; background-color:#ffdcdc; border-color:#808080; "/>
  1923. <caption id="caption40" style="left:1020px; top:220px; width:50px; height:15px; ">통합예약</caption>
  1924. <shape id="rectangle1" appearance="rectangle" style="left:1081px; top:219px; width:15px; height:15px; background-color:#ebebff; border-color:#808080; "/>
  1925. <caption id="caption1" style="left:1100px; top:220px; width:30px; height:15px; ">팝업</caption>
  1926. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  1927. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">
  1928. <![CDATA[통합예약관리]]>
  1929. <script type="javascript" ev:event="ondblclick">
  1930. <![CDATA[
  1931. open("SMAEA04300", "","","", "SMAEA04300", "","");
  1932. ]]>
  1933. </script>
  1934. </caption>
  1935. </group>
  1936. <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" visibility="hidden" inputtype="date" style="left:890px; top:54px; width:89px; height:19px; "/>
  1937. <select id="chbx_passdata" ref="/root/send/data/passdataflag" overflow="visible" appearance="full" style="left:527px; top:198px; width:80px; height:20px; border-style:none; ">
  1938. <choices>
  1939. <item>
  1940. <label>과거제외</label>
  1941. <value>Y</value>
  1942. </item>
  1943. </choices>
  1944. </select>
  1945. <button id="button37" class="btn2_letter6" style="left:788px; top:196px; width:86px; height:19px; ">
  1946. <caption>검사주의사항</caption>
  1947. <script type="javascript" ev:event="DOMActivate">
  1948. <![CDATA[
  1949. //20100930 검사선택시 메세지처리되던것을 버튼으로 교체 - 박재영
  1950. if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem") != ""){
  1951. //alert(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"));
  1952. messageBox(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"), "E999", "");
  1953. }else{
  1954. messageBox("등록된 검사주의사항이 없습니다.", "E999", "");
  1955. }
  1956. ]]>
  1957. </script>
  1958. </button>
  1959. <button id="button29" class="btn2_letter6" style="left:948px; top:54px; width:86px; height:19px; ">
  1960. <caption>주간예약조회</caption>
  1961. <script type="javascript" ev:event="DOMActivate">
  1962. <![CDATA[
  1963. //2010.09.06 주간예약현황조회 추가 - 박재영
  1964. open("SMAEA00910", "","","", "SMAEA00910", "","");
  1965. ]]>
  1966. </script>
  1967. </button>
  1968. <button id="button32" class="btn2_letter7" style="left:847px; top:54px; width:97px; height:19px; ">
  1969. <caption>SMS 전송결과</caption>
  1970. <script type="javascript" ev:event="DOMActivate">
  1971. <![CDATA[
  1972. //2010.09.06 주간예약현황조회 추가 - 박재영
  1973. open("SPCNS00500");
  1974. ]]>
  1975. </script>
  1976. </button>
  1977. <output id="output1" ref="/root/main/exculist/patinfolist/rrgstno" class="output_fix" format="999999-9999999" disabled="true" style="left:813px; top:28px; width:98px; height:19px; text-align:center; "/>
  1978. <caption id="caption4" class="cell_1" style="left:755px; top:25px; width:55px; height:23px; vertical-align:middle; ">주민번호</caption>
  1979. <shape id="rectangle6" appearance="rectangle" style="left:354px; top:199px; width:20px; height:15px; background-color:#0000ff; "/>
  1980. <caption id="caption29" style="left:380px; top:199px; width:74px; height:15px; ">멀티예약예문</caption>
  1981. <button id="button27" class="btn2_letter6" visibility="visible" style="left:942px; top:196px; width:86px; height:19px; ">
  1982. <caption>골밀도현황</caption>
  1983. <script type="javascript" ev:event="DOMActivate">
  1984. <![CDATA[
  1985. group3.visible = true;
  1986. model.refresh();
  1987. ]]>
  1988. </script>
  1989. </button>
  1990. <button id="button17" class="icon_top" style="left:202px; top:604px; width:26px; height:19px; ">
  1991. <caption/>
  1992. <script type="javascript" ev:event="DOMActivate">
  1993. <![CDATA[
  1994. tar_prcpremfact.attribute("height") = 43;
  1995. button17.visible = false;
  1996. button16.visible = true;
  1997. ]]>
  1998. </script>
  1999. </button>
  2000. <button id="button1" class="btn4_letter2" disabled="true" style="left:200px; top:673px; width:56px; height:22px; ">
  2001. <caption>저장</caption>
  2002. <script type="javascript" ev:event="DOMActivate">
  2003. <![CDATA[
  2004. var update = getGridUpdateData(datagrid2);
  2005. if(update == ""){
  2006. messageBox("업데이트 정보가 없습니다.", "I");
  2007. return 0;
  2008. } else {
  2009. model.setValue("/root/send/req1/data", update);
  2010. if (submit("TXAEA02002", false)){
  2011. if (submit("TRAEA02009", false)){
  2012. //model.removeNodeset("/root/main/exculist/subordlist3");
  2013. //model.makeNode("/root/main/exculist/subordlist3");
  2014. //model.resetInstanceNode("/root/main/exculist/subordlist3/rows");
  2015. model.removeNodeset("/root/main/exculist/subordlist3/rows");
  2016. copyNodeType("/root/main/exculist/subordlist3", "/root/reqdata1/subordlist3", "replace");
  2017. datagrid2.refresh();
  2018. patcmt();
  2019. }
  2020. }
  2021. }
  2022. ]]>
  2023. </script>
  2024. </button>
  2025. <output id="opt_hngnm" ref="/root/main/exculist/patinfolist/hngnm" class="output_fix" disabled="true" style="left:547px; top:27px; width:63px; height:19px; "/>
  2026. <output id="opt_vip" ref="/root/main/exculist/patinfolist/vip" class="output_fix" disabled="true" style="left:478px; top:27px; width:18px; height:19px; font-weight:bold; color:#ff0000; text-align:center; background-color:#ffff00; "/>
  2027. <caption id="caption2" class="cell_1" style="left:500px; top:25px; width:46px; height:23px; vertical-align:middle; ">환자명</caption>
  2028. <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:268px; ">
  2029. <row>
  2030. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  2031. <col ref="mon" style="border-bottom-width:0px; "/>
  2032. <col ref="tue" style="border-bottom-width:0px; "/>
  2033. <col ref="wed" style="border-bottom-width:0px; "/>
  2034. <col ref="thu" style="border-bottom-width:0px; "/>
  2035. <col ref="fri" style="border-bottom-width:0px; "/>
  2036. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  2037. </row>
  2038. <row>
  2039. <col ref="sun_memo" style="border-top-width:0px; "/>
  2040. <col ref="mon_memo" style="border-top-width:0px; "/>
  2041. <col ref="tue_memo" style="border-top-width:0px; "/>
  2042. <col ref="wed_memo" style="border-top-width:0px; "/>
  2043. <col ref="thu_memo" style="border-top-width:0px; "/>
  2044. <col ref="fri_memo" style="border-top-width:0px; "/>
  2045. <col ref="sat_memo" style="border-top-width:0px; "/>
  2046. </row>
  2047. <script type="javascript" ev:event="onclick">
  2048. <![CDATA[
  2049. if(grd_calendar.row != 0 ) {
  2050. model.setValue("/root/hidden/grdcellcolor/calrow",grd_calendar.row);
  2051. model.setValue("/root/hidden/grdcellcolor/calcol",grd_calendar.col);
  2052. setCellColor(grd_calendar);
  2053. getRsrvPossTm(grd_calendar);
  2054. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  2055. var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
  2056. if(curDate <= rsrvdd) {
  2057. for(var i = 1; i <grd_rsrvlist.rows ; i++ ) {
  2058. 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") ) {
  2059. messageBox("동명이인 예약", "E008");
  2060. return 0;
  2061. }
  2062. }
  2063. }
  2064. }
  2065. ]]>
  2066. </script>
  2067. </multilinegrid>
  2068. <datagrid id="datagrid1" nodeset="/root/main/rsrvposstmlist/updtlist" visibility="hidden" autoresize="true" caption="변동사유" colsep="^" colwidth="245" mergecellsfixedrows="bycolrec" rowsep="|" style="left:350px; top:680px; width:258px; height:71px; ">
  2069. <col ref="updtresndesc"/>
  2070. </datagrid>
  2071. <caption id="caption11" class="cell_1" style="left:914px; top:25px; width:45px; height:23px; vertical-align:middle; ">집전화</caption>
  2072. <caption id="caption5" class="cell_1" style="left:1049px; top:25px; width:45px; height:23px; vertical-align:middle; ">핸드폰</caption>
  2073. <caption id="caption22" class="tit_2" style="left:4px; top:60px; width:107px; height:13px; ">환자내역(처방)</caption>
  2074. <caption id="caption7" class="tit_2" style="left:238px; top:60px; width:95px; height:13px; color:#003366; ">진료예약내역</caption>
  2075. <caption id="caption8" class="tit_2" style="left:573px; top:59px; width:121px; height:13px; ">당일검사예약현황</caption>
  2076. <caption id="caption13" class="tit_2" style="left:4px; top:681px; width:106px; height:13px; ">
  2077. <![CDATA[환자Comment]]>
  2078. <script type="javascript" ev:event="ondblclick">
  2079. <![CDATA[
  2080. var patcmts = "";
  2081. for (var i = 1; i < datagrid2.rows ; i++) {
  2082. var patcmt = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/patcmt");
  2083. var cmtdd = model.getValue("/root/main/exculist/subordlist3/rows["+i+"]/cmtdd");
  2084. patcmts = patcmts + cmtdd.substr(0,4) + "-" + cmtdd.substr(4,2) + "-" + cmtdd.substr(6,2) + " : " + patcmt + "\n\n";//\n\r\n
  2085. //alert(patcmts);
  2086. }
  2087. model.setValue("/root/init1/patcmt", patcmts);
  2088. group4.visible = true;
  2089. model.refresh();
  2090. ]]>
  2091. </script>
  2092. </caption>
  2093. <caption id="caption14" class="tit_2" style="left:4px; top:413px; width:69px; height:14px; ">
  2094. <![CDATA[검사실]]>
  2095. <script type="javascript" ev:event="ondblclick">
  2096. <![CDATA[
  2097. combo1.visible = true;
  2098. cmb_excuroom.visible = true;
  2099. ]]>
  2100. </script>
  2101. </caption>
  2102. <group id="grp_sea" style="left:0px; top:20px; width:440px; height:35px; vertical-align:top; ">
  2103. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:435px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  2104. <caption id="caption17" class="search_name" style="left:10px; top:9px; width:91px; height:17px; ">
  2105. <![CDATA[등록번호 :]]>
  2106. <script type="javascript" ev:event="ondblclick">
  2107. <![CDATA[
  2108. /*
  2109. caption30.visible = true;
  2110. bool2.visible = true;
  2111. */
  2112. ]]>
  2113. </script>
  2114. </caption>
  2115. <line id="line13" class="line_4" style="x1:365px; y1:5px; x2:365px; y2:27px; "/>
  2116. <button id="btn_sea" class="btn1_letter2" navindex="3" style="left:375px; top:5px; width:56px; height:22px; ">
  2117. <caption>조회</caption>
  2118. <script type="javascript" ev:event="DOMActivate">
  2119. <![CDATA[
  2120. // 검사 예약 제어 정보 초기화
  2121. fInitRsrvCtrl();
  2122. group4.visible = false;
  2123. grd_mainordlist5.attribute("color") = "#000000";
  2124. grd_mainordlist5.attribute("font-weight") = "normal";
  2125. //사생활보호 관리여부 확인 20140218 by kya 추가
  2126. cap_privacy.visible = false; // 사생활보호 20140218 by kya
  2127. fGetPatPrivacyInfo(model.getValue("/root/send/data/srchpid"));
  2128. // 20090407, 장준원, 처방내역선택시 기본수행부서를 보이게금 한다.
  2129. //model.removeNodeset("/root/init/cmb_info/initexecroom");
  2130. model.setValue("/root/send/data/ampmyn", "9")
  2131. var chkflag = model.getValue("/root/send/data/chkflag");
  2132. if(ipt_pid.value == "" ) {
  2133. if (chkflag == "T"){
  2134. messageBox("환자번호를 ", "C001")
  2135. return 0 ;
  2136. }
  2137. }
  2138. else {
  2139. // 2011.01.27 c y w 조회시 계속 현재일자 보여주기.
  2140. model.removeNodeset("/root/hidden/calendar/weeklist/list");
  2141. initCalendar2();
  2142. model.setValue("/root/send/data/hngnm", "");
  2143. readfunc();
  2144. if (chkflag == "T"){
  2145. if (grd_mainordlist5.rows > 1){
  2146. grd_mainordlist5.row = 1;
  2147. fTopInfo();
  2148. }else{
  2149. delPatientInfos();
  2150. }
  2151. }else{
  2152. delPatientInfos();
  2153. }
  2154. //상태별 색상주기
  2155. fSetGrdMainordlist();
  2156. if (model.getValue("/root/send/data/srchpid") != ""){
  2157. //btn_execcncl.dispatch("DOMActivate");
  2158. var child = getOpenWindow("SMMMO02500") ;
  2159. if (child != null ) {
  2160. child.model.makeValue("/root/main/patinfolist/pid" , model.getValue("/root/send/data/srchpid"));
  2161. setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
  2162. //child.btn_bfprcpsrch.dispatch("DOMActivate");
  2163. //child.ipt_pid.dispatch("onkeypress");
  2164. child.javascript.fReqGetPatComnInfo("/root/send/reqdata", model.getValue("/root/send/data/srchpid"));
  2165. child.button1.selected = true;
  2166. child.model.toggle("case1");
  2167. child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
  2168. child.model.removeNodeset("/root/main/bfprcp/prcplist");
  2169. child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
  2170. child.grd_prcpdd.visible = false;
  2171. child.grd_bfprcplist.attribute("left") = 2;
  2172. child.grd_bfprcplist.attribute("width")= 1190;
  2173. child.model.refresh();
  2174. /*
  2175. if (child.grd_patchosinfo.rows > 0){
  2176. child.grd_patchosinfo.row = 1;
  2177. }
  2178. child.javascript.fPatChosInfo();
  2179. */
  2180. }
  2181. var child = getOpenWindow("SMAEA00300") ;
  2182. if (child != null ) {
  2183. child.model.makeValue("/root/send/srchpid" , model.getValue("/root/send/data/srchpid"));
  2184. child.btn_sea.dispatch("DOMActivate");
  2185. child.model.refresh();
  2186. }
  2187. var child = getOpenWindow("SMAEA04400") ;
  2188. if (child != null ) {
  2189. child.model.makeValue("/root/send/pid" , model.getValue("/root/send/data/srchpid"));
  2190. child.btn_sea.dispatch("DOMActivate");
  2191. child.model.refresh();
  2192. }
  2193. }
  2194. }
  2195. ]]>
  2196. </script>
  2197. </button>
  2198. <caption id="caption19" class="search_name" style="left:193px; top:9px; width:72px; height:17px; ">환자명 :</caption>
  2199. <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" navindex="1" style="left:98px; top:8px; width:87px; height:19px; ">
  2200. <script type="javascript" ev:event="onkeyup">
  2201. <![CDATA[
  2202. // inputEnterKey("btn_pid","DOMActivate");
  2203. if(event.keyCode == "13") {
  2204. inputEnterKey("btn_sea","DOMActivate");
  2205. }
  2206. ]]>
  2207. </script>
  2208. <script type="javascript" ev:event="xforms-value-changed">
  2209. <![CDATA[
  2210. //btn_execcncl.dispatch("DOMActivate");
  2211. ]]>
  2212. </script>
  2213. </input>
  2214. <button id="btn_pid" class="icon_search" style="left:341px; top:10px; width:16px; height:16px; ">
  2215. <caption/>
  2216. <script type="javascript" ev:event="DOMActivate">
  2217. <![CDATA[
  2218. // 환자조회
  2219. model.makeValue("/root/send/data2/pid","");
  2220. model.makeValue("/root/send/data2/srchcond","4");
  2221. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
  2222. if (model.getValue("/root/main/popupendflag") != "cancel"){
  2223. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  2224. // 환자내역
  2225. //submit("TRAEA02001");
  2226. btn_sea.dispatch("DOMActivate");
  2227. }
  2228. ]]>
  2229. </script>
  2230. </button>
  2231. <input id="input1" ref="/root/send/data/hngnm" navindex="2" imemode="hangul" style="left:265px; top:8px; width:70px; height:19px; text-align:left; ">
  2232. <script type="javascript" ev:event="onkeypress">
  2233. <![CDATA[
  2234. if(event.keyCode == "13") {
  2235. if (input1.currentText == ""){
  2236. model.setValue("/root/reqdata/srchcond", "3");
  2237. model.setValue("/root/reqdata/hngnm", "");
  2238. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/reqdata","/root/send");
  2239. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  2240. model.setValue("/root/send/data/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  2241. }else{
  2242. model.setValue("/root/reqdata/srchcond", "2");
  2243. model.setValue("/root/reqdata/hngnm", input1.currentText);
  2244. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/reqdata","/root/send");
  2245. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  2246. model.setValue("/root/send/data/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  2247. }
  2248. if (model.getValue("/root/main/popupendflag") != "cancel"){
  2249. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  2250. // 환자내역
  2251. //submit("TRAEA02001");
  2252. btn_sea.dispatch("DOMActivate");
  2253. }else{
  2254. model.setValue("/root/send/data/hngnm", "");
  2255. }
  2256. model.refresh();
  2257. }
  2258. ]]>
  2259. </script>
  2260. </input>
  2261. </group>
  2262. <line id="line12" class="line_1" style="x1:440px; y1:20px; x2:1195px; y2:20px; "/>
  2263. <line id="line1" class="line_1" style="x1:2px; y1:624px; x2:260px; y2:624px; "/>
  2264. <line id="line7" class="line_1" style="x1:2px; y1:548px; x2:260px; y2:548px; "/>
  2265. <caption id="caption20" class="tit_2" style="left:4px; top:534px; width:191px; height:14px; ">수행부서/변동내역 Comment</caption>
  2266. <caption id="caption21" class="tit_2" style="left:4px; top:609px; width:173px; height:13px; ">처방 Comment</caption>
  2267. <output id="opt_age" ref="/root/main/exculist/patinfolist/sex" class="output_fix" disabled="true" style="left:646px; top:27px; width:25px; height:19px; text-align:center; "/>
  2268. <output id="opt_sex" ref="/root/main/exculist/patinfolist/age" class="output_fix" disabled="true" style="left:670px; top:27px; width:20px; height:19px; text-align:center; "/>
  2269. <output id="opt_hometel" ref="/root/main/exculist/patinfolist/hometel" class="output_fix" style="left:960px; top:28px; width:90px; height:19px; text-align:center; ">
  2270. <script type="javascript" ev:event="ondblclick">
  2271. <![CDATA[
  2272. if( model.getValue("/root/main/exculist/patinfolist/hngnm") != "" || model.getValue("/root/main/exculist/patinfolist/hngnm") != " " ) {
  2273. // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
  2274. //예약내역이 없는 필드 체크
  2275. var hngnm = model.getValue("/root/main/exculist/patinfolist/hngnm");
  2276. var pid = model.getValue("/root/send/data/srchpid");
  2277. if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
  2278. return false;
  2279. }
  2280. //setParameter("opener_parameter_id", pid);
  2281. model.removeNodeset("/root/temp/source");
  2282. model.makeValue("/root/temp/source/srchcond", "1");
  2283. model.makeValue("/root/temp/source/pid", pid);
  2284. modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
  2285. var hometel = getParameter("SMPMO01400_hometel");
  2286. var mpphontel = getParameter("SMPMO01400_mpphontel");
  2287. if( hometel != '' && mpphontel != '' ){
  2288. model.setValue("/root/main/exculist/patinfolist/hometel", hometel) ;
  2289. model.setValue("/root/main/exculist/patinfolist/mpphontel", mpphontel) ;
  2290. }
  2291. model.removeNodeset("/root/temp/source");
  2292. model.refresh();
  2293. }
  2294. ]]>
  2295. </script>
  2296. </output>
  2297. <output id="opt_mpphontel" ref="/root/main/exculist/patinfolist/mpphontel" class="output_fix" style="left:1098px; top:28px; width:90px; height:19px; text-align:center; ">
  2298. <script type="javascript" ev:event="ondblclick">
  2299. <![CDATA[
  2300. if( model.getValue("/root/main/exculist/patinfolist/hngnm") != "" || model.getValue("/root/main/exculist/patinfolist/hngnm") != " " ) {
  2301. // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
  2302. //예약내역이 없는 필드 체크
  2303. var hngnm = model.getValue("/root/main/exculist/patinfolist/hngnm");
  2304. var pid = model.getValue("/root/send/data/srchpid");
  2305. if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
  2306. return false;
  2307. }
  2308. //setParameter("opener_parameter_id", pid);
  2309. model.removeNodeset("/root/temp/source");
  2310. model.makeValue("/root/temp/source/srchcond", "1");
  2311. model.makeValue("/root/temp/source/pid", pid);
  2312. modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
  2313. var hometel = getParameter("SMPMO01400_hometel");
  2314. var mpphontel = getParameter("SMPMO01400_mpphontel");
  2315. if( hometel != '' && mpphontel != '' ){
  2316. model.setValue("/root/main/exculist/patinfolist/hometel", hometel) ;
  2317. model.setValue("/root/main/exculist/patinfolist/mpphontel", mpphontel) ;
  2318. }
  2319. model.removeNodeset("/root/temp/source");
  2320. model.refresh();
  2321. }
  2322. ]]>
  2323. </script>
  2324. </output>
  2325. <datagrid id="grd_mainordlist1" nodeset="/root/main/exculist/mainordlist1" caption="진료과(진료의)^진료일시^진료의^진료과^orddd^pid^orddrid^orddeptcd" colsep="^" colwidth="107, 104, 44, 75, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:2px; top:79px; width:233px; height:96px; ">
  2326. <col ref="ordnm" style="text-align:left; "/>
  2327. <col ref="orddt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  2328. <col ref="orddrnm" visibility="hidden"/>
  2329. <col ref="deptengabbr" visibility="hidden"/>
  2330. <col ref="orddd"/>
  2331. <col ref="pid"/>
  2332. <col ref="orddrid"/>
  2333. <col ref="orddeptcd"/>
  2334. <script type="javascript" ev:event="ondblclick">
  2335. <![CDATA[
  2336. for (var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
  2337. if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/orddeptcd") == model.getValue("/root/main/exculist/mainordlist1[" + grd_mainordlist1.row + "]/orddeptcd")){
  2338. grd_mainordlist5.rowHidden(i) = false;
  2339. }else{
  2340. model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "false");
  2341. grd_mainordlist5.rowHidden(i) = true;
  2342. }
  2343. }
  2344. /* 수면코드는 검사치료코드에서 수면여부로 체크(향후 컬럼추가후 수정
  2345. for(var i = 1 ; i < grd_mainordlist5.rows ; i++ ){
  2346. if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
  2347. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
  2348. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
  2349. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
  2350. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
  2351. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
  2352. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
  2353. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
  2354. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
  2355. cap_sleep.visible = true;
  2356. model.setValue("/root/hidden/chkgam","수면");
  2357. }
  2358. }
  2359. */
  2360. model.refresh();
  2361. ]]>
  2362. </script>
  2363. </datagrid>
  2364. <datagrid id="grd_mainordlist2" nodeset="/root/main/exculist/mainordlist2" caption="진료과(진료의)^예약일시" colsep="^" colwidth="90, 103" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:238px; top:79px; width:211px; height:116px; ">
  2365. <col ref="suminfo"/>
  2366. <col ref="orddt" format="yyyy-mm-dd hh:nn"/>
  2367. </datagrid>
  2368. <datagrid id="grd_mainordlist3" nodeset="/root/main/exculist/mainordlist6" caption="입원예정일" colsep="^" colwidth="94" mergecellsfixedrows="bycolrec" rowsep="|" style="left:452px; top:79px; width:113px; height:48px; ">
  2369. <col ref="inhopedd" format="yyyy-mm-dd" style="left:0px; top:23px; width:158px; height:23px; "/>
  2370. </datagrid>
  2371. <datagrid id="grd_mainordlist4" nodeset="/root/main/exculist/mainordlist4" caption="검사예약일^검사명^검사실^상태^실시시간^예약자^rsrvid" colsep="^" colwidth="100, 195, 99, 71, 58, 79, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:570px; top:79px; width:623px; height:116px; ">
  2372. <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  2373. <col ref="prcpnm"/>
  2374. <col ref="basecdflagdesc"/>
  2375. <col ref="execprcpstatcd"/>
  2376. <col ref="acttime" format="hh:nn:ss" style="text-align:center; "/>
  2377. <col ref="usernm"/>
  2378. <col ref="rsrvrid"/>
  2379. </datagrid>
  2380. <datagrid id="grd_rsrvlist" nodeset="/root/main/rsrvposstmlist/rsrvlist" class="datagrid2" autoresize="true" caption="시간^등록번호^이름^나이^I/O^소요&#xA;시간^처방명^진료과&#xA;(진료의)^처방Comment^remark^예약자^예약잡은시간" colsep="^" colwidth="35, 55, 44, 30, 25, 32, 109, 72, 100,100, 51, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:806px; top:436px; width:385px; height:342px; ">
  2381. <col ref="srchrsrvtm" format="hh:nn" style="text-align:center; "/>
  2382. <col ref="pid"/>
  2383. <col ref="hngnm"/>
  2384. <col ref="age" style="text-align:center; "/>
  2385. <col ref="prcpgenrflag" style="text-align:center; "/>
  2386. <col ref="excutm" style="text-align:center; "/>
  2387. <col ref="prcpnm"/>
  2388. <col ref="rgstdepthngnm"/>
  2389. <col ref="prcpcmt"/>
  2390. <col ref="rsrvrem"/>
  2391. <col ref="lastupdtrnm"/>
  2392. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
  2393. <script type="javascript" ev:event="ondblclick">
  2394. <![CDATA[
  2395. if( isDataCell() ){
  2396. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/rsrvposstmlist/rsrvlist[" + grd_rsrvlist.row + "]/pid"));
  2397. btn_sea.dispatch("DOMActivate");
  2398. }
  2399. ]]>
  2400. </script>
  2401. </datagrid>
  2402. <datagrid id="grd_rsrvposstm" nodeset="/root/main/rsrvposstmlist/rsrvposstm" caption="시간^현황^가용" colsep="^" colwidth="41, 33, 32" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:656px; top:436px; width:144px; height:343px; ">
  2403. <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
  2404. <col ref="count" style="text-align:center; "/>
  2405. <col ref="max" style="text-align:center; "/>
  2406. <script type="javascript" ev:event="ondblclick">
  2407. <![CDATA[
  2408. if (!grd_rsrvposstm.isCell(event.target)) {
  2409. return;
  2410. }
  2411. if (model.getValue("/root/send1/gb") == "1"){
  2412. if (+grd_mainordlist5.row != "" ) {
  2413. var sonestop = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/onestop");
  2414. //20100527 원스탑이면 시간지정을 따로관리한다.
  2415. if(sonestop == "H"){
  2416. OnestopDateChng();
  2417. }else{
  2418. var curDate = getCurrentDate().substr(0,8); //오늘날짜
  2419. var rsrvdd =model.getValue("/root/send/data/rsrvdd"); //선택일자
  2420. if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvtmcntlyn") == "Y"){
  2421. messageBox("예약시간을 변경할 수 없는 검사/치료실입니다.", "E999", "");
  2422. return;
  2423. }
  2424. var count = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/count")
  2425. var maxcnt = model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/max")
  2426. //현황과 가용인원 같을 경우 예약 불가능
  2427. if(eval(count) >= eval(maxcnt)) {
  2428. if (messageBox("가용인원을 초과하였습니다.", "Q003") != 6) {
  2429. }else {
  2430. //당일예약
  2431. if(curDate == rsrvdd) {
  2432. if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
  2433. messageBox("예약시간이 과거시간", "E008");
  2434. }
  2435. else { //현재시간 이후시간을 예약
  2436. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2437. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2438. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
  2439. //2011.09.08 by kya
  2440. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2441. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2442. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2443. }
  2444. }
  2445. else if(curDate > rsrvdd) { //당일 이전 예약
  2446. messageBox("예약일자가 과거일자", "E008");
  2447. }
  2448. else { // 당일 이후 예약
  2449. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2450. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2451. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
  2452. //2011.09.08 by kya
  2453. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/excuroomcd", model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2454. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2455. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2456. }
  2457. //model.refresh();
  2458. }
  2459. }else {
  2460. //당일예약
  2461. if(curDate == rsrvdd) {
  2462. if(getCurrentTime().substr(0,4) > model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")) { //현재시간 이전시간을 예약
  2463. messageBox("예약시간이 과거시간", "E008");
  2464. }
  2465. else { //현재시간 이후시간을 예약
  2466. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2467. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2468. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
  2469. //2011-09-08 by kya 예약시간시점에 넣음
  2470. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2471. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2472. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2473. }
  2474. }
  2475. else if(curDate > rsrvdd) { //당일 이전 예약
  2476. messageBox("예약일자가 과거일자", "E008");
  2477. }
  2478. else { // 당일 이후 예약
  2479. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2480. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm",model.getValue("/root/send/data/rsrvdd")+model.getValue("/root/main/rsrvposstmlist/rsrvposstm["+grd_rsrvposstm.row+"]/rsrvtm")); // 예약시간
  2481. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk", "true");
  2482. //2011-09-08 by kya 예약시간시점에 넣음
  2483. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2484. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2485. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2486. }
  2487. //model.refresh();
  2488. }
  2489. DateChng();
  2490. // 예약 제어 내역 확인
  2491. fGetRsrvCtrlList(grd_mainordlist5);
  2492. // start 2012.07.19 by kya
  2493. // 중증 / 산정특례 종료일자 체크
  2494. var sToDd, sEndMsg
  2495. if ((isValidDateTime(model.getValue("/root/main/exculist/patinfolist/serdiagtodd"), 'YYYYMMDD')
  2496. && rsrvdd > model.getValue("/root/main/exculist/patinfolist/serdiagtodd"))
  2497. || (isValidDateTime(model.getValue("/root/main/exculist/patinfolist/rareobsttodd"), 'YYYYMMDD')
  2498. && rsrvdd > model.getValue("/root/main/exculist/patinfolist/rareobsttodd"))) {
  2499. var sEndMsg = "중증 및 희귀질환산정특례 자격 종료예정자입니다. \r\n\r\n";
  2500. if (isValidDateTime(model.getValue("/root/main/exculist/patinfolist/serdiagtodd"), 'YYYYMMDD')
  2501. && rsrvdd > model.getValue("/root/main/exculist/patinfolist/serdiagtodd")) {
  2502. var sToDd = model.getValue("/root/main/exculist/patinfolist/serdiagtodd");
  2503. sToDd = sToDd.substr(0,4) + "/" + sToDd.substr(4,2) + "/" + sToDd.substr(6,2);
  2504. sEndMsg += " - 중증 종료예정일자 : " + sToDd + "\r\n\r\n";
  2505. }
  2506. if (isValidDateTime(model.getValue("/root/main/exculist/patinfolist/rareobsttodd"), 'YYYYMMDD')
  2507. && rsrvdd > model.getValue("/root/main/exculist/patinfolist/rareobsttodd")) {
  2508. var sToDd = model.getValue("/root/main/exculist/patinfolist/rareobsttodd");
  2509. sToDd = sToDd.substr(0,4) + "/" + sToDd.substr(4,2) + "/" + sToDd.substr(6,2);
  2510. sEndMsg += " - 희귀질환산정특례 종료예정일자 : " + sToDd + "\r\n\r\n";
  2511. }
  2512. sEndMsg += "진료당일의 자격이 변경될 가능성이 있음에 유의하시기 바랍니다.";
  2513. messageBox(sEndMsg, "E999");
  2514. }
  2515. //end
  2516. }
  2517. }
  2518. else {
  2519. messageBox("처방을", "C002");
  2520. }
  2521. }
  2522. ]]>
  2523. </script>
  2524. </datagrid>
  2525. <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; ">
  2526. <col ref="rsrvdd"/>
  2527. <col ref="count"/>
  2528. <col ref="max"/>
  2529. </datagrid>
  2530. <datagrid id="grd_orddept" nodeset="/root/main/orddeptinfo/orddeptlist" caption="검사실" colsep="^" colwidth="237" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:432px; width:258px; height:94px; ">
  2531. <col disabled="true" ref="orddeptcd" type="combo">
  2532. <choices>
  2533. <itemset nodeset="/root/init/cmb_info2/initexecroom">
  2534. <label ref="excuroomcdnm"/>
  2535. <value ref="excuroomcdid"/>
  2536. </itemset>
  2537. </choices>
  2538. </col>
  2539. <script type="javascript" ev:event="onclick">
  2540. <![CDATA[
  2541. if ( (grd_orddept.row >= grd_orddept.fixedRows) && (grd_orddept.isCell(event.target))) {
  2542. model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
  2543. model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
  2544. model.setValue("/root/hidden/orddeptcheck","check");
  2545. model.setValue("/root/send/data/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2546. // 예약 제어 내역 확인
  2547. fGetRsrvCtrlList(grd_mainordlist5);
  2548. /* 2009-05-21 수정
  2549. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2550. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2551. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2552. */
  2553. //model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2554. var sonestop = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/onestop");
  2555. var sroom = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excuroom");
  2556. for (var i = 1; i < grd_mainordlist5.rows; i ++){
  2557. //20100527 원스탑환자이면 ("A900") 기준자료의 각각 지정된 검사실로 excuroomcd을 셋팅한다.
  2558. if(sonestop == "H"){
  2559. var gonestop = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/onestop");
  2560. var gcalcscorcd = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/calcscorcd");
  2561. if(sonestop == gonestop){
  2562. var cnt = model.instances(0).selectNodes( "/root/init1/onestopordinfo/codelist/item" ).length + 1;
  2563. for(var j = 1; j < cnt ; j++){
  2564. var cdid = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cdid");
  2565. if(gcalcscorcd == cdid){
  2566. var cntlcd1 = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cntlcd1");
  2567. //alert(gcalcscorcd + " : " +cdid + " : " +cntlcd1);
  2568. }
  2569. }
  2570. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd",cntlcd1);
  2571. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2572. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2573. }
  2574. }else{
  2575. /****2011.09.08 by kya 예약시간 선택시 입력하도록 변경
  2576. ----START
  2577. if (sroom == model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom")){
  2578. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd",model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.row+"]/orddeptcd"));
  2579. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/examroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2580. model.setValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm",grd_orddept.labelmatrix(grd_orddept.row, grd_orddept.col));
  2581. }
  2582. */
  2583. }
  2584. }
  2585. initCalendar();
  2586. model.setValue("/root/send1/gb", "1");
  2587. //getRsrvPossTm(grd_calendar);
  2588. //model.refresh();
  2589. }
  2590. ]]>
  2591. </script>
  2592. </datagrid>
  2593. <button id="button5" class="icon_top" style="left:203px; top:528px; width:26px; height:19px; ">
  2594. <caption/>
  2595. <script type="javascript" ev:event="DOMActivate">
  2596. <![CDATA[
  2597. grd_momolist.attribute("height") = 49;
  2598. button5.visible = false;
  2599. button15.visible = true;
  2600. ]]>
  2601. </script>
  2602. </button>
  2603. <button id="button15" class="icon_bottom" style="left:203px; top:528px; width:26px; height:19px; ">
  2604. <caption/>
  2605. <script type="javascript" ev:event="DOMActivate">
  2606. <![CDATA[
  2607. grd_momolist.attribute("height") = 142;
  2608. button5.visible = true;
  2609. button15.visible = false;
  2610. ]]>
  2611. </script>
  2612. </button>
  2613. <button id="button16" class="icon_bottom" style="left:202px; top:604px; width:26px; height:19px; ">
  2614. <caption/>
  2615. <script type="javascript" ev:event="DOMActivate">
  2616. <![CDATA[
  2617. tar_prcpremfact.attribute("height") = 142;
  2618. button17.visible = true;
  2619. button16.visible = false;
  2620. ]]>
  2621. </script>
  2622. </button>
  2623. <group id="group2" scroll="auto" style="left:261px; top:425px; width:394px; height:55px; ">
  2624. <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:3px; width:390px; height:52px; "/>
  2625. <button id="button7" class="icon_month" style="left:20px; top:25px; width:27px; height:27px; ">
  2626. <caption>1</caption>
  2627. <script type="javascript" ev:event="DOMActivate">
  2628. <![CDATA[
  2629. if(opt_month.value!== "01") {
  2630. fGetCalendar("01");
  2631. }
  2632. ]]>
  2633. </script>
  2634. </button>
  2635. <button id="button8" class="icon_month" style="left:50px; top:25px; width:27px; height:27px; ">
  2636. <caption>2</caption>
  2637. <script type="javascript" ev:event="DOMActivate">
  2638. <![CDATA[
  2639. if(opt_month.value!== "02") {
  2640. fGetCalendar("02");
  2641. }
  2642. ]]>
  2643. </script>
  2644. </button>
  2645. <button id="button9" class="icon_month" style="left:80px; top:25px; width:27px; height:27px; ">
  2646. <caption>3</caption>
  2647. <script type="javascript" ev:event="DOMActivate">
  2648. <![CDATA[
  2649. if(opt_month.value!== "03") {
  2650. fGetCalendar("03");
  2651. }
  2652. ]]>
  2653. </script>
  2654. </button>
  2655. <button id="button10" class="icon_month" style="left:110px; top:25px; width:27px; height:27px; ">
  2656. <caption>4</caption>
  2657. <script type="javascript" ev:event="DOMActivate">
  2658. <![CDATA[
  2659. if(opt_month.value!== "04") {
  2660. fGetCalendar("04");
  2661. }
  2662. ]]>
  2663. </script>
  2664. </button>
  2665. <button id="button11" class="icon_month" style="left:140px; top:25px; width:27px; height:27px; ">
  2666. <caption>5</caption>
  2667. <script type="javascript" ev:event="DOMActivate">
  2668. <![CDATA[
  2669. if(opt_month.value!== "05") {
  2670. fGetCalendar("05");
  2671. }
  2672. ]]>
  2673. </script>
  2674. </button>
  2675. <button id="button12" class="icon_month" style="left:170px; top:25px; width:27px; height:27px; ">
  2676. <caption>6</caption>
  2677. <script type="javascript" ev:event="DOMActivate">
  2678. <![CDATA[
  2679. if(opt_month.value!== "06") {
  2680. fGetCalendar("06");
  2681. }
  2682. ]]>
  2683. </script>
  2684. </button>
  2685. <button id="button13" class="icon_month" style="left:200px; top:25px; width:27px; height:27px; ">
  2686. <caption>7</caption>
  2687. <script type="javascript" ev:event="DOMActivate">
  2688. <![CDATA[
  2689. if(opt_month.value!== "07") {
  2690. fGetCalendar("07");
  2691. }
  2692. ]]>
  2693. </script>
  2694. </button>
  2695. <button id="button14" class="icon_month" style="left:230px; top:25px; width:27px; height:27px; ">
  2696. <caption>8</caption>
  2697. <script type="javascript" ev:event="DOMActivate">
  2698. <![CDATA[
  2699. if(opt_month.value!== "08") {
  2700. fGetCalendar("08");
  2701. }
  2702. ]]>
  2703. </script>
  2704. </button>
  2705. <button id="button18" class="icon_month" style="left:260px; top:25px; width:27px; height:27px; ">
  2706. <caption>9</caption>
  2707. <script type="javascript" ev:event="DOMActivate">
  2708. <![CDATA[
  2709. if(opt_month.value!== "09") {
  2710. fGetCalendar("09");
  2711. }
  2712. ]]>
  2713. </script>
  2714. </button>
  2715. <button id="button19" class="icon_month" style="left:290px; top:25px; width:27px; height:27px; ">
  2716. <caption>10</caption>
  2717. <script type="javascript" ev:event="DOMActivate">
  2718. <![CDATA[
  2719. if(opt_month.value!== "10") {
  2720. fGetCalendar("10");
  2721. }
  2722. ]]>
  2723. </script>
  2724. </button>
  2725. <button id="button20" class="icon_month" style="left:320px; top:25px; width:27px; height:27px; ">
  2726. <caption>11</caption>
  2727. <script type="javascript" ev:event="DOMActivate">
  2728. <![CDATA[
  2729. if(opt_month.value!== "11") {
  2730. fGetCalendar("11");
  2731. }
  2732. ]]>
  2733. </script>
  2734. </button>
  2735. <button id="button21" class="icon_month" style="left:350px; top:25px; width:27px; height:27px; ">
  2736. <caption>12</caption>
  2737. <script type="javascript" ev:event="DOMActivate">
  2738. <![CDATA[
  2739. if(opt_month.value!== "12") {
  2740. fGetCalendar("12");
  2741. }
  2742. ]]>
  2743. </script>
  2744. </button>
  2745. <output id="opt_month" ref="/root/hidden/calendar/month" class="calendar_output" style="left:200px; top:2px; width:20px; height:19px; "/>
  2746. <caption id="caption24" class="calendar_output" style="left:178px; top:2px; width:20px; height:19px; ">년</caption>
  2747. <caption id="caption25" class="calendar_output" style="left:220px; top:2px; width:20px; height:19px; ">월</caption>
  2748. <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; ">
  2749. <caption/>
  2750. <script type="javascript" ev:event="DOMActivate">
  2751. <![CDATA[
  2752. var isMonth = model.getValue("/root/hidden/calendar/month");
  2753. var isYear = model.getValue("/root/hidden/calendar/year");
  2754. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  2755. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  2756. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  2757. model.refresh();
  2758. setCalendar(isDate);
  2759. // getCurerPresCond();
  2760. ]]>
  2761. </script>
  2762. </button>
  2763. <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; ">
  2764. <caption/>
  2765. <script type="javascript" ev:event="DOMActivate">
  2766. <![CDATA[
  2767. var isMonth = model.getValue("/root/hidden/calendar/month");
  2768. var isYear = model.getValue("/root/hidden/calendar/year");
  2769. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  2770. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  2771. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  2772. model.refresh();
  2773. // if(model.getValue("/root/send/data/excuroomcd") == "") {
  2774. // messageBox("치료실","C002");
  2775. // return;
  2776. // }
  2777. setCalendar(isDate);
  2778. // getCurerPresCond();
  2779. ]]>
  2780. </script>
  2781. </button>
  2782. <output id="opt_year" ref="/root/hidden/calendar/year" class="calendar_output" style="left:148px; top:2px; width:30px; height:19px; "/>
  2783. <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; ">
  2784. <caption/>
  2785. <script type="javascript" ev:event="DOMActivate">
  2786. <![CDATA[
  2787. var isMonth = model.getValue("/root/hidden/calendar/month");
  2788. var isYear = model.getValue("/root/hidden/calendar/year");
  2789. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  2790. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  2791. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  2792. model.refresh();
  2793. if(model.getValue("/root/send/data/excuroomcd") == "") {
  2794. messageBox("치료실","C002");
  2795. return;
  2796. }
  2797. setCalendar(isDate);
  2798. // getCurerPresCond();
  2799. ]]>
  2800. </script>
  2801. </button>
  2802. <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; ">
  2803. <caption/>
  2804. <script type="javascript" ev:event="DOMActivate">
  2805. <![CDATA[
  2806. var isMonth = model.getValue("/root/hidden/calendar/month");
  2807. var isYear = model.getValue("/root/hidden/calendar/year");
  2808. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  2809. model.setValue("/root/hidden/calendar/year", isDate.getDateFormat('YYYY'));
  2810. model.setValue("/root/hidden/calendar/month", isDate.getDateFormat('MM'));
  2811. model.refresh();
  2812. setCalendar(isDate);
  2813. // getCurerPresCond();
  2814. ]]>
  2815. </script>
  2816. </button>
  2817. </group>
  2818. <button id="btn_case1" class="btn_sw" group="tab" selected="true" style="left:3px; top:198px; width:72px; height:22px; ">
  2819. <caption>검사현황</caption>
  2820. <toggle case="case1" ev:event="onclick"/>
  2821. <script type="javascript" ev:event="DOMActivate">
  2822. <![CDATA[
  2823. model.toggle("case1");
  2824. btn_case1.selected = true;
  2825. btn_case2.selected = false;
  2826. ]]>
  2827. </script>
  2828. </button>
  2829. <button id="btn_case2" class="btn_sw" group="tab" selected="false" style="left:76px; top:198px; width:83px; height:22px; ">
  2830. <caption>타검사현황</caption>
  2831. <toggle case="case2" ev:event="onclick"/>
  2832. <script type="javascript" ev:event="DOMActivate">
  2833. <![CDATA[
  2834. model.toggle("case2");
  2835. btn_case1.selected = false;
  2836. btn_case2.selected = true;
  2837. ]]>
  2838. </script>
  2839. </button>
  2840. <button id="btn_execcncl" class="btn2_letter4" style="left:1065px; top:196px; width:64px; height:19px; ">
  2841. <caption>처방조회</caption>
  2842. <script type="javascript" ev:event="DOMActivate">
  2843. <![CDATA[
  2844. /*
  2845. if ( model.getValue("/root/send/data/srchpid") == "" ) {
  2846. messageBox("[조회필수항목-등록번호] 를 입력하십시오.","I999");
  2847. model.setfocus( "ipt_pid" );
  2848. return;
  2849. }
  2850. */
  2851. var child = getOpenWindow("SMMMO02500") ;
  2852. if (child != null ) {
  2853. child.model.setValue("/root/main/patinfolist/pid" , model.getValue("/root/send/data/srchpid"));
  2854. setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
  2855. //child.btn_bfprcpsrch.dispatch("DOMActivate");
  2856. //child.ipt_pid.dispatch("onkeypress");
  2857. child.javascript.fReqGetPatComnInfo("/root/send/reqdata", model.getValue("/root/send/data/srchpid"));
  2858. child.button1.selected = true;
  2859. child.model.toggle("case1");
  2860. child.model.copyNode("/root/main/patinfolist", "/root/main/srchinfo/patinfolist");
  2861. child.model.removeNodeset("/root/main/bfprcp/prcplist");
  2862. child.model.removeNodeset("/root/main/bfprcpday/bfprcpday");
  2863. child.grd_prcpdd.visible = false;
  2864. child.grd_bfprcplist.attribute("left") = 2;
  2865. child.grd_bfprcplist.attribute("width")= 1190;
  2866. child.model.refresh();
  2867. /*
  2868. if (child.grd_patchosinfo.rows > 0){
  2869. child.grd_patchosinfo.row = 1;
  2870. }
  2871. child.javascript.fPatChosInfo();
  2872. */
  2873. }else{
  2874. setParameter ( "SMMMO02500_cond" , model.getValue("/root/send/data/srchpid"));
  2875. open("SMMMO02500", "","","", "SMMMO02500", "/root/send/data/srchpid","/root/init/srchcond2");
  2876. }
  2877. ]]>
  2878. </script>
  2879. </button>
  2880. <button id="button2" class="btn2_letter4" style="left:1038px; top:54px; width:64px; height:19px; ">
  2881. <caption>예약현황</caption>
  2882. <script type="javascript" ev:event="DOMActivate">
  2883. <![CDATA[
  2884. //var child = getChildWindow("SMMMO02500");
  2885. /*
  2886. var child = getOpenWindow("SMMMO02500") ;
  2887. if (child != null ) {
  2888. child.close();
  2889. }
  2890. */
  2891. /*
  2892. if ( model.getValue("/root/send/data/srchpid") == "" ) {
  2893. messageBox("[조회필수항목-등록번호] 를 입력하십시오.","I999");
  2894. model.setfocus( "ipt_pid" );
  2895. return;
  2896. }
  2897. */
  2898. open("SMAEA00300", "","","", "SMAEA00300", "/root/send/data/srchpid","/root/send/srchpid");
  2899. //modal("SMAEA00900", "1","150", "150", "SMAEA00900", "/root/send/data/srchpid", "/root/send/pid"); //팝업
  2900. ]]>
  2901. </script>
  2902. </button>
  2903. <line id="line11" class="line_1" style="x1:2px; y1:74px; x2:235px; y2:74px; "/>
  2904. <line id="line3" class="line_1" style="x1:570px; y1:74px; x2:1195px; y2:74px; "/>
  2905. <line id="line4" class="line_1" style="x1:238px; y1:74px; x2:449px; y2:74px; "/>
  2906. <line id="line9" class="line_1" style="x1:2px; y1:695px; x2:260px; y2:695px; "/>
  2907. <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; ">
  2908. <col ref="before" style="left:0px; top:23px; width:159px; height:23px; "/>
  2909. </datagrid>
  2910. <caption id="caption9" class="tit_2" style="left:452px; top:60px; width:95px; height:13px; ">입원예정일</caption>
  2911. <line id="line10" class="line_1" style="x1:452px; y1:74px; x2:567px; y2:74px; "/>
  2912. <line id="line15" class="line_1" style="x1:452px; y1:142px; x2:567px; y2:142px; "/>
  2913. <caption id="caption12" class="tit_2" style="left:450px; top:128px; width:95px; height:13px; ">수술예정일</caption>
  2914. <datagrid id="grd_opschedd" nodeset="/root/main/exculist/mainordlist3" caption="수술예정일" colsep="^" colwidth="94" mergecellsfixedrows="bycolrec" rowsep="|" style="left:452px; top:147px; width:113px; height:48px; ">
  2915. <col ref="opschedd" format="yyyy-mm-dd" style="left:0px; top:23px; width:159px; height:23px; "/>
  2916. </datagrid>
  2917. <object id="rtfviewer" clsid="{a4bf7e18-5f67-4868-a726-eed421632374}" visibility="hidden" style="left:855px; top:680px; width:40px; height:45px; "/>
  2918. <caption id="cap_sleep" ref="/root/hidden/chkgam" visibility="hidden" style="left:1032px; top:196px; width:30px; height:20px; font-family:굴림; font-size:12pt; font-weight:bold; color:#ffffff; text-align:center; vertical-align:bottom; background-color:#ff0000; "/>
  2919. <button id="btn_timecls" class="btn2_letter4" visibility="hidden" style="left:965px; top:196px; width:64px; height:19px; ">
  2920. <caption>시간배정</caption>
  2921. <script type="javascript" ev:event="DOMActivate">
  2922. <![CDATA[
  2923. var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약' & excuroomnm != '' ]"); //미예약 다 뿌려줌
  2924. var rCSV = getNodeListCSV(nodeList);
  2925. model.setValue("/root/send/data/autorsrvtmset/autorsrvtm", rCSV);
  2926. submit("TRAEA02008");
  2927. var j = 1;
  2928. for(var i = 0 ; i < grd_mainordlist5.rows ; i++ ){
  2929. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" ||
  2930. model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약취소") {
  2931. model.setValue("/root/main/exculist/mainordlist5["+i+"]/rsrvdt",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
  2932. model.setValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm",model.getValue("/root/hidden/autorsrvtmset/autorsrvtm["+j+"]/rsrvdt"));
  2933. j++;
  2934. }
  2935. }
  2936. model.refresh();
  2937. ]]>
  2938. </script>
  2939. </button>
  2940. <caption id="caption16" class="cell_1" style="left:610px; top:25px; width:34px; height:23px; vertical-align:middle; ">S/A</caption>
  2941. <button id="button6" class="btn2_letter6" style="left:1106px; top:54px; width:86px; height:19px; ">
  2942. <caption>예약변경조회</caption>
  2943. <script type="javascript" ev:event="DOMActivate">
  2944. <![CDATA[
  2945. /*
  2946. var child = getChildWindow("SMMMO02500");
  2947. if (child != null ) {
  2948. child.javascript.window.close();
  2949. }
  2950. */
  2951. //2011.09.15 SMAEA04400 => SMAEA00800 변경 통합예약 기준수행부서관리의 부서만 조회
  2952. // 할 경우 SMAEA00800 = > SMAEA04400로 변경해야됨
  2953. //open("SMAEA04400", "","","", "SMAEA04400", "/root/send/data/srchpid","/root/send/pid");
  2954. open("SMAEA00800", "","","", "SMAEA00800", "/root/send/data/srchpid","/root/send/pid");
  2955. // window.setInterval("getChildWindow('SMAEA00800').window.activate()", 1000);
  2956. ]]>
  2957. </script>
  2958. </button>
  2959. <line id="line14" class="line_3" style="x1:440px; y1:50px; x2:1189px; y2:50px; "/>
  2960. <line id="line2" class="line_1" style="x1:2px; y1:427px; x2:260px; y2:427px; "/>
  2961. <button id="button22" class="btn2_letter6" style="left:172px; top:407px; width:86px; height:19px; ">
  2962. <caption>휴검관리내역</caption>
  2963. <script type="javascript" ev:event="DOMActivate">
  2964. <![CDATA[
  2965. /*
  2966. var child = getChildWindow("SMMMO02500");
  2967. if (child != null ) {
  2968. child.javascript.window.close();
  2969. }
  2970. */
  2971. // open("SMAEA00700", "","","", "SMAEA00700", "","");
  2972. //2011.06.17 금요일 인증평가도 끝나고. by kya
  2973. model.setValue("/root/send1/suppdeptcd", model.getValue("/root/send/data/suppdeptcd"));
  2974. model.setValue("/root/send1/excuroomcd", model.getValue("/root/send/data/excuroomcd"));
  2975. model.setValue("/root/send1/instance1", model.getValue("/root/send/globalinstance/instance1"));
  2976. open("SMAEA00700", "","","", "SMAEA00700", "/root/send1","/root/send1");
  2977. ]]>
  2978. </script>
  2979. </button>
  2980. <button id="btn_rsrv" class="btn4_letter2" style="left:919px; top:408px; width:56px; height:22px; ">
  2981. <caption>저장</caption>
  2982. <script type="javascript" ev:event="DOMActivate">
  2983. <![CDATA[
  2984. var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true' ]");
  2985. var rCSV = getNodeListCSV(nodeList);
  2986. var nodeList2= instance1.selectNodes("/root/main/exculist/mainordlist5[srchrsrvtm='-' ]");
  2987. var rCSV2 = getNodeListCSV(nodeList2);
  2988. if ( rCSV == null ) {
  2989. messageBox("처방내역을 ","C002");
  2990. return "0";
  2991. }
  2992. if ( rCSV != null && rCSV2 != null ) {
  2993. messageBox("예약시간을 ","C002");
  2994. return "0";
  2995. }
  2996. //얘약 수정시 메시지박스 띄워주기
  2997. var modifyinfo = "";
  2998. var j = 1;
  2999. var checknum = 0;
  3000. var schkdate = "";
  3001. var schkdate1 = "";
  3002. var syn = "N";
  3003. for (var i = 1; i < grd_mainordlist5.rows ; i++) {
  3004. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true"){
  3005. var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
  3006. //alert(isValidDateTime(rsrvdt, "YYYYMMDDhhmm"));
  3007. if (isValidDateTime(rsrvdt, "YYYYMMDDhhmm") == false){
  3008. messageBox("예약시간 형식이 잘못 입력되었습니다. 확인바랍니다.", "E999", "");
  3009. return;
  3010. }
  3011. schkdate = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm").substr(0, 8);
  3012. for (var j = 1; j < grd_anoprcplist.rows; j ++){
  3013. if (model.getValue("/root/main/exculist/subordlist2["+j+"]/rsrvflagyn") == "예약"){
  3014. schkdate1 = model.getValue("/root/main/exculist/subordlist2["+j+"]/srchrsrvtm").substr(0, 8);
  3015. if (schkdate == schkdate1){
  3016. syn = "Y";
  3017. }
  3018. }
  3019. }
  3020. /*
  3021. var stmpcd = model.getValue("/root/main/exculist/mainordlist5[" + i +"]/rsrvexmptmplcd");
  3022. var k =0;
  3023. for(var j=0; j < stmpcd.length; j++){
  3024. //var ch = escape(str.charAt(i));
  3025. var ch = stmpcd.charAt(j);
  3026. if (ch == "^"){
  3027. k = parseInt(k) + 1;
  3028. }
  3029. }
  3030. if (k >0){
  3031. messageBox(i + "번째 멀티예약예문이 존재합니다.", "E999", "");
  3032. return;
  3033. }
  3034. */
  3035. }
  3036. }
  3037. if (syn == "Y"){
  3038. if ( messageBox("타검사에서 동일한 예약일자가 존재합니다. ", "Q002", "") != 6 ) {
  3039. return;
  3040. }
  3041. }
  3042. for(var i = 0; i < grd_mainordlist5.rows ; i++) {
  3043. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약" ) {
  3044. var before =model.getValue("/root/main/exculist/mainordlist5["+i+"]/bf_srchrsrvtm");
  3045. var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
  3046. var bf_cdnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
  3047. checknum = checknum +1;
  3048. 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" ;
  3049. j++;
  3050. }
  3051. }
  3052. for(var i = 0; i < grd_mainordlist5.rows ; i++) {
  3053. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" &&
  3054. (model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약" || model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "예약취소" )) {
  3055. /* 20090409, 장준원, 검사실별 검사자에 대해서 제한을 풀어놓는다.
  3056. var sexcuroomcd = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/excuroomcd");
  3057. if (sexcuroomcd.length > 3){
  3058. var ssonogb = sexcuroomcd.substring(0, 4)
  3059. if (ssonogb == "SONO"){
  3060. messageBox("수행부서를 선택하시기 바랍니다.", "E999", "");
  3061. return;
  3062. }
  3063. }
  3064. */
  3065. if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/glycostestyn") == "Y" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/glycosyn") == ""){
  3066. messageBox("해당 처방코드는 당뇨유무 체크가 필수 항목입니다", "E999", "");
  3067. return;
  3068. }
  3069. }
  3070. if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && model.getValue("/root/main/exculist/mainordlist5["+i+"]/bonedentestyn") == "Y"){
  3071. if (datagrid4.rows > 1){
  3072. 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"))){
  3073. var rsrvdt1 = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
  3074. var rsrvdt = rsrvdt1.substr(0, 8);
  3075. var sdate1 = model.getValue("/root/main/exculist/mainordlist8[" + 1 + "]/execdd");
  3076. var sdate = sdate1.toDate().getAddDate(+365,"D").getDateFormat("YYYYMMDD");
  3077. if (sdate > rsrvdt){
  3078. messageBox("해당 골밀도 처방코드는 1년이 지나지 않아 예약할 수 없습니다. ", "E999", "");
  3079. return;
  3080. }
  3081. }
  3082. }
  3083. }
  3084. }
  3085. if (model.getValue("/root/send/data/chkflag") == "T"){
  3086. var message = messageBox( modifyinfo +"\r\n\r\n예약(수정) 저장 후 예약증 출력","S001","\r\n예약(수정)를 취소하시려면 취소를 누르십시오.");
  3087. var chk = "N";
  3088. if ( message == 6 ) { //예
  3089. if (exeRsrvTransaction("rsrv") == true){
  3090. chk = "Y";
  3091. var max = 0;
  3092. for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
  3093. var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
  3094. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
  3095. max = parseInt(max) + 1;
  3096. }
  3097. }
  3098. if (max > 0){
  3099. rtfviewer.OpenProgressBar(max);
  3100. }
  3101. var sexcuroomcd = "";
  3102. var sgubun = "";
  3103. for(var i = 1 ; i < grd_mainordlist5.rows; i ++) {
  3104. var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+i+"]/tmpldata");
  3105. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true" && tmpldata != "") {
  3106. sgubun = "Y";
  3107. if (bool3.value == "Y"){
  3108. if (sexcuroomcd == model.getValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd")){
  3109. sgubun = "N";
  3110. }else{
  3111. sexcuroomcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/excuroomcd");
  3112. sgubun = "Y";
  3113. }
  3114. }
  3115. var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+i+"]/srchrsrvtm");
  3116. var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpnm");
  3117. var roomcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/pexcuroomnm");
  3118. var rcptyn = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rcptyn");
  3119. var vacntno = "";
  3120. // if (rcptyn == "미수납") {
  3121. // vacntno = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/vacntno");
  3122. // vacntno = vacntno + "\n\n 위 계좌번호로 예약 3일전 입금해주세요";
  3123. // alert("vacntno : " + vacntno);
  3124. // }
  3125. var sna = model.getValue("/root/main/exculist/patinfolist/sex") + "/" + model.getValue("/root/main/exculist/patinfolist/age");
  3126. //var sna = opt_sex.value+"/"+opt_age.value ;
  3127. var year = rsrvdt.substr(0,4);
  3128. var month = rsrvdt.substr(4,2);
  3129. var day = rsrvdt.substr(6,2);
  3130. var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
  3131. var hh = rsrvdt.substr(8,2);
  3132. //원스탑 당일,다음날 시간 추가 20100626
  3133. var onehhmm = rsrvdt.substr(8,4);
  3134. var hh2 = "";
  3135. var mm2 = "";
  3136. if(model.getValue("/root/main/exculist/mainordlist5["+ i +"]/onestop") == "H"){
  3137. var cnt = model.instances(0).selectNodes( "/root/init1/onestoptminfo/mintm/A901" ).length + 1;
  3138. for(var j = 1; j < cnt ; j++){
  3139. var cdid = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdid");
  3140. if(onehhmm == cdid){
  3141. var hhmm = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdnm");
  3142. hh2 = hhmm.substr(0,2);
  3143. mm2 = hhmm.substr(2,2);
  3144. }
  3145. }
  3146. }
  3147. if(hh > 12)
  3148. {
  3149. hh = "오후 "+(hh-12);
  3150. }
  3151. else{
  3152. hh = "오전 "+hh;
  3153. }
  3154. var mm = rsrvdt.substr(10,2);
  3155. var yr1 = rsrvdt.substr(0,4);
  3156. var mn1 = rsrvdt.substr(4,2);
  3157. var dy1 = rsrvdt.substr(6,2);
  3158. var daytmp = ((rsrvdt.substr(0,8)).toDate()).getAddDate(1).getDateFormat();
  3159. //alert(daytmp);
  3160. var yr2 = daytmp.substr(0,4);
  3161. var mn2 = daytmp.substr(4,2);
  3162. var dy2 = daytmp.substr(6,2);
  3163. //예약증 출력
  3164. if(tmpldata != "" && sgubun == "Y") {
  3165. //1. 예약예문내용을 뷰어로 보여주기
  3166. rtfviewer.TextRtf = tmpldata;
  3167. var ssleep = "";
  3168. /*
  3169. if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
  3170. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
  3171. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
  3172. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
  3173. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
  3174. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
  3175. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
  3176. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
  3177. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
  3178. var ssleep = "(수면)";
  3179. }
  3180. */
  3181. if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/slepyn") == "Y"){
  3182. var ssleep = "(수면)";
  3183. }
  3184. roomcd = roomcd + ssleep;
  3185. //roomcd = ssleep;
  3186. //2. 바꾸기
  3187. rtfviewer.ReplaceRtfCode("pid",model.getValue("/root/send/data/srchpid")); //등록번호
  3188. rtfviewer.ReplaceRtfCode("patnm",model.getValue("/root/main/exculist/patinfolist/hngnm")); //성명
  3189. rtfviewer.ReplaceRtfCode("roomcd",roomcd); //검사실명
  3190. rtfviewer.ReplaceRtfCode("year",year); //년
  3191. rtfviewer.ReplaceRtfCode("month",month); //월
  3192. rtfviewer.ReplaceRtfCode("day",day); //일
  3193. rtfviewer.ReplaceRtfCode("week",week); //요일
  3194. rtfviewer.ReplaceRtfCode("hh",hh); //시
  3195. rtfviewer.ReplaceRtfCode("mm",mm); //분
  3196. rtfviewer.ReplaceRtfCode("age",model.getValue("/root/main/exculist/patinfolist/age")); //나이
  3197. rtfviewer.ReplaceRtfCode("sex",model.getValue("/root/main/exculist/patinfolist/sex")); //성병
  3198. rtfviewer.ReplaceRtfCode("orddeptcd",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddepthngnm"))
  3199. rtfviewer.ReplaceRtfCode("orddrid",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddrnm"))
  3200. rtfviewer.ReplaceRtfCode("excucdnm",model.getValue("/root/main/exculist/mainordlist5["+i+"]/excucdnm"))
  3201. // rtfviewer.ReplaceRtfCode("vacntno",vacntno); // 가상계좌
  3202. rtfviewer.ReplaceRtfCode("yr1",yr1); //년
  3203. rtfviewer.ReplaceRtfCode("mn1",mn1); //월
  3204. rtfviewer.ReplaceRtfCode("dy1",dy1); //일
  3205. rtfviewer.ReplaceRtfCode("yr2",yr2); //년
  3206. rtfviewer.ReplaceRtfCode("mn2",mn2); //월
  3207. rtfviewer.ReplaceRtfCode("dy2",dy2); //일
  3208. rtfviewer.ReplaceRtfCode("hh2",hh2); //시
  3209. rtfviewer.ReplaceRtfCode("mm2",mm2); //분
  3210. //3. 현재내용을 파일에 저장
  3211. //rtfviewer.SaveRtfFile();
  3212. //4. 출력
  3213. rtfviewer.print();
  3214. //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  3215. //fInitialize();
  3216. }
  3217. }
  3218. }
  3219. }
  3220. if (max > 0){
  3221. rtfviewer.CloseProgressBar();
  3222. }
  3223. }
  3224. if (message == 7 ) { //아니오
  3225. if (exeRsrvTransaction("rsrv") == true){
  3226. chk = "Y";
  3227. }
  3228. }
  3229. }else{
  3230. //if( messageBox("해당 선택 정보내역을 " , "Q002" ) == 6 ){
  3231. if (exeRsrvTransaction("rsrv") == true){
  3232. chk = "Y";
  3233. }
  3234. //}
  3235. }
  3236. if (chk == "Y"){
  3237. readfunc();
  3238. //상태별 색상주기
  3239. fSetGrdMainordlist();
  3240. }
  3241. model.setFocus("ipt_pid");
  3242. ]]>
  3243. </script>
  3244. </button>
  3245. <button id="btn_cncl" class="btn4_letter2" style="left:975px; top:408px; width:56px; height:22px; ">
  3246. <caption>취소</caption>
  3247. <script type="javascript" ev:event="DOMActivate">
  3248. <![CDATA[
  3249. var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt");
  3250. // if ( messageBox(rsrvdt.substr(0,4)+"-"+rsrvdt.substr(4,2)+"-"+rsrvdt.substr(6,2)+" "+rsrvdt.substr(8,2)+":"+rsrvdt.substr(10,2)+" 예약취소를","Q002")==6 ) {
  3251. var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true' ]");
  3252. var rCSV = getNodeListCSV(nodeList);
  3253. if ( rCSV == null ) {
  3254. messageBox("처방내역을 ","C002");
  3255. return "0";
  3256. }
  3257. var message = messageBox("해당 예약을","Q007");
  3258. if ( message == 6 ) {
  3259. exeRsrvTransaction("cncl");
  3260. readfunc();
  3261. //상태별 색상주기
  3262. fSetGrdMainordlist();
  3263. model.setFocus("ipt_pid");
  3264. }
  3265. // }
  3266. ]]>
  3267. </script>
  3268. </button>
  3269. <button id="btn_init" class="btn4_letter3" style="left:1125px; top:408px; width:68px; height:22px; ">
  3270. <caption>재출력</caption>
  3271. <script type="javascript" ev:event="DOMActivate">
  3272. <![CDATA[
  3273. //********************************
  3274. // ******예약증 출력 20070821******
  3275. //********************************
  3276. var max = 0;
  3277. for (var i = 1; i < +grd_mainordlist5.rows; i ++){
  3278. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true") {
  3279. max = parseInt(max) + 1;
  3280. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약") {
  3281. messageBox("미예약 검사가 있습니다. 예약 후 재출력 하십시요","E999");
  3282. return;
  3283. }
  3284. }
  3285. // if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/rsrvflagyn") == "미예약") {
  3286. // messageBox("미예약 검사가 있습니다. 예약 후 재출력 하십시요","E999");
  3287. // return;
  3288. // }
  3289. }
  3290. if (max > 0){
  3291. rtfviewer.OpenProgressBar(max);
  3292. }
  3293. for (var i = 1; i < +grd_mainordlist5.rows; i ++){
  3294. if(model.getValue("/root/main/exculist/mainordlist5["+i+"]/chk") == "true") {
  3295. var rsrvdt = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/srchrsrvtm");
  3296. var prcpnm = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/prcpnm");
  3297. var roomcd = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/pexcuroomnm");
  3298. var rcptyn = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/rcptyn");
  3299. var vacntno = "";
  3300. // if (rcptyn == "미수납") {
  3301. // vacntno = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/vacntno");
  3302. // vacntno = vacntno + "/n\n 위 계좌번호로 예약 3일전 입금해주세요";
  3303. // alert("vacntno : " + vacntno);
  3304. // }
  3305. var sna = model.getValue("/root/main/exculist/patinfolist/sex") + "/" + model.getValue("/root/main/exculist/patinfolist/age");
  3306. var tmpldata = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/tmpldata");
  3307. var year = rsrvdt.substr(0,4);
  3308. var month = rsrvdt.substr(4,2);
  3309. var day = rsrvdt.substr(6,2);
  3310. var week = rsrvdt.substr(0,8).toDate().getDayOfWeek("K");
  3311. var hh = rsrvdt.substr(8,2);
  3312. var mm = rsrvdt.substr(10,2);
  3313. //원스탑 당일,다음날 시간 추가 20100626
  3314. var onestop = model.getValue("/root/main/exculist/mainordlist5["+ i +"]/onestop");
  3315. var onehhmm = rsrvdt.substr(8,4);
  3316. var hh2 = "";
  3317. var mm2 = "";
  3318. if(onestop == "H"){
  3319. var cnt = model.instances(0).selectNodes( "/root/init1/onestoptminfo/mintm/A901" ).length + 1;
  3320. for(var j = 1; j < cnt ; j++){
  3321. var cdid = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdid");
  3322. if(onehhmm == cdid){
  3323. var hhmm = model.getValue("/root/init1/onestoptminfo/mintm/A901["+j+"]/cdnm");
  3324. hh2 = hhmm.substr(0,2);
  3325. mm2 = hhmm.substr(2,2);
  3326. }
  3327. }
  3328. }
  3329. if(hh > 12)
  3330. {
  3331. hh = "오후 "+(hh-12);
  3332. }
  3333. else{
  3334. hh = "오전 "+hh;
  3335. }
  3336. var mm = rsrvdt.substr(10,2);
  3337. var yr1 = rsrvdt.substr(0,4);
  3338. var mn1 = rsrvdt.substr(4,2);
  3339. var dy1 = rsrvdt.substr(6,2);
  3340. var daytmp = ((rsrvdt.substr(0,8)).toDate()).getAddDate(1).getDateFormat();
  3341. //alert(daytmp);
  3342. var yr2 = daytmp.substr(0,4);
  3343. var mn2 = daytmp.substr(4,2);
  3344. var dy2 = daytmp.substr(6,2);
  3345. if(tmpldata != "") {
  3346. //1. 예약예문내용을 뷰어로 보여주기
  3347. // alert(tmpldata);
  3348. rtfviewer.TextRtf = tmpldata;
  3349. //2. 바꾸기
  3350. var ssleep = "";
  3351. /*
  3352. if ( model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GMA0001" ||
  3353. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE761103G" ||
  3354. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766002G" ||
  3355. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE766004G" ||
  3356. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE768002G" ||
  3357. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RMAU00602G" ||
  3358. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "RNAU00702G" ||
  3359. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE764002G" ||
  3360. model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd") == "GE762101G") {
  3361. var ssleep = "(수면)";
  3362. }
  3363. */
  3364. if (model.getValue("/root/main/exculist/mainordlist5["+i+"]/slepyn") == "Y"){
  3365. var ssleep = "(수면)";
  3366. }
  3367. roomcd = roomcd + ssleep;
  3368. //roomcd = ssleep;
  3369. rtfviewer.ReplaceRtfCode("pid", model.getValue("/root/send/data/srchpid")); //등록번호
  3370. rtfviewer.ReplaceRtfCode("patnm",model.getValue("/root/main/exculist/patinfolist/hngnm")); //성명
  3371. rtfviewer.ReplaceRtfCode("roomcd",roomcd); //검사실명
  3372. // rtfviewer.ReplaceRtfCode("@@gender/age",sna); //성별,연령
  3373. // rtfviewer.ReplaceRtfCode("@@prcpnm",prcpnm); //검사명
  3374. rtfviewer.ReplaceRtfCode("year",year); //년
  3375. rtfviewer.ReplaceRtfCode("month",month); //월
  3376. rtfviewer.ReplaceRtfCode("day",day); //일
  3377. rtfviewer.ReplaceRtfCode("week",week); //요일
  3378. rtfviewer.ReplaceRtfCode("hh",hh); //시
  3379. rtfviewer.ReplaceRtfCode("mm",mm); //분
  3380. rtfviewer.ReplaceRtfCode("age",model.getValue("/root/main/exculist/patinfolist/age")); //나이
  3381. rtfviewer.ReplaceRtfCode("sex",model.getValue("/root/main/exculist/patinfolist/sex")); //성병
  3382. rtfviewer.ReplaceRtfCode("orddeptcd",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddepthngnm"))
  3383. rtfviewer.ReplaceRtfCode("orddrid",model.getValue("/root/main/exculist/mainordlist5["+i+"]/orddrnm"))
  3384. rtfviewer.ReplaceRtfCode("excucdnm",model.getValue("/root/main/exculist/mainordlist5["+i+"]/excucdnm"))
  3385. // rtfviewer.ReplaceRtfCode("vacntno",vacntno); // 가상계좌
  3386. rtfviewer.ReplaceRtfCode("yr1",yr1); //년
  3387. rtfviewer.ReplaceRtfCode("mn1",mn1); //월
  3388. rtfviewer.ReplaceRtfCode("dy1",dy1); //일
  3389. rtfviewer.ReplaceRtfCode("yr2",yr2); //년
  3390. rtfviewer.ReplaceRtfCode("mn2",mn2); //월
  3391. rtfviewer.ReplaceRtfCode("dy2",dy2); //일
  3392. rtfviewer.ReplaceRtfCode("hh2",hh2); //시
  3393. rtfviewer.ReplaceRtfCode("mm2",mm2); //분
  3394. //3. 현재내용을 파일에 저장
  3395. //rtfviewer.SaveRtfFile();
  3396. //4. 출력
  3397. rtfviewer.print();
  3398. //5. 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  3399. //fInitialize();
  3400. }
  3401. else {
  3402. //원스탑일경우 한장만 출력
  3403. if(onestop == "H"){
  3404. }else{
  3405. messageBox(i + "번째의 등록된 예약예문이 ", "I004");
  3406. }
  3407. }
  3408. }
  3409. }
  3410. if (max > 0){
  3411. rtfviewer.CloseProgressBar();
  3412. }
  3413. model.setFocus("ipt_pid");
  3414. ]]>
  3415. </script>
  3416. </button>
  3417. <caption id="caption10" class="tit_2" style="left:806px; top:416px; width:85px; height:13px; ">예약내역</caption>
  3418. <line id="line5" class="line_1" style="x1:806px; y1:431px; x2:1191px; y2:431px; "/>
  3419. <line id="line6" class="line_1" style="x1:657px; y1:431px; x2:799px; y2:431px; "/>
  3420. <caption id="caption15" class="tit_2" style="left:659px; top:416px; width:85px; height:13px; ">예약시간</caption>
  3421. <datagrid id="datagrid2" nodeset="/root/main/exculist/subordlist3/rows" autoresize="true" caption="환자번호^일자^Comment^caption1^작성자^작성일시" colsep="^" colwidth="100, 77, 162, 100, 52, 120" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:700px; width:258px; height:79px; ">
  3422. <col ref="pid" visibility="hidden"/>
  3423. <col ref="cmtdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3424. <col ref="patcmt" type="input"/>
  3425. <col ref="iudgb" visibility="hidden"/>
  3426. <col ref="upnm"/>
  3427. <col ref="updtm" format="yyyy/mm/dd hh:mm" style="text-align:center; "/>
  3428. <script type="javascript" ev:event="xforms-value-changed">
  3429. <![CDATA[
  3430. if (model.getValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/iudgb") != "I"){
  3431. model.setValue("/root/main/exculist/subordlist3/rows[" + datagrid2.row + "]/iudgb", "U");
  3432. }
  3433. datagrid2.refresh();
  3434. ]]>
  3435. </script>
  3436. <script type="javascript" ev:event="DOMFocusOut">
  3437. <![CDATA[
  3438. initPopupMenu();
  3439. ]]>
  3440. </script>
  3441. <script type="javascript" ev:event="onmousedown">
  3442. <![CDATA[
  3443. setPopupMenu("datagrid2", false, "/root/hidden2/popupmenu/menu", "label", "func");
  3444. ]]>
  3445. </script>
  3446. </datagrid>
  3447. <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; ">
  3448. <col ref="basedd"/>
  3449. <col ref="dutflag"/>
  3450. </datagrid>
  3451. <caption id="caption3" class="search_name" visibility="hidden" style="left:645px; top:56px; width:65px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
  3452. <caption id="caption18" class="search_name" visibility="hidden" style="left:804px; top:55px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">적용일자 :</caption>
  3453. <select1 id="cmb_excuroomgrp" ref="/root/send/data/cmb_info1/initexcuroomgrp/excuroomgrpcdid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:705px; top:54px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
  3454. <choices>
  3455. <itemset nodeset="/root/init/cmb_info1/initexcuroomgrp">
  3456. <label ref="excuroomgrpcdnm"/>
  3457. <value ref="excuroomgrpcdid"/>
  3458. </itemset>
  3459. </choices>
  3460. </select1>
  3461. <caption id="caption23" class="tit_2" visibility="hidden" style="left:573px; top:59px; width:66px; height:13px; ">미예약</caption>
  3462. <datagrid id="grd_mainordlist7" nodeset="/root/main/ordlist1/mainordlist" visibility="hidden" caption="No^등록번호^환자명^구분^병실^과^처방일련번호^진료과코드^예약일자^execprcpstatcd^prcpdd^sna^roomcd^orddrid^rcptyn" colsep="^" colwidth="37, 74, 67, 81, 92, 244, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:80px; width:625px; height:115px; ">
  3463. <col ref="no"/>
  3464. <col ref="pid"/>
  3465. <col ref="patnm"/>
  3466. <col disabled="true" ref="prcpgenrflag" type="combo">
  3467. <choices>
  3468. <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
  3469. <label ref="cdnm"/>
  3470. <value ref="cdid"/>
  3471. </itemset>
  3472. </choices>
  3473. </col>
  3474. <col ref="roomcd"/>
  3475. <col ref="depthngnm"/>
  3476. <col ref="execprcpuniqno"/>
  3477. <col ref="orddeptcd"/>
  3478. <col ref="rsrvdd"/>
  3479. <col ref="execprcpstatcd"/>
  3480. <col ref="prcpdd"/>
  3481. <col ref="sna"/>
  3482. <col ref="roomcd"/>
  3483. <col ref="orddrid"/>
  3484. <col ref="rcptyn"/>
  3485. <script type="javascript" ev:event="ondblclick">
  3486. <![CDATA[
  3487. if( isDataCell() ){
  3488. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/ordlist1/mainordlist[" + grd_mainordlist7.row + "]/pid"));
  3489. switch1.attribute("width") = 1192;
  3490. btn_sea.dispatch("DOMActivate");
  3491. }
  3492. ]]>
  3493. </script>
  3494. <script type="javascript" ev:event="onclick">
  3495. <![CDATA[
  3496. /*
  3497. if ( (grd_mainordlist1.row >= grd_mainordlist1.fixedRows) && (grd_mainordlist1.isCell(event.target))) {
  3498. fGetExamCurePrcpList(grd_mainordlist1);
  3499. }
  3500. */
  3501. ]]>
  3502. </script>
  3503. <script type="javascript" ev:event="onaftersort">
  3504. <![CDATA[
  3505. grd_mainordlist7.gridToInstance();
  3506. ]]>
  3507. </script>
  3508. </datagrid>
  3509. <button id="button23" class="btn1_letter2" navindex="3" visibility="hidden" style="left:980px; top:53px; width:56px; height:22px; ">
  3510. <caption>조회</caption>
  3511. <script type="javascript" ev:event="DOMActivate">
  3512. <![CDATA[
  3513. submit("TRAEA02013");
  3514. ]]>
  3515. </script>
  3516. </button>
  3517. <button id="button24" class="icon_bottom" style="left:1045px; top:54px; width:26px; height:19px; ">
  3518. <caption/>
  3519. <script type="javascript" ev:event="DOMActivate">
  3520. <![CDATA[
  3521. grd_mainordlist7.attribute("height") = 115;
  3522. grd_mainordlist7.attribute("height") = 115;
  3523. switch1.attribute("width") = 1192;
  3524. button24.visible = false;
  3525. button25.visible = true;
  3526. ]]>
  3527. </script>
  3528. </button>
  3529. <button id="button25" class="icon_top" style="left:1045px; top:54px; width:26px; height:19px; ">
  3530. <caption/>
  3531. <script type="javascript" ev:event="DOMActivate">
  3532. <![CDATA[
  3533. grd_mainordlist7.attribute("height") = 320;
  3534. grd_mainordlist7.attribute("height") = 320;
  3535. switch1.attribute("width") = 550;
  3536. button25.visible = false;
  3537. button24.visible = true;
  3538. ]]>
  3539. </script>
  3540. </button>
  3541. <line id="line8" class="line_1" style="x1:805px; y1:235px; x2:1195px; y2:235px; "/>
  3542. <caption id="caption37" class="tit_2" style="left:805px; top:220px; width:85px; height:14px; ">제어 내역</caption>
  3543. <datagrid id="grd_ctrl" nodeset="/root/ctrl/main/ctrllist/ctrlinfo" autoresize="true" backcoloralternate="transparent" caption="예약처^수행부서^수행부서^검사실^검사실^검사코드^검사명^순번^제어^적용^제어 내용" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350" extendlastcol="scroll" focuscolor="transparent" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:805px; top:240px; width:390px; height:160px; ">
  3544. <col ref="rsrvplce"/>
  3545. <col ref="suppdeptcd"/>
  3546. <col ref="suppdeptnm"/>
  3547. <col ref="excuroomcd"/>
  3548. <col ref="excuroomnm"/>
  3549. <col ref="excucd"/>
  3550. <col ref="excunm"/>
  3551. <col ref="ctrlseq" style="text-align:center; "/>
  3552. <col ref="ctrlflag" style="text-align:center; "/>
  3553. <col ref="appflag" style="text-align:center; "/>
  3554. <col ref="ctrldesc" style="text-align:left; padding-left:2; padding-right:2; "/>
  3555. </datagrid>
  3556. <textarea id="tar_prcpremfact" ref="/root/main/comment1/prcpcmt" disabled="true" style="left:0px; top:629px; width:258px; height:43px; font-size:10pt; font-weight:bold; "/>
  3557. <datagrid id="grd_momolist" nodeset="/root/main/rsrvposstmlist/deptmemo" class="datagrid0" scroll="vertical" autoresize="true" caption="일자^메모내용" colsep="^" colwidth="0, 245" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:553px; width:258px; height:49px; ">
  3558. <col ref="memodt"/>
  3559. <col disabled="true" ref="memorem" type="input" style="left:0px; top:0px; width:54px; height:23px; "/>
  3560. </datagrid>
  3561. <shape id="rectangle3" appearance="rectangle" style="left:171px; top:199px; width:20px; height:15px; background-color:#ffff00; "/>
  3562. <shape id="rectangle4" appearance="rectangle" style="left:212px; top:199px; width:20px; height:15px; background-color:#ccffcc; "/>
  3563. <shape id="rectangle5" appearance="rectangle" style="left:290px; top:199px; width:20px; height:15px; background-color:#FF9A00; "/>
  3564. <caption id="caption26" style="left:311px; top:199px; width:41px; height:15px; ">미수납</caption>
  3565. <caption id="caption27" style="left:196px; top:199px; width:18px; height:15px; font-weight:bold; ">V</caption>
  3566. <caption id="caption28" style="left:235px; top:199px; width:50px; height:15px; ">오늘결과</caption>
  3567. <bool id="bool2" visibility="hidden" checkvalue="Y,N" ref="/root/send/data/timeyn" style="left:456px; top:196px; width:20px; height:19px; "/>
  3568. <caption id="caption30" visibility="hidden" style="left:474px; top:197px; width:54px; height:20px; ">시간통제</caption>
  3569. <select1 id="radio1" ref="/root/send/data/ampmyn" appearance="full" cols="3" overflow="visible" style="left:510px; top:410px; width:135px; height:17px; border-style:none; ">
  3570. <choices>
  3571. <item>
  3572. <label>오전</label>
  3573. <value>1</value>
  3574. </item>
  3575. <item>
  3576. <label>오후</label>
  3577. <value>2</value>
  3578. </item>
  3579. <item>
  3580. <label>전체</label>
  3581. <value>9</value>
  3582. </item>
  3583. </choices>
  3584. <script type="javascript" ev:event="xforms-value-changed">
  3585. <![CDATA[
  3586. grd_calendar.dispatch("onclick");
  3587. ]]>
  3588. </script>
  3589. </select1>
  3590. <select1 id="combo1" ref="/root/send1/suppdeptcd" class="combo_search" visibility="visible" appearance="minimal" style="left:265px; top:760px; width:155px; height:19px; ">
  3591. <choices>
  3592. <itemset nodeset="/root/init/cmb_info3/suppdeptlist/suppdept">
  3593. <label ref="suppdeptnm"/>
  3594. <value ref="suppdeptcd"/>
  3595. </itemset>
  3596. </choices>
  3597. <script type="javascript" ev:event="xforms-value-changed">
  3598. <![CDATA[
  3599. model.setValue("/root/send1/instance1", model.getValue("/root/send1/suppdeptcd"));
  3600. model.setValue("/root/send1/excuroomcd", "");
  3601. submit("TRAEA00902");
  3602. ]]>
  3603. </script>
  3604. </select1>
  3605. <select1 id="cmb_excuroom" ref="/root/send1/excuroomcd" class="combo_search" visibility="visible" appearance="minimal" style="left:430px; top:760px; width:150px; height:19px; ">
  3606. <choices>
  3607. <itemset nodeset="/root/init/cmb_info3/excuroomcdlist/excuroom">
  3608. <label ref="basecdflagdesc"/>
  3609. <value ref="basecd"/>
  3610. </itemset>
  3611. </choices>
  3612. <script type="javascript" ev:event="xforms-value-changed">
  3613. <![CDATA[
  3614. /* 2013.02.06 by kya, 변경해도 영향을 주지않도록
  3615. model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
  3616. model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
  3617. model.setValue("/root/hidden/orddeptcheck","check");
  3618. model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/send1/suppdeptcd"));
  3619. model.setValue("/root/send/data/excuroomcd",model.getValue("/root/send1/excuroomcd"));
  3620. model.setValue("/root/send/data/prcpgenrflag", "O");
  3621. initCalendar();
  3622. model.setValue("/root/send1/gb", "2");
  3623. */
  3624. ]]>
  3625. </script>
  3626. </select1>
  3627. <bool id="bool3" checkvalue="Y,N" ref="/root/send/data/multiyn" style="left:595px; top:196px; width:20px; height:20px; "/>
  3628. <caption id="caption31" style="left:613px; top:197px; width:80px; height:20px; ">동일예문1장</caption>
  3629. <button id="button28" class="btn2_letter4" style="left:876px; top:196px; width:64px; height:19px; ">
  3630. <caption>멀티예약</caption>
  3631. <script type="javascript" ev:event="DOMActivate">
  3632. <![CDATA[
  3633. model.removenode("/root/popdata");
  3634. var kcnt = 0;
  3635. var excuroomcd = "";
  3636. var excuroomnm = "";
  3637. var excuroom = "";
  3638. for (var i = 1; i < grd_mainordlist5.rows; i++){
  3639. var schk = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/chk");
  3640. if (schk == "true") {
  3641. var tempArray;
  3642. var chkflag = "N";
  3643. model.makeNode("/root/popdata/poplist");
  3644. kcnt = parseInt(kcnt) + 1;
  3645. excuroomcd = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomcd");
  3646. excuroomnm = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroomnm");
  3647. excuroom = model.getValue("/root/main/exculist/mainordlist5[" + i + "]/excuroom");
  3648. model.makeValue("/root/popdata/poplist[" + kcnt + "]/rowcnt", i);
  3649. model.makeValue("/root/popdata/poplist[" + kcnt + "]/prcpnm", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/prcpnm"));
  3650. model.makeValue("/root/popdata/poplist[" + kcnt + "]/suppdeptcd", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/suppdeptcd"));
  3651. model.makeValue("/root/popdata/poplist[" + kcnt + "]/examroomnm", model.getValue("/root/main/exculist/mainordlist5[" + i + "]/examroomnm"));
  3652. // ##############################################################
  3653. // 핵의학과 예약의 경우 기본 검사실과 예약을 가능한 수행부서가 다르기 때문에 일반 검사 예약과는 다르게 처리해야 하는 예외 사항이 발생함
  3654. // 이에 따라 기본 검사실과 예약 가능한 수행부서가 다를 경우 예약 가능한 수행부서로 멀티 예약 가능하도록 기능 추가 [2010.05.19 김건기]
  3655. tempArray = excuroomnm.split("^");
  3656. for(var idx=0; idx < tempArray.length-1; idx++) {
  3657. if (tempArray[idx] == excuroomcd && chkflag == "N") {
  3658. chkflag = "Y";
  3659. }
  3660. }
  3661. if (chkflag == "N") {
  3662. excuroomcd = tempArray[0];
  3663. }
  3664. // ##############################################################
  3665. model.makeValue("/root/popdata/poplist[" + kcnt + "]/excuroomcd", excuroomcd);
  3666. }
  3667. }
  3668. if (kcnt > 5){
  3669. messageBox("5개를 초과해서 처리할 수 없습니다.", "E999", "");
  3670. return;
  3671. }
  3672. if (kcnt > 0){
  3673. modal("SPAEA05500", "", "20", "100", "SPAEA05500","/root/popdata","/root/popdata");
  3674. }
  3675. ]]>
  3676. </script>
  3677. </button>
  3678. <button id="button34" class="btn4_letter5" style="left:1032px; top:408px; width:92px; height:22px; ">
  3679. <caption>예약일정표</caption>
  3680. <script type="javascript" ev:event="DOMActivate">
  3681. <![CDATA[
  3682. //********************************
  3683. // ******예약증 일정표 출력 20100928******
  3684. //********************************
  3685. //if(model.getValue("/root/send/data/yesche") == "Y"){ //20100928 예약일정표 출력 - 박재영
  3686. if (submit("TRAEA00920")){
  3687. //exeReportPreview("RPAEA00920","XMLSTR");
  3688. if( model.getValue("/root/main/printinfo/printlist/printdata/pid") != null ) {
  3689. model.makeValue("/root/main/printinfo/printlist/instcd", getUserInfo("dutplceinstcd") );
  3690. //2015/08/12 출력물 수정(이정택)
  3691. var cnt = getNodesetCount("/root/main/printinfo/printlist/printdata");
  3692. for(var i=1; i<=cnt; i++){
  3693. model.makeValue("/root/main/printinfo/printlist/printdata[" + i + "]/dutplcecd", getUserInfo("dutplcecd"));
  3694. }
  3695. //2015/08/12 출력물 수정(이정택)
  3696. exeReportPreview("RPAEA00920", "XMLSTR", "", "", "false","","","","","false");
  3697. model.removenode("/root/main/printinfo/printlist/instcd");
  3698. } else {
  3699. messageBox("예약", "E013");
  3700. }
  3701. }
  3702. //}
  3703. ]]>
  3704. </script>
  3705. </button>
  3706. <button id="btn_patinfo" class="btn2_letter7" style="left:689px; top:196px; width:97px; height:19px; ">
  3707. <caption>개인별처방이력</caption>
  3708. <script type="javascript" ev:event="DOMActivate">
  3709. <![CDATA[
  3710. open("SMAEA00400", "","","", "SMAEA00400", "/root/send/data/srchpid","/root/send/pid");
  3711. ]]>
  3712. </script>
  3713. </button>
  3714. <button id="button63" class="icon_list" style="left:1178px; top:1px; width:14px; height:16px; ">
  3715. <caption/>
  3716. <script type="javascript" ev:event="DOMActivate">
  3717. <![CDATA[
  3718. //2011.05.12 메모기능 추가 - 박재영
  3719. model.setValue("/root/send3/instance1",model.getValue("root/send/rsrvsuppdeptcd"));
  3720. if(submit("TRAEB00501")){
  3721. grp_memo.visible = true;
  3722. model.refresh();
  3723. }
  3724. ]]>
  3725. </script>
  3726. </button>
  3727. <caption id="caption34" class="cell_1" style="left:690px; top:25px; width:35px; height:23px; vertical-align:middle; ">SMS</caption>
  3728. <output id="opt_smsflag" ref="/root/main/exculist/patinfolist/smsaprvyn" class="output_fix" disabled="true" style="left:727px; top:27px; width:25px; height:19px; text-align:center; "/>
  3729. <output id="output2" ref="/root/send/data/serdiagtodd" style="left:105px; top:175px; width:130px; height:19px; font-weight:bold; color:#ff0000; "/>
  3730. <caption id="caption35" class="tit_2" style="left:5px; top:180px; width:95px; height:14px; color:#003366; ">중증만기일자</caption>
  3731. <button id="btn_temp" class="btn2_letter4" disabled="true" style="left:585px; top:760px; width:64px; height:19px; ">
  3732. <caption>임시예약</caption>
  3733. <script type="javascript" ev:event="DOMActivate">
  3734. <![CDATA[
  3735. submit("TRAEA01132");
  3736. var excuroomgrp = model.getValue("/root/hidden/excuroomgrplist/excuroomgrpcdlist/basecdcnts");
  3737. if (excuroomgrp == "") {
  3738. messageBox("검사실을 ", "C002");
  3739. return;
  3740. }
  3741. setParameter("excuroomgrp", excuroomgrp );
  3742. setParameter("menuparam", "R");
  3743. setParameter("suppdeptcd", model.getValue("/root/send1/suppdeptcd"));
  3744. modal("SPAEA02201", "", "200", "200", "popup", "", "");
  3745. model.setValue("/root/send1/suppdeptcd","");
  3746. model.setValue("/root/send1/excuroomcd","");
  3747. model.refresh();
  3748. ]]>
  3749. </script>
  3750. </button>
  3751. <group id="group4" visibility="hidden" style="left:80px; top:435px; width:365px; height:235px; ">
  3752. <button id="button30" class="btn4_letter2" style="left:295px; top:205px; width:56px; height:22px; ">
  3753. <caption>닫기</caption>
  3754. <script type="javascript" ev:event="DOMActivate">
  3755. <![CDATA[
  3756. group4.visible = false;
  3757. ]]>
  3758. </script>
  3759. </button>
  3760. <caption id="caption32" class="tit_2" style="left:10px; top:13px; width:173px; height:14px; ">환자 Comment</caption>
  3761. <shape id="rectangle7" appearance="rectangle" style="left:2px; top:2px; width:360px; height:232px; "/>
  3762. <textarea id="textarea1" ref="/root/init1/patcmt" style="left:5px; top:30px; width:350px; height:170px; "/>
  3763. </group>
  3764. <group id="group3" visibility="hidden" style="left:455px; top:485px; width:485px; height:235px; ">
  3765. <button id="button26" class="btn4_letter2" style="left:406px; top:208px; width:56px; height:22px; ">
  3766. <caption>닫기</caption>
  3767. <script type="javascript" ev:event="DOMActivate">
  3768. <![CDATA[
  3769. group3.visible = false;
  3770. ]]>
  3771. </script>
  3772. </button>
  3773. <caption id="caption33" class="tit_2" style="left:11px; top:8px; width:113px; height:13px; ">골밀도 검사현황</caption>
  3774. <shape id="rectangle8" appearance="rectangle" style="left:2px; top:3px; width:480px; height:230px; font-weight:bold; "/>
  3775. <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; ">
  3776. <col ref="prcpcd" style="text-align:left; "/>
  3777. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3778. <col ref="rsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3779. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3780. <col ref="payflagcdnm"/>
  3781. <col ref="prcpgenrflag"/>
  3782. </datagrid>
  3783. </group>
  3784. <caption id="caption36" class="cell_1" style="left:445px; top:25px; width:31px; height:23px; font-weight:bold; text-align:center; vertical-align:middle; background-color:#ccecff; ">VIP</caption>
  3785. <caption id="cap_privacy" visibility="hidden" style="left:120px; top:55px; width:80px; height:20px; font-weight:bold; color:#000000; text-align:center; background-color:#ff0000; border-color:#000000; border-style:solid; ">사생활보호</caption>
  3786. <button id="button4" class="icon_top" visibility="hidden" style="left:1160px; top:165px; width:26px; height:19px; ">
  3787. <caption/>
  3788. <script type="javascript" ev:event="DOMActivate">
  3789. <![CDATA[
  3790. // switch1.attribute("height") = 132;
  3791. // grd_mainordlist5.attribute("height") = 123;
  3792. // grd_anoprcplist.attribute("height") = 123;
  3793. switch1.attribute("top") = 20;
  3794. switch1.attribute("height") = 356;
  3795. case1.attribute("height") = 379;
  3796. case2.attribute("height") = 379;
  3797. grd_mainordlist5.attribute("height") = 347;
  3798. grd_anoprcplist.attribute("height") = 347;
  3799. //btn_timecls.attribute("top") = 358;
  3800. cap_sleep.attribute("top") = 383;
  3801. btn_execcncl.attribute("top") = 383;
  3802. button4.attribute("top") = 383;
  3803. button3.attribute("top") = 383;
  3804. button4.visible = false;
  3805. button3.visible = true;
  3806. rectangle3.visible = false;
  3807. rectangle4.visible = false;
  3808. rectangle5.visible = false;
  3809. caption26.visible = false;
  3810. caption27.visible = false;
  3811. caption28.visible = false;
  3812. btn_patinfo.visible = false;
  3813. bool3.visible = false;
  3814. caption31.visible = false;
  3815. button28.visible = false;
  3816. ]]>
  3817. </script>
  3818. </button>
  3819. <button id="button3" class="icon_bottom" visibility="hidden" style="left:1125px; top:165px; width:26px; height:19px; ">
  3820. <caption/>
  3821. <script type="javascript" ev:event="DOMActivate">
  3822. <![CDATA[
  3823. // switch1.attribute("height") = 501;
  3824. // grd_mainordlist5.attribute("height") = 490;
  3825. // grd_anoprcplist.attribute("height") = 490;
  3826. switch1.attribute("top") = 216;
  3827. switch1.attribute("height") = 189;
  3828. case1.attribute("height") = 212;
  3829. case2.attribute("height") = 212;
  3830. grd_mainordlist5.attribute("height") = 179;
  3831. grd_anoprcplist.attribute("height") = 179;
  3832. //btn_timecls.attribute("top") = 236;
  3833. cap_sleep.attribute("top") = 197;
  3834. btn_execcncl.attribute("top") = 197;
  3835. button4.attribute("top") = 197;
  3836. button3.attribute("top") = 197;
  3837. button4.visible = true;
  3838. button3.visible = false;
  3839. rectangle3.visible = true;
  3840. rectangle4.visible = true;
  3841. rectangle5.visible = true;
  3842. caption26.visible = true;
  3843. caption27.visible = true;
  3844. caption28.visible = true;
  3845. btn_patinfo.visible = true;
  3846. bool3.visible = true;
  3847. caption31.visible = true;
  3848. button28.visible = true;
  3849. ]]>
  3850. </script>
  3851. </button>
  3852. <button id="btn_ctrlshow" class="btn2_letter4" style="left:1131px; top:196px; width:64px; height:19px; ">
  3853. <caption>제어내역</caption>
  3854. <script type="javascript" ev:event="DOMActivate">
  3855. <![CDATA[
  3856. if (switch1.attribute("width") == "802px") {
  3857. switch1.attribute("width") = "1195px"
  3858. grd_mainordlist5.attribute("width") = grd_anoprcplist.attribute("width") = "1193px";
  3859. line16.attribute("x2") = line17.attribute("x2") = "1193px";
  3860. } else {
  3861. grd_mainordlist5.attribute("width") = grd_anoprcplist.attribute("width") = "800px";
  3862. line16.attribute("x2") = line17.attribute("x2") = "800px";
  3863. switch1.attribute("width") = "802px"
  3864. }
  3865. ]]>
  3866. </script>
  3867. </button>
  3868. <switch id="switch1" style="left:0px; top:216px; width:802px; height:189px; ">
  3869. <case id="case1" selected="true">
  3870. <line id="line16" class="line_1" style="x1:0px; y1:1px; x2:800px; y2:1px; "/>
  3871. <bool id="bool1" ref="/root/hidden/boolcontrol/bool" style="left:4px; top:9px; width:20px; height:20px; ">
  3872. <script type="javascript" ev:event="xforms-select">
  3873. <![CDATA[
  3874. // var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + ( grd_mainordlist5.row - grd_mainordlist5.fixedRows + 1 ) + "]/rsrvflagyn");
  3875. /*
  3876. var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[rsrvflagyn='미예약']");
  3877. var node;
  3878. while( node = nodeList.nextNode() ) {
  3879. node.check.text = "true";
  3880. }
  3881. */
  3882. for (var i = 1; i < grd_mainordlist5.rows; i ++){
  3883. if (model.getValue("/root/send/data/chkflag") == "T"){
  3884. if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn") == "미예약"){
  3885. model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "true");
  3886. }
  3887. }else{
  3888. model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "true");
  3889. }
  3890. }
  3891. grd_mainordlist5.refresh();
  3892. ]]>
  3893. </script>
  3894. <script type="javascript" ev:event="xforms-deselect">
  3895. <![CDATA[
  3896. // var execprcpuniqno = model.getValue("/root/main/exculist/mainordlist5[" + ( grd_mainordlist5.row - grd_mainordlist5.fixedRows + 1 ) + "]/execprcpuniqno");
  3897. // var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[execprcpuniqno!='" + execprcpuniqno + "']");
  3898. /*
  3899. var nodeList = instance1.selectNodes("/root/main/exculist/mainordlist5[chk='true']");
  3900. var node;
  3901. while( node = nodeList.nextNode() ) {
  3902. node.check.text = "false";
  3903. }
  3904. */
  3905. for (var i = 1; i < grd_mainordlist5.rows; i ++){
  3906. if (model.getValue("/root/send/data/chkflag") == "T"){
  3907. if (model.getValue("/root/main/exculist/mainordlist5[" + i + "]/rsrvflagyn") == "미예약"){
  3908. model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "false");
  3909. }
  3910. }else{
  3911. model.setValue("/root/main/exculist/mainordlist5[" + i + "]/chk", "false");
  3912. }
  3913. }
  3914. grd_mainordlist5.refresh();
  3915. ]]>
  3916. </script>
  3917. </bool>
  3918. <datagrid id="grd_mainordlist5" nodeset="/root/main/exculist/mainordlist5" caption="^구분^수납^전화^처방일자^처방일자^진료과^처방의^지정의^I/O^급/비^검사명^수행부서^검사실^검사실^희망일자^예약시간^소요^병실^Remark^수납할금액^종료시간^검사코드^예약자^수행가능부서^prcpgenflag^prcpdd^execprcpuniqno^execprcpstatcd^prcpkindcd^excupartcd^indd^actorddd^orddrid^execrid^suppdeptcd^cnclresncd^pid^prcpdelivefact^rsrvplceflag^rsrvexcupossyn^rsrvexmptmplcd^tmpldata^rsrvflag^cretno^orddd^rsrvdt^excuroomcd^bf_srchrsrvtm^pacsnocretyn^rgstrid^orddeptcd^rsrvtmcntlyn^rsrvpsnnocntlyn^excucdrem^prcpgenrflag^pexcuroomnm^prcpexecdeptcd^eqmtifyn^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^rcptrsrvyn^prcptdayrcptyn^calcyn^gunjingubun" colsep="^" colwidth="26, 60, 47, 30, 68, 54, 70, 50, 50, 25, 54, 330, 0, 120, 100, 0, 120, 33, 58, 524, 88, 59, 100, 48, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 100" ellipsis="true" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:6px; width:800px; height:179px; ">
  3919. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  3920. <col ref="rsrvflagyn" style="font-weight:bold; text-align:center; "/>
  3921. <col ref="rcptyn" style="font-weight:bold; text-align:center; "/>
  3922. <col checkvalue="Y,N" ref="telrsrvyn" type="checkbox" visibility="hidden"/>
  3923. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  3924. <col ref="rgsttm" format="hh:nn:ss"/>
  3925. <col ref="orddepthngnm" style="text-align:center; "/>
  3926. <col ref="orddrnm" style="text-align:center; "/>
  3927. <col ref="specdrnm" style="text-align:center; "/>
  3928. <col ref="genrflag" style="text-align:center; "/>
  3929. <col ref="payflagnm" style="text-align:center; "/>
  3930. <col disabled="true" ref="prcpnm"/>
  3931. <col ref="suppdeptnm" style="text-align:center; "/>
  3932. <col ref="examroomnm" style="font-weight:bold; color:#6600cc; text-align:center; "/>
  3933. <col ref="excuroom" type="combo" visibility="hidden">
  3934. <choices>
  3935. <itemset nodeset="/root/init/cmb_info/initexecroom">
  3936. <label ref="excuroomcdnm"/>
  3937. <value ref="excuroomcdid"/>
  3938. </itemset>
  3939. </choices>
  3940. </col>
  3941. <col ref="prcphopedd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  3942. <col ref="srchrsrvtm" type="input" format="yyyy-mm-dd hh:nn" style="font-weight:bold; color:#ff0000; text-align:center; "/>
  3943. <col ref="excutm" style="text-align:center; "/>
  3944. <col ref="roomcd" visibility="hidden"/>
  3945. <col ref="rsrvrem" type="input"/>
  3946. <col ref="calcamt" style="text-align:right; "/>
  3947. <col ref="endtime" format="hh:nn" style="text-align:center; "/>
  3948. <col ref="calcscorcd" style="text-align:center; "/>
  3949. <col ref="lastupdtnm" style="text-align:right; "/>
  3950. <col ref="excuroomnm" visibility="hidden"/>
  3951. <col ref="genrflag" visibility="hidden" style="font-weight:bold; "/>
  3952. <col ref="prcpdd" visibility="hidden"/>
  3953. <col ref="execprcpuniqno" visibility="hidden"/>
  3954. <col ref="execprcpstatcd" visibility="hidden"/>
  3955. <col ref="prcpkindcd" visibility="hidden"/>
  3956. <col ref="excupartcd" visibility="hidden"/>
  3957. <col ref="indd" visibility="hidden"/>
  3958. <col ref="actorddd" visibility="hidden"/>
  3959. <col ref="orddrid" visibility="hidden"/>
  3960. <col ref="execrid" visibility="hidden"/>
  3961. <col ref="suppdeptcd" visibility="hidden"/>
  3962. <col ref="cnclrescd" visibility="hidden"/>
  3963. <col ref="pid" visibility="hidden"/>
  3964. <col ref="prcpdelivefact" visibility="hidden"/>
  3965. <col ref="rsrvplceflag" visibility="hidden"/>
  3966. <col ref="rsrvexcupossyn" visibility="hidden"/>
  3967. <col ref="rsrvexmptmplcd" visibility="hidden"/>
  3968. <col ref="tmpldata" visibility="hidden"/>
  3969. <col ref="rsrvflag" visibility="hidden"/>
  3970. <col ref="cretno" visibility="hidden"/>
  3971. <col ref="orddd" visibility="hidden"/>
  3972. <col ref="rsrvdt" visibility="hidden"/>
  3973. <col ref="excuroomcd" visibility="hidden"/>
  3974. <col ref="bf_srchrsrvtm" visibility="hidden"/>
  3975. <col ref="pacsnocretyn" visibility="hidden"/>
  3976. <col ref="rgstrid" visibility="hidden"/>
  3977. <col ref="orddeptcd" visibility="hidden"/>
  3978. <col ref="rsrvtmcntlyn" visibility="hidden"/>
  3979. <col ref="rsrvpsnnocntlyn" visibility="hidden"/>
  3980. <col ref="excucdrem" visibility="hidden"/>
  3981. <col ref="prcpgenrflag" visibility="hidden"/>
  3982. <col ref="pexcuroomnm" visibility="hidden"/>
  3983. <col ref="prcpexecdeptcd" visibility="hidden"/>
  3984. <col ref="eqmtifyn" visibility="hidden"/>
  3985. <col ref="baseexcuroomcd" visibility="hidden"/>
  3986. <col ref="glycostestyn" visibility="hidden"/>
  3987. <col ref="bonedentestyn" visibility="hidden"/>
  3988. <col ref="glycosyn" visibility="hidden"/>
  3989. <col ref="glycoscure" visibility="hidden"/>
  3990. <col ref="reqhospcd" visibility="hidden"/>
  3991. <col ref="slepyn" visibility="hidden"/>
  3992. <col ref="aftrcptinfo" visibility="hidden"/>
  3993. <col ref="rsrvtmplcd" visibility="hidden"/>
  3994. <col ref="rsrvmultitmplcd" visibility="hidden"/>
  3995. <col ref="emryn" visibility="hidden"/>
  3996. <col ref="onestop" visibility="hidden"/>
  3997. <col ref="specdrid" visibility="hidden"/>
  3998. <col ref="dschdd" visibility="hidden"/>
  3999. <col ref="basecdcnts" visibility="hidden"/>
  4000. <col ref="rcptrsrvyn" visibility="hidden"/>
  4001. <col ref="prcptdayrcptyn" visibility="hidden"/>
  4002. <col ref="calcyn" visibility="hidden"/>
  4003. <col ref="gunjingubun" visibility="hidden"/>
  4004. <script type="javascript" ev:event="onclick">
  4005. <![CDATA[
  4006. //스크롤 조작시 온클릭 이벤트 안타도록
  4007. if( isDataCell() ){
  4008. //2015/07/10 이정택 추가
  4009. if(grd_mainordlist5.row>=grd_mainordlist5.fixedRows){
  4010. var prcpgenrflag = grd_mainordlist5.valueMatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("prcpgenrflag"));
  4011. var gunjingubun = grd_mainordlist5.valueMatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("gunjingubun"));
  4012. var rcptyn = grd_mainordlist5.valueMatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("rcptyn"));
  4013. if(prcpgenrflag=="S" && rcptyn=="미수납" && gunjingubun=="G"){
  4014. messageBox("통합건진에서 처방된 검사는 수납 후 예약하셔야 합니다.", "E");
  4015. return;
  4016. }
  4017. }
  4018. //2015/07/10 이정택 추가
  4019. fGetRsrvCtrlList(grd_mainordlist5);
  4020. // Grid Colidx 정리함. 장준원 20080603
  4021. // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
  4022. var colidx = grd_mainordlist5.col;
  4023. /*
  4024. var rownum = grd_mainordlist5.row;
  4025. if(grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("calcyn"))=="N" &&
  4026. grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("genrflag"))!="S" &&
  4027. grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("aftrcptinfo"))!="V"){
  4028. messageBox("수납 후 예약하도록 안내 부탁드립니다.", "E");
  4029. grd_mainordlist5.valueMatrix(rownum, grd_mainordlist5.colRef("chk"))="false";
  4030. grd_mainordlist5.refresh();
  4031. return;
  4032. }
  4033. */
  4034. //20100930 버튼으로 교체(매번메세지가나와서 불편) - 박재영
  4035. //if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem") != ""){
  4036. // //alert(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"));
  4037. // messageBox(model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/excucdrem"), "E999", "");
  4038. //}
  4039. if(grd_mainordlist5.colAttribute(colidx, "ref") != "chk" && grd_mainordlist5.colAttribute(colidx, "ref") != "telrsrvyn" && grd_mainordlist5.colAttribute(colidx, "ref") != "srchrsrvtm" && grd_mainordlist5.colAttribute(colidx, "ref") != "rsrvrem" ) {
  4040. //if(grd_mainordlist5.col != 0 && grd_mainordlist5.col != 10 && grd_mainordlist5.col != 13 ) {
  4041. // 예약 Comment 복사
  4042. model.setValue("/root/hidden/rsrvrem", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/rsrvrem"));
  4043. var schk = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk");
  4044. var sonestop = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/onestop");
  4045. var sprcpdd = model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/prcpdd");
  4046. if (schk == "true") {
  4047. //20100527 선택한 row가 원스탑이면 같은 prcpdd인 오더는 같이 True or false가 된다.(묶음)
  4048. if(sonestop == "H"){
  4049. for (var i = 1; i < grd_mainordlist5.rows ; i++) {
  4050. var oprcpdd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd");
  4051. var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
  4052. //if(sprcpdd == oprcpdd && sonestop == oonestop){
  4053. model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
  4054. //}
  4055. }
  4056. }else{
  4057. //20100527 선택한 row가 원스탑이 아니고 원스탑오더가 있으면 원스탑은 False가 된다.
  4058. for (var i = 1; i < grd_mainordlist5.rows ; i++) {
  4059. var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
  4060. if(oonestop == "H"){
  4061. model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
  4062. }
  4063. }
  4064. //2010.12.08 체크된 처방은 체크를 풀지않는다. 직접chk체크해서 체크해제(주석처리) - 박재영
  4065. //model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "false");
  4066. }
  4067. } else {
  4068. //20100527 선택한 row가 원스탑이면 같은 prcpdd인 오더는 같이 True or false가 된다.(묶음)
  4069. if(sonestop == "H"){
  4070. //20100527 등록된 원스탑오더와 환자의 오더가 다르면 원스탑예약못하게 함.
  4071. var cnt = model.instances(0).selectNodes( "/root/init1/onestopordinfo/codelist/item" ).length;
  4072. var ordcnt = 0;
  4073. for(var j = 1; j < cnt +1 ; j++){
  4074. var cdid = model.getValue("/root/init1/onestopordinfo/codelist/item["+j+"]/cdid");
  4075. for (var i = 1; i < grd_mainordlist5.rows ; i++) {
  4076. var oprcpdd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/prcpdd");
  4077. var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
  4078. var ocalcscorcd = model.getValue("/root/main/exculist/mainordlist5["+i+"]/calcscorcd ");
  4079. if(sprcpdd == oprcpdd && sonestop == oonestop && cdid == ocalcscorcd){
  4080. model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "true");
  4081. ordcnt ++;
  4082. }else if(oonestop != "H"){
  4083. model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
  4084. }
  4085. }
  4086. }
  4087. //20100527 등록된 원스탑오더와 환자의 오더가 다르면 원스탑예약못하게 함.
  4088. if(ordcnt != cnt ){
  4089. messageBox(cdid + " 처방코드가 없어 예약 ", "E001");
  4090. for (var k = 1; k < grd_mainordlist5.rows ; k++) {
  4091. model.setValue("/root/main/exculist/mainordlist5["+k+"]/chk", "false");
  4092. }
  4093. return;
  4094. }
  4095. }else{
  4096. //20100527 선택한 row가 원스탑이 아니고 원스탑오더가 있으면 원스탑은 False가 된다.
  4097. for (var i = 1; i < grd_mainordlist5.rows ; i++) {
  4098. var oonestop = model.getValue("/root/main/exculist/mainordlist5["+i+"]/onestop");
  4099. if(oonestop == "H"){
  4100. model.setValue("/root/main/exculist/mainordlist5["+i+"]/chk", "false");
  4101. }
  4102. }
  4103. model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "true");
  4104. }
  4105. }
  4106. /***********start ****/
  4107. //앞처방과 비교하여 check 없애기
  4108. //20130320 권영애
  4109. var c_row = grd_mainordlist5.row;
  4110. var c_excuroomnm = model.getValue("/root/main/exculist/mainordlist5["+c_row+"]/examroomnm");
  4111. var b_row = model.getValue("/root/hidden/beforeorder/brow");
  4112. var b_excuroomnm = model.getValue("/root/hidden/beforeorder/excuroomnm");
  4113. //처음
  4114. if (b_row =="") {
  4115. model.setValue("/root/hidden/beforeorder/brow", c_row);
  4116. model.setValue("/root/hidden/beforeorder/excuroomnm", c_excuroomnm );
  4117. }else{
  4118. if (c_excuroomnm != b_excuroomnm ) {
  4119. //alert("b_row = " + b_row);
  4120. model.setValue("/root/hidden/beforeorder/brow", c_row);
  4121. model.setValue("/root/hidden/beforeorder/excuroomnm", c_excuroomnm );
  4122. model.setValue("/root/main/exculist/mainordlist5[" + b_row + "]/chk", "false");
  4123. }
  4124. }
  4125. /***end ******************/
  4126. grd_mainordlist5.refresh();
  4127. // 달력에 처음 로딩시 color값 안들어 가기 위해
  4128. model.setValue("/root/hidden/grdcellcolor/color","");
  4129. //tar_prcpremfact.value = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact");
  4130. model.setValue("/root/main/comment1/prcpcmt", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact"));
  4131. // model.setValue("/root/main/comment1/prcpcmt",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/prcpdelivefact"));
  4132. model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/suppdeptcd"));
  4133. model.removeNodeset("/root/main/orddeptinfo/orddeptlist");
  4134. model.removeNodeset("/root/main/rsrvposstmlist/deptmemo");
  4135. grd_orddept.refresh();
  4136. model.removeNodeset("/root/main/rsrvposstmlist/rsrvposstm");
  4137. model.removeNodeset("/root/main/rsrvposstmlist/rsrvlist");
  4138. grd_rsrvposstm.refresh();
  4139. //수행부서 리스트 담기
  4140. //var excuroomnm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomnm");
  4141. model.setValue("/root/send/data/excuroomnm", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomnm"));
  4142. /*
  4143. var str = excuroomnm.split("^");
  4144. var row = 1;
  4145. for(var i =0 ; i < str.length ; i++ ) {
  4146. grd_orddept.addRow(false);
  4147. var aa = str[i];
  4148. model.setValue("/root/main/orddeptinfo/orddeptlist["+row+"]/orddeptcd",aa.getTrim());
  4149. row++ ;
  4150. }
  4151. grd_orddept.refresh();
  4152. if(model.getValue("/root/main/orddeptinfo/orddeptlist["+grd_orddept.bottomRow+"]/orddeptcd") == "")
  4153. {
  4154. grd_orddept.deleteItem(grd_orddept.bottomRow);
  4155. }
  4156. model.setValue("/root/send/data/excuroomcd",str[0]);
  4157. */
  4158. model.setValue("/root/send/data/excuroomcd", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom"));
  4159. if (model.getValue("/root/send/data/chkflag") == "A" || model.getValue("/root/send/data/chkflag") == "T" || model.getValue("/root/send/data/chkflag") == "S"){
  4160. // 20090407, 장준원, 처방내역선택시 기본수행부서를 보이게금 한다.
  4161. //20100527 원스탑환자이면 A902,A903의값을 excuroomcd,excuroomnm에 넣는다.
  4162. //수행부서가 원스탑검사실만 조회된다.
  4163. if(sonestop == "H"){
  4164. var gexcuroomcd = model.getValue("/root/init1/onestopsuppdeptcd/deptinfo/A902["+2+"]/cdid");
  4165. var gexcuroomnm = model.getValue("/root/init1/onestopexcuroom/roominfo/A903["+2+"]/cdid");
  4166. model.setValue("/root/send/globalinstance/instance1", gexcuroomcd);
  4167. model.setValue("/root/send/data/excuroomcd", gexcuroomcd);
  4168. model.setValue("/root/send/data/excuroomnm", gexcuroomnm);
  4169. }else{
  4170. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/suppdeptcd"));
  4171. }
  4172. submit("TRAEA02017", false);
  4173. submit("TRAEA02016");
  4174. model.makeNode("/root/main/orddeptinfo/orddeptlist");
  4175. copyNodesetType("/root/main/orddeptinfo/orddeptlist", "/root/init/curerprescondlist2/orddeptlist", "replace");
  4176. grd_orddept.refresh();
  4177. /*
  4178. return;
  4179. }else{
  4180. initCalendar();
  4181. setCurrentDate();
  4182. model.makeNode("/root/main/orddeptinfo/orddeptlist");
  4183. copyNodesetType("/root/main/orddeptinfo/orddeptlist", "/root/init/curerprescondlist/orddeptlist", "replace");
  4184. grd_orddept.refresh();
  4185. */
  4186. }
  4187. model.setValue("/root/send/data/excuroomnm", "");
  4188. if (model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn") == "예약"){
  4189. //model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_mainordlist5.labelmatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("excuroom")));
  4190. }else{
  4191. var iname = grd_mainordlist5.labelmatrix(grd_mainordlist5.row, grd_mainordlist5.colRef("excuroom"));
  4192. if (iname == ""){
  4193. iname = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/orddrnm");
  4194. }
  4195. if (instance1.selectSingleNode("/root/init/cmb_info/initexecroom[excuroomcdnm='" + iname + "']") == null){
  4196. var icode = "";
  4197. }else{
  4198. var icode = instance1.selectSingleNode("/root/init/cmb_info/initexecroom[excuroomcdnm='" + iname + "']").excuroomcdid.nodeValue;
  4199. }
  4200. var irow = grd_orddept.findRow(icode, 1, 0, false, true);
  4201. if (irow > 0){
  4202. grd_orddept.row = irow;
  4203. grd_orddept.topRow = irow;
  4204. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd", icode);
  4205. model.makeValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_orddept.labelmatrix(irow, 0));
  4206. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/pexcuroomnm",grd_orddept.labelmatrix(irow, 0));
  4207. model.refresh();
  4208. }else{
  4209. var sbaseexcuroomcd = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/baseexcuroomcd");
  4210. if (sbaseexcuroomcd != ""){
  4211. var irow1 = grd_orddept.findRow(sbaseexcuroomcd, 1, 0, false, true);
  4212. if (irow1 > 0){
  4213. grd_orddept.row = irow1;
  4214. grd_orddept.topRow = irow1;
  4215. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd", sbaseexcuroomcd);
  4216. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_orddept.labelmatrix(irow1, 0));
  4217. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/pexcuroomnm",grd_orddept.labelmatrix(irow1, 0));
  4218. model.refresh();
  4219. }
  4220. }
  4221. }
  4222. }
  4223. if (grd_mainordlist5.valueMatrix(grd_mainordlist5.row, 0) == "true" && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvplceflag") !="1") {
  4224. if (model.getValue("/root/send/data/chkflag") == "T"){
  4225. messageBox("통합예약실에서 예약", "E001");
  4226. model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk", "false");
  4227. }
  4228. } else {
  4229. if (model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvflagyn") == "예약"){
  4230. grd_rsrvtemp.addRow();
  4231. model.setValue("/root/hidden/beforersrvtm/rsrvdtlist["+grd_rsrvtemp.bottomRow+"]/before",model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm"));
  4232. }
  4233. }
  4234. var chkflag = model.getValue("/root/send/data/chkflag");
  4235. if (chkflag == "T") {
  4236. fTopInfo();
  4237. }
  4238. //처방선택시 자동으로 달력에서 오늘날짜 onclick 이벤트 처리
  4239. //getRsrvPossTm(grd_calendar);
  4240. }
  4241. if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/chk") == "true" && colidx == 8){
  4242. //grd_mainordlist5.rowstyle(i, "data", "background-color") = "#ece1ec";
  4243. grd_mainordlist5.rowstyle(grd_mainordlist5.row, "data", "background-color") = "#f4d2fc";
  4244. if (model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row + "]/glycostestyn") == "Y"){
  4245. model.removeNodeset("/root/hidden/popup/rsrvaddinfo");
  4246. model.removeNodeset("/root/main/subordlist/subordlist1");
  4247. model.makeValue("/root/hidden/popup/rsrvaddinfo/glycosyn", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycosyn"));
  4248. model.makeValue("/root/hidden/popup/rsrvaddinfo/glycoscure", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycoscure"));
  4249. model.makeValue("/root/hidden/popup/rsrvaddinfo/reqhospcd", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/reqhospcd"));
  4250. model.makeValue("/root/hidden/popup/rsrvaddinfo/rsrvrem", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/rsrvrem"));
  4251. model.makeValue("/root/hidden/popup/rsrvaddinfo/phone", model.getValue("/root/main/exculist/patinfolist/hometel"));
  4252. model.makeValue("/root/hidden/popup/rsrvaddinfo/rownum", 1);
  4253. model.makeValue("/root/hidden/popup/rsrvaddinfo/srchrsrvtm", model.getValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/srchrsrvtm"));
  4254. modal("SPAEA05000", "", "200", "200", "SPAEA05000","/root/hidden/popup/rsrvaddinfo","/root/hidden");
  4255. var glycosyn = model.getValue("/root/main/subordlist/subordlist1["+ 1 +"]/glycosyn");
  4256. if (glycosyn == "") {
  4257. //messageBox("PET-CT실 예약인 경우 추가 정보는","I003");
  4258. messageBox("해당 처방코드는 당뇨유무 체크가 필수 항목입니다", "E999", "");
  4259. return;
  4260. }
  4261. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycosyn", model.getValue("/root/main/subordlist/subordlist1/glycosyn"));
  4262. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/glycoscure", model.getValue("/root/main/subordlist/subordlist1/glycoscure"));
  4263. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/reqhospcd", model.getValue("/root/main/subordlist/subordlist1/reqhospcd"));
  4264. model.setValue("/root/main/exculist/mainordlist5["+ grd_mainordlist5.row +"]/rsrvrem", model.getValue("/root/main/subordlist/subordlist1/rsrvrem"));
  4265. model.refresh();
  4266. }
  4267. }else{
  4268. grd_mainordlist5.rowstyle(grd_mainordlist5.row, "data", "background-color") = "#ffffff";
  4269. }
  4270. }
  4271. ]]>
  4272. </script>
  4273. <script type="javascript" ev:event="onendedit">
  4274. <![CDATA[
  4275. // Grid Colidx 정리함. 장준원 20080603
  4276. // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
  4277. var colidx = grd_mainordlist5.col;
  4278. //예약시간 수정후
  4279. if(grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm") {
  4280. // if(grd_mainordlist5.col == "10") {
  4281. var srchrsrvtm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm");
  4282. var rsrvtm = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/rsrvdt");
  4283. var term = model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excutm");
  4284. var posstm ="";
  4285. //수기로 입력시 과거시간 체크
  4286. if( srchrsrvtm < getCurrentDate().substr(0,8) + getCurrentTime().substr(0,4) ) {
  4287. messageBox("예약시간이 과거시간", "E008");
  4288. return ;
  4289. }
  4290. //수기로 입력시 미래일자 체크
  4291. /*
  4292. if( srchrsrvtm.substr(0,8) != rsrvtm.substr(0,8) ) {
  4293. messageBox("수정일자와 선택일자가", "E004");
  4294. return ;
  4295. }
  4296. */
  4297. else {
  4298. for( var i = 1 ; i < grd_rsrvlist.rows ; i++ ) {
  4299. var min = model.getValue("/root/main/rsrvposstmlist/rsrvlist["+i+"]/srchrsrvtm");
  4300. if(srchrsrvtm.substr(8,4) > min.substr(0,4) ) {
  4301. posstm = min.substr(0,4);
  4302. }
  4303. else {
  4304. posstm = min.substr(0,4);
  4305. break;
  4306. }
  4307. }
  4308. var dateObj = new Date();
  4309. var dateObj2 = new Date();
  4310. // alert("posstm : "+posstm);
  4311. if(posstm > srchrsrvtm.substr(8,4) ) {
  4312. dateObj.setHours(posstm.substr(0,2)- srchrsrvtm.substr(8,2), posstm.substr(2,2)- srchrsrvtm.substr(10,2));
  4313. dateObj2.setHours(00,term);
  4314. // alert("후 : " + dateObj.getHours()+ "시" + dateObj.getMinutes() + "분");
  4315. // alert("후 : " + dateObj2.getHours()+ "시" + dateObj2.getMinutes() + "분");
  4316. // alert(dateObj.getHours()+ "" + dateObj.getMinutes() );
  4317. if( dateObj.setHours(posstm.substr(0,2)- srchrsrvtm.substr(8,2), posstm.substr(2,2)- srchrsrvtm.substr(10,2)) < dateObj2.setHours(00,term)) {
  4318. messageBox("소요시간 초과로 예약", "E001");
  4319. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/srchrsrvtm","-");
  4320. return;
  4321. }
  4322. model.refresh();
  4323. }
  4324. }
  4325. DateChng();
  4326. }
  4327. ]]>
  4328. </script>
  4329. <script type="javascript" ev:event="xforms-value-changed">
  4330. <![CDATA[
  4331. // Grid Colidx 정리함. 장준원 20080603
  4332. // 기존 grd_mainordlist5.col != 0 ==> grd_mainordlist5.colAttribute(colidx, "ref") == "chk" 로 변경처리함.
  4333. var colidx = grd_mainordlist5.col;
  4334. //예약시간이 변경되거나 Remark가 변경된 경우
  4335. if(grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm" || grd_mainordlist5.colAttribute(colidx, "ref") == "rsrvrem"){
  4336. // if(grd_mainordlist5.col == 10 || grd_mainordlist5.col == 13){
  4337. //if (grd_mainordlist5.col == 10 && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom") == ""){
  4338. if (grd_mainordlist5.colAttribute(colidx, "ref") == "srchrsrvtm" && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm") == ""){
  4339. // if (grd_mainordlist5.col == 10 && model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm") == ""){
  4340. messageBox("미예약된 항목의 예약시간 수정을 위해서 수행부서 선택은 필수", "E008", "수행부서를 선택해 주세요");
  4341. return false;
  4342. }
  4343. if (model.getValue("/root/hidden/orddeptcheck") != "check"){
  4344. //model.alert("aaa");
  4345. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/examroomnm",grd_mainordlist5.labelmatrix(grd_mainordlist5.row,8));
  4346. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroomcd", model.getValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/excuroom"));
  4347. }
  4348. model.setValue("/root/hidden/orddeptcheck","");
  4349. model.setValue("/root/main/exculist/mainordlist5["+grd_mainordlist5.row+"]/chk" ,"true");
  4350. model.refresh();
  4351. }
  4352. ]]>
  4353. </script>
  4354. <script type="javascript" ev:event="DOMFocusOut">
  4355. <![CDATA[
  4356. initPopupMenu();
  4357. ]]>
  4358. </script>
  4359. <script type="javascript" ev:event="onmousedown">
  4360. <![CDATA[
  4361. setPopupMenu("grd_mainordlist5", false, "/root/hidden1/popupmenu/menu", "label", "func");
  4362. ]]>
  4363. </script>
  4364. <script type="javascript" ev:event="onaftersort">
  4365. <![CDATA[
  4366. grd_mainordlist5.gridToInstance();
  4367. ]]>
  4368. </script>
  4369. <script type="javascript" ev:event="onbuttonclick">
  4370. <![CDATA[
  4371. if(grd_mainordlist5.colAttribute(colidx, "ref") == "rsrvtmplcd")
  4372. {
  4373. model.makeValue("/root/hidden/checkseq","01")
  4374. ;model.makeValue("/root/hidden/calcscorcd",model.getValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.row +"]/calcscorcd"))
  4375. window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
  4376. }
  4377. ]]>
  4378. </script>
  4379. <script type="javascript" ev:event="onmouseup">
  4380. <![CDATA[
  4381. var colidx = grd_mainordlist5.col;
  4382. if (isDataCell()) {
  4383. if(grd_mainordlist5.colAttribute(colidx, "ref") != "chk" && grd_mainordlist5.colAttribute(colidx, "ref") != "telrsrvyn" && grd_mainordlist5.colAttribute(colidx, "ref") != "srchrsrvtm" && grd_mainordlist5.colAttribute(colidx, "ref") != "rsrvrem" ) {
  4384. for ( var i =0 ; i< grd_mainordlist5.selectedRows;i++){
  4385. if(grd_mainordlist5.valueMatrix(grd_mainordlist5.selectedRow(i), grd_mainordlist5.colRef("calcyn"))=="N" &&
  4386. grd_mainordlist5.valueMatrix(grd_mainordlist5.selectedRow(i), grd_mainordlist5.colRef("genrflag"))!="S" &&
  4387. grd_mainordlist5.valueMatrix(grd_mainordlist5.selectedRow(i), grd_mainordlist5.colRef("aftrcptinfo"))!="V" ){
  4388. model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.selectedRow(i) + "]/chk", "false");
  4389. }else{
  4390. model.setValue("/root/main/exculist/mainordlist5[" + grd_mainordlist5.selectedRow(i) + "]/chk", "true");
  4391. }
  4392. }
  4393. }
  4394. }
  4395. ]]>
  4396. </script>
  4397. </datagrid>
  4398. </case>
  4399. <case id="case2">
  4400. <line id="line17" class="line_1" style="x1:0px; y1:1px; x2:800px; y2:1px; "/>
  4401. <datagrid id="grd_anoprcplist" nodeset="/root/main/exculist/subordlist2" caption="구분^수납^처방일자^진료과^처방의^처방상태^검사코드^검사명^검사실^희망일자^예약시간^실시시간^소요시간^종료시간^Remark^prcpgenflag^prcpdd^execprcpuniqno^execprcpstatcd^prcpkindcd^excupartcd^indd^actorddd^orddrid^execrid^suppdeptcd^cnclresncd^pid^prcpdelivefact^rsrvplceflag^rsrvexcupossyn^rsrvexmptmplcd^tmpldata^rsrvflag^cretno^orddd" colsep="^" colwidth="49, 53, 77, 89, 54, 100, 73, 280, 100, 77, 109, 100, 60, 58, 720" explorerbar="sortshow" frozencols="7" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:6px; width:800px; height:179px; ">
  4402. <col ref="rsrvflagyn" visibility="hidden"/>
  4403. <col ref="rcptyn"/>
  4404. <col ref="prcpdd" format="yyyy-mm-dd"/>
  4405. <col ref="orddepthngnm"/>
  4406. <col ref="orddrnm"/>
  4407. <col disabled="true" ref="execprcpstatcd" type="combo">
  4408. <choices>
  4409. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  4410. <label ref="cdnm"/>
  4411. <value ref="cdid"/>
  4412. </itemset>
  4413. </choices>
  4414. </col>
  4415. <col ref="calcscorcd"/>
  4416. <col disabled="true" ref="prcpnm"/>
  4417. <col disabled="true" ref="excuroom"/>
  4418. <col ref="prcphopedd" format="yyyy-mm-dd hh:nn"/>
  4419. <col ref="srchrsrvtm" format="yyyy-mm-dd hh:nn"/>
  4420. <col ref="exectm" format="yyyy-mm-dd hh:nn"/>
  4421. <col ref="excutm" style="text-align:center; "/>
  4422. <col ref="endtime" format="hh:nn" style="text-align:center; "/>
  4423. <col ref="rsrvrem"/>
  4424. <script type="javascript" ev:event="onaftersort">
  4425. <![CDATA[
  4426. grd_anoprcplist.gridToInstance();
  4427. ]]>
  4428. </script>
  4429. </datagrid>
  4430. </case>
  4431. </switch>
  4432. <group id="grp_memo" visibility="hidden" style="left:685px; top:65px; width:505px; height:375px; ">
  4433. <shape id="rectangle12" appearance="rectangle" style="left:2px; top:2px; width:503px; height:418px; "/>
  4434. <button id="button38" class="btn4_letter2" style="left:435px; top:395px; width:56px; height:22px; ">
  4435. <caption>닫기</caption>
  4436. <script type="javascript" ev:event="DOMActivate">
  4437. <![CDATA[
  4438. grp_memo.visible = false;
  4439. ]]>
  4440. </script>
  4441. </button>
  4442. <caption id="caption41" class="tit_2" style="left:10px; top:8px; width:60px; height:13px; ">메모</caption>
  4443. <button id="btn_savememo" class="btn4_letter2" style="left:375px; top:395px; width:56px; height:22px; ">
  4444. <caption>저장</caption>
  4445. <script type="javascript" ev:event="DOMActivate">
  4446. <![CDATA[
  4447. var memorem = model.getValue("/root/main/deptmemolist/deptmemo/memorem");
  4448. model.setValue("/root/send3/memorem", memorem);
  4449. submit("TXAEB00501");
  4450. ]]>
  4451. </script>
  4452. </button>
  4453. <textarea id="textarea2" ref="/root/main/deptmemolist/deptmemo/memorem" style="left:10px; top:25px; width:485px; height:365px; "/>
  4454. </group>
  4455. </xhtml:body>
  4456. </xhtml:html>