SMPMI00200_입원예약관리.xfdl 221 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI00200" position="absolute 0 0 1213 805" titletext="입원예약관리" class="line_3" style="border:2 none #808080ff ;" onload="SMPMI00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="입원예약관리" position="absolute 0 0 125 26" id="caption6" class="tit_1"/>
  8. <Shape position="absolute 0 765 1194 771" linetype="horizontal" id="line47" class="line_6"/>
  9. <Button position="absolute 905 772 961 794" id="btn_insert" class="btn4" text="예약" style="font:dotum,9,bold;" onclick="btn_insert_onclick"/>
  10. <Button position="absolute 963 772 1043 794" id="btn_update" class="btn4" text="예약변경" style="font:dotum,9,bold;" onclick="btn_update_onclick"/>
  11. <Button position="absolute 1127 772 1195 794" id="btn_clear" class="btn4" text="초기화" style="font:dotum,9,bold;" onclick="btn_clear_onclick"/>
  12. <Button position="absolute 799 772 903 794" id="button2" class="btn4" text="약정서재출력" style="font:dotum,9,bold;" onclick="button2_onclick"/>
  13. <Button position="absolute 1045 772 1125 794" id="btn_cncl" class="btn4" text="예약취소" style="font:dotum,9,bold;" onclick="btn_cncl_onclick"/>
  14. <Button position="absolute 2 772 82 794" id="button23" text="선택신청" style="font:dotum,9,bold;" onclick="button23_onclick" class="btn3"/>
  15. <Shape position="absolute 0 226 700 242" linetype="vertical" id="line4" class="line_2"/>
  16. <Shape position="absolute 0 188 1194 194" linetype="vertical" id="line3" class="line_2"/>
  17. <Shape position="absolute 0 564 1194 570" linetype="horizontal" id="line10" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  18. <Static text="입원예약내역" position="absolute 5 546 110 562" id="caption21" class="tit_2"/>
  19. <Static text="입원결정서" position="absolute 5 303 116 319" id="caption36" class="tit_2"/>
  20. <Static text="인적사항" position="absolute 5 28 116 44" id="caption75" class="tit_2"/>
  21. <Static text="입원예약상세내역" position="absolute 5 105 149 122" id="caption78" class="tit_2"/>
  22. <Shape position="absolute 0 97 1194 103" linetype="horizontal" id="line20" class="line_1"/>
  23. <Shape position="absolute 0 254 1194 260" linetype="horizontal" id="line28" class="line_1"/>
  24. <Static text="VIP" position="absolute 415 75 447 98" align="align:center middle;" id="caption82" class="cell_1"/>
  25. <Edit readonly="true" position="absolute 933 51 1003 70" id="output1" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
  26. <Edit readonly="true" position="absolute 351 129 421 148" id="output44" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  27. <Edit readonly="true" position="absolute 424 129 468 148" id="output45" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  28. <Static text="직원소개/추천인" position="absolute 698 49 796 72" align="align:center middle;" id="caption81" class="cell_1" style="font:Dotum,8;"/>
  29. <Static text="연락처/휴대폰" position="absolute 415 49 505 72" align="align:center middle;" id="caption83" class="cell_1"/>
  30. <Static text="우편번호" position="absolute 499 75 559 98" align="align:center middle;" id="caption84" class="cell_1"/>
  31. <Static text="환자번호" position="absolute 0 49 77 72" align="align:center middle;" id="caption85" class="cell_1"/>
  32. <Static text="주민번호" position="absolute 194 49 271 72" align="align:center middle;" id="caption86" class="cell_1"/>
  33. <Static text="성명" position="absolute 0 75 77 98" align="align:center middle;" id="caption77" class="cell_1"/>
  34. <Static text="하위주소" position="absolute 871 75 947 98" align="align:center middle;" id="caption79" class="cell_1"/>
  35. <Static text="생년월일" position="absolute 194 75 271 98" align="align:center middle;" id="caption80" class="cell_1"/>
  36. <Static text="입원예약병실형태" position="absolute 697 179 802 202" align="align:center middle;" id="caption102" class="cell_1" style="font:Dotum,8;"/>
  37. <Static text="입원진료과" position="absolute 471 127 561 150" align="align:center middle;" id="caption92" class="cell_1"/>
  38. <Static text="입원희망일[의사]" position="absolute 947 127 1052 150" align="align:center middle;" id="caption103" class="cell_1" style="font:Dotum,8;"/>
  39. <Static text="수술예정일" position="absolute 252 153 348 176" align="align:center middle;" id="caption93" class="cell_1"/>
  40. <Static text="병실등급TO" position="absolute 947 153 1052 176" align="align:center middle;" id="caption104" class="cell_1"/>
  41. <Static text="최종수정일시" position="absolute 252 232 348 255" align="align:center middle;" id="caption94" class="cell_1"/>
  42. <Static text="센터세부병동" position="absolute 252 179 348 202" align="align:center middle;" id="caption95" class="cell_1"/>
  43. <Static text="입원일자/시간" position="absolute 252 127 348 150" align="align:center middle;" id="caption96" class="cell_1"/>
  44. <Static text="병실등급FROM" position="absolute 697 153 802 176" align="align:center middle;" id="caption97" class="cell_1"/>
  45. <Static text="DRG/O2/Suc" position="absolute 471 206 561 229" align="align:center middle;" id="caption98" class="cell_1"/>
  46. <Static text="입원희망일[환자]" position="absolute 0 153 105 176" align="align:center middle;" id="caption87" class="cell_1" style="font:Dotum,8;"/>
  47. <Static text="지시의사/일자" position="absolute 0 127 105 150" align="align:center middle;" id="caption76" class="cell_1"/>
  48. <Static text="격리실여부" position="absolute 252 206 348 229" align="align:center middle;" id="caption99" class="cell_1"/>
  49. <Static text="접수일자/시간" position="absolute 0 232 105 255" align="align:center middle;" id="caption88" class="cell_1"/>
  50. <Static text="병동형태" position="absolute 0 179 105 202" align="align:center middle;" id="caption89" class="cell_1"/>
  51. <Static text="입원담당교수" position="absolute 697 127 802 150" align="align:center middle;" id="caption100" class="cell_1"/>
  52. <Static text="희망병동" position="absolute 471 153 561 176" align="align:center middle;" id="caption90" class="cell_1"/>
  53. <Static text="예약우선순위" position="absolute 471 232 561 255" align="align:center middle;" id="caption101" class="cell_1"/>
  54. <Static text="BMT/이식여부" position="absolute 471 179 561 202" align="align:center middle;" id="caption91" class="cell_1" style="font:Dotum,8;"/>
  55. <Edit position="absolute 80 51 172 70" id="ipt_pid" class="input_essential" taborder="1" onkeydown="ipt_pid_onkeydown"/>
  56. <Edit readonly="true" position="absolute 349 77 379 96" align="align:center middle;" id="opt_brthmm" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
  57. <Edit readonly="true" position="absolute 382 77 412 96" align="align:center middle;" id="opt_brthdd" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
  58. <Grid position="absolute 0 568 1194 765" id="grd_inhprsspec" class="datagrid2" binddataset="ds_main_list2_grdinhprsspec" oncelldblclick="grd_inhprsspec_oncelldblclick">
  59. <Formats>
  60. <Format id="default">
  61. <Columns>
  62. <Column size="25"/>
  63. <Column size="67"/>
  64. <Column size="58"/>
  65. <Column size="36"/>
  66. <Column size="70"/>
  67. <Column size="125"/>
  68. <Column size="0"/>
  69. <Column size="37"/>
  70. <Column size="93"/>
  71. <Column size="91"/>
  72. <Column size="85"/>
  73. <Column size="81"/>
  74. <Column size="54"/>
  75. <Column size="57"/>
  76. <Column size="88"/>
  77. <Column size="90"/>
  78. <Column size="86"/>
  79. <Column size="79"/>
  80. <Column size="82"/>
  81. <Column size="117"/>
  82. <Column size="111"/>
  83. <Column size="80"/>
  84. <Column size="64"/>
  85. <Column size="85"/>
  86. <Column size="85"/>
  87. <Column size="45"/>
  88. <Column size="50"/>
  89. <Column size="50"/>
  90. <Column size="50"/>
  91. <Column size="50"/>
  92. <Column size="66"/>
  93. <Column size="200"/>
  94. <Column size="200"/>
  95. <Column size="100"/>
  96. <Column size="100"/>
  97. <Column size="100"/>
  98. <Column size="100"/>
  99. <Column size="0"/>
  100. <Column size="0"/>
  101. <Column size="0"/>
  102. <Column size="0"/>
  103. </Columns>
  104. <Rows>
  105. <Row size="30" band="head"/>
  106. <Row size="24"/>
  107. </Rows>
  108. <Band id="head">
  109. <Cell/>
  110. <Cell col="1" text="환자번호"/>
  111. <Cell col="2" text="환자이름"/>
  112. <Cell col="3" text="성별"/>
  113. <Cell col="4" text="접수일자"/>
  114. <Cell col="5" text="진료과"/>
  115. <Cell col="6" text="번호"/>
  116. <Cell col="7" text="시간"/>
  117. <Cell col="8" text="환자유형"/>
  118. <Cell col="9" text="지시의사"/>
  119. <Cell col="10" text="지시일자"/>
  120. <Cell col="11" text="담당교수"/>
  121. <Cell col="12" text="우선순위"/>
  122. <Cell col="13" text="대기일수"/>
  123. <Cell col="14" text="수술예정일"/>
  124. <Cell col="15" text="환자희망입원일"/>
  125. <Cell col="16" text="예상입원기간"/>
  126. <Cell col="17" text="희망입원일"/>
  127. <Cell col="18" text="희망병동"/>
  128. <Cell col="19" text="희망병실등급FROM"/>
  129. <Cell col="20" text="희망병실등급TO"/>
  130. <Cell col="21" text="배정병동"/>
  131. <Cell col="22" text="배정병실"/>
  132. <Cell col="23" text="배정병실등급"/>
  133. <Cell col="24" text="배정병실형태"/>
  134. <Cell col="25" text="cp여부"/>
  135. <Cell col="26" text="DRG여부" wordwrap="char"/>
  136. <Cell col="27" text="응급여부"/>
  137. <Cell col="28" text="BMT여부" wordwrap="char"/>
  138. <Cell col="29" text="격리실여부" wordwrap="char"/>
  139. <Cell col="30" text="예약병실&#10;형태"/>
  140. <Cell col="31" text="진료 참고사항"/>
  141. <Cell col="32" text="원무 참고사항"/>
  142. <Cell col="33" text="임상시험접수"/>
  143. <Cell col="34" text="임상시험번호&#10;(과제번호)"/>
  144. <Cell col="35" text="병동형태"/>
  145. <Cell col="36" text="센터세부병동"/>
  146. <Cell col="37" text="세부진료과"/>
  147. <Cell col="38" text="Ocrtag"/>
  148. <Cell col="39" text="센터코드"/>
  149. <Cell col="40" text="협력팀코드"/>
  150. </Band>
  151. <Band id="body">
  152. <Cell celltype="head"/>
  153. <Cell col="1" style="align:center middle;" text="bind:pid"/>
  154. <Cell col="2" style="align:center middle;" text="bind:hngnm"/>
  155. <Cell col="3" style="align:center middle;" text="bind:sex"/>
  156. <Cell col="4" style="align:center middle;" text="bind:inrsrvacptdd" mask="expr:utlf_isNull(inrsrvacptdd)?'':'####-##-##'"/>
  157. <Cell col="5" style="align:center middle;" text="bind:orddeptcd_nm" enable="false"/>
  158. <Cell col="6" text="bind:inrsrvacptseqno"/>
  159. <Cell col="7" text="bind:inrsrvacpttm" mask="@@:@@"/>
  160. <Cell col="8" displaytype="combo" style="align:center middle;" text="bind:insukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  161. <Cell col="9" style="align:center middle;" text="bind:indirecdrid_nm" enable="false"/>
  162. <Cell col="10" style="align:center middle;" text="bind:indirecdd" mask="expr:utlf_isNull(indirecdd)?'':'####-##-##'" enable="false"/>
  163. <Cell col="11" style="align:center middle;" text="bind:orddrid_nm" enable="false"/>
  164. <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:inrsrvgrad" combodataset="ds_static_inrsrvgrad" combocodecol="value" combodatacol="label" enable="false"/>
  165. <Cell col="13" style="align:right middle;" text="bind:delay"/>
  166. <Cell col="14" displaytype="date" style="align:center middle;" text="bind:scheopdd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
  167. <Cell col="15" displaytype="date" style="align:center middle;" text="bind:patinhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
  168. <Cell col="16" text="bind:fcstinterm" enable="false"/>
  169. <Cell col="17" displaytype="date" style="align:center middle;" text="bind:inhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
  170. <Cell col="18" displaytype="combo" style="align:center middle;" text="bind:inhopeward" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  171. <Cell col="19" displaytype="combo" text="bind:inhoperoomgrdefrom" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  172. <Cell col="20" displaytype="combo" text="bind:inhoperoomgrdeto" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  173. <Cell col="21" displaytype="combo" text="bind:assgward" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  174. <Cell col="22" displaytype="text" edittype="text" text="bind:assgroom"/>
  175. <Cell col="23" displaytype="combo" text="bind:assgroomgrde" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  176. <Cell col="24" displaytype="combo" text="bind:assgroomtype" combodataset="ds_init_P0026list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  177. <Cell col="25" text="bind:cpyn"/>
  178. <Cell col="26" displaytype="combo" style="align:center middle;" text="bind:drgyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
  179. <Cell col="27" displaytype="combo" style="align:center middle;" text="bind:erreglyn" combodataset="ds_init_P0001list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  180. <Cell col="28" displaytype="combo" edittype="combo" text="bind:bmtyn" enable="false"/>
  181. <Cell col="29" displaytype="combo" style="align:center middle;" text="bind:isolroomyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
  182. <Cell col="30" displaytype="combo" style="align:center middle;" text="bind:specroomyn" combodataset="ds_init_P0378list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  183. <Cell col="31" displaytype="none" edittype="none" text="bind:drrem"/>
  184. <Cell col="32" displaytype="normal" edittype="none" style="align:left middle;" text="bind:inrsrvrem" enable="false"/>
  185. <Cell col="33" displaytype="combo" edittype="combo" text="bind:clincstdyacptflag" combodataset="ds_static_clincstdyacptflag" combocodecol="value" combodatacol="label"/>
  186. <Cell col="34" text="bind:clincstdyno"/>
  187. <Cell col="35" displaytype="combo" text="bind:wardtypecd" combodataset="ds_init_P0474list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  188. <Cell col="36" displaytype="combo" text="bind:specwardcd" combodataset="ds_hidden_init__wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  189. <Cell col="37" text="bind:subdeptcd"/>
  190. <Cell col="38" text="bind:ocrtag"/>
  191. <Cell col="39" text="bind:centcd"/>
  192. <Cell col="40" text="bind:coopteamcd"/>
  193. </Band>
  194. </Format>
  195. </Formats>
  196. </Grid>
  197. <Edit position="absolute 80 77 172 96" id="ipt_hngnm" class="input_essential" taborder="2" onkeydown="ipt_hngnm_onkeydown"/>
  198. <CheckBox position="absolute 799 53 868 69" id="chk_recmyn" onclick="chk_recmyn_onclick" text="직원소개" truevalue="checkbox1" falsevalue="N"/>
  199. <Edit readonly="true" position="absolute 870 51 930 70" id="opt_recmerid" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
  200. <CheckBox position="absolute 450 79 492 94" id="chk_vipyn" text="VIP" falsevalue="N" truevalue="Y"/>
  201. <MaskEdit readonly="true" position="absolute 179 129 249 148" id="opt_indirecdd" mask="@@@@-@@-@@" enable="false"/>
  202. <Calendar position="absolute 108 155 249 174" id="ipt_patinhopedd" class="input_default" onchanged="ipt_patinhopedd_onchanged" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd " value="null"/>
  203. <MaskEdit readonly="true" position="absolute 108 234 178 253" id="opt_inrsrvacptdd" mask="@@@@-@@-@@" type="string" maskchar=" "/>
  204. <MaskEdit readonly="true" position="absolute 181 234 249 253" id="opt_inrsrvacpttm" mask="@@:@@" type="string" maskchar=" "/>
  205. <Calendar position="absolute 351 155 468 174" id="ipt_scheopdd" class="input_default" enable="false"/>
  206. <MaskEdit readonly="true" position="absolute 351 234 468 253" id="opt_lastupdtdt" mask="@@@@-@@-@@ @@:@@" type="string" maskchar=" " style="align:left middle;"/>
  207. <Combo position="absolute 564 155 694 174" id="cmb_inhopeward" class="combo_default" innerdataset="@ds_hidden_init_wardcd" datacolumn="nm" codecolumn="cd"/>
  208. <Combo position="absolute 564 234 694 253" id="cmb_inrsrvgrad" class="combo_default" codecolumn="codecolumn" datacolumn="datacolumn">
  209. <Dataset id="innerdataset">
  210. <ColumnInfo>
  211. <Column id="codecolumn"/>
  212. <Column id="datacolumn"/>
  213. </ColumnInfo>
  214. <Rows>
  215. <Row>
  216. <Col id="codecolumn">-</Col>
  217. <Col id="datacolumn">-</Col>
  218. </Row>
  219. <Row>
  220. <Col id="codecolumn">1</Col>
  221. <Col id="datacolumn">상</Col>
  222. </Row>
  223. <Row>
  224. <Col id="codecolumn">2</Col>
  225. <Col id="datacolumn">중</Col>
  226. </Row>
  227. <Row>
  228. <Col id="codecolumn">3</Col>
  229. <Col id="datacolumn">하</Col>
  230. </Row>
  231. </Rows>
  232. </Dataset>
  233. </Combo>
  234. <Combo position="absolute 805 155 944 174" id="cmb_inhoperoomgrdefrom" class="combo_default" innerdataset="@ds_hidden_roomgrdelist_roomgrde" datacolumn="cdnm" codecolumn="cdid" onitemchanged="cmb_inhoperoomgrdefrom_onitemchanged"/>
  235. <Radio position="absolute 351 208 446 228" id="rdo_isolroomyn" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" rowcount="-1" style="textpadding:0 3 0 3;">
  236. <Dataset id="innerdataset">
  237. <ColumnInfo>
  238. <Column id="codecolumn"/>
  239. <Column id="datacolumn"/>
  240. </ColumnInfo>
  241. <Rows>
  242. <Row>
  243. <Col id="codecolumn">Y</Col>
  244. <Col id="datacolumn">Yes</Col>
  245. </Row>
  246. <Row>
  247. <Col id="codecolumn">N</Col>
  248. <Col id="datacolumn">No</Col>
  249. </Row>
  250. </Rows>
  251. </Dataset>
  252. </Radio>
  253. <MaskEdit readonly="true" position="absolute 1055 129 1194 148" id="opt_inhopedd" mask="@@@@-@@-@@" enable="false" maskchar=" "/>
  254. <Combo position="absolute 1055 155 1194 174" id="cmb_inhoperoomgrdeto" class="combo_default" innerdataset="@ds_hidden_roomgrdelist_roomgrde" datacolumn="cdnm" codecolumn="cdid" onitemchanged="cmb_inhoperoomgrdeto_onitemchanged"/>
  255. <Button position="absolute 175 54 187 66" id="btn_pid" class="icon_search" taborder="3" text="" onclick="btn_pid_onclick"/>
  256. <Button position="absolute 175 80 187 92" id="btn_hngnm" class="icon_search" taborder="4" text="" onclick="btn_hngnm_onclick"/>
  257. <Button position="absolute 396 54 408 66" id="btn_rrgstno" class="icon_search" taborder="7" text="" onclick="btn_rrgstno_onclick"/>
  258. <Button position="absolute 535 159 547 171" id="btn_inhopeward" class="icon_search" text="" onclick="btn_inhopeward_onclick"/>
  259. <Grid position="absolute 0 326 1194 501" id="grd_inhpdeci" class="datagrid2" visible="true" binddataset="ds_main_list1_grdinhpdeci" oncelldblclick="grd_inhpdeci_oncelldblclick" oncellclick="grd_inhpdeci_oncellclick" onexpanddown="grd_inhpdeci_onexpanddown">
  260. <Formats>
  261. <Format id="default">
  262. <Columns>
  263. <Column size="25"/>
  264. <Column size="16"/>
  265. <Column size="70"/>
  266. <Column size="56"/>
  267. <Column size="36"/>
  268. <Column size="73"/>
  269. <Column size="131"/>
  270. <Column size="37"/>
  271. <Column size="37"/>
  272. <Column size="96"/>
  273. <Column size="78"/>
  274. <Column size="78"/>
  275. <Column size="78"/>
  276. <Column size="45"/>
  277. <Column size="92"/>
  278. <Column size="73"/>
  279. <Column size="87"/>
  280. <Column size="116"/>
  281. <Column size="116"/>
  282. <Column size="200"/>
  283. <Column size="200"/>
  284. <Column size="90"/>
  285. <Column size="0"/>
  286. <Column size="50"/>
  287. <Column size="50"/>
  288. <Column size="85"/>
  289. <Column size="100"/>
  290. <Column size="100"/>
  291. <Column size="100"/>
  292. <Column size="100"/>
  293. <Column size="0"/>
  294. </Columns>
  295. <Rows>
  296. <Row size="30" band="head"/>
  297. <Row size="24"/>
  298. </Rows>
  299. <Band id="head">
  300. <Cell/>
  301. <Cell col="1" text=".."/>
  302. <Cell col="2" text="환자번호"/>
  303. <Cell col="3" text="환자이름"/>
  304. <Cell col="4" text="성별"/>
  305. <Cell col="5" text="접수일자"/>
  306. <Cell col="6" text="진료과"/>
  307. <Cell col="7" text="번호"/>
  308. <Cell col="8" text="시간"/>
  309. <Cell col="9" text="환자유형"/>
  310. <Cell col="10" text="지시의사"/>
  311. <Cell col="11" text="지시일자"/>
  312. <Cell col="12" text="담당교수"/>
  313. <Cell col="13" text="cp여부"/>
  314. <Cell col="14" text="환자희망입원일"/>
  315. <Cell col="15" text="희망입원일"/>
  316. <Cell col="16" text="희망병동"/>
  317. <Cell col="17" text="희망병실등급FROM"/>
  318. <Cell col="18" text="희망병실등급TO"/>
  319. <Cell col="19" text="진료 참고사항"/>
  320. <Cell col="20" text="원무 전달사항"/>
  321. <Cell col="21" text="입원일자"/>
  322. <Cell col="22" text="시간"/>
  323. <Cell col="23" text="O2여부"/>
  324. <Cell col="24" text="Suction&#13;&#10;여부"/>
  325. <Cell col="25" text="예상입원기간"/>
  326. <Cell col="26" text="임상시험접수"/>
  327. <Cell col="27" text="임상시험번호&#10;(과제번호)"/>
  328. <Cell col="28" text="병동형태"/>
  329. <Cell col="29" text="센터세부병동"/>
  330. <Cell col="30" text="세부진료과"/>
  331. </Band>
  332. <Band id="body">
  333. <Cell celltype="head" expr="expr:currow + 1"/>
  334. <Cell col="1" displaytype="text" edittype="text" expandshow="show"/>
  335. <Cell col="2" style="align:center middle;" text="bind:pid"/>
  336. <Cell col="3" style="align:center middle;" text="bind:hngnm"/>
  337. <Cell col="4" style="align:center middle;" text="bind:sex"/>
  338. <Cell col="5" displaytype="date" style="align:center middle;" text="bind:inrsrvacptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  339. <Cell col="6" style="align:center middle;" text="bind:orddeptcd_nm" enable="false"/>
  340. <Cell col="7" text="bind:inrsrvacptseqno"/>
  341. <Cell col="8" text="bind:inrsrvacpttm" mask="##:##"/>
  342. <Cell col="9" displaytype="combo" text="bind:insukind" combodataset="ds_hidden_init_insukind" combocodecol="cd" combodatacol="nm" enable="false"/>
  343. <Cell col="10" style="align:center middle;" text="bind:indirecdrid_nm" enable="false"/>
  344. <Cell col="11" displaytype="date" text="bind:indirecdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  345. <Cell col="12" style="align:center middle;" text="bind:orddrid_nm" enable="false"/>
  346. <Cell col="13" text="bind:cpyn"/>
  347. <Cell col="14" displaytype="date" style="align:center middle;" text="bind:patinhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  348. <Cell col="15" displaytype="date" style="align:center middle;" text="bind:inhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  349. <Cell col="16" displaytype="combo" style="align:center middle;" text="bind:inhopeward" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  350. <Cell col="17" displaytype="combo" text="bind:inhoperoomgrdefrom" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  351. <Cell col="18" displaytype="combo" text="bind:inhoperoomgrdeto" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  352. <Cell col="19" displaytype="normal" edittype="none" text="bind:drrem"/>
  353. <Cell col="20" text="bind:inrsrvrem"/>
  354. <Cell col="21"/>
  355. <Cell col="22"/>
  356. <Cell col="23" displaytype="combo" text="bind:oxyyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
  357. <Cell col="24" displaytype="combo" edittype="combo" text="bind:suctyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
  358. <Cell col="25" text="bind:fcstinterm"/>
  359. <Cell col="26" displaytype="combo" edittype="combo" text="bind:clincstdyacptflag" combodataset="ds_static_clincstdyacptflag" combocodecol="value" combodatacol="label"/>
  360. <Cell col="27" text="bind:clincstdyno"/>
  361. <Cell col="28" displaytype="combo" text="bind:wardtypecd" combodataset="ds_init_P0474list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  362. <Cell col="29" displaytype="combo" text="bind:specwardcd" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  363. <Cell col="30" text="bind:subdeptcd"/>
  364. </Band>
  365. </Format>
  366. </Formats>
  367. </Grid>
  368. <Button position="absolute 1041 26 1105 45" id="button1" class="btn2" visible="true" text="환자인적" onclick="button1_onclick"/>
  369. <Static text="원무 전달사항" position="absolute 697 206 802 253" align="align:center middle;" id="caption1" class="cell_1"/>
  370. <Static text="결정서형태" position="absolute 0 206 105 229" align="align:center middle;" id="caption2" class="cell_1"/>
  371. <Static text="감면" position="absolute 1006 49 1044 72" align="align:center middle;" id="caption4" class="cell_1"/>
  372. <Combo position="absolute 1047 51 1194 70" id="combo1" enable="false" innerdataset="@ds_hidden_init_disccd" datacolumn="nm" codecolumn="cd"/>
  373. <TextArea position="absolute 805 208 1195 251" id="tar_inrsrvrem" imemode="hangul" wordwrap="char" scrollbars="fixedvert"/>
  374. <Combo position="absolute 805 181 944 200" id="cmb_specroomyn" class="combo_default" innerdataset="@ds_init_P0378list" datacolumn="cdnm" codecolumn="cdid"/>
  375. <Edit position="absolute 274 51 328 70" id="ipt_rrgstno1" class="input_essential" taborder="5" onkillfocus="ipt_rrgstno1_onkillfocus" onkeydown="ipt_rrgstno1_onkeydown"/>
  376. <Edit position="absolute 331 51 393 70" id="ipt_rrgstno2" class="input_essential" taborder="6" onkeydown="ipt_rrgstno2_onkeydown" onkillfocus="ipt_rrgstno2_onkillfocus"/>
  377. <Edit readonly="true" position="absolute 629 77 644 96" id="output2" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  378. <Combo position="absolute 108 208 249 227" id="combo2" codecolumn="codecolumn" datacolumn="datacolumn" style="itembackground:white;background:URL('theme://images/bg_edit_N.png') stretch 5,5;" onitemchanged="combo2_onitemchanged">
  379. <Dataset id="innerdataset">
  380. <ColumnInfo>
  381. <Column id="codecolumn"/>
  382. <Column id="datacolumn"/>
  383. </ColumnInfo>
  384. <Rows>
  385. <Row>
  386. <Col id="codecolumn">I</Col>
  387. <Col id="datacolumn">외래</Col>
  388. </Row>
  389. <Row>
  390. <Col id="codecolumn">D</Col>
  391. <Col id="datacolumn">DSC/CHEMO</Col>
  392. </Row>
  393. <Row>
  394. <Col id="codecolumn">F</Col>
  395. <Col id="datacolumn">DCC</Col>
  396. </Row>
  397. <Row>
  398. <Col id="codecolumn">E</Col>
  399. <Col id="datacolumn">응급</Col>
  400. </Row>
  401. </Rows>
  402. </Dataset>
  403. </Combo>
  404. <Combo position="absolute 564 181 694 200" id="cmb_bmtyn" codecolumn="codecolumn" datacolumn="datacolumn">
  405. <Dataset id="innerdataset">
  406. <ColumnInfo>
  407. <Column id="codecolumn"/>
  408. <Column id="datacolumn"/>
  409. </ColumnInfo>
  410. <Rows>
  411. <Row>
  412. <Col id="codecolumn">1</Col>
  413. <Col id="datacolumn">해당없음</Col>
  414. </Row>
  415. <Row>
  416. <Col id="codecolumn">2</Col>
  417. <Col id="datacolumn">환자</Col>
  418. </Row>
  419. <Row>
  420. <Col id="codecolumn">3</Col>
  421. <Col id="datacolumn">공여자</Col>
  422. </Row>
  423. <Row>
  424. <Col id="codecolumn">4</Col>
  425. <Col id="datacolumn">타기관공여자</Col>
  426. </Row>
  427. </Rows>
  428. </Dataset>
  429. </Combo>
  430. <Button position="absolute 1120 300 1194 319" id="btn_delrcvr" class="btn2" text="삭제/복원" onclick="btn_delrcvr_onclick"/>
  431. <Static text="임상시험과제번호" position="absolute 947 179 1052 202" align="align:center middle;" id="caption7" class="cell_1" style="font:Dotum,8;"/>
  432. <Edit readonly="true" position="absolute 1055 181 1194 200" id="output3" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
  433. <Edit readonly="true" position="absolute 564 129 694 148" id="output4" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  434. <Edit readonly="true" position="absolute 804 129 944 148" id="output5" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  435. <Edit readonly="true" position="absolute 108 129 176 148" id="output6" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;" enable="false"/>
  436. <Edit position="absolute 508 51 600 70" id="ipt_hometel" class="input"/>
  437. <Edit position="absolute 603 51 695 70" id="ipt_mpphontel" class="input"/>
  438. <MaskEdit position="absolute 274 77 346 96" id="ipt_brthyy" class="input" mask="yyyy-mm-dd"/>
  439. <Edit position="absolute 563 77 593 96" id="ipt_zipcd1" class="input" taborder="8"/>
  440. <Edit position="absolute 596 77 626 96" id="ipt_zipcd2" class="input" taborder="9"/>
  441. <Edit position="absolute 667 77 868 96" id="ipt_addr" class="input"/>
  442. <Edit position="absolute 950 77 1194 96" id="ipt_detladdr" class="input"/>
  443. <Button position="absolute 1108 26 1194 45" id="button5" class="btn5" text="인적사항변경" onclick="button5_onclick"/>
  444. <Combo position="absolute 564 208 606 227" id="combo3" codecolumn="codecolumn" datacolumn="datacolumn">
  445. <Dataset id="innerdataset">
  446. <ColumnInfo>
  447. <Column id="codecolumn"/>
  448. <Column id="datacolumn"/>
  449. </ColumnInfo>
  450. <Rows>
  451. <Row>
  452. <Col id="codecolumn">Y</Col>
  453. <Col id="datacolumn">Y</Col>
  454. </Row>
  455. <Row>
  456. <Col id="codecolumn">N</Col>
  457. <Col id="datacolumn">N</Col>
  458. </Row>
  459. </Rows>
  460. </Dataset>
  461. </Combo>
  462. <Combo position="absolute 608 208 650 227" id="combo4" codecolumn="codecolumn" datacolumn="datacolumn">
  463. <Dataset id="innerdataset">
  464. <ColumnInfo>
  465. <Column id="codecolumn"/>
  466. <Column id="datacolumn"/>
  467. </ColumnInfo>
  468. <Rows>
  469. <Row>
  470. <Col id="codecolumn">Y</Col>
  471. <Col id="datacolumn">Y</Col>
  472. </Row>
  473. <Row>
  474. <Col id="codecolumn">N</Col>
  475. <Col id="datacolumn">N</Col>
  476. </Row>
  477. </Rows>
  478. </Dataset>
  479. </Combo>
  480. <Combo position="absolute 652 208 694 227" id="combo5" codecolumn="codecolumn" datacolumn="datacolumn">
  481. <Dataset id="innerdataset">
  482. <ColumnInfo>
  483. <Column id="codecolumn"/>
  484. <Column id="datacolumn"/>
  485. </ColumnInfo>
  486. <Rows>
  487. <Row>
  488. <Col id="codecolumn">Y</Col>
  489. <Col id="datacolumn">Y</Col>
  490. </Row>
  491. <Row>
  492. <Col id="codecolumn">N</Col>
  493. <Col id="datacolumn">N</Col>
  494. </Row>
  495. </Rows>
  496. </Dataset>
  497. </Combo>
  498. <Combo position="absolute 351 181 468 200" id="combo6" class="combo_default" innerdataset="@ds_hidden_init_wardcd" datacolumn="nm" codecolumn="cd"/>
  499. <Combo position="absolute 108 181 249 200" id="combo7" innerdataset="@ds_init_P0474list" datacolumn="cdnm" codecolumn="cdid"/>
  500. <Button position="absolute 1114 544 1194 563" id="btn_excsave" class="btn7" text="액셀저장" onclick="btn_excsave_onclick"/>
  501. <Button position="absolute 1065 300 1119 319" id="btn_print" class="btn6" text="출력" onclick="btn_print_onclick"/>
  502. <Button position="absolute 1059 544 1113 563" id="button3" class="btn6" text="출력" onclick="button3_onclick"/>
  503. <Button position="absolute 1119 102 1194 121" id="button4" class="btn5" text="결정서저장" onclick="button4_onclick"/>
  504. <Button position="absolute 647 80 659 92" id="button37" class="icon_search" taborder="10" text="" onclick="button37_onclick"/>
  505. <Shape id="Shape00" position="absolute 0 47 1194 50" class="line_3" style="strokepen:2 solid #33bbbbff;"/>
  506. <Shape id="Shape01" position="absolute 0 73 1194 76" style="strokepen:1 solid #9ebed4ff;"/>
  507. <Shape id="Shape02" class="line_3" position="absolute 0 124 1194 127" style="strokepen:2 solid #33bbbbff;"/>
  508. <Shape id="line00" linetype="horizontal" class="line_1" position="absolute 0 322 1194 328" style="strokepen:3 solid #33bbbbff;"/>
  509. <Div id="grp2" taborder="11" position="absolute 0 506 1194 541" class="div_SA2">
  510. <Layouts>
  511. <Layout>
  512. <Shape id="line17" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
  513. <Static id="caption72" text="진료과 :" class="search_name" position="absolute 359 9 434 26" anchor="default"/>
  514. <Static id="caption73" text="입원희망일자 :" class="search_name" position="absolute 10 9 122 26" anchor="default"/>
  515. <Combo id="combo21" taborder="1" innerdataset="ds_combo21" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 615 8 714 27" anchor="default"/>
  516. <Static id="caption74" text="담당교수 :" class="search_name" position="absolute 551 9 626 26" anchor="default"/>
  517. <Combo id="cmb_rorddeptcd2" taborder="2" innerdataset="@ds_cmb_rorddeptcd2" codecolumn="cd" datacolumn="nm" onitemchanged="cmb_rorddeptcd2_onitemchanged" class="combo_search" position="absolute 423 8 522 27" anchor="default"/>
  518. <Button id="btn_search2" taborder="3" text="조회" onclick="btn_search2_onclick" class="btn1" position="absolute 1123 7 1179 29" style="font:Dotum,9,bold;" anchor="default"/>
  519. <Static id="caption5" text="~" position="absolute 214 8 225 28" anchor="default"/>
  520. <CheckBox id="bol_checkdd1" taborder="4" value="N" visible="false" position="absolute 802 8 817 28" anchor="default" falsevalue="N" truevalue="Y" onclick="grp2_bol_checkdd1_onclick"/>
  521. <Calendar id="ipt_inhopefromdd" taborder="5" dateformat="yyyy-MM-dd" class="input_search" position="absolute 113 8 212 27" anchor="default" autoselect="true"/>
  522. <Calendar id="ipt_inhopetodd" taborder="6" dateformat="yyyy-MM-dd" class="input_search" position="absolute 227 8 326 27" anchor="default" autoselect="true"/>
  523. </Layout>
  524. </Layouts>
  525. </Div>
  526. <Div id="grp1" taborder="12" position="absolute 0 262 1194 297" class="div_SA2">
  527. <Layouts>
  528. <Layout>
  529. <Static id="caption22" text="입원결정일자 :" class="search_name" position="absolute 10 9 111 26" anchor="default"/>
  530. <Shape id="line12" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
  531. <Static id="caption24" text="진료과 :" class="search_name" position="absolute 359 9 434 26" anchor="default"/>
  532. <Static id="caption32" text="담당교수 :" class="search_name" position="absolute 551 9 626 26" anchor="default"/>
  533. <Combo id="cmd_medispcl" taborder="1" innerdataset="@ds_cmd_medispcl" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 615 8 714 27" anchor="default" onitemchanged="grp1_cmd_medispcl_onitemchanged"/>
  534. <Button id="btn_search1" taborder="3" text="조회" onclick="btn_search1_onclick" class="btn1" position="absolute 1123 7 1179 29" anchor="default"/>
  535. <Static id="caption3" text="~" position="absolute 214 8 225 28" anchor="default"/>
  536. <CheckBox id="bol_checkdd1" taborder="4" value="N" visible="false" position="absolute 802 8 817 28" anchor="default" falsevalue="N" truevalue="Y" onclick="grp1_bol_checkdd1_onclick"/>
  537. <Calendar id="ipt_inrsrvfromdd" taborder="5" dateformat="yyyy-MM-dd" class="input_search" position="absolute 113 8 212 27" anchor="default" autoselect="true"/>
  538. <Calendar id="ipt_inrsrvtodd" taborder="6" dateformat="yyyy-MM-dd" class="input_search" position="absolute 227 8 326 27" anchor="default" autoselect="true"/>
  539. <Combo id="cmb_rorddeptcd1" taborder="7" innerdataset="@ds_cmb_rorddeptcd1" codecolumn="cd" datacolumn="nm" onitemchanged="cmb_rorddeptcd1_onitemchanged" class="combo_search" position="absolute 423 8 522 27"/>
  540. </Layout>
  541. </Layouts>
  542. </Div>
  543. <Shape id="Shape04" position="absolute 0 151 1194 154" style="strokepen:1 solid #9ebed4ff;"/>
  544. <Shape id="Shape05" position="absolute 0 177 1194 180" style="strokepen:1 solid #9ebed4ff;"/>
  545. <Shape id="Shape06" position="absolute 0 203 1194 206" style="strokepen:1 solid #9ebed4ff;"/>
  546. <Shape id="Shape07" position="absolute 0 230 694 233" style="strokepen:1 solid #9ebed4ff;"/>
  547. <CheckBox id="chk_nhicyn" taborder="13" text="공단자격조회" position="absolute 948 545 1048 565" falsevalue="N" truevalue="Y"/>
  548. </Layout>
  549. </Layouts>
  550. <Objects>
  551. <Dataset id="ds_main_ptbspatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  552. <ColumnInfo>
  553. <Column id="status" type="STRING" size="256"/>
  554. <Column id="pid" type="STRING" size="256"/>
  555. <Column id="hngnm" type="STRING" size="256"/>
  556. <Column id="engnm" type="STRING" size="256"/>
  557. <Column id="rrgstno1" type="STRING" size="256"/>
  558. <Column id="rrgstno2" type="STRING" size="256"/>
  559. <Column id="brthdd" type="STRING" size="256"/>
  560. <Column id="sex" type="STRING" size="256"/>
  561. <Column id="age" type="STRING" size="256"/>
  562. <Column id="hometel" type="STRING" size="256"/>
  563. <Column id="mpphontel" type="STRING" size="256"/>
  564. <Column id="zipcd1" type="STRING" size="256"/>
  565. <Column id="zipcd2" type="STRING" size="256"/>
  566. <Column id="zipcdseq" type="STRING" size="256"/>
  567. <Column id="zipnm" type="STRING" size="256"/>
  568. <Column id="detladdr" type="STRING" size="256"/>
  569. <Column id="forgeryn" type="STRING" size="256"/>
  570. <Column id="recmyn" type="STRING" size="256"/>
  571. <Column id="recmerid" type="STRING" size="256"/>
  572. <Column id="vipyn" type="STRING" size="256"/>
  573. <Column id="religncd" type="STRING" size="256"/>
  574. <Column id="remfact" type="STRING" size="256"/>
  575. <Column id="inhospyn" type="STRING" size="256"/>
  576. <Column id="disccd" type="STRING" size="256"/>
  577. </ColumnInfo>
  578. <Rows>
  579. <Row>
  580. <Col id="status"/>
  581. <Col id="pid"/>
  582. <Col id="hngnm"/>
  583. <Col id="engnm"/>
  584. <Col id="rrgstno1"/>
  585. <Col id="rrgstno2"/>
  586. <Col id="brthdd"/>
  587. <Col id="sex"/>
  588. <Col id="age"/>
  589. <Col id="hometel"/>
  590. <Col id="mpphontel"/>
  591. <Col id="zipcd1"/>
  592. <Col id="zipcd2"/>
  593. <Col id="zipcdseq"/>
  594. <Col id="zipnm"/>
  595. <Col id="detladdr"/>
  596. <Col id="forgeryn"/>
  597. <Col id="recmyn"/>
  598. <Col id="recmerid"/>
  599. <Col id="vipyn"/>
  600. <Col id="religncd"/>
  601. <Col id="remfact"/>
  602. <Col id="inhospyn"/>
  603. <Col id="disccd"/>
  604. </Row>
  605. </Rows>
  606. </Dataset>
  607. <Dataset id="ds_send_data13" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  608. <ColumnInfo>
  609. <Column id="sess_posinstcd" type="STRING" size="256"/>
  610. <Column id="ioflag" type="STRING" size="256"/>
  611. </ColumnInfo>
  612. <Rows>
  613. <Row>
  614. <Col id="sess_posinstcd"/>
  615. <Col id="ioflag"/>
  616. </Row>
  617. </Rows>
  618. </Dataset>
  619. <Dataset id="ds_main_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  620. <ColumnInfo>
  621. <Column id="rsrvflag" type="STRING" size="256"/>
  622. <Column id="status" type="STRING" size="256"/>
  623. <Column id="pid" type="STRING" size="256"/>
  624. <Column id="inrsrvacptdd" type="STRING" size="256"/>
  625. <Column id="orddeptcd" type="STRING" size="256"/>
  626. <Column id="inrsrvacptseqno" type="STRING" size="256"/>
  627. <Column id="instcd" type="STRING" size="256"/>
  628. <Column id="inrsrvacpttm" type="STRING" size="256"/>
  629. <Column id="inrsrvstat" type="STRING" size="256"/>
  630. <Column id="inrsrvprcpno" type="STRING" size="256"/>
  631. <Column id="insukind" type="STRING" size="256"/>
  632. <Column id="suppkind" type="STRING" size="256"/>
  633. <Column id="suppkindresn" type="STRING" size="256"/>
  634. <Column id="insuno" type="STRING" size="256"/>
  635. <Column id="indirecdrid" type="STRING" size="256"/>
  636. <Column id="indirecdrid_nm" type="STRING" size="256"/>
  637. <Column id="indirecdd" type="STRING" size="256"/>
  638. <Column id="orddrid" type="STRING" size="256"/>
  639. <Column id="inhopedd" type="STRING" size="256"/>
  640. <Column id="patinhopedd" type="STRING" size="256"/>
  641. <Column id="inhopeward" type="STRING" size="256"/>
  642. <Column id="inhoperoomgrdefrom" type="STRING" size="256"/>
  643. <Column id="inhoperoomgrdeto" type="STRING" size="256"/>
  644. <Column id="assgward" type="STRING" size="256"/>
  645. <Column id="assgroom" type="STRING" size="256"/>
  646. <Column id="assgroomgrde" type="STRING" size="256"/>
  647. <Column id="assgroomtype" type="STRING" size="256"/>
  648. <Column id="inflag" type="STRING" size="256"/>
  649. <Column id="drgyn" type="STRING" size="256"/>
  650. <Column id="bmtyn" type="STRING" size="256"/>
  651. <Column id="cpyn" type="STRING" size="256"/>
  652. <Column id="cpcd" type="STRING" size="256"/>
  653. <Column id="fcstinterm" type="STRING" size="256"/>
  654. <Column id="erreglyn" type="STRING" size="256"/>
  655. <Column id="isolroomyn" type="STRING" size="256"/>
  656. <Column id="oxyyn" type="STRING" size="256"/>
  657. <Column id="suctyn" type="STRING" size="256"/>
  658. <Column id="specroomyn" type="STRING" size="256"/>
  659. <Column id="scheopdd" type="STRING" size="256"/>
  660. <Column id="inrsrvgrad" type="STRING" size="256"/>
  661. <Column id="inrsrvrem" type="STRING" size="256"/>
  662. <Column id="drrem" type="STRING" size="256"/>
  663. <Column id="inrsrvcnclresn" type="STRING" size="256"/>
  664. <Column id="incncldd" type="STRING" size="256"/>
  665. <Column id="incncltm" type="STRING" size="256"/>
  666. <Column id="nblsyn" type="STRING" size="256"/>
  667. <Column id="fstrgstrid" type="STRING" size="256"/>
  668. <Column id="fstrgstdt" type="STRING" size="256"/>
  669. <Column id="lastupdtrid" type="STRING" size="256"/>
  670. <Column id="lastupdtdt" type="STRING" size="256"/>
  671. <Column id="clincstdyno" type="STRING" size="256"/>
  672. <Column id="orddrid_nm" type="STRING" size="256"/>
  673. <Column id="orddeptcd_nm" type="STRING" size="256"/>
  674. <Column id="wardtypecd" type="STRING" size="256"/>
  675. <Column id="specwardcd" type="STRING" size="256"/>
  676. </ColumnInfo>
  677. <Rows>
  678. <Row>
  679. <Col id="rsrvflag"/>
  680. <Col id="status"/>
  681. <Col id="pid"/>
  682. <Col id="inrsrvacptdd"/>
  683. <Col id="orddeptcd"/>
  684. <Col id="inrsrvacptseqno"/>
  685. <Col id="instcd"/>
  686. <Col id="inrsrvacpttm"/>
  687. <Col id="inrsrvstat"/>
  688. <Col id="inrsrvprcpno"/>
  689. <Col id="insukind"/>
  690. <Col id="suppkind"/>
  691. <Col id="suppkindresn"/>
  692. <Col id="insuno"/>
  693. <Col id="indirecdrid"/>
  694. <Col id="indirecdrid_nm"/>
  695. <Col id="indirecdd"/>
  696. <Col id="orddrid"/>
  697. <Col id="inhopedd"/>
  698. <Col id="patinhopedd"/>
  699. <Col id="inhopeward"/>
  700. <Col id="inhoperoomgrdefrom"/>
  701. <Col id="inhoperoomgrdeto"/>
  702. <Col id="assgward"/>
  703. <Col id="assgroom"/>
  704. <Col id="assgroomgrde"/>
  705. <Col id="assgroomtype"/>
  706. <Col id="inflag"/>
  707. <Col id="drgyn"/>
  708. <Col id="bmtyn">1</Col>
  709. <Col id="cpyn"/>
  710. <Col id="cpcd"/>
  711. <Col id="fcstinterm"/>
  712. <Col id="erreglyn"/>
  713. <Col id="isolroomyn"/>
  714. <Col id="oxyyn"/>
  715. <Col id="suctyn"/>
  716. <Col id="specroomyn"/>
  717. <Col id="scheopdd"/>
  718. <Col id="inrsrvgrad"/>
  719. <Col id="inrsrvrem"/>
  720. <Col id="drrem"/>
  721. <Col id="inrsrvcnclresn"/>
  722. <Col id="incncldd"/>
  723. <Col id="incncltm"/>
  724. <Col id="nblsyn"/>
  725. <Col id="fstrgstrid"/>
  726. <Col id="fstrgstdt"/>
  727. <Col id="lastupdtrid"/>
  728. <Col id="lastupdtdt"/>
  729. <Col id="clincstdyno"/>
  730. <Col id="orddrid_nm"/>
  731. <Col id="orddeptcd_nm"/>
  732. <Col id="wardtypecd"/>
  733. <Col id="specwardcd"/>
  734. </Row>
  735. </Rows>
  736. </Dataset>
  737. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  738. <ColumnInfo>
  739. <Column id="inrsrvacptfromdd" type="STRING" size="256"/>
  740. <Column id="inrsrvacpttodd" type="STRING" size="256"/>
  741. <Column id="sorddeptcd" type="STRING" size="256"/>
  742. <Column id="sorddrid" type="STRING" size="256"/>
  743. <Column id="sendflag" type="STRING" size="256"/>
  744. <Column id="s_checkflag" type="STRING" size="256"/>
  745. <Column id="pid" type="STRING" size="256"/>
  746. </ColumnInfo>
  747. <Rows>
  748. <Row>
  749. <Col id="inrsrvacptfromdd"/>
  750. <Col id="inrsrvacpttodd"/>
  751. <Col id="sorddeptcd"/>
  752. <Col id="sorddrid"/>
  753. <Col id="sendflag"/>
  754. <Col id="s_checkflag"/>
  755. <Col id="pid"/>
  756. </Row>
  757. </Rows>
  758. </Dataset>
  759. <Dataset id="ds_main_list1_grdinhpdeci" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  760. <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  761. <ColumnInfo>
  762. <Column id="patinhopefromdd" type="STRING" size="256"/>
  763. <Column id="patinhopetodd" type="STRING" size="256"/>
  764. <Column id="rorddeptcd" type="STRING" size="256"/>
  765. <Column id="rorddrid" type="STRING" size="256"/>
  766. <Column id="sendflag" type="STRING" size="256"/>
  767. <Column id="r_checkflag" type="STRING" size="256"/>
  768. <Column id="pid" type="STRING" size="256"/>
  769. </ColumnInfo>
  770. <Rows>
  771. <Row>
  772. <Col id="patinhopefromdd"/>
  773. <Col id="patinhopetodd"/>
  774. <Col id="rorddeptcd"/>
  775. <Col id="rorddrid"/>
  776. <Col id="sendflag"/>
  777. <Col id="r_checkflag"/>
  778. <Col id="pid"/>
  779. </Row>
  780. </Rows>
  781. </Dataset>
  782. <Dataset id="ds_main_list2_grdinhprsspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  783. <Dataset id="ds_hidden_roomgrdelist_roomgrde" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  784. <ColumnInfo>
  785. <Column id="cdid" type="STRING" size="256"/>
  786. <Column id="cdnm" type="STRING" size="256"/>
  787. <Column id="typecd" type="STRING" size="256"/>
  788. <Column id="tn" type="STRING" size="256"/>
  789. <Column id="cdyn" type="STRING" size="256"/>
  790. </ColumnInfo>
  791. </Dataset>
  792. <Dataset id="ds_init_pam_P0041list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  793. <Dataset id="ds_init_P0001list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  794. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  795. <Dataset id="ds_init_P0025list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  796. <Dataset id="ds_init_P0026list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  797. <Dataset id="ds_init_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  798. <Dataset id="ds_init_P0039list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  799. <Dataset id="ds_init_P0378list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  800. <Dataset id="ds_init_P0474list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  801. <Dataset id="ds_init_pam_P0041list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  802. <Dataset id="ds_cmb_rorddeptcd1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  803. <Dataset id="ds_cmb_rorddeptcd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  804. <Dataset id="ds_hidden_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  805. <ColumnInfo>
  806. <Column id="pid" type="STRING" size="256"/>
  807. </ColumnInfo>
  808. <Rows>
  809. <Row/>
  810. </Rows>
  811. </Dataset>
  812. <Dataset id="ds_send_data4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  813. <ColumnInfo>
  814. <Column id="pid" type="STRING" size="256"/>
  815. <Column id="inrsrvacptdd" type="STRING" size="256"/>
  816. <Column id="orddeptcd" type="STRING" size="256"/>
  817. <Column id="inrsrvacptseqno" type="STRING" size="256"/>
  818. <Column id="mode" type="STRING" size="256"/>
  819. <Column id="inrsrvstat" type="STRING" size="256"/>
  820. </ColumnInfo>
  821. <Rows>
  822. <Row>
  823. <Col id="pid"/>
  824. <Col id="inrsrvacptdd"/>
  825. <Col id="orddeptcd"/>
  826. <Col id="inrsrvacptseqno"/>
  827. <Col id="mode"/>
  828. <Col id="inrsrvstat"/>
  829. </Row>
  830. </Rows>
  831. </Dataset>
  832. <Dataset id="ds_send_data5" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  833. <ColumnInfo>
  834. <Column id="srchcond" type="STRING" size="256"/>
  835. <Column id="pid" type="STRING" size="256"/>
  836. <Column id="hngnm" type="STRING" size="256"/>
  837. <Column id="rrgstno1" type="STRING" size="256"/>
  838. <Column id="rrgstno2" type="STRING" size="256"/>
  839. </ColumnInfo>
  840. <Rows>
  841. <Row>
  842. <Col id="srchcond"/>
  843. <Col id="pid"/>
  844. <Col id="hngnm"/>
  845. <Col id="rrgstno1"/>
  846. <Col id="rrgstno2"/>
  847. </Row>
  848. </Rows>
  849. </Dataset>
  850. <Dataset id="ds_hidden_rcv_ptbspatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  851. <ColumnInfo>
  852. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  853. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  854. <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
  855. <Column id="engnm" type="STRING" size="256" sumtext="영문성명"/>
  856. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞자리"/>
  857. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒷자리"/>
  858. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  859. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  860. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  861. <Column id="hometel" type="STRING" size="256" sumtext="연락처"/>
  862. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰"/>
  863. <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
  864. <Column id="recmyn" type="STRING" size="256" sumtext="직원소개"/>
  865. <Column id="recmerid" type="STRING" size="256" sumtext="추천인"/>
  866. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호앞자리"/>
  867. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호뒷자리"/>
  868. <Column id="zipnm" type="STRING" size="256" sumtext="주소"/>
  869. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  870. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  871. <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
  872. </ColumnInfo>
  873. </Dataset>
  874. <Dataset id="ds_hidden_rcv_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  875. <ColumnInfo>
  876. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  877. <Column id="status" type="STRING" size="256" sumtext="상태값"/>
  878. <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분자"/>
  879. <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="입원예약 접수일자"/>
  880. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  881. <Column id="orddeptcd_nm" type="STRING" size="256" sumtext="진료과코드"/>
  882. <Column id="inrsrvacptseqno" type="STRING" size="256" sumtext="입원예약 접수번호"/>
  883. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  884. <Column id="inrsrvacpttm" type="STRING" size="256" sumtext="입원예약 접수시간"/>
  885. <Column id="inrsrvstat" type="STRING" size="256" sumtext="입원예약상태"/>
  886. <Column id="inrsrvprcpno" type="STRING" size="256" sumtext="입원예약처방번호"/>
  887. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  888. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  889. <Column id="suppkindresn" type="STRING" size="256" sumtext="환자유형사유코드"/>
  890. <Column id="insuno" type="STRING" size="256" sumtext="보험사코드"/>
  891. <Column id="indirecdrid" type="STRING" size="256" sumtext="입원지시의사"/>
  892. <Column id="indirecdrid_nm" type="STRING" size="256" sumtext="입원지시의사"/>
  893. <Column id="indirecdd" type="STRING" size="256" sumtext="입원지시일자"/>
  894. <Column id="orddrid" type="STRING" size="256" sumtext="입원시 진료의사"/>
  895. <Column id="orddrid_nm" type="STRING" size="256" sumtext="입원시 진료의사"/>
  896. <Column id="inhopedd" type="STRING" size="256" sumtext="입원희망일자"/>
  897. <Column id="patinhopedd" type="STRING" size="256" sumtext="환자입원희망일자"/>
  898. <Column id="inhopeward" type="STRING" size="256" sumtext="희망병동"/>
  899. <Column id="inhoperoomgrdefrom" type="STRING" size="256" sumtext="입원희망병실등급시작일자"/>
  900. <Column id="inhoperoomgrdeto" type="STRING" size="256" sumtext="입원희망병실등급종료일자"/>
  901. <Column id="assgward" type="STRING" size="256" sumtext="배정병동"/>
  902. <Column id="assgroom" type="STRING" size="256" sumtext="배정병실"/>
  903. <Column id="assgroomgrde" type="STRING" size="256" sumtext="배정병실등급"/>
  904. <Column id="assgroomtype" type="STRING" size="256" sumtext="배정병실형태"/>
  905. <Column id="inflag" type="STRING" size="256" sumtext="입원상태"/>
  906. <Column id="drgyn" type="STRING" size="256" sumtext="DRG여부"/>
  907. <Column id="bmtyn" type="STRING" size="256" sumtext="BMT여부"/>
  908. <Column id="cpyn" type="STRING" size="256" sumtext="CP여부"/>
  909. <Column id="cpcd" type="STRING" size="256" sumtext="CP종류"/>
  910. <Column id="fcstinterm" type="STRING" size="256" sumtext="예상입원기간(CP)"/>
  911. <Column id="erreglyn" type="STRING" size="256" sumtext="응급정규여부"/>
  912. <Column id="isolroomyn" type="STRING" size="256" sumtext="격리실사용여부"/>
  913. <Column id="oxyyn" type="STRING" size="256" sumtext="O2사용여부"/>
  914. <Column id="suctyn" type="STRING" size="256" sumtext="Suction사용여부"/>
  915. <Column id="specroomyn" type="STRING" size="256" sumtext="입원예약병실형태"/>
  916. <Column id="scheopdd" type="STRING" size="256" sumtext="수술예정일자"/>
  917. <Column id="inrsrvgrad" type="STRING" size="256" sumtext="입원예약등급"/>
  918. <Column id="inrsrvrem" type="STRING" size="256" sumtext="입원예약 참고사항"/>
  919. <Column id="drrem" type="STRING" size="256" sumtext="의료진 참고사항"/>
  920. <Column id="inrsrvcnclresn" type="STRING" size="256" sumtext="입원예약취소사유"/>
  921. <Column id="incncldd" type="STRING" size="256" sumtext="입원취소 일자"/>
  922. <Column id="incncltm" type="STRING" size="256" sumtext="입원취소 시간"/>
  923. <Column id="nblsyn" type="STRING" size="256" sumtext="노블레스여부"/>
  924. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
  925. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  926. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
  927. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  928. <Column id="clincstdyacptflag" type="STRING" size="256" sumtext="임상시험접수상태"/>
  929. <Column id="clincstdyno" type="STRING" size="256" sumtext="임상시험과제번호"/>
  930. <Column id="ocrtag" type="STRING" size="256" sumtext="ocrtag"/>
  931. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  932. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  933. <Column id="coopteamcd" type="STRING" size="256" sumtext="협력팀코드"/>
  934. <Column id="wardtypecd" type="STRING" size="256" sumtext="병동형태"/>
  935. <Column id="wardtypecd" type="STRING" size="256" sumtext="병동형태"/>
  936. <Column id="specwardcd" type="STRING" size="256" sumtext="세부병동"/>
  937. <Column id="ampmflag" type="STRING" size="256" sumtext="DCC오전오후구분"/>
  938. <Column id="rsrvprcsstat" type="STRING" size="256" sumtext="입원예약진행상태"/>
  939. <Column id="specordtype" type="STRING" size="256" sumtext="선택진료형태"/>
  940. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  941. </ColumnInfo>
  942. </Dataset>
  943. <Dataset id="ds_hidden_original_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  944. <Dataset id="ds_send_data6" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  945. <Dataset id="ds_send_data7" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  946. <ColumnInfo>
  947. <Column id="rsrvflag" type="STRING" size="256"/>
  948. <Column id="status" type="STRING" size="256"/>
  949. <Column id="pid" type="STRING" size="256"/>
  950. <Column id="inrsrvacptdd" type="STRING" size="256"/>
  951. <Column id="orddeptcd" type="STRING" size="256"/>
  952. <Column id="inrsrvacptseqno" type="STRING" size="256"/>
  953. <Column id="inrsrvrem" type="STRING" size="256"/>
  954. </ColumnInfo>
  955. <Rows>
  956. <Row>
  957. <Col id="rsrvflag"/>
  958. <Col id="status"/>
  959. <Col id="pid"/>
  960. <Col id="inrsrvacptdd"/>
  961. <Col id="orddeptcd"/>
  962. <Col id="inrsrvacptseqno"/>
  963. <Col id="inrsrvrem"/>
  964. </Row>
  965. </Rows>
  966. </Dataset>
  967. <Dataset id="ds_send_data8" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  968. <ColumnInfo>
  969. <Column id="hngnm" type="STRING" size="256"/>
  970. <Column id="mode" type="STRING" size="256"/>
  971. <Column id="rrgstno1" type="STRING" size="256"/>
  972. <Column id="rrgstno2" type="STRING" size="256"/>
  973. </ColumnInfo>
  974. <Rows>
  975. <Row>
  976. <Col id="hngnm"/>
  977. <Col id="mode"/>
  978. <Col id="rrgstno1"/>
  979. <Col id="rrgstno2"/>
  980. </Row>
  981. </Rows>
  982. </Dataset>
  983. <Dataset id="ds_hidden_h_rcv_ptin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  984. <ColumnInfo>
  985. <Column id="ptin_status" type="STRING" size="256" sumtext="상태"/>
  986. <Column id="ptin_pid" type="STRING" size="256" sumtext="등록번호"/>
  987. <Column id="ptin_insukind" type="STRING" size="256" sumtext="보험유형"/>
  988. <Column id="ptin_todd" type="STRING" size="256" sumtext="종료일자"/>
  989. <Column id="ptin_seqno" type="STRING" size="256" sumtext="일련번호"/>
  990. <Column id="ptin_fromdd" type="STRING" size="256" sumtext="시작일자"/>
  991. <Column id="ptin_histstat" type="STRING" size="256" sumtext="이력상태"/>
  992. <Column id="ptin_insucd" type="STRING" size="256" sumtext="보험자코드"/>
  993. <Column id="ptin_insucdnm" type="STRING" size="256" sumtext="보험자코드명"/>
  994. <Column id="ptin_insuno" type="STRING" size="256" sumtext="보험증번호"/>
  995. <Column id="ptin_insdnm" type="STRING" size="256" sumtext="피보험자명"/>
  996. <Column id="ptin_insdrela" type="STRING" size="256" sumtext="피보험자와의관계"/>
  997. <Column id="ptin_insdrrgstno1" type="STRING" size="256" sumtext="피보험자주민번호1"/>
  998. <Column id="ptin_insdrrgstno2" type="STRING" size="256" sumtext="피보험자주민번호2"/>
  999. </ColumnInfo>
  1000. </Dataset>
  1001. <Dataset id="ds_hidden_check_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1002. <Dataset id="ds_send_data9" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1003. <Dataset id="ds_send_data10" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1004. <Dataset id="ds_send_data11" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1005. <ColumnInfo>
  1006. <Column id="pid" type="STRING" size="256"/>
  1007. <Column id="insukind" type="STRING" size="256"/>
  1008. <Column id="insucd" type="STRING" size="256"/>
  1009. <Column id="appdd" type="STRING" size="256"/>
  1010. <Column id="instcd" type="STRING" size="256"/>
  1011. <Column id="checkflag" type="STRING" size="256"/>
  1012. </ColumnInfo>
  1013. <Rows>
  1014. <Row>
  1015. <Col id="pid"/>
  1016. <Col id="insukind"/>
  1017. <Col id="insucd"/>
  1018. <Col id="appdd"/>
  1019. <Col id="instcd"/>
  1020. <Col id="checkflag"/>
  1021. </Row>
  1022. </Rows>
  1023. </Dataset>
  1024. <Dataset id="ds_main_ptin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1025. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1026. <ColumnInfo>
  1027. <Column id="popupendflag" type="STRING" size="256"/>
  1028. </ColumnInfo>
  1029. <Rows>
  1030. <Row/>
  1031. </Rows>
  1032. </Dataset>
  1033. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1034. <Dataset id="ds_hidden_pam_printer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1035. <Dataset id="ds_hidden_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1036. <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1037. <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1038. <Dataset id="ds_hidden_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1039. <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1040. <Dataset id="ds_hidden_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1041. <Dataset id="ds_hidden_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1042. <Dataset id="ds_hidden_init_roomgrdecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1043. <Dataset id="ds_hidden_init_roomtypecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1044. <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1045. <Dataset id="ds_hidden_rcv_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1046. <Dataset id="ds_hidden_rsltflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1047. <Dataset id="ds_send_data3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1048. <ColumnInfo>
  1049. <Column id="sess_posinstcd" type="STRING" size="256"/>
  1050. </ColumnInfo>
  1051. <Rows>
  1052. <Row/>
  1053. </Rows>
  1054. </Dataset>
  1055. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1056. <ColumnInfo>
  1057. <Column id="nhicyn" type="STRING" size="256"/>
  1058. <Column id="rsrvyn" type="STRING" size="256"/>
  1059. </ColumnInfo>
  1060. <Rows>
  1061. <Row/>
  1062. </Rows>
  1063. </Dataset>
  1064. <Dataset id="ds_hidden_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1065. <Dataset id="ds_hidden_target_grdroomspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1066. <ColumnInfo>
  1067. <Column id="wardcd" type="STRING" size="256"/>
  1068. </ColumnInfo>
  1069. <Rows>
  1070. <Row/>
  1071. </Rows>
  1072. </Dataset>
  1073. <Dataset id="ds_cmd_medispcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1074. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1075. <ColumnInfo>
  1076. <Column id="sorddeptcd" type="STRING" size="256"/>
  1077. </ColumnInfo>
  1078. <Rows>
  1079. <Row/>
  1080. </Rows>
  1081. </Dataset>
  1082. <Dataset id="ds_static_yn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1083. <ColumnInfo>
  1084. <Column id="label" type="STRING" size="256"/>
  1085. <Column id="value" type="STRING" size="256"/>
  1086. </ColumnInfo>
  1087. <Rows>
  1088. <Row>
  1089. <Col id="label">Y</Col>
  1090. <Col id="value">Y</Col>
  1091. </Row>
  1092. <Row>
  1093. <Col id="label">N</Col>
  1094. <Col id="value">N</Col>
  1095. </Row>
  1096. </Rows>
  1097. </Dataset>
  1098. <Dataset id="ds_static_clincstdyacptflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1099. <ColumnInfo>
  1100. <Column id="label" type="STRING" size="256"/>
  1101. <Column id="value" type="STRING" size="256"/>
  1102. </ColumnInfo>
  1103. <Rows>
  1104. <Row>
  1105. <Col id="label">-</Col>
  1106. <Col id="value">N</Col>
  1107. </Row>
  1108. <Row>
  1109. <Col id="label">임상(전액청구)</Col>
  1110. <Col id="value">P</Col>
  1111. </Row>
  1112. <Row>
  1113. <Col id="label">임상(진찰료제외)</Col>
  1114. <Col id="value">Q</Col>
  1115. </Row>
  1116. <Row>
  1117. <Col id="label">동물임상</Col>
  1118. <Col id="value">A</Col>
  1119. </Row>
  1120. </Rows>
  1121. </Dataset>
  1122. <Dataset id="ds_combo21" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1123. <Dataset id="ds_static_inrsrvgrad" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1124. <ColumnInfo>
  1125. <Column id="label" type="STRING" size="256"/>
  1126. <Column id="value" type="STRING" size="256"/>
  1127. </ColumnInfo>
  1128. <Rows>
  1129. <Row>
  1130. <Col id="label">-</Col>
  1131. <Col id="value">-</Col>
  1132. </Row>
  1133. <Row>
  1134. <Col id="label">상</Col>
  1135. <Col id="value">1</Col>
  1136. </Row>
  1137. <Row>
  1138. <Col id="label">중</Col>
  1139. <Col id="value">2</Col>
  1140. </Row>
  1141. <Row>
  1142. <Col id="label">하</Col>
  1143. <Col id="value">3</Col>
  1144. </Row>
  1145. </Rows>
  1146. </Dataset>
  1147. <Dataset id="ds_hidden_init_proccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1148. <Dataset id="ds_main_nhicinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1149. <ColumnInfo>
  1150. <Column id="nhic_rareobstflag" type="STRING" size="256"/>
  1151. <Column id="nhic_disregprson3" type="STRING" size="256"/>
  1152. </ColumnInfo>
  1153. <Rows>
  1154. <Row>
  1155. <Col id="nhic_rareobstflag"/>
  1156. <Col id="nhic_disregprson3"/>
  1157. </Row>
  1158. </Rows>
  1159. </Dataset>
  1160. <Dataset id="ds_hidden_h_deciprint" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1161. <ColumnInfo>
  1162. <Column id="indd" type="STRING" size="256" sumtext="입원일자년"/>
  1163. <Column id="inpath" type="STRING" size="256" sumtext="입원경로"/>
  1164. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  1165. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1166. <Column id="orddrid" type="STRING" size="256" sumtext="담당교수"/>
  1167. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  1168. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1169. <Column id="hngnm" type="STRING" size="256" sumtext="한글성명"/>
  1170. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  1171. <Column id="sex" type="STRING" size="256" sumtext="성별1"/>
  1172. <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
  1173. <Column id="address" type="STRING" size="256" sumtext="주소"/>
  1174. <Column id="hometel" type="STRING" size="256" sumtext="연락처"/>
  1175. <Column id="mpphontel" type="STRING" size="256" sumtext="핸드폰"/>
  1176. <Column id="insukind" type="STRING" size="256" sumtext="영문약어"/>
  1177. <Column id="insucd" type="STRING" size="256" sumtext="선택여부"/>
  1178. <Column id="insuno" type="STRING" size="256" sumtext="일련번호"/>
  1179. <Column id="insdnm" type="STRING" size="256" sumtext="바코드"/>
  1180. <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
  1181. <Column id="termhngnm" type="STRING" size="256" sumtext="상병명"/>
  1182. <Column id="inschedd" type="STRING" size="256" sumtext="입원예정일"/>
  1183. <Column id="opschedd" type="STRING" size="256" sumtext="수술예정일"/>
  1184. <Column id="indirecdrnm" type="STRING" size="256" sumtext="의뢰자"/>
  1185. <Column id="inrsrvacptdt" type="STRING" size="256" sumtext="의뢰일시"/>
  1186. <Column id="handicapryn1" type="STRING" size="256" sumtext="장애인유무1"/>
  1187. <Column id="handicapryn2" type="STRING" size="256" sumtext="장애인유무2"/>
  1188. <Column id="inrsrvrem" type="STRING" size="256" sumtext="원무참고사항"/>
  1189. <Column id="cnstyn" type="STRING" size="256" sumtext="의뢰서제출여부"/>
  1190. <Column id="rareobstflag" type="STRING" size="256" sumtext="희귀난치"/>
  1191. <Column id="disregprson3" type="STRING" size="256" sumtext="차상위"/>
  1192. <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTag"/>
  1193. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  1194. <Column id="bedcnt" type="STRING" size="256" sumtext="병상수"/>
  1195. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞자리"/>
  1196. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒷자리"/>
  1197. <Column id="grnternm" type="STRING" size="256" sumtext="보증인명"/>
  1198. <Column id="grntertel" type="STRING" size="256" sumtext="보증인전화번호"/>
  1199. <Column id="realcd" type="STRING" size="256" sumtext="관계"/>
  1200. <Column id="addr" type="STRING" size="256" sumtext="주소"/>
  1201. <Column id="grnterrrgstno1" type="STRING" size="256" sumtext="보증인주민번호앞"/>
  1202. <Column id="grnterrrgstno2" type="STRING" size="256" sumtext="보증인주민번호뒤"/>
  1203. <Column id="grntermpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  1204. <Column id="worknm" type="STRING" size="256" sumtext="직장명"/>
  1205. <Column id="worktel" type="STRING" size="256" sumtext="직장전화번호"/>
  1206. <Column id="grnternm1" type="STRING" size="256" sumtext="보증인명1"/>
  1207. <Column id="grntertel1" type="STRING" size="256" sumtext="보증인전화번호1"/>
  1208. <Column id="real1" type="STRING" size="256" sumtext="관계1"/>
  1209. <Column id="addr1" type="STRING" size="256" sumtext="주소1"/>
  1210. <Column id="grnterrrgstno11" type="STRING" size="256" sumtext="보증인주민번호앞1"/>
  1211. <Column id="grnterrrgstno12" type="STRING" size="256" sumtext="보증인주민번호뒤1"/>
  1212. <Column id="grntermpphontel1" type="STRING" size="256" sumtext="휴대전화번호1"/>
  1213. <Column id="worknm1" type="STRING" size="256" sumtext="직장명1"/>
  1214. <Column id="worktel1" type="STRING" size="256" sumtext="직장전화번호1"/>
  1215. <Column id="centcd" type="STRING" size="256" sumtext="센터명"/>
  1216. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1217. <Column id="hosptel" type="STRING" size="256" sumtext="병원전화번호"/>
  1218. <Column id="insukindcd" type="STRING" size="256" sumtext="보험유형코드"/>
  1219. </ColumnInfo>
  1220. </Dataset>
  1221. <Dataset id="ds_hidden_printers_printer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1222. <Dataset id="ds_hidden_patappinfo_patappinfo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1223. </Objects>
  1224. <Bind>
  1225. <BindItem id="item49" compid="grp1.cmb_rorddeptcd1" propid="value" datasetid="ds_send_data1" columnid="sorddeptcd"/>
  1226. <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_main_ptbspatinfo" columnid="pid"/>
  1227. <BindItem id="item1" compid="ipt_hngnm" propid="value" datasetid="ds_main_ptbspatinfo" columnid="hngnm"/>
  1228. <BindItem id="item2" compid="ipt_rrgstno1" propid="value" datasetid="ds_main_ptbspatinfo" columnid="rrgstno1"/>
  1229. <BindItem id="item3" compid="ipt_rrgstno2" propid="value" datasetid="ds_main_ptbspatinfo" columnid="rrgstno2"/>
  1230. <BindItem id="item4" compid="ipt_hometel" propid="value" datasetid="ds_main_ptbspatinfo" columnid="hometel"/>
  1231. <BindItem id="item5" compid="ipt_mpphontel" propid="value" datasetid="ds_main_ptbspatinfo" columnid="mpphontel"/>
  1232. <BindItem id="item6" compid="chk_recmyn" propid="value" datasetid="ds_main_ptbspatinfo" columnid="recmyn"/>
  1233. <BindItem id="item7" compid="opt_recmerid" propid="value" datasetid="ds_main_ptbspatinfo" columnid="recmerid"/>
  1234. <BindItem id="item8" compid="ipt_brthyy" propid="value" datasetid="ds_main_ptbspatinfo" columnid="brthdd"/>
  1235. <BindItem id="item9" compid="opt_brthmm" propid="value" datasetid="ds_main_ptbspatinfo" columnid="sex"/>
  1236. <BindItem id="item10" compid="opt_brthdd" propid="value" datasetid="ds_main_ptbspatinfo" columnid="age"/>
  1237. <BindItem id="item11" compid="chk_vipyn" propid="value" datasetid="ds_main_ptbspatinfo"/>
  1238. <BindItem id="item12" compid="ipt_zipcd1" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipcd1"/>
  1239. <BindItem id="item13" compid="ipt_zipcd2" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipcd2"/>
  1240. <BindItem id="item14" compid="ipt_addr" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipnm"/>
  1241. <BindItem id="item15" compid="ipt_detladdr" propid="value" datasetid="ds_main_ptbspatinfo" columnid="detladdr"/>
  1242. <BindItem id="item16" compid="output6" propid="value" datasetid="ds_main_adrv" columnid="indirecdrid_nm"/>
  1243. <BindItem id="item17" compid="opt_indirecdd" propid="value" datasetid="ds_main_adrv" columnid="indirecdd"/>
  1244. <BindItem id="item18" compid="output4" propid="value" datasetid="ds_main_adrv" columnid="orddeptcd_nm"/>
  1245. <BindItem id="item19" compid="output5" propid="value" datasetid="ds_main_adrv" columnid="orddrid_nm"/>
  1246. <BindItem id="item20" compid="opt_inhopedd" propid="value" datasetid="ds_main_adrv" columnid="inhopedd"/>
  1247. <BindItem id="item21" compid="ipt_patinhopedd" propid="value" datasetid="ds_main_adrv" columnid="patinhopedd"/>
  1248. <BindItem id="item22" compid="ipt_scheopdd" propid="value" datasetid="ds_main_adrv" columnid="scheopdd"/>
  1249. <BindItem id="item23" compid="cmb_inhopeward" propid="value" datasetid="ds_main_adrv" columnid="inhopeward"/>
  1250. <BindItem id="item24" compid="cmb_inhoperoomgrdefrom" propid="value" datasetid="ds_main_adrv" columnid="inhoperoomgrdefrom"/>
  1251. <BindItem id="item25" compid="cmb_inhoperoomgrdeto" propid="value" datasetid="ds_main_adrv" columnid="inhoperoomgrdeto"/>
  1252. <BindItem id="item26" compid="combo7" propid="value" datasetid="ds_main_adrv" columnid="wardtypecd"/>
  1253. <BindItem id="item27" compid="combo6" propid="value" datasetid="ds_main_adrv" columnid="specwardcd"/>
  1254. <BindItem id="item28" compid="cmb_bmtyn" propid="value" datasetid="ds_main_adrv" columnid="bmtyn"/>
  1255. <BindItem id="item29" compid="cmb_specroomyn" propid="value" datasetid="ds_main_adrv" columnid="specroomyn"/>
  1256. <BindItem id="item30" compid="output3" propid="value" datasetid="ds_main_adrv" columnid="clincstdyno"/>
  1257. <BindItem id="item31" compid="combo2" propid="value" datasetid="ds_main_adrv" columnid="erreglyn"/>
  1258. <BindItem id="item32" compid="rdo_isolroomyn" propid="value" datasetid="ds_main_adrv" columnid="isolroomyn"/>
  1259. <BindItem id="item33" compid="combo3" propid="value" datasetid="ds_main_adrv" columnid="drgyn"/>
  1260. <BindItem id="item34" compid="combo4" propid="value" datasetid="ds_main_adrv" columnid="oxyyn"/>
  1261. <BindItem id="item35" compid="combo5" propid="value" datasetid="ds_main_adrv" columnid="suctyn"/>
  1262. <BindItem id="item36" compid="tar_inrsrvrem" propid="value" datasetid="ds_main_adrv" columnid="inrsrvrem"/>
  1263. <BindItem id="item37" compid="opt_inrsrvacptdd" propid="value" datasetid="ds_main_adrv" columnid="inrsrvacptdd"/>
  1264. <BindItem id="item38" compid="opt_inrsrvacpttm" propid="value" datasetid="ds_main_adrv" columnid="inrsrvacpttm"/>
  1265. <BindItem id="item39" compid="opt_lastupdtdt" propid="value" datasetid="ds_main_adrv" columnid="lastupdtdt"/>
  1266. <BindItem id="item40" compid="cmb_inrsrvgrad" propid="value" datasetid="ds_main_adrv" columnid="inrsrvgrad"/>
  1267. <BindItem id="item41" compid="grp1.bol_checkdd1" propid="value" datasetid="ds_send_data1" columnid="s_checkflag"/>
  1268. <BindItem id="item42" compid="output2" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipcdseq"/>
  1269. <BindItem id="item44" compid="combo1" propid="value" datasetid="ds_main_ptbspatinfo" columnid="disccd"/>
  1270. <BindItem id="item47" compid="grp1.ipt_inrsrvfromdd" propid="value" datasetid="ds_send_data1" columnid="inrsrvacptfromdd"/>
  1271. <BindItem id="item48" compid="grp1.cmd_medispcl" propid="value" datasetid="ds_send_data1" columnid="sorddrid"/>
  1272. <BindItem id="item50" compid="grp1.ipt_inrsrvtodd" propid="value" datasetid="ds_send_data1" columnid="inrsrvacpttodd"/>
  1273. <BindItem id="item51" compid="grp2.ipt_inhopefromdd" propid="value" datasetid="ds_send_data2" columnid="patinhopefromdd"/>
  1274. <BindItem id="item52" compid="grp2.ipt_inhopetodd" propid="value" datasetid="ds_send_data2" columnid="patinhopetodd"/>
  1275. <BindItem id="item53" compid="grp2.cmb_rorddeptcd2" propid="value" datasetid="ds_send_data2" columnid="rorddeptcd"/>
  1276. <BindItem id="item54" compid="grp2.combo21" propid="value" datasetid="ds_send_data2" columnid="rorddrid"/>
  1277. <BindItem id="item55" compid="grp2.bol_checkdd1" propid="value" datasetid="ds_send_data2" columnid="r_checkflag"/>
  1278. <BindItem id="item43" compid="chk_nhicyn" propid="value" datasetid="ds_hidden" columnid="nhicyn"/>
  1279. </Bind>
  1280. <Script type="xscript4.0"><![CDATA[//=======================================================================================
  1281. // Lib Include
  1282. //---------------------------------------------------------------------------------------
  1283. include 'com_commonxp::comm_main.xjs';
  1284. include 'com_basiccodexp::ZBC001.xjs'
  1285. include 'pam_pamcomnxp::PAM001.xjs';
  1286. include "pam_pamcomnxp::PAM.xjs";
  1287. var arErrorCode = new HashArray();
  1288. var cmcnuprinter_path = system.convertRealPath("%MYDOCUMENT%") + "\\KU20\\cmcnuprinter";
  1289. //=======================================================================================
  1290. // Local methods
  1291. //---------------------------------------------------------------------------------------
  1292. /**
  1293. * [fPatRsrvInfoSrch description]
  1294. * @return {[type]} [description]
  1295. */
  1296. function fPatRsrvInfoSrch() {
  1297. ds_hidden_rcv_ptbspatinfo.clearData();
  1298. ds_hidden_rcv_adrv.clearData();
  1299. var oParam = {};
  1300. oParam.id = "TRPMI00204";
  1301. oParam.service = "ipatmngtapp.InRsrv";
  1302. oParam.method = "reqGetInRsrvDetlSpec";
  1303. oParam.inds = "req=ds_send_data4";
  1304. oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
  1305. oParam.async = false;
  1306. oParam.callback = "callback";
  1307. tranf_submit(oParam);
  1308. if (arErrorCode.pop("TRPMI00204") > -1) {
  1309. ds_hidden_rcv_ptbspatinfo.updateColID('ptbsremfact', 'remfact');
  1310. var iptbscnt = ds_hidden_rcv_ptbspatinfo.rowcount;
  1311. var iadrvcnt = ds_hidden_rcv_adrv.rowcount;
  1312. if (iptbscnt > 0) {
  1313. ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
  1314. }
  1315. else {
  1316. sysf_messageBox("환자인적이", "I004");
  1317. ds_main_ptbspatinfo.clearData();
  1318. ds_main_ptbspatinfo.addRow();
  1319. ds_main_adrv.clearData();
  1320. ds_main_adrv.addRow();
  1321. return false;
  1322. }
  1323. if (iadrvcnt > 0) {
  1324. ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
  1325. ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
  1326. }
  1327. else {
  1328. sysf_messageBox("입원결정서 또는 입원예약 내용이", "I004");
  1329. ds_main_ptbspatinfo.clearData();
  1330. ds_main_ptbspatinfo.addRow();
  1331. ds_main_adrv.clearData();
  1332. ds_main_adrv.addRow();
  1333. return false;
  1334. }
  1335. var inrsrvstat_flag = ds_main_adrv.getColumn(0, "inrsrvstat");
  1336. //결정서내역이면
  1337. if (inrsrvstat_flag == "S") {
  1338. btn_update.enable = false;
  1339. btn_cncl.enable = false;
  1340. btn_insert.enable = true;
  1341. }
  1342. else if (inrsrvstat_flag == "R") {
  1343. btn_update.enable = true;
  1344. btn_cncl.enable = true;
  1345. btn_insert.enable = false;
  1346. }
  1347. var sErreglyn = ds_main_adrv.getColumn(0, "erreglyn");
  1348. if (sErreglyn == "F") {
  1349. combo2.style.background.color = "#ff0000";
  1350. }
  1351. else {
  1352. combo2.style.background.color = "#ffffff";
  1353. }
  1354. }
  1355. }
  1356. /**
  1357. * [fPatEmplInfoRef description]
  1358. * @return {[type]} [description]
  1359. */
  1360. function fPatEmplInfoRef() {
  1361. //2007.11.28 인사정보의 직원, 직원가족정보 조회
  1362. var rrgstno1 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  1363. var rrgstno2 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
  1364. // 2008.07.12 - 직원정보 조회 방법변경에 따른 소스수정
  1365. if (rrgstno1.length == 6 && rrgstno2.length == 7) {
  1366. var sEmplInfo = fGetPsnWorkInfo(rrgstno1 + rrgstno2);
  1367. }
  1368. }
  1369. /**
  1370. * 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  1371. * @return {[type]} [description]
  1372. */
  1373. function fInitialize() {
  1374. ds_send_data1.clearData();
  1375. ds_send_data1.addRow();
  1376. ds_send_data2.clearData();
  1377. ds_send_data2.addRow();
  1378. ds_send_data4.clearData();
  1379. ds_send_data4.addRow();
  1380. ds_send_data5.clearData();
  1381. ds_send_data5.addRow();
  1382. ds_send_data6.clearData();
  1383. ds_send_data6.addRow();
  1384. ds_send_data7.clearData();
  1385. ds_send_data7.addRow();
  1386. ds_send_data8.clearData();
  1387. ds_send_data8.addRow();
  1388. ds_send_data9.clearData();
  1389. ds_send_data9.addRow();
  1390. ds_send_data10.clearData();
  1391. ds_send_data10.addRow();
  1392. ds_send_data11.clearData();
  1393. ds_send_data11.addRow();
  1394. ds_main_ptbspatinfo.clearData();
  1395. ds_main_ptbspatinfo.addRow()
  1396. ds_main_adrv.clearData();
  1397. ds_main_adrv.addRow()
  1398. ds_main_patinfo.clearData();
  1399. ds_main_patinfo.addRow()
  1400. ds_main_list1_grdinhpdeci.clearData();
  1401. ds_main_list2_grdinhprsspec.clearData();
  1402. ds_hidden_rcv_ptbspatinfo.clearData();
  1403. ds_hidden_rcv_adrv.clearData();
  1404. ds_hidden_h_rcv_ptin.clearData();
  1405. ds_hidden_original_adrv.clearData();
  1406. ds_hidden_check_ptbs.clearData();
  1407. ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
  1408. ds_send_data1.setColumn(0, "inrsrvacpttodd", utlf_getCurrentDate());
  1409. ds_send_data1.setColumn(0, "s_checkflag", "true");
  1410. ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
  1411. ds_send_data2.setColumn(0, "patinhopetodd", utlf_getCurrentDate());
  1412. ds_send_data2.setColumn(0, "r_checkflag", "true");
  1413. combo2.style.background.color = "#ffffff";
  1414. btn_insert.enable = true;
  1415. btn_update.enable = true;
  1416. btn_cncl.enable = true;
  1417. }
  1418. /**
  1419. * [fSQueryRef description]
  1420. * @return {[type]} [description]
  1421. */
  1422. function fSQueryRef() {
  1423. ds_send_data1.setColumn(0, "sendflag", "D");
  1424. dsf_createDsRow('ds_TRPMI00201', [
  1425. { col: 'inrsrvacptfromdd', type: 'string', size: 256, val: '' },
  1426. { col: 'inrsrvacpttodd', type: 'string', size: 256, val: '' },
  1427. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  1428. { col: 'orddrid', type: 'string', size: 256, val: '' },
  1429. { col: 'sendflag', type: 'string', size: 256, val: '' },
  1430. { col: 's_checkflag', type: 'string', size: 256, val: '' },
  1431. { col: 'pid', type: 'string', size: 256, val: '' }
  1432. ], false);
  1433. ds_TRPMI00201.copyRow(0, ds_send_data1, 0);
  1434. ds_TRPMI00201.setColumn(0, 'orddeptcd', ds_send_data1.getColumn(0, 'sorddeptcd'));
  1435. ds_TRPMI00201.setColumn(0, 'orddrid', ds_send_data1.getColumn(0, 'sorddrid'));
  1436. var oParam = {};
  1437. oParam.id = "TRPMI00201";
  1438. oParam.service = "ipatmngtapp.InRsrv";
  1439. oParam.method = "reqGetInRsrvRefList";
  1440. oParam.inds = "req=ds_TRPMI00201";
  1441. oParam.outds = "ds_main_list1_grdinhpdeci=grdinhpdeci";
  1442. oParam.async = false;
  1443. tranf_submit(oParam);
  1444. var s_adrvcnt = ds_main_list1_grdinhpdeci.rowcount;
  1445. if (s_adrvcnt > 0) {
  1446. //2008.01.28 잠시막음
  1447. //선택진료의인경우 색표시
  1448. // var nodeList = instance1.selectSingleNode("/root/hidden/init");
  1449. // var node = nodeList.childNodes;
  1450. // for (j = 1; j <= s_adrvcnt; j++) {
  1451. // var adrv_orddrid = model.getValue("/root/main/list1/grdinhpdeci[" + j + "]/orddrid");
  1452. // for (i = 1; i <= node.length; i++) {
  1453. // var cd_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/cd");
  1454. // if (cd_orddrid == adrv_orddrid) {
  1455. // var sp_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/sp");
  1456. // if (sp_orddrid == "Y") {
  1457. // grd_inhpdeci.colStyle(11, "data", "color") = "blue";
  1458. // }
  1459. // }
  1460. // }
  1461. // }
  1462. // model.refresh();
  1463. }
  1464. else {
  1465. ds_main_list1_grdinhpdeci.clearData();
  1466. }
  1467. }
  1468. /**
  1469. * [fRQueryRef description]
  1470. * @return {[type]} [description]
  1471. */
  1472. function fRQueryRef() {
  1473. ds_send_data2.setColumn(0, "sendflag", "Y");
  1474. dsf_createDsRow('ds_TRPMI00202', [
  1475. { col: 'patinhopefromdd', type: 'string', size: 256, val: '' },
  1476. { col: 'patinhopetodd', type: 'string', size: 256, val: '' },
  1477. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  1478. { col: 'orddrid', type: 'string', size: 256, val: '' },
  1479. { col: 'sendflag', type: 'string', size: 256, val: '' },
  1480. { col: 'r_checkflag', type: 'string', size: 256, val: '' },
  1481. { col: 'pid', type: 'string', size: 256, val: '' }
  1482. ], false);
  1483. ds_TRPMI00202.copyRow(0, ds_send_data2, 0);
  1484. ds_TRPMI00202.setColumn(0, 'orddeptcd', ds_send_data2.getColumn(0, 'rorddeptcd'));
  1485. ds_TRPMI00202.setColumn(0, 'orddrid', ds_send_data2.getColumn(0, 'rorddrid'));
  1486. ds_main_list2_grdinhprsspec.clearData();
  1487. var oParam = {};
  1488. oParam.id = "TRPMI00202";
  1489. oParam.service = "ipatmngtapp.InRsrv";
  1490. oParam.method = "reqGetInRsrvRefList";
  1491. oParam.inds = "req=ds_TRPMI00202";
  1492. oParam.outds = "ds_main_list2_grdinhprsspec=grdinhprsspec";
  1493. oParam.async = false;
  1494. tranf_submit(oParam);
  1495. var r_adrvcnt = ds_main_list2_grdinhprsspec.rowcount;
  1496. if (r_adrvcnt > 0) {
  1497. //2008.01.28 잠시막음
  1498. //선택진료의인경우 색표시
  1499. // var nodeList = instance1.selectSingleNode("/root/hidden/init");
  1500. // var node = nodeList.childNodes;
  1501. // for (j = 1; j <= r_adrvcnt; j++) {
  1502. // var adrv_orddrid = model.getValue("/root/main/list2/grdinhprsspec[" + j + "]/orddrid");
  1503. // for (i = 1; i <= node.length; i++) {
  1504. // var cd_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/cd");
  1505. // if (cd_orddrid == adrv_orddrid) {
  1506. // var sp_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/sp");
  1507. // if (sp_orddrid == "Y") {
  1508. // grd_inhprsspec.colStyle(10, "data", "color") = "blue";
  1509. // }
  1510. // }
  1511. // }
  1512. // }
  1513. // model.refresh();
  1514. }
  1515. else {
  1516. ds_main_list2_grdinhprsspec.clearData();
  1517. }
  1518. }
  1519. /**
  1520. * 2008.12.16 환자보험정보 조회
  1521. * @return {[type]} [description]
  1522. */
  1523. function fGetPtinInfo() {
  1524. // 2008.12.16 - 환자보험유형에 따라서 보험정보조회(pmcmptin)
  1525. // 건강보험, 의료급여1종, 의료급여2종일 때만 조회
  1526. var sInsuKind = ds_main_adrv.getColumn(0, "insukind");
  1527. if (sInsuKind == "11" || sInsuKind == "21" || sInsuKind == "22") {
  1528. //map화일에 min_count="1" 데이터가 없어도 인스턴스 존재. temp의 값을 카피할 필요없다.
  1529. ds_send_data11.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  1530. ds_send_data11.setColumn(0, "insukind", sInsuKind);
  1531. ds_send_data11.setColumn(0, "insucd", "");
  1532. ds_send_data11.setColumn(0, "appdd", utlf_getCurrentDate());
  1533. ds_send_data11.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  1534. ds_send_data11.setColumn(0, "checkflag", "1");
  1535. dsf_createDsRow('ds_TRPMI00109', [
  1536. { col: 'pid', type: 'string', size: 256, val: '' },
  1537. { col: 'insukind', type: 'string', size: 256, val: '' },
  1538. { col: 'insucd', type: 'string', size: 256, val: '' },
  1539. { col: 'appdd', type: 'string', size: 256, val: '' },
  1540. { col: 'orddd', type: 'string', size: 256, val: '' },
  1541. { col: 'instcd', type: 'string', size: 256, val: '' },
  1542. { col: 'indd', type: 'string', size: 256, val: '' },
  1543. { col: 'checkflag', type: 'string', size: 256, val: '' },
  1544. { col: 'suppkind', type: 'string', size: 256, val: '' }
  1545. ], false);
  1546. ds_TRPMI00109.copyRow(0, ds_send_data11, 0);
  1547. ds_TRPMI00109.setColumn(0, 'orddd', ds_send_data11.getColumn(0, 'appdd'));
  1548. ds_hidden_h_rcv_ptin.clearData();
  1549. var oParam = {};
  1550. oParam.id = "TRPMI00109";
  1551. oParam.service = "pamcomnapp.PamComn";
  1552. oParam.method = "reqGetPatInsuInfo";
  1553. oParam.inds = "req=ds_TRPMI00109";
  1554. oParam.outds = "ds_hidden_h_rcv_ptin=ptin";
  1555. oParam.async = false;
  1556. oParam.callback = "callback";
  1557. tranf_submit(oParam);
  1558. if (arErrorCode.pop("TRPMI00109") > -1) {
  1559. ds_send_data11.clearData();
  1560. var sPtinPid = ds_hidden_h_rcv_ptin.getColumn(0, "ptin_pid");
  1561. if (!isNull(sPtinPid)) {
  1562. ds_main_ptin.copyData(ds_hidden_h_rcv_ptin, false);
  1563. }
  1564. }
  1565. }
  1566. }
  1567. /**
  1568. * [fRrgstNo1Veri description]
  1569. * @return {[type]} [description]
  1570. */
  1571. function fRrgstNo1Veri() {
  1572. var ptbs_rrgstno1 = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  1573. if (ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-") {
  1574. if (ptbs_rrgstno1.length != 6) {
  1575. sysf_messageBox("주민번호1은 6자리여야 합니다!", "E999", "");
  1576. ptbs_rrgstno1.setFocus();
  1577. return false;
  1578. }
  1579. if (ptbs_rrgstno1.isNumber() != true) {
  1580. sysf_messageBox("주민번호1은 숫자형태로 입력되어야 합니다!", "E999", "");
  1581. ptbs_rrgstno1.setFocus();
  1582. return false;
  1583. }
  1584. }
  1585. else {
  1586. sysf_messageBox("주민번호1은 6자리여야 합니다!", "E999", "");
  1587. ptbs_rrgstno1.setFocus();
  1588. return false;
  1589. }
  1590. }
  1591. /**
  1592. * [fRrgstNo2Veri description]
  1593. * @return {[type]} [description]
  1594. */
  1595. function fRrgstNo2Veri() {
  1596. var ptbs_brthdd;
  1597. var ptbs_rrgstno1 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  1598. var ptbs_rrgstno2 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
  1599. if (ptbs_rrgstno1.length != 6) {
  1600. sysf_messageBox("환자주민번호1은 6자리입니다!", "E999", "");
  1601. model.setFocus("ptbs_rrgstno1");
  1602. return false;
  1603. }
  1604. if (ptbs_rrgstno2.length != 7) {
  1605. sysf_messageBox("환자주민번호2은 7자리입니다!", "E999", "");
  1606. model.setFocus("ipt_rrgstno2");
  1607. return false;
  1608. }
  1609. var gubn = ptbs_rrgstno2.substr(0, 1);
  1610. switch (gubn) {
  1611. case '1':
  1612. case '2':
  1613. case '5':
  1614. case '6':
  1615. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  1616. break;
  1617. case '3':
  1618. case '4':
  1619. case '7':
  1620. case '8':
  1621. ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
  1622. break;
  1623. case '9':
  1624. case '0':
  1625. ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
  1626. break;
  1627. default:
  1628. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  1629. break;
  1630. }
  1631. //model.setValue("/root/main/ptbspatinfo/brthdd",ptbs_brthdd);
  1632. if (utlf_isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false) {
  1633. sysf_messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!", "E999", "");
  1634. ds_main_ptbspatinfo.setColumn(0, "rrgstno1", "");
  1635. ds_main_ptbspatinfo.setColumn(0, "rrgstno2", "");
  1636. ds_main_ptbspatinfo.setColumn(0, "brthdd", "");
  1637. return false;
  1638. }
  1639. }
  1640. /**
  1641. * 2009년 03월 20일, JHP
  1642. * 서울성모이전으로 프린터를 2tray와 1tray짜리를 동시에 사용한다. 수납쪽(영수증, 중간계산서)은 1tray, 등록쪽(약정서, 입원카드)은 2tray를 쓰는데
  1643. * 1트레이는 기본이므로 수납쪽은 그냥 둔다. 근데 2트레이는 렉스퍼트 출력시 트레이번호를 셋팅값으로 박아줘야하는데 프린터 정보는 동적으로 가지고 올수 없기때문에
  1644. * 임의의 경로에 txt파일을 만들어 트레이값을 설정하여 저장하여놓고 불러와서 트레이번호를 매겨준다.
  1645. * 이때 해당 파일이 없으면 해당파일을 사용자가 만들어준다.
  1646. * @return {[type]} [description]
  1647. */
  1648. function fSetPrinterTray() {
  1649. // 프린터 트레이 설정을 위한 ini파일 조회
  1650. var printerfileno = "X";
  1651. var vFile = new VirtualFile(cmcnuprinter_path + "\\printer.ini", VirtualFile.openRead | VirtualFile.openText);
  1652. var sLine = "";
  1653. // 파일읽기
  1654. if (vFile.readLine() != null) {
  1655. while ((sLine = vFile.readLine()).length > 0) {
  1656. if (sLine.indexOf("=") > -1) {
  1657. printerfileno = sLine.charAt(sLine.indexOf("=") + 1);
  1658. }
  1659. }
  1660. }
  1661. // 파일 존재하지 않는 경우 파일생성
  1662. if (printerfileno == "X") {
  1663. if (sysf_messageBox("프린터 트레이정보가 존재하지 않습니다. ''예 = 트레이1개'', ''아니오 = 트레이2개'' ", "Q003") == "6") {
  1664. printerfileno = "1";
  1665. }
  1666. else {
  1667. printerfileno = "2";
  1668. }
  1669. // 폴더생성
  1670. if (VirtualFile.isExist(cmcnuprinter_path) == false) {
  1671. VirtualFile.createDirectory(cmcnuprinter_path);
  1672. }
  1673. // 파일쓰기
  1674. var vFileNew = new VirtualFile(cmcnuprinter_path + "\\printer.ini", VirtualFile.openWrite | VirtualFile.openText);
  1675. vFileNew.write("[Tray]");
  1676. vFileNew.write("\r\n");
  1677. vFileNew.write("trayno=" + printerfileno);
  1678. vFileNew.close();
  1679. dsf_makeValue(ds_hidden_pam_printer, "value", 'string', printerfileno);
  1680. }
  1681. else{
  1682. dsf_makeValue(ds_hidden_pam_printer, "value", 'string', printerfileno);
  1683. }
  1684. }
  1685. /**
  1686. * [fHngNmVeri description]
  1687. * @param {[type]} gubn [description]
  1688. * @return {[type]} [description]
  1689. */
  1690. function fHngNmVeri(gubn) {
  1691. var ptbs_hngnm;
  1692. if (gubn == "xforms-next") {
  1693. ptbs_hngnm = String(ds_main_ptbspatinfo.getColumn(0, "hngnm"));
  1694. }
  1695. else if (gubn == "onkeypress" || gubn == "onkeyup") {
  1696. ptbs_hngnm = String(ds_main_ptbspatinfo.getColumn(0, "hngnm"));
  1697. }
  1698. //한글 한글자를 그냥 길이1로 계산
  1699. if (parseInt((ptbs_hngnm.length)) < 2) {
  1700. sysf_messageBox("환자성명은 2글자 이상되어야 합니다!", "E999", "");
  1701. ipt_hngnm.setFocus();
  1702. return false;
  1703. }
  1704. }
  1705. /**
  1706. * [fGetPidInfo description]
  1707. * @return {[type]} [description]
  1708. */
  1709. function fGetPidInfo() {
  1710. ds_send_data4.clearData();
  1711. ds_send_data4.addRow();
  1712. ds_send_data5.clearData();
  1713. ds_send_data5.addRow();
  1714. ds_send_data6.clearData();
  1715. ds_send_data6.addRow();
  1716. ds_send_data7.clearData();
  1717. ds_send_data7.addRow();
  1718. ds_send_data8.clearData();
  1719. ds_send_data8.addRow();
  1720. ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  1721. ds_send_data4.setColumn(0, "mode", "0");
  1722. //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
  1723. ds_send_data5.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  1724. ds_send_data5.setColumn(0, "srchcond", "1")
  1725. fPatRsrvInfoSrch();
  1726. //20100115 jhp 수정추가 변경요청번호 3258 인사정보의 직원, 직원가족정보 조회
  1727. fPatEmplInfoRef();
  1728. //2008-04-14 이성인 추가
  1729. //인적사항 조회시 자동으로 입원결정서 , 입원예약내역을 조회하여온다.
  1730. if (isNull(ds_main_ptbspatinfo.getColumn(0, "pid"))) {
  1731. fInitialize();
  1732. }
  1733. else {
  1734. var temp = ds_send_data1.getColumn(0, "inrsrvacptfromdd");
  1735. ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
  1736. ds_send_data1.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  1737. ds_send_data1.setColumn(0, "s_checkflag", "false");
  1738. fSQueryRef();
  1739. ds_send_data2.setColumn(0, "patinhopefromdd", "");
  1740. ds_send_data2.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  1741. ds_send_data2.setColumn(0, "r_checkflag", "false");
  1742. fRQueryRef();
  1743. ds_send_data2.setColumn(0, "patinhopefromdd", temp);
  1744. ds_send_data1.setColumn(0, "inrsrvacptfromdd", temp);
  1745. ds_send_data1.setColumn(0, "s_checkflag", "true");
  1746. ds_send_data2.setColumn(0, "r_checkflag", "true");
  1747. // 보험정보 조회
  1748. fGetPtinInfo();
  1749. }
  1750. }
  1751. /**
  1752. * [fGetNhicInfo description]
  1753. * @return {[type]} [description]
  1754. */
  1755. function fGetNhicInfo() {
  1756. // 로딩창 열기
  1757. var sWindowMsg = "공단자격 조회중...";
  1758. //callLoadingWindow(sWindowMsg);
  1759. // 2008.10.15 조진희 요청 - 등록 시 공단조회 팝업 오픈
  1760. // 2008.12.11 조진희 요청 - 자동으로 조회되도록 수정 - 공단자격조회
  1761. var sNhicYn = ds_hidden.getColumn(0, "nhicyn"); // 공단조회 체크가 되어 있을 때만 자동조회한다.
  1762. var sInsuKind = ds_main_adrv.getColumn(0, "insukind");
  1763. if (sNhicYn == "Y" && (sInsuKind == "11" || sInsuKind == "21" || sInsuKind == "22")) {
  1764. var sPid = ds_main_ptbspatinfo.getColumn(0, "pid");
  1765. var sHngnm = ds_main_ptbspatinfo.getColumn(0, "hngnm");
  1766. var sRrgstno = ds_main_ptbspatinfo.getColumn(0, "rrgstno1") + ds_main_ptbspatinfo.getColumn(0, "rrgstno2");
  1767. var sOrddd = utlf_getCurrentDate();
  1768. var sPrcpcd = ds_hidden_init_proccd.getColumn(0, "cd");
  1769. var sLoginId = ds_hidden_init_proccd.getColumn(0, "loginid");
  1770. var sPassWord = ds_hidden_init_proccd.getColumn(0, "password");
  1771. // 공단자격조회
  1772. var sQualication = pmcfGetNhicQualification(sPid, sHngnm, sRrgstno, sOrddd, sPrcpcd, sLoginId, sPassWord);
  1773. if (!utlf_isNull(sQualication)) {
  1774. var tempArray = sQualication.split("▩");
  1775. var valueArray = tempArray[1]; // index 0은 header 이기 때문에 제외
  1776. var columnArray = null;
  1777. if (!utlf_isNull(valueArray)) {
  1778. columnArray = valueArray.split("▦"); // column을 분리해서 배열에 넣는다.
  1779. // 각 값별로 체크하기 위해서 컬럼 분리
  1780. var sM2_rrgstno = columnArray[0].getTrim(); // 수진자주민번호
  1781. var sM2_hngnm = columnArray[1].getTrim(); // 수진자성명
  1782. var sM2_proccorpcd = columnArray[2].getTrim(); // 의료기관기호
  1783. var sM2_qualflag = columnArray[3].getTrim(); // 자격구분
  1784. var sM2_qualacqtdd = columnArray[4].getTrim(); // 자격취득일자
  1785. var sM2_hshdnm = columnArray[5].getTrim(); //
  1786. var sM2_secuinstmark = columnArray[6].getTrim(); //
  1787. var sM2_estmmark = columnArray[7].getTrim(); //
  1788. var sM2_paylimdd = columnArray[8].getTrim(); // 급여제한일자
  1789. var sM2_ownbflag = columnArray[9].getTrim(); // 본인부담구분
  1790. var sM2_heallifeamtval = columnArray[10].getTrim(); // 건강생황유지비
  1791. var sM2_pregremamt = columnArray[11].getTrim(); // 산전산모지원금
  1792. var sM2_choicorpmark1 = columnArray[12].getTrim(); // 선택기관1
  1793. var sM2_choicorpmark2 = columnArray[13].getTrim(); // 선택기관2
  1794. var sM2_choicorpmark3 = columnArray[14].getTrim(); // 선택기관3
  1795. var sM2_choicorpmark4 = columnArray[15].getTrim(); // 선택기관4
  1796. var sM2_choicorpnm1 = columnArray[16].getTrim(); // 선택기관명1
  1797. var sM2_choicorpnm2 = columnArray[17].getTrim(); // 선택기관명2
  1798. var sM2_choicorpnm3 = columnArray[18].getTrim(); // 선택기관명3
  1799. var sM2_choicorpnm4 = columnArray[19].getTrim(); // 선택기관명4
  1800. var sM2_handicaprrgstdd = columnArray[20].getTrim(); // 장애인등록일자
  1801. var sM2_datainptdt = columnArray[21].getTrim(); //
  1802. var sM2_dcntrypsnyn = columnArray[22].getTrim(); //
  1803. var sM2_msgcd = columnArray[23].getTrim(); // 메시지코드
  1804. var sM2_msg = columnArray[24].getTrim(); // 메시지
  1805. var sM2_msgtype = columnArray[25].getTrim(); // 메시지형태
  1806. var sM2_clntuniqval = columnArray[26].getTrim(); //
  1807. var sM2_disregprson1 = columnArray[27].getTrim(); // 희귀난치대상자
  1808. var sM2_disregprson2 = columnArray[28].getTrim(); //
  1809. var sM2_disregprson3 = columnArray[29].getTrim(); // 차상위대상자
  1810. var sM2_disregprson4 = columnArray[30].getTrim(); //
  1811. // 자격구분이 없으면 자격상실로 판단하여 '일반'으로 설정
  1812. if (utlf_isNull(sM2_qualflag)) {
  1813. ds_main_ptin.setColumn(0, "ptin_insukind", "51");
  1814. }
  1815. else {
  1816. // 1. 보험유형이 화면과 같은 지 비교
  1817. // 건강보험
  1818. if (sInsuKind == "11") {
  1819. if (sM2_qualflag == "7") { // 7:의료급여1종, 8:의료급여2종
  1820. ds_main_ptin.setColumn(0, "ptin_insukind", "21");
  1821. }
  1822. if (sM2_qualflag == "8") { // 7:의료급여1종, 8:의료급여2종
  1823. ds_main_ptin.setColumn(0, "ptin_insukind", "22");
  1824. }
  1825. }
  1826. // 의료급여1종
  1827. if (sInsuKind == "21" && sM2_qualflag != "7") { // 7:의료급여1종, 8:의료급여2종
  1828. if (sM2_qualflag == "8") { // 7:의료급여1종, 8:의료급여2종
  1829. ds_main_ptin.setColumn(0, "ptin_insukind", "22");
  1830. }
  1831. else {
  1832. ds_main_ptin.setColumn(0, "ptin_insukind", "11");
  1833. }
  1834. }
  1835. // 의료급여2종
  1836. // 7:의료급여1종, 8:의료급여2종
  1837. if (sInsuKind == "22" && sM2_qualflag != "8") {
  1838. // 7:의료급여1종, 8:의료급여2종
  1839. if (sM2_qualflag == "7") {
  1840. ds_main_ptin.setColumn(0, "ptin_insukind", "21");
  1841. }
  1842. else {
  1843. ds_main_ptin.setColumn(0, "ptin_insukind", "11");
  1844. }
  1845. }
  1846. var sPtinInsuKind = ds_main_ptin.getColumn(0, "ptin_insukind");
  1847. // sPtinInsuKind == null일 때
  1848. if (utlf_isNull(sPtinInsuKind)) {
  1849. if (sM2_qualflag == "7") { // 7:의료급여1종, 8:의료급여2종
  1850. ds_main_ptin.setColumn(0, "ptin_insukind", "21");
  1851. }
  1852. else if (sM2_qualflag == "8") { // 7:의료급여1종, 8:의료급여2종
  1853. ds_main_ptin.setColumn(0, "ptin_insukind", "22");
  1854. }
  1855. else {
  1856. ds_main_ptin.setColumn(0, "ptin_insukind", "11");
  1857. }
  1858. }
  1859. // 2. 기본값 설정
  1860. if (utlf_isNull(sM2_secuinstmark)) {
  1861. ds_main_ptin.setColumn(0, "ptin_insucd", "0015");
  1862. }
  1863. else {
  1864. ds_main_ptin.setColumn(0, "ptin_insucd", sM2_secuinstmark);
  1865. }
  1866. ds_main_ptin.setColumn(0, "ptin_insuno", sM2_estmmark);
  1867. ds_main_ptin.setColumn(0, "ptin_insdnm", sM2_hshdnm);
  1868. ds_main_ptin.setColumn(0, "ptin_fromdd", sM2_qualacqtdd);
  1869. if (utlf_isNull(sM2_paylimdd)) {
  1870. // 종료일자는 좀더 로직 필요 - 상실일자가 있으면서 선택기관이 존재하는지 여부에 따라 의미가 다르다
  1871. ds_main_ptin.setColumn(0, "ptin_todd", "99991231");
  1872. }
  1873. else {
  1874. if (utlf_isNull(sM2_choicorpmark1) && utlf_isNull(sM2_choicorpmark2) && utlf_isNull(sM2_choicorpmark3) && utlf_isNull(sM2_choicorpmark4)) { // 선택기관기호가 없을 때
  1875. ds_main_ptin.setColumn(0, "ptin_todd", "sM2_paylimdd");
  1876. }
  1877. else {
  1878. // 종료일자는 좀더 로직 필요 - 상실일자가 있으면서 선택기관이 존재하는지 여부에 따라 의미가 다르다
  1879. ds_main_ptin.setColumn(0, "ptin_todd", "99991231");
  1880. }
  1881. }
  1882. // 3. 특정케이스 설정 - 희귀난치대상자, 차상위
  1883. // 본인부담구분
  1884. // if (!isNull(sM2_ownbflag)) {
  1885. // model.setValue("/root/main/inpt/inpt_ownbflag", sM2_ownbflag);
  1886. // }
  1887. // 희귀난치대상자
  1888. if (utlf_isNull(sM2_disregprson1)) {
  1889. dsf_makeValue(ds_main_nhicinfo, "nhic_rareobstflag", 'string', "I");
  1890. }
  1891. else {
  1892. dsf_makeValue(ds_main_nhicinfo, "nhic_rareobstflag", 'string', "H");
  1893. }
  1894. // 차상위대상자 - 보조유형으로 설정
  1895. if (!utlf_isNull(sM2_disregprson3)) {
  1896. dsf_makeValue(ds_main_nhicinfo, "nhic_disregprson3", 'string', "32");
  1897. }
  1898. else {
  1899. dsf_makeValue(ds_main_nhicinfo, "nhic_disregprson3", 'string', "00");
  1900. }
  1901. // 세대주성명과 환자이름이 같으면 본인으로 관계 설정
  1902. if (sHngnm == sM2_hshdnm) {
  1903. ds_main_ptin.setColumn(0, "ptin_insdrela", "1");
  1904. ds_main_ptin.setColumn(0, "ptin_insdrrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  1905. ds_main_ptin.setColumn(0, "ptin_insdrrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
  1906. }
  1907. }
  1908. }
  1909. }
  1910. } // 공단자격조회 end
  1911. // 로딩창 닫기
  1912. // removeLoadingWindow();
  1913. }
  1914. /**
  1915. * [erasePrefix description]
  1916. * @param {[type]} target: Dataset [description]
  1917. * @param {[type]} prefix [description]
  1918. * @return {[type]} [description]
  1919. */
  1920. function erasePrefix(target: Dataset, prefix) {
  1921. if (target.rowcount < 1) {
  1922. return;
  1923. }
  1924. for (var i = 0; i < target.colcount; i++) {
  1925. var updatedId = target.getColID(i).replace(prefix, '');
  1926. if (!utlf_isNull(updatedId)) {
  1927. target.updateColID(i, updatedId);
  1928. }
  1929. }
  1930. }
  1931. // 2008.12.17 - 공단자격조회 결과와 ptin을 비교하여 변경된 내역 있으면 저장
  1932. function fSetNhicPtin() {
  1933. var xInstatance = document.models(0).instances(0);
  1934. var sInsuKind = ds_main_adrv.getColumn(0, "insukind");
  1935. if (sInsuKind == "11" || sInsuKind == "21" || sInsuKind == "22") {
  1936. var sPtinFlag = null;
  1937. var xHiddenPtin = ds_hidden_h_rcv_ptin;
  1938. var xMainPtin = d_main_ptin;
  1939. dsf_createDs('ds_send_data12');
  1940. if (xHiddenPtin.rowcount < 1) {
  1941. sPtinFlag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
  1942. }
  1943. else if (xMainPtin.rowcount < 1) {
  1944. sPtinFlag = null;
  1945. }
  1946. else if (xHiddenPtin.saveXML() == xMainPtin.saveXML()) {
  1947. sPtinFlag = null;
  1948. }
  1949. else { // xHiddenPtin.xml != xMainPtin.xml
  1950. sPtinFlag = "U";
  1951. ds_main_ptin.setColumn(0, "ptin_status", sPtinFlag);
  1952. var sPid = ds_hidden_h_rcv_ptin.getColumn(0, "ptin_pid");
  1953. if (utlf_isNull(sPid)) {
  1954. ds_main_ptin.setColumn(0, "ptin_pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  1955. }
  1956. ds_send_data12.copyData(ds_main_ptin, false);
  1957. erasePrefix(ds_send_data12, 'ptin_');
  1958. dsf_createDs('ds_res');
  1959. var oParam = {};
  1960. oParam.id = "TXPMI00204";
  1961. oParam.service = "ipatmngtapp.InRsrv";
  1962. oParam.method = "reqSetPtinInfo";
  1963. oParam.inds = "ptin=ds_send_data12";
  1964. oParam.outds = "ds_res=result";
  1965. oParam.async = false;
  1966. oParam.callback = "callback";
  1967. tranf_submit(oParam);
  1968. if (arErrorCode.pop("TXPMI00204") > -1) {
  1969. ds_send_data12.clearData();
  1970. }
  1971. }
  1972. }
  1973. }
  1974. /**
  1975. * [fInDeciPrint description]
  1976. * @param {[type]} vpid [description]
  1977. * @param {[type]} vinrsrvacptdd [description]
  1978. * @param {[type]} vorddeptcd [description]
  1979. * @param {[type]} vdeciflag [description]
  1980. * @return {[type]} [description]
  1981. */
  1982. function fInDeciPrint(vpid, vinrsrvacptdd, vorddeptcd, vdeciflag) {
  1983. dsf_createDsRow('ds_hidden_h_deciprint_deciprint', [
  1984. { col: 'indd', type: 'string', size: 256, val: '' }, //입원일 - 입원일시
  1985. { col: 'inpath', type: 'string', size: 256, val: '' }, //입원경로
  1986. { col: 'roomcd', type: 'string', size: 256, val: '' }, //입원병실
  1987. { col: 'orddeptcd', type: 'string', size: 256, val: '' }, //진료과
  1988. { col: 'orddrid', type: 'string', size: 256, val: '' }, //선택의
  1989. { col: 'specordyn', type: 'string', size: 256, val: '' }, //선택의/지정의
  1990. { col: 'pid', type: 'string', size: 256, val: '' }, //등록번호
  1991. { col: 'hngnm', type: 'string', size: 256, val: '' }, //환자성명
  1992. { col: 'rrgstno', type: 'string', size: 256, val: '' }, //주민번호
  1993. { col: 'sex', type: 'string', size: 256, val: '' }, //성별1
  1994. { col: 'religncd', type: 'string', size: 256, val: '' }, //종교
  1995. { col: 'address', type: 'string', size: 256, val: '' }, //주소 = 상위주소 + 하위주소
  1996. { col: 'hometel', type: 'string', size: 256, val: '' }, //전화번호
  1997. { col: 'mpphontel', type: 'string', size: 256, val: '' }, //휴대폰
  1998. { col: 'insukind', type: 'string', size: 256, val: '' }, //보험유형
  1999. { col: 'insucd', type: 'string', size: 256, val: '' }, //기관기호
  2000. { col: 'insuno', type: 'string', size: 256, val: '' }, //증번호
  2001. { col: 'insdnm', type: 'string', size: 256, val: '' }, //세대주(피보험자)
  2002. { col: 'diagcd', type: 'string', size: 256, val: '' }, //상병코드
  2003. { col: 'termhngnm', type: 'string', size: 256, val: '' }, //상병명
  2004. { col: 'inschedd', type: 'string', size: 256, val: '' }, //입원예정일
  2005. { col: 'opschedd', type: 'string', size: 256, val: '' }, //수술예정일
  2006. { col: 'indirecdrnm', type: 'string', size: 256, val: '' }, //의뢰자
  2007. { col: 'inrsrvacptdt', type: 'string', size: 256, val: '' },//의뢰일시
  2008. { col: 'handicapryn1', type: 'string', size: 256, val: '' },//장애인유무체크
  2009. { col: 'handicapryn2', type: 'string', size: 256, val: '' },//장애인유무체크
  2010. { col: 'inrsrvrem', type: 'string', size: 256, val: '' }, //원무참고사항
  2011. { col: 'cnstyn', type: 'string', size: 256, val: '' }, //의뢰서제출여부
  2012. { col: 'rareobstflag', type: 'string', size: 256, val: '' },//희귀난치
  2013. { col: 'disregprson3', type: 'string', size: 256, val: '' } //차상위
  2014. ], false);
  2015. dsf_createDsRow('ds_send_data40', [
  2016. { col: 'pid', type: 'string', size: 256, val: pid },
  2017. { col: 'inrsrvacptdd', type: 'string', size: 256, val: inrsrvacptdd },
  2018. { col: 'orddeptcd', type: 'string', size: 256, val: orddeptcd },
  2019. { col: 'deciflag', type: 'string', size: 256, val: deciflag }
  2020. ], false);
  2021. dsf_createDs('ds_res');
  2022. var oParam = {};
  2023. oParam.id = "TRPMI01201";
  2024. oParam.service = "ipatmngtapp.InRgst";
  2025. oParam.method = "reqGetInDeciPrintRef";
  2026. oParam.inds = "req=ds_send_data40";
  2027. oParam.outds = "ds_res=deciprint";
  2028. oParam.async = false;
  2029. oParam.callback = "callback";
  2030. tranf_submit(oParam);
  2031. if (arErrorCode.pop("TRPMI01201") > -1) {
  2032. ds_hidden_h_deciprint_deciprint.copyRow(0, ds_res, 0);
  2033. var indd = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "indd"));
  2034. if (indd != '' && indd != " ") {
  2035. var s_indd = indd.substr(0, 4) + "-" +
  2036. indd.substr(4, 2) + "-" +
  2037. indd.substr(6, 2);
  2038. ds_hidden_h_deciprint_deciprint.setColumn(0, "indd", s_indd);
  2039. }
  2040. var rrgstno = String(ds_hidden_h_deciprint_deciprint.getColumn(0, "rrgstno"));
  2041. var s_rrgstno = rrgstno.substr(0, 6) + "-" + rrgstno.substr(6, 7);
  2042. ds_hidden_h_deciprint_deciprint.setColumn(0, "rrgstno", s_rrgstno);
  2043. var sinschedd = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "inschedd"));
  2044. var sopschedd = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "opschedd"));
  2045. var sinrsrvacptdt = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "inrsrvacptdt"));
  2046. var s_inrsrvacptdt = sinrsrvacptdt.substr(0, 4) + "/" +
  2047. sinrsrvacptdt.substr(4, 2) + "/" +
  2048. sinrsrvacptdt.substr(6, 2) + " " +
  2049. sinrsrvacptdt.substr(8, 2) + ":" +
  2050. sinrsrvacptdt.substr(10, 2);
  2051. ds_hidden_h_deciprint_deciprint.setColumn(0, "inrsrvacptdt", "");
  2052. if (sinschedd != "" && sinschedd != " ") {
  2053. ds_hidden_h_deciprint_deciprint.setColumn(0, "inschedd",
  2054. sinschedd.substr(0, 4) + "년" + " " + sinschedd.substr(4, 2) + "월" + " " + sinschedd.substr(6.2) + "일");
  2055. }
  2056. if (sopschedd != "" && sopschedd != " ") {
  2057. ds_hidden_h_deciprint_deciprint.setColumn(0, "opschedd",
  2058. sopschedd.substr(0, 4) + "년" + " " + sopschedd.substr(4, 2) + "월" + " " + sopschedd.substr(6.2) + "일");
  2059. }
  2060. if (sinrsrvacptdt != "" && sinrsrvacptdt != " ") {
  2061. ds_hidden_h_deciprint_deciprint.setColumn(0, "inrsrvacptdt", s_inrsrvacptdt);
  2062. }
  2063. }
  2064. // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 시작
  2065. var rsrvYn = ds_hidden.getColumn(0, "rsrvyn");
  2066. if (rsrvYn == 'N') {
  2067. ds_hidden_h_deciprint_deciprint.setColumn(0, "inrsrvrem", "");
  2068. ds_hidden_h_deciprint_deciprint.setColumn(0, "diagcd", "");
  2069. ds_hidden_h_deciprint_deciprint.setColumn(0, "termhngnm", "");
  2070. }
  2071. // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 끝
  2072. var sNhicRareobstflag = ds_main_nhicinfo.getColumn(0, "nhic_rareobstflag");
  2073. var sNhicDisregprson3 = ds_main_nhicinfo.getColumn(0, "nhic_disregprson3");
  2074. if (sNhicRareobstflag == "H") {
  2075. ds_hidden_h_deciprint_deciprint.setColumn(0, "rareobstflag", "희귀난치"); //희귀난치
  2076. }
  2077. else {
  2078. ds_hidden_h_deciprint_deciprint.setColumn(0, "rareobstflag", ""); //희귀난치
  2079. }
  2080. if (sNhicDisregprson3 == "32") {
  2081. ds_hidden_h_deciprint_deciprint.setColumn(0, "disregprson3", "차상위"); //차상위
  2082. }
  2083. else {
  2084. ds_hidden_h_deciprint_deciprint.setColumn(0, "disregprson3", ""); //차상위
  2085. }
  2086. var sPrinter;
  2087. var trayno;
  2088. // 2009.06.19 - local에 설정된 파일을 우선시 한다.
  2089. // print1:입원약정서, print2:입원환자카드, print3:선택신청
  2090. var printInfo = pmifGetPrintSetting("print1");
  2091. if (printInfo.length == 2) {
  2092. sPrinter = printInfo[0];
  2093. trayno = printInfo[1];
  2094. }
  2095. else {
  2096. // 2008.09.21 입원약정서 출력용 프린터 이름 조회 - 최병진
  2097. sPrinter = "";
  2098. ds_send_data9.setColumn(0, "pam_code", "P0018");
  2099. dsf_createDsRow('ds_TRPMI00118', [{ col: 'pam_code', type: 'string', size: 256, val: 'P0018' }], false);
  2100. ds_hidden_printers_printer.clearData();
  2101. var oParam = {};
  2102. oParam.id = "TRPMI00118";
  2103. oParam.service = "ipatmngtapp.InRgst";
  2104. oParam.method = "reqGetPamCodeInfo";
  2105. oParam.inds = "req=ds_TRPMI00118";
  2106. oParam.outds = "ds_hidden_printers_printer=printer";
  2107. oParam.async = false;
  2108. oParam.callback = "callback";
  2109. tranf_submit(oParam);
  2110. if (arErrorCode.pop("TRPMI00118") > -1) {
  2111. sPrinter = ds_hidden_printers_printer.getColumn(0, "nm");
  2112. if (utlf_isNull(sPrinter)) {
  2113. sPrinter = "true";
  2114. }
  2115. }
  2116. else {
  2117. sPrinter = "true";
  2118. }
  2119. // 2009년 03월 24일, JHP, 트레이정보를 받아서 넣는다.
  2120. trayno = ds_hidden_pam_printer.getColumn(0, "value");
  2121. }
  2122. // DOM 객체 설정
  2123. var objDOM = rptf_createDOM();
  2124. rptf_setNodeListToDOM(objDOM, "root/hidden/h_deciprint/deciprint", ds_hidden_h_deciprint_deciprint);
  2125. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  2126. rptf_exeReportPreview30(["RPPMI01200"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
  2127. }
  2128. /**
  2129. * submit 후 호출 될 공통 콜백
  2130. * @param {[type]} sSvcId [description]
  2131. * @param {[type]} nErrorCode [description]
  2132. * @param {[type]} sErrorMsg [description]
  2133. * @return {Function} [description]
  2134. */
  2135. function callback(sSvcId, nErrorCode, sErrorMsg){
  2136. arErrorCode.push(sSvcId, nErrorCode);
  2137. }
  2138. //=======================================================================================
  2139. // Events
  2140. //---------------------------------------------------------------------------------------
  2141. /**
  2142. * onload 이벤트 발생 시 호출
  2143. * @param {[type]} obj:Form [description]
  2144. * @param {[type]} e:LoadEventInfo [description]
  2145. */
  2146. function SMPMI00200_onload(obj: Form, e: LoadEventInfo) {
  2147. frmf_initForm(obj);
  2148. grdf_setGridSort(grd_inhpdeci);
  2149. grdf_setGridSort(grd_inhprsspec);
  2150. // 2009년 03월 20일, JHP
  2151. // 서울성모이전으로 프린터를 2tray와 1tray짜리를 동시에 사용한다. 수납쪽(영수증, 중간계산서)은 1tray, 등록쪽(약정서, 입원카드)은 2tray를 쓰는데
  2152. // 1트레이는 기본이므로 수납쪽은 그냥 둔다. 근데 2트레이는 렉스퍼트 출력시 트레이번호를 셋팅값으로 박아줘야하는데 프린터 정보는 동적으로 가지고 올수 없기때문에
  2153. // 임의의 경로에 txt파일을 만들어 트레이값을 설정하여 저장하여놓고 불러와서 트레이번호를 매겨준다.
  2154. // 이때 해당 파일이 없으면 해당파일을 사용자가 만들어준다.
  2155. fSetPrinterTray();
  2156. //20090602 JHP 추가_ 등급을 공통코드로 가져오는데 이는 입원료 수가 매핑과 관련해서 종료된 입원료를 컨트롤 할수 있는 소지가 있기에
  2157. // 실제 수가와 매핑코드를 조회하여 살아있는 입원료 등급 코드를 가져온다.
  2158. // 해당 조회를 실행한다음에 병실등급에 해당하는 콤보박스를 이걸로 바꾼다. 기존은 P0025(/root/init/P0025list/P0025)였다.
  2159. var sUserInfosS = sysf_getUserInfos();
  2160. sUserInfosS = sUserInfosS + "|";
  2161. var UserInfosS_Array = sUserInfosS.split("|");
  2162. var userid = UserInfosS_Array[0]; //사용자번호
  2163. var usernm = UserInfosS_Array[1]; //사용자이름
  2164. //var posinstcd = UserInfosS_Array[2]; //소속기관코드
  2165. //var posinstnm = UserInfosS_Array[3]; //소속기관명
  2166. var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
  2167. var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
  2168. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  2169. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  2170. ds_send_data13.setColumn(0, "sess_posinstcd", posinstcd);
  2171. ds_hidden_roomgrdelist_roomgrde.clearData();
  2172. // 병실등급 조회
  2173. var oParam = {};
  2174. oParam.id = "TRPMI00405";
  2175. oParam.service = "ipatmngtapp.InhospUpdt";
  2176. oParam.method = "reqGetRoomGrdeInfoList";
  2177. oParam.inds = "req=ds_send_data13";
  2178. oParam.outds = "ds_hidden_roomgrdelist_roomgrde=roomgrdelist";
  2179. oParam.async = false;
  2180. tranf_submit(oParam);
  2181. combo1.enable = false;
  2182. appf_getCodeList([
  2183. { dsNm: 'ds_init_P0001list', cdGrpId: 'P0001' },
  2184. { dsNm: 'ds_init_P0008list', cdGrpId: 'P0008' },
  2185. { dsNm: 'ds_init_P0025list', cdGrpId: 'P0025' },
  2186. { dsNm: 'ds_init_P0026list', cdGrpId: 'P0026' },
  2187. { dsNm: 'ds_init_P0149list', cdGrpId: 'P0149' },
  2188. { dsNm: 'ds_init_P0039list', cdGrpId: 'P0039' },
  2189. { dsNm: 'ds_init_P0378list', cdGrpId: 'P0378' },
  2190. { dsNm: 'ds_init_P0474list', cdGrpId: 'P0474' }
  2191. ]);
  2192. // 2009.04.02 - 출력물 자동 출력여부를 위해서 원무공통코드조회
  2193. pamfGetCodeList([{ dsNm: 'ds_init_pam_P0041list', cdGrpId: "P0041" }]);
  2194. dsf_createDsRow('ds_TRPMI00106', [
  2195. { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  2196. { col: 'ioflag', type: 'string', size: 256, val: '' },
  2197. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  2198. ], false);
  2199. ds_TRPMI00106.copyRow(0, ds_send_data3, 0);
  2200. var oParam = {};
  2201. oParam.id = "TRPMI00106";
  2202. oParam.service = "pamcomnapp.PamComn";
  2203. oParam.method = "reqGetComCD";
  2204. oParam.inds = "req=ds_TRPMI00106";
  2205. oParam.outds = "ds_hidden_init_disccd=disccd ds_hidden_init_insukind=insukind ds_hidden_init_suppkind=suppkind "
  2206. + "ds_hidden_init_orddeptcd=orddeptcd ds_hidden_init_orddrid=orddrid ds_hidden_init_wardcd=wardcd "
  2207. + "ds_hidden_init_roomcd=roomcd ds_hidden_init_roomgrdecd=roomgrdecd ds_hidden_init_roomtypecd=roomtypecd "
  2208. + "ds_hidden_init_flag=flag ds_hidden_init_proccd=proccd";
  2209. oParam.async = false;
  2210. tranf_submit(oParam);
  2211. ds_cmd_medispcl.copyData(ds_hidden_init_orddrid, false);
  2212. ds_combo21.copyData(ds_hidden_init_orddrid, false);
  2213. ds_cmb_rorddeptcd1.copyData(ds_hidden_init_orddeptcd.filter('orddeptflag == "D"'), true);
  2214. ds_cmb_rorddeptcd2.copyData(ds_hidden_init_orddeptcd.filter('orddeptflag == "D"'), true);
  2215. //2008.01.07 추가 요구사항 적용 - fromdd~todd으로 조회가능케. 조회날짜보다 작은경우포함해서 조회
  2216. ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
  2217. ds_send_data1.setColumn(0, "inrsrvacpttodd", utlf_getCurrentDate());
  2218. ds_send_data1.setColumn(0, "s_checkflag", "true");
  2219. ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
  2220. ds_send_data2.setColumn(0, "patinhopetodd", utlf_getCurrentDate());
  2221. ds_send_data2.setColumn(0, "r_checkflag", "true");
  2222. // 2009.04.08 - 공단체크여부 코드로 변경
  2223. var sNhicYN = ds_init_pam_P0041list.getColumn(ds_init_pam_P0041list.findRow('cdid', 'A01'), "cdnm");
  2224. ds_hidden.setColumn(0, "nhicyn", sNhicYN); // 공단체크
  2225. // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 시작
  2226. var rsrvYN = ds_init_pam_P0041list.getColumn(ds_init_pam_P0041list.findRow('cdid', 'F01'), "cdnm");
  2227. ds_hidden.setColumn(0, "rsrvyn", rsrvYN);
  2228. //현황판에서 입원예약 클릭시 팝업연결하기 위해 구현..
  2229. ds_hidden_source.copyData(arg_ds_source, false);
  2230. var adrv_pid = utlf_transNullToEmpty(ds_hidden_source.getColumn(0, "pid"));
  2231. if (adrv_pid == "" || adrv_pid == " ") {
  2232. // do nothing
  2233. }
  2234. else {
  2235. ds_send_data4.clearData();
  2236. ds_send_data4.addRow();
  2237. ds_send_data5.clearData();
  2238. ds_send_data5.addRow();
  2239. ds_main_ptbspatinfo.setColumn(0, "pid", adrv_pid);
  2240. ds_send_data4.setColumn(0, "pid", adrv_pid);
  2241. ds_send_data4.setColumn(0, "mode", "0");
  2242. //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
  2243. ds_send_data5.setColumn(0, "pid", adrv_pid);
  2244. ds_send_data5.setColumn(0, "srchcond", "1")
  2245. ds_hidden_rcv_ptbspatinfo.clearData();
  2246. ds_hidden_rcv_adrv.clearData();
  2247. //dsf_setTypeFormat(ds_send_data4, "inrsrvacptseqno:INT^mode:INT");
  2248. var oParam = {};
  2249. oParam.id = "TRPMI00204";
  2250. oParam.service = "ipatmngtapp.InRsrv";
  2251. oParam.method = "reqGetInRsrvDetlSpec";
  2252. oParam.inds = "req=ds_send_data4";
  2253. oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
  2254. oParam.async = false;
  2255. oParam.callback = "callback";
  2256. tranf_submit(oParam);
  2257. if (arErrorCode.pop("TRPMI00204") > -1) {
  2258. ds_hidden_rcv_ptbspatinfo.updateColID('ptbsremfact', 'remfact');
  2259. var iptbscnt = ds_hidden_rcv_ptbspatinfo.rowcount;
  2260. var iadrvcnt = ds_hidden_rcv_adrv.rowcount;
  2261. if (iptbscnt > 0) {
  2262. ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
  2263. }
  2264. else {
  2265. sysf_messageBox("환자인적이", "I004");
  2266. ds_main_ptbspatinfo.clearData();
  2267. ds_main_ptbspatinfo.addRow();
  2268. ds_main_adrv.clearData();
  2269. ds_main_adrv.addRow();
  2270. return false;
  2271. }
  2272. if (iadrvcnt > 0) {
  2273. ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
  2274. ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
  2275. }
  2276. else {
  2277. sysf_messageBox("입원결정서 또는 입원예약 내용이", "I004");
  2278. ds_main_ptbspatinfo.clearData();
  2279. ds_main_ptbspatinfo.addRow();
  2280. ds_main_adrv.clearData();
  2281. ds_main_adrv.addRow();
  2282. return false;
  2283. }
  2284. var inrsrvstat_flag = ds_main_adrv.getColumn(0, "inrsrvstat");
  2285. //결정서내역이면
  2286. if (inrsrvstat_flag == "S") {
  2287. btn_update.enable = false;
  2288. btn_cncl.enable = false;
  2289. btn_insert.enable = true;
  2290. }
  2291. else if (inrsrvstat_flag == "R") {
  2292. btn_update.enable = true;
  2293. btn_cncl.enable = true;
  2294. btn_insert.enable = false;
  2295. }
  2296. }
  2297. }
  2298. }
  2299. /**
  2300. * [인적사항] 환자번호 키보드 입력 이벤트
  2301. * @param {[type]} obj: Edit [description]
  2302. * @param {[type]} e: KeyEventInfo [description]
  2303. * @return {[type]} [description]
  2304. */
  2305. function ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
  2306. if (e.keycode == 13) {
  2307. obj.updateToDataset();
  2308. //fGetPidInfo(); 밑에부분전체가 이 함수와 같다. 20100413 JHP
  2309. ds_send_data4.clearData();
  2310. ds_send_data4.addRow();
  2311. ds_send_data5.clearData();
  2312. ds_send_data5.addRow();
  2313. ds_send_data6.clearData();
  2314. ds_send_data6.addRow()
  2315. ds_send_data7.clearData();
  2316. ds_send_data7.addRow()
  2317. ds_send_data8.clearData();
  2318. ds_send_data8.addRow()
  2319. var pid = ds_main_ptbspatinfo.getColumn(0, 'pid');
  2320. //model.setValue("/root/main/ptbspatinfo/pid", ipt_pid.currentText);
  2321. ds_send_data4.setColumn(0, "pid", pid);
  2322. ds_send_data4.setColumn(0, "mode", "0");
  2323. //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
  2324. ds_send_data5.setColumn(0, "pid", pid);
  2325. ds_send_data5.setColumn(0, "srchcond", "1")
  2326. fPatRsrvInfoSrch();
  2327. //20100115 jhp 수정추가 변경요청번호 3258 인사정보의 직원, 직원가족정보 조회
  2328. fPatEmplInfoRef();
  2329. //2008-04-14 이성인 추가
  2330. //인적사항 조회시 자동으로 입원결정서 , 입원예약내역을 조회하여온다.
  2331. if (isNull(pid)) {
  2332. fInitialize();
  2333. }
  2334. else {
  2335. var temp = ds_send_data1.getColumn(0, "inrsrvacptfromdd");
  2336. ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
  2337. ds_send_data1.setColumn(0, "pid", pid);
  2338. ds_send_data1.setColumn(0, "s_checkflag", "false");
  2339. fSQueryRef();
  2340. ds_send_data2.setColumn(0, "patinhopefromdd", "");
  2341. ds_send_data2.setColumn(0, "pid", pid);
  2342. ds_send_data2.setColumn(0, "r_checkflag", "false");
  2343. fRQueryRef();
  2344. ds_send_data2.setColumn(0, "patinhopefromdd", temp);
  2345. ds_send_data1.setColumn(0, "inrsrvacptfromdd", temp);
  2346. ds_send_data1.setColumn(0, "s_checkflag", "true");
  2347. ds_send_data2.setColumn(0, "r_checkflag", "true");
  2348. // 보험정보 조회
  2349. fGetPtinInfo();
  2350. }
  2351. }
  2352. }
  2353. /**
  2354. * [인적사항] 환자번호 검색 아이콘 클릭 이벤트
  2355. * @param {[type]} obj: Button [description]
  2356. * @param {[type]} e: ClickEventInfo [description]
  2357. * @return {[type]} [description]
  2358. */
  2359. function btn_pid_onclick(obj: Button, e: ClickEventInfo) {
  2360. var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
  2361. if (ptbs_pid == " " || ptbs_pid == "") {
  2362. ds_send_data5.clearData();
  2363. ds_send_data5.addRow();
  2364. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2365. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2366. ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2367. ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2368. ds_send_data4.setColumn(0, "mode", "0");
  2369. fPatRsrvInfoSrch();
  2370. }
  2371. else {
  2372. ds_main_ptbspatinfo.clearData();
  2373. ds_main_ptbspatinfo.addRow()
  2374. ds_main_adrv.clearData();
  2375. ds_main_adrv.addRow()
  2376. }
  2377. }
  2378. else {
  2379. ds_send_data5.clearData();
  2380. ds_send_data5.addRow();
  2381. ds_send_data5.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2382. ds_send_data5.setColumn(0, "srchcond", "1")
  2383. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2384. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2385. ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2386. ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2387. ds_send_data4.setColumn(0, "mode", "0");
  2388. fPatRsrvInfoSrch();
  2389. }
  2390. else {
  2391. ds_main_ptbspatinfo.clearData();
  2392. ds_main_ptbspatinfo.addRow()
  2393. ds_main_adrv.clearData();
  2394. ds_main_adrv.addRow()
  2395. }
  2396. }
  2397. }
  2398. /**
  2399. * [인적사항] ipt_rrgstno1 포커스 상실 이벤트
  2400. * @param {[type]} obj: Edit [description]
  2401. * @param {[type]} e: KillFocusEventInfo [description]
  2402. * @return {[type]} [description]
  2403. */
  2404. function ipt_rrgstno1_onkillfocus(obj: Edit, e: KillFocusEventInfo) {
  2405. if (!fRrgstNo1Veri()) {
  2406. return;
  2407. }
  2408. }
  2409. /**
  2410. * [인적사항] ipt_rrgstno1 키보드 입력 이벤트
  2411. * @param {[type]} obj: Edit [description]
  2412. * @param {[type]} e: KeyEventInfo [description]
  2413. * @return {[type]} [description]
  2414. */
  2415. function ipt_rrgstno1_onkeydown(obj: Edit, e: KeyEventInfo) {
  2416. if (e.keycode == 13) {
  2417. obj.updateToDataset();
  2418. if (!fRrgstNo1Veri()) {
  2419. return;
  2420. }
  2421. }
  2422. }
  2423. /**
  2424. * [인적사항] ipt_rrgstno2 포커스 상실 이벤트
  2425. * @param {[type]} obj: Edit [description]
  2426. * @param {[type]} e: KillFocusEventInfo [description]
  2427. * @return {[type]} [description]
  2428. */
  2429. function ipt_rrgstno2_onkillfocus(obj: Edit, e: KillFocusEventInfo) {
  2430. if (!fRrgstNo2Veri()) {
  2431. return;
  2432. }
  2433. }
  2434. /**
  2435. * [인적사항] ipt_rrgstno2 키보드 입력 이벤트
  2436. * @param {[type]} obj: Edit [description]
  2437. * @param {[type]} e: KeyEventInfo [description]
  2438. * @return {[type]} [description]
  2439. */
  2440. function ipt_rrgstno2_onkeydown(obj: Edit, e: KeyEventInfo) {
  2441. if (e.keycode == 13) {
  2442. obj.updateToDataset();
  2443. if (!fRrgstNo2Veri()) {
  2444. return;
  2445. }
  2446. ds_send_data4.clearData();
  2447. ds_send_data4.addRow();
  2448. ds_send_data5.clearData();
  2449. ds_send_data5.addRow();
  2450. ds_send_data6.clearData();
  2451. ds_send_data6.addRow();
  2452. ds_send_data7.clearData();
  2453. ds_send_data7.addRow();
  2454. ds_send_data8.clearData();
  2455. ds_send_data8.addRow();
  2456. // ds_main_ptbspatinfo.setColumn(0, "rrgstno1", ipt_rrgstno1.currentText);
  2457. // ds_main_ptbspatinfo.setColumn(0, "rrgstno2", ipt_rrgstno2.currentText);
  2458. ds_send_data8.setColumn(0, "rrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  2459. ds_send_data8.setColumn(0, "rrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
  2460. ds_send_data8.setColumn(0, "mode", "1");
  2461. dsf_createDsRow('ds_TRPMI00107', [
  2462. { col: 'mode', type: 'string', size: 256, val: '' },
  2463. { col: 'pid', type: 'string', size: 256, val: '' },
  2464. { col: 'hngnm', type: 'string', size: 256, val: '' },
  2465. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  2466. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  2467. { col: 'orddd', type: 'string', size: 256, val: '' },
  2468. { col: 'ioflag', type: 'string', size: 256, val: '' },
  2469. { col: 'insukind', type: 'string', size: 256, val: '' },
  2470. { col: 'orddeptcd', type: 'string', size: 256, val: '' }
  2471. ], false);
  2472. ds_TRPMI00107.copyRow(0, ds_send_data8, 0);
  2473. ds_TRPMI00107.setColumn(0, 'orddd', ds_send_data8.getColumn(0, 'indd'));
  2474. ds_hidden_check_ptbs.clearData();
  2475. var oParam = {};
  2476. oParam.id = "TRPMI00107";
  2477. oParam.service = "ipatmngtapp.InRgst";
  2478. oParam.method = "reqGetInRgPatInfo";
  2479. oParam.inds = "req=ds_TRPMI00107";
  2480. oParam.outds = "ds_hidden_check_ptbs=ptbs";// "ds_=ptsp ds_=srdg ds_=rooa ds_=adrv ds_=hndc ds_=cnst ds_=grdinrgstinfo ds_=inpt1 ds_=stdy ds_=disc ds_=bind ds_=tempdsch";
  2481. oParam.async = false;
  2482. tranf_submit(oParam);
  2483. var ptbs_chkcnt = ds_hidden_check_ptbs.rowcount;
  2484. if (ptbs_chkcnt > 0) {
  2485. //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
  2486. if (ptbs_chkcnt > 1) {
  2487. ds_send_data5.setColumn(0, "rrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  2488. ds_send_data5.setColumn(0, "rrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
  2489. ds_send_data5.setColumn(0, "srchcond", "3");
  2490. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2491. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2492. ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2493. ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2494. ds_send_data4.setColumn(0, "mode", "0");
  2495. fPatRsrvInfoSrch();
  2496. }
  2497. else {
  2498. return false;
  2499. }
  2500. }
  2501. else {
  2502. ds_send_data3.clearData();
  2503. ds_main_ptbspatinfo.setColumn(0, "pid", ds_hidden_check_ptbs.getColumn(0, "ptbs_pid"));
  2504. ds_main_ptbspatinfo.setColumn(0, "hngnm", ds_hidden_check_ptbs.getColumn(0, "ptbs_hngnm"));
  2505. ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2506. ds_send_data4.setColumn(0, "mode", "0");
  2507. fPatRsrvInfoSrch();
  2508. }
  2509. }
  2510. else {
  2511. sysf_messageBox("환자인적이", "I004");
  2512. ds_main_ptbspatinfo.clearData();
  2513. ds_main_ptbspatinfo.addRow();
  2514. ds_main_adrv.clearData();
  2515. ds_main_adrv.addRow();
  2516. return false;
  2517. }
  2518. }
  2519. }
  2520. /**
  2521. * [인적사항] 주민번호 검색 아이콘 클릭 이벤트
  2522. * @param {[type]} obj: Button [description]
  2523. * @param {[type]} e: ClickEventInfo [description]
  2524. * @return {[type]} [description]
  2525. */
  2526. function btn_rrgstno_onclick(obj: Button, e: ClickEventInfo) {
  2527. var ptbs_rrgstno1 = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  2528. var ptbs_rrgstno2 = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
  2529. if ((ptbs_rrgstno1 == "" || ptbs_rrgstno1 == " ") && (ptbs_rrgstno2 == "" || ptbs_rrgstno2 == " ")) {
  2530. ds_send_data5.clearData();
  2531. ds_send_data5.addRow();
  2532. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2533. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2534. ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2535. ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2536. ds_send_data4.setColumn(0, "mode", "0");
  2537. fPatRsrvInfoSrch();
  2538. }
  2539. else {
  2540. ds_main_ptbspatinfo.clearData();
  2541. ds_main_ptbspatinfo.addRow()
  2542. ds_main_adrv.clearData();
  2543. ds_main_adrv.addRow()
  2544. }
  2545. }
  2546. else {
  2547. ds_send_data5.clearData();
  2548. ds_send_data5.addRow();
  2549. ds_send_data5.setColumn(0, "rrgstno1", ds_patinfolist.getColumn(0, "rrgstno1"));
  2550. ds_send_data5.setColumn(0, "rrgstno2", ds_patinfolist.getColumn(0, "rrgstno2"));
  2551. ds_send_data5.setColumn(0, "srchcond", "3")
  2552. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2553. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2554. ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2555. ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2556. ds_send_data4.setColumn(0, "mode", "0");
  2557. fPatRsrvInfoSrch();
  2558. }
  2559. else {
  2560. ds_main_ptbspatinfo.clearData();
  2561. ds_main_ptbspatinfo.addRow()
  2562. ds_main_adrv.clearData();
  2563. ds_main_adrv.addRow()
  2564. }
  2565. }
  2566. }
  2567. /**
  2568. * [인적사항] 성명 키보드 입력 이벤트
  2569. * @param {[type]} obj: Edit [description]
  2570. * @param {[type]} e: KeyEventInfo [description]
  2571. * @return {[type]} [description]
  2572. */
  2573. function ipt_hngnm_onkeydown(obj: Edit, e: KeyEventInfo) {
  2574. if (e.keycode != 13) {
  2575. return;
  2576. }
  2577. obj.updateToDataset();
  2578. /*
  2579. data1 입원결정서 조회, data2 입원예약조회, data3 ready시 기본값 조회, data4 그리드 클릭시 조회
  2580. data5 팝업 조회 data6 저장 data7 data8 성명,주민번호 조회시
  2581. */
  2582. if (!fHngNmVeri("onkeypress")) {
  2583. return;
  2584. }
  2585. ds_send_data4.clearData();
  2586. ds_send_data4.addRow();
  2587. ds_send_data5.clearData();
  2588. ds_send_data5.addRow();
  2589. ds_send_data6.clearData();
  2590. ds_send_data6.addRow();
  2591. ds_send_data7.clearData();
  2592. ds_send_data7.addRow();
  2593. ds_send_data8.clearData();
  2594. ds_send_data8.addRow();
  2595. var hngnm = ds_main_ptbspatinfo.getColumn(0, 'hngnm');
  2596. ds_send_data8.setColumn(0, "hngnm", hngnm);
  2597. ds_send_data8.setColumn(0, "mode", "1");
  2598. dsf_createDsRow('ds_TRPMI00107', [
  2599. { col: 'mode', type: 'string', size: 256, val: '' },
  2600. { col: 'pid', type: 'string', size: 256, val: '' },
  2601. { col: 'hngnm', type: 'string', size: 256, val: '' },
  2602. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  2603. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  2604. { col: 'orddd', type: 'string', size: 256, val: '' },
  2605. { col: 'ioflag', type: 'string', size: 256, val: '' },
  2606. { col: 'insukind', type: 'string', size: 256, val: '' },
  2607. { col: 'orddeptcd', type: 'string', size: 256, val: '' }
  2608. ], false);
  2609. ds_TRPMI00107.copyRow(0, ds_send_data8, 0);
  2610. ds_TRPMI00107.setColumn(0, 'orddd', ds_send_data8.getColumn(0, 'indd'));
  2611. ds_hidden_check_ptbs.clearData();
  2612. var oParam = {};
  2613. oParam.id = "TRPMI00107";
  2614. oParam.service = "ipatmngtapp.InRgst";
  2615. oParam.method = "reqGetInRgPatInfo";
  2616. oParam.inds = "req=ds_TRPMI00107";
  2617. oParam.outds = "ds_hidden_check_ptbs=ptbs";// "ds_=ptsp ds_=srdg ds_=rooa ds_=adrv ds_=hndc ds_=cnst ds_=grdinrgstinfo ds_=inpt1 ds_=stdy ds_=disc ds_=bind ds_=tempdsch";
  2618. oParam.async = false;
  2619. tranf_submit(oParam);
  2620. var ptbs_chkcnt = ds_hidden_check_ptbs.rowcount;
  2621. if (ptbs_chkcnt > 0) {
  2622. //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
  2623. if (ptbs_chkcnt > 1) {
  2624. ds_send_data5.setColumn(0, "hngnm", hngnm);
  2625. ds_send_data5.setColumn(0, "srchcond", "2");
  2626. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2627. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2628. ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2629. ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2630. ds_send_data4.setColumn(0, "mode", "0");
  2631. fPatRsrvInfoSrch();
  2632. }
  2633. else {
  2634. return false;
  2635. }
  2636. }
  2637. else {
  2638. ds_send_data4.clearData();
  2639. ds_send_data4.addRow();
  2640. ds_main_ptbspatinfo.setColumn(0, "pid", ds_hidden_check_ptbs.getColumn(0, "ptbs_pid"));
  2641. ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2642. ds_send_data4.setColumn(0, "mode", "0");
  2643. fPatRsrvInfoSrch();
  2644. }
  2645. }
  2646. else {
  2647. sysf_messageBox("환자인적이", "I004");
  2648. ds_main_ptbspatinfo.clearData();
  2649. ds_main_adrv.clearData();
  2650. return false;
  2651. }
  2652. }
  2653. /**
  2654. * [인적사항] 성명 검색 아이콘 클릭 이벤트
  2655. * @param {[type]} obj: Button [description]
  2656. * @param {[type]} e: ClickEventInfo [description]
  2657. * @return {[type]} [description]
  2658. */
  2659. function btn_hngnm_onclick(obj: Button, e: ClickEventInfo) {
  2660. var ptbs_hngnm = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "hngnm"));
  2661. if (ptbs_hngnm == '' || ptbs_hngnm == " ") {
  2662. ds_send_data5.clearData();
  2663. ds_send_data5.addRow();
  2664. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2665. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2666. ds_main_ptbspatinfo.getColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2667. ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2668. ds_send_data4.setColumn(0, "mode", "0");
  2669. fPatRsrvInfoSrch();
  2670. }
  2671. else {
  2672. ds_main_ptbspatinfo.clearData();
  2673. ds_main_ptbspatinfo.addRow();
  2674. ds_main_adrv.clearData();
  2675. ds_main_adrv.addRow();
  2676. }
  2677. }
  2678. else {
  2679. ds_send_data5.clearData();
  2680. ds_send_data5.addRow();
  2681. ds_send_data5.setColumn(0, "hngnm", ds_main_ptbspatinfo.getColumn(0, "hngnm"));
  2682. ds_send_data5.setColumn(0, "srchcond", "2")
  2683. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2684. if (ds_main.getColumn(0,"popupendflag") == "ok"){
  2685. ds_main_ptbspatinfo.getColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  2686. ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2687. ds_send_data4.setColumn(0, "mode", "0");
  2688. fPatRsrvInfoSrch();
  2689. }
  2690. else {
  2691. ds_main_ptbspatinfo.clearData();
  2692. ds_main_ptbspatinfo.addRow();
  2693. ds_main_adrv.clearData();
  2694. ds_main_adrv.addRow();
  2695. }
  2696. }
  2697. }
  2698. /**
  2699. * [인적사항] 우편번호 검색 아이콘 클릭 이벤트
  2700. * @param {[type]} obj: Button [description]
  2701. * @param {[type]} e: ClickEventInfo [description]
  2702. * @return {[type]} [description]
  2703. */
  2704. function button37_onclick(obj: Button, e: ClickEventInfo) {
  2705. var sZipcd = appf_getZipCodeList();
  2706. ds_main_ptbspatinfo.setColumn(0, "zipcd1", sZipcd.zipcdhead);
  2707. ds_main_ptbspatinfo.setColumn(0, "zipcd2", sZipcd.zipcdfoot);
  2708. ds_main_ptbspatinfo.setColumn(0, "zipcdseq", sZipcd.seqno); //미확인
  2709. ds_main_ptbspatinfo.setColumn(0, "zipnm", sZipcd.address); //sZipcd.address
  2710. ds_main_ptbspatinfo.setColumn(0, "detladdr", sZipcd.address_detail); //sZipcd.detladdr
  2711. //20070907 팝업에서 데이터 더블클릭후 메인으로 넘어간 후에는 커서 하위조소로 이동 요청..
  2712. var ptbs_zipnm = utlf_transNullToEmpty(ds_main_ptbspatinfo(0, "zipnm"));
  2713. if (ptbs_zipnm != "" && ptbs_zipnm != " " && ptbs_zipnm != "-") {
  2714. ipt_detladdr.setFocus();
  2715. }
  2716. }
  2717. /**
  2718. * [인적사항] 환자인적 버튼 클릭 이벤트
  2719. * @param {[type]} obj: Button [description]
  2720. * @param {[type]} e: ClickEventInfo [description]
  2721. * @return {[type]} [description]
  2722. */
  2723. function button1_onclick(obj: Button, e: ClickEventInfo) {
  2724. ds_send_data5.setColumn(0, "srchcond", "1");
  2725. ds_send_data5.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2726. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  2727. }
  2728. /**
  2729. * [인적사항] 인적사항변경 버튼 클릭 이벤트
  2730. * @param {[type]} obj: Button [description]
  2731. * @param {[type]} e: ClickEventInfo [description]
  2732. * @return {[type]} [description]
  2733. */
  2734. function button5_onclick(obj: Button, e: ClickEventInfo) {
  2735. var sPid = ds_main_ptbspatinfo.getColumn(0, "pid");
  2736. var sHngnm = ds_main_ptbspatinfo.getColumn(0, "hngnm");
  2737. var sRrgstno1 = ds_main_ptbspatinfo.getColumn(0, "rrgstno1");
  2738. var sRrgstno2 = ds_main_ptbspatinfo.getColumn(0, "rrgstno2");
  2739. if (isNull(sPid)) {
  2740. sysf_messageBox("환자 조회후에 인적사항을 변경하십시요!", "E999", "");
  2741. return;
  2742. }
  2743. if (isNull(sHngnm)) {
  2744. sysf_messageBox("성명을 입력하십시오!", "E999", "");
  2745. return;
  2746. }
  2747. if (isNull(sRrgstno1)) {
  2748. sysf_messageBox("주민번호 앞자리를 입력하십시오!", "E999", "");
  2749. return;
  2750. }
  2751. if (isNull(sRrgstno2)) {
  2752. sysf_messageBox("주민번호 뒷자리를 입력하십시오!", "E999", "");
  2753. return;
  2754. }
  2755. ds_send_data10.setColumn(0, "sess_userid", getUserId());
  2756. ds_send_data10.setColumn(0, "sess_dutplceinstcd", getUserInfo("dutplceinstcd"));
  2757. ds_send_data10.setColumn(0, "ptbs_pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
  2758. ds_send_data10.setColumn(0, "ptbs_hngnm", ds_main_ptbspatinfo.getColumn(0, "hngnm"));
  2759. ds_send_data10.setColumn(0, "ptbs_engnm", ds_main_ptbspatinfo.getColumn(0, "engnm"));
  2760. ds_send_data10.setColumn(0, "ptbs_rrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
  2761. ds_send_data10.setColumn(0, "ptbs_rrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
  2762. ds_send_data10.setColumn(0, "ptbs_brthdd", ds_main_ptbspatinfo.getColumn(0, "brthdd"));
  2763. ds_send_data10.setColumn(0, "ptbs_sex", ds_main_ptbspatinfo.getColumn(0, "sex"));
  2764. ds_send_data10.setColumn(0, "ptbs_age", ds_main_ptbspatinfo.getColumn(0, "age"));
  2765. ds_send_data10.setColumn(0, "ptbs_hometel", ds_main_ptbspatinfo.getColumn(0, "hometel"));
  2766. ds_send_data10.setColumn(0, "ptbs_mpphontel", ds_main_ptbspatinfo.getColumn(0, "mpphontel"));
  2767. ds_send_data10.setColumn(0, "ptbs_zipcd1", ds_main_ptbspatinfo.getColumn(0, "zipcd1"));
  2768. ds_send_data10.setColumn(0, "ptbs_zipcd2", ds_main_ptbspatinfo.getColumn(0, "zipcd2"));
  2769. ds_send_data10.setColumn(0, "ptbs_zipcdseq", ds_main_ptbspatinfo.getColumn(0, "zipcdseq"));
  2770. ds_send_data10.setColumn(0, "ptbs_zipnm", ds_main_ptbspatinfo.getColumn(0, "zipnm"));
  2771. ds_send_data10.setColumn(0, "ptbs_detladdr", ds_main_ptbspatinfo.getColumn(0, "detladdr"));
  2772. ds_send_data10.setColumn(0, "ptbs_forgeryn", ds_main_ptbspatinfo.getColumn(0, "forgeryn"));
  2773. ds_send_data10.setColumn(0, "ptbs_recmyn", ds_main_ptbspatinfo.getColumn(0, "recmyn"));
  2774. ds_send_data10.setColumn(0, "ptbs_recmerid", ds_main_ptbspatinfo.getColumn(0, "recmerid"));
  2775. ds_send_data10.setColumn(0, "ptbs_vipyn", ds_main_ptbspatinfo.getColumn(0, "vipyn"));
  2776. ds_send_data10.setColumn(0, "ptbs_religncd", ds_main_ptbspatinfo.getColumn(0, "religncd"));
  2777. ds_send_data10.setColumn(0, "ptbs_refact", ds_main_ptbspatinfo.getColumn(0, "remfact"));
  2778. ds_send_data10.setColumn(0, "ptbs_inhospyn", ds_main_ptbspatinfo.getColumn(0, "inhospyn"));
  2779. ds_send_data10.setColumn(0, "ptbs_disccd", ds_main_ptbspatinfo.getColumn(0, "disccd"));
  2780. // 20100114 수정추가 JHP 인적사항 변경시 우편번호 상위주소(zipcdaddr)값을 셋팅을 안해서 계속 '-'형태로 들어가고 있었음.
  2781. // 하여 추가함. pamlib쪽을 태우기에 그쪽에 맞게 인스턴스명으로 넘김.
  2782. ds_send_data10.setColumn(0, "ptbs_highaddr", ds_main_ptbspatinfo.getColumn(0, "zipnm"));
  2783. dsf_createDsRow('ds_TXPMO00104', [
  2784. { col: 'sess_userid', type: 'string', size: 256, val: '' },
  2785. { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  2786. { col: 'pid_flag', type: 'string', size: 256, val: '' },
  2787. { col: 'ptbs_pid', type: 'string', size: 256, val: '' },
  2788. { col: 'ptbs_instcd', type: 'string', size: 256, val: '' },
  2789. { col: 'ptbs_hngnm', type: 'string', size: 256, val: '' },
  2790. { col: 'ptbs_engnm', type: 'string', size: 256, val: '' },
  2791. { col: 'ptbs_chinm', type: 'string', size: 256, val: '' },
  2792. { col: 'old_rrgstno1', type: 'string', size: 256, val: '' },
  2793. { col: 'old_rrgstno2', type: 'string', size: 256, val: '' },
  2794. { col: 'ptbs_rrgstno1', type: 'string', size: 256, val: '' },
  2795. { col: 'ptbs_rrgstno2', type: 'string', size: 256, val: '' },
  2796. { col: 'ptbs_brthdd', type: 'string', size: 256, val: '' },
  2797. { col: 'ptbs_sex', type: 'string', size: 256, val: '' },
  2798. { col: 'ptbs_age', type: 'string', size: 256, val: '' },
  2799. { col: 'ptbs_bindpid', type: 'string', size: 256, val: '' },
  2800. { col: 'ptbs_hometel', type: 'string', size: 256, val: '' },
  2801. { col: 'ptbs_mpphontel', type: 'string', size: 256, val: '' },
  2802. { col: 'ptbs_etctel1', type: 'string', size: 256, val: '' },
  2803. { col: 'ptbs_etctel2', type: 'string', size: 256, val: '' },
  2804. { col: 'ptbs_smsaprvyn', type: 'string', size: 256, val: '' },
  2805. { col: 'ptbs_email', type: 'string', size: 256, val: '' },
  2806. { col: 'ptbs_zipcd1', type: 'string', size: 256, val: '' },
  2807. { col: 'ptbs_zipcd2', type: 'string', size: 256, val: '' },
  2808. { col: 'ptbs_zipcdseq', type: 'string', size: 256, val: '' },
  2809. { col: 'ptbs_highaddr', type: 'string', size: 256, val: '' },
  2810. { col: 'ptbs_detladdr', type: 'string', size: 256, val: '' },
  2811. { col: 'ptbs_btype', type: 'string', size: 256, val: '' },
  2812. { col: 'ptbs_rh', type: 'string', size: 256, val: '' },
  2813. { col: 'ptbs_forgeryn', type: 'string', size: 256, val: '' },
  2814. { col: 'ptbs_nati', type: 'string', size: 256, val: '' },
  2815. { col: 'ptbs_psptno', type: 'string', size: 256, val: '' },
  2816. { col: 'ptbs_recmyn', type: 'string', size: 256, val: '' },
  2817. { col: 'ptbs_recmerid', type: 'string', size: 256, val: '' },
  2818. { col: 'ptbs_recmernm', type: 'string', size: 256, val: '' },
  2819. { col: 'ptbs_vipyn', type: 'string', size: 256, val: '' },
  2820. { col: 'ptbs_viprem', type: 'string', size: 256, val: '' },
  2821. { col: 'ptbs_religncd', type: 'string', size: 256, val: '' },
  2822. { col: 'ptbs_baptnm', type: 'string', size: 256, val: '' },
  2823. { col: 'ptbs_chchnm', type: 'string', size: 256, val: '' },
  2824. { col: 'ptbs_dethyn', type: 'string', size: 256, val: '' },
  2825. { col: 'ptbs_dethdt', type: 'string', size: 256, val: '' },
  2826. { col: 'ptbs_chosresn', type: 'string', size: 256, val: '' },
  2827. { col: 'ptbs_animyn', type: 'string', size: 256, val: '' },
  2828. { col: 'ptbs_exptresncd', type: 'string', size: 256, val: '' },
  2829. { col: 'ptbs_inhospyn', type: 'string', size: 256, val: '' },
  2830. { col: 'ptbs_handicapryn', type: 'string', size: 256, val: '' },
  2831. { col: 'ptbs_kioskrcptnoyn', type: 'string', size: 256, val: '' },
  2832. { col: 'ptbs_carnum', type: 'string', size: 256, val: '' },
  2833. { col: 'ptbs_remfact', type: 'string', size: 256, val: '' },
  2834. { col: 'ptbs_acptdd', type: 'string', size: 256, val: '' },
  2835. { col: 'ptbs_acptno', type: 'string', size: 256, val: '' },
  2836. { col: 'ptbs_fstrgstrid', type: 'string', size: 256, val: '' },
  2837. { col: 'ptbs_fstrgstdt', type: 'string', size: 256, val: '' },
  2838. { col: 'ptbs_lastupdtrid', type: 'string', size: 256, val: '' },
  2839. { col: 'ptbs_lastupdtdt', type: 'string', size: 256, val: '' },
  2840. { col: 'ptbs_ipaddr', type: 'string', size: 256, val: '' },
  2841. { col: 'ptbs_builno', type: 'string', size: 256, val: '' }
  2842. ], false);
  2843. ds_TXPMO00104.copyRow(0, ds_send_data10, 0);
  2844. ds_TXPMO00104.setColumn(0, 'sess_posinstcd', ds_send_data10.getColumn(0, 'sess_dutplceinstcd'));
  2845. ds_TXPMO00104.setColumn(0, 'old_rrgstno1', ds_send_data10.getColumn(0, 'rgstno1'));
  2846. ds_TXPMO00104.setColumn(0, 'old_rrgstno2', ds_send_data10.getColumn(0, 'rgstno2'));
  2847. ds_hidden_rcv_ptbs.clearData();
  2848. var oParam = {};
  2849. oParam.id = "TXPMO00104";
  2850. oParam.service = "opatmngtapp.OPatMngt";
  2851. oParam.method = "reqSetPatInfo";
  2852. oParam.inds = "req=ds_TXPMO00104";
  2853. oParam.outds = "ds_hidden_rcv_ptbs=ptbs";
  2854. oParam.async = false;
  2855. oParam.callback = "callback";
  2856. tranf_submit(oParam);
  2857. if (arErrorCode.pop("TXPMO00104") > -1) {
  2858. ds_send_data10.clearData();
  2859. sysf_messageBox("저장되었습니다!", "I");
  2860. }
  2861. }
  2862. /**
  2863. * 결정서저장 버튼 클릭 이벤트
  2864. * @param {[type]} obj: Button [description]
  2865. * @param {[type]} e: ClickEventInfo [description]
  2866. * @return {[type]} [description]
  2867. */
  2868. function button4_onclick(obj: Button, e: ClickEventInfo) {
  2869. // 입원결정서 상태에서 내용 저장
  2870. /*
  2871. 1. 입원예약 시 로직을 이용한다 - flag로 구분하여 사용
  2872. 2. 상태가 '결정서'일때만 저장할 수 있도록 제한
  2873. */
  2874. var sPid = ds_main_ptbspatinfo.getColumn(0, "pid");
  2875. if (isNull(sPid)) {
  2876. sysf_messageBox("입원결정서 선택 후 저장하십시오!", "I");
  2877. return;
  2878. }
  2879. var sRsrvStat = ds_main_adrv.getColumn(0, "inrsrvstat");
  2880. if (sRsrvStat == "R") {
  2881. sysf_messageBox("입원예약된 상태입니다. 예약변경하십시오!", "I");
  2882. return;
  2883. }
  2884. ds_main_adrv.setColumn(0, "rsrvflag", "SS");
  2885. ds_main_adrv.setColumn(0, "status", "U");
  2886. dsf_createDsRow('ds_TXPMI00201', [
  2887. { col: 'pid', type: 'string', size: 256, val: '' },
  2888. { col: 'status', type: 'string', size: 256, val: '' },
  2889. { col: 'rsrvflag', type: 'string', size: 256, val: '' },
  2890. { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
  2891. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  2892. { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
  2893. { col: 'instcd', type: 'string', size: 256, val: '' },
  2894. { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
  2895. { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
  2896. { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
  2897. { col: 'insukind', type: 'string', size: 256, val: '' },
  2898. { col: 'suppkind', type: 'string', size: 256, val: '' },
  2899. { col: 'suppkindresn', type: 'string', size: 256, val: '' },
  2900. { col: 'insuno', type: 'string', size: 256, val: '' },
  2901. { col: 'indirecdrid', type: 'string', size: 256, val: '' },
  2902. { col: 'indirecdd', type: 'string', size: 256, val: '' },
  2903. { col: 'orddrid', type: 'string', size: 256, val: '' },
  2904. { col: 'inhopedd', type: 'string', size: 256, val: '' },
  2905. { col: 'patinhopedd', type: 'string', size: 256, val: '' },
  2906. { col: 'inhopeward', type: 'string', size: 256, val: '' },
  2907. { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
  2908. { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
  2909. { col: 'assgward', type: 'string', size: 256, val: '' },
  2910. { col: 'assgroom', type: 'string', size: 256, val: '' },
  2911. { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
  2912. { col: 'assgroomtype', type: 'string', size: 256, val: '' },
  2913. { col: 'inflag', type: 'string', size: 256, val: '' },
  2914. { col: 'drgyn', type: 'string', size: 256, val: '' },
  2915. { col: 'bmtyn', type: 'string', size: 256, val: '' },
  2916. { col: 'cpyn', type: 'string', size: 256, val: '' },
  2917. { col: 'cpcd', type: 'string', size: 256, val: '' },
  2918. { col: 'fcstinterm', type: 'string', size: 256, val: '' },
  2919. { col: 'erreglyn', type: 'string', size: 256, val: '' },
  2920. { col: 'isolroomyn', type: 'string', size: 256, val: '' },
  2921. { col: 'oxyyn', type: 'string', size: 256, val: '' },
  2922. { col: 'suctyn', type: 'string', size: 256, val: '' },
  2923. { col: 'specroomyn', type: 'string', size: 256, val: '' },
  2924. { col: 'scheopdd', type: 'string', size: 256, val: '' },
  2925. { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
  2926. { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
  2927. { col: 'drrem', type: 'string', size: 256, val: '' },
  2928. { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
  2929. { col: 'incncldd', type: 'string', size: 256, val: '' },
  2930. { col: 'incncltm', type: 'string', size: 256, val: '' },
  2931. { col: 'nblsyn', type: 'string', size: 256, val: '' },
  2932. { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
  2933. { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
  2934. { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
  2935. { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
  2936. { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
  2937. { col: 'clincstdyno', type: 'string', size: 256, val: '' },
  2938. { col: 'ocrtag', type: 'string', size: 256, val: '' },
  2939. { col: 'centcd', type: 'string', size: 256, val: '' },
  2940. { col: 'subdeptcd', type: 'string', size: 256, val: '' },
  2941. { col: 'coopteamcd', type: 'string', size: 256, val: '' },
  2942. { col: 'wardtypecd', type: 'string', size: 256, val: '' },
  2943. { col: 'specwardcd', type: 'string', size: 256, val: '' },
  2944. { col: 'ampmflag', type: 'string', size: 256, val: '' },
  2945. { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
  2946. { col: 'specordtype', type: 'string', size: 256, val: '' }
  2947. ], false);
  2948. ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
  2949. dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
  2950. ds_hidden_rsltflag.clearData();
  2951. var oParam = {};
  2952. oParam.id = "TXPMI00201";
  2953. oParam.service = "ipatmngtapp.InRsrv";
  2954. oParam.method = "reqExeInhpRsrv";
  2955. oParam.inds = "s_adrv=ds_TXPMI00201";
  2956. oParam.outds = "ds_hidden_rsltflag=result";
  2957. oParam.async = false;
  2958. oParam.callback = "callback";
  2959. tranf_submit(oParam);
  2960. if (arErrorCode.pop("TXPMI00201") > -1) {
  2961. sysf_messageBox("저장되었습니다.", "I");
  2962. //inputEnterKey("ipt_pid", "onkeypress");
  2963. // 결정서저장이후에 인적사항의 환자번호로 조회하는 로직 으로 refresh한다. 수정 JHP 20100413
  2964. // 위의 내용이 발생을 하지 않아 해당내용 함수로 만들어 처리함.
  2965. fGetPidInfo();
  2966. }
  2967. }
  2968. /**
  2969. * [입원예약상세내역] 입원희망일[환자] 날자 변경 이벤트
  2970. * @param {[type]} obj: Calendar [description]
  2971. * @param {[type]} e: ChangeEventInfo [description]
  2972. * @return {[type]} [description]
  2973. */
  2974. function ipt_patinhopedd_onchanged(obj: Calendar, e: ChangeEventInfo) {
  2975. //2008-04-14 이성인 수정
  2976. if (parseInt(utlf_getCurrentDate()) - parseInt(e.postvalue) > 0) {
  2977. ipt_patinhopedd.value = ipt_patinhopedd.attribute("_value");
  2978. ds_main_adrv.setColumn(0, 'patinhopedd', utlf_getCurrentDate());
  2979. sysf_messageBox("입원희망일은 현재일자 보다 과거일수 없습니다.", "E999", "");
  2980. return false;
  2981. }
  2982. }
  2983. /**
  2984. * [입원예약상세내역] 희망병동 검색 아이콘 클릭 이벤트
  2985. * @param {[type]} obj: Button [description]
  2986. * @param {[type]} e: ClickEventInfo [description]
  2987. * @return {[type]} [description]
  2988. */
  2989. function btn_inhopeward_onclick(obj: Button, e: ClickEventInfo) {
  2990. ds_hidden_target.clearData();
  2991. ds_hidden_target.addRow();
  2992. var inhopeward = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, 'inhopeward'));
  2993. if (inhopeward != "") {
  2994. frmf_modal("SPPMI02000", "SPPMI02000", { arg_hidden_target: { wardcd: inhopeward } }, "", "", "", "", "", "", "", "", "", "M");
  2995. var swardcd = ds_hidden_target_grdroomspec.getColumn(0, "wardcd");
  2996. if (!utlf_isNull(swardcd)) {
  2997. ds_main_adrv.setColumn(0, "inhoperoomgrdefrom", ds_hidden_target_grdroomspec.getColumn(0, "roomgrdecd"));
  2998. model.refresh();
  2999. }
  3000. }
  3001. }
  3002. /**
  3003. * [입원예약상세내역] 병실등급FROM 콤보 아이템 변경 후 이벤트
  3004. * @param {[type]} obj: Combo [description]
  3005. * @param {[type]} e: ItemChangeEventInfo [description]
  3006. * @return {[type]} [description]
  3007. */
  3008. function cmb_inhoperoomgrdefrom_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  3009. //20090720 - zzu - cdnm 공통코드기준아닌 수가기준으로 보여주기
  3010. var cdid = e.postvalue;
  3011. var row = ds_hidden_roomgrdelist_roomgrde.findRow('cdid', cdid);
  3012. var yn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "yn");
  3013. var cdyn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdyn");
  3014. var cdnm = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdnm");
  3015. if (yn == "종료됨" || cdyn == "종료됨") {
  3016. sysf_messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ", "I007");
  3017. }
  3018. }
  3019. /**
  3020. * [입원예약상세내역] 병실등급TO 콤보 아이템 변경 후 이벤트
  3021. * @param {[type]} obj: Combo [description]
  3022. * @param {[type]} e: ItemChangeEventInfo [description]
  3023. * @return {[type]} [description]
  3024. */
  3025. function cmb_inhoperoomgrdeto_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  3026. //20090720 - zzu - cdnm 공통코드기준아닌 수가기준으로 보여주기
  3027. var cdid = e.postvalue;
  3028. var row = ds_hidden_roomgrdelist_roomgrde.findRow('cdid', cdid);
  3029. var yn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "yn");
  3030. var cdyn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdyn");
  3031. var cdnm = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdnm");
  3032. if (yn == "종료됨" || cdyn == "종료됨") {
  3033. sysf_messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ", "I007");
  3034. }
  3035. }
  3036. /**
  3037. * 입원결정일자 cmb_rorddeptcd1 콤보 아이템 변경 후 이벤트
  3038. * @param {[type]} obj: Combo [description]
  3039. * @param {[type]} e: ItemChangeEventInfo [description]
  3040. * @return {[type]} [description]
  3041. */
  3042. function cmb_rorddeptcd1_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  3043. var sorddeptcd = utlf_transNullToEmpty(ds_send_data1.getColumn(0, "sorddeptcd"));
  3044. if (sorddeptcd == '' || sorddeptcd == " ") {
  3045. ds_hidden_init_orddrid.filter('');
  3046. ds_cmd_medispcl.copyData(ds_hidden_init_orddrid, true);
  3047. }
  3048. else {
  3049. ds_hidden_init_orddrid.filter('dp == "' + sorddeptcd + '" && (jobposcd = 1782 || jobposcd = 1784 || jobposcd = 1786 || jobposcd = 1788 '
  3050. + '|| jobposcd = 1847 || jobposcd = 1848 || jobposcd = 1849 || jobposcd = 1850)');
  3051. ds_cmd_medispcl.copyData(ds_hidden_init_orddrid, true);
  3052. ds_hidden_init_orddrid.filter('');
  3053. }
  3054. }
  3055. /**
  3056. * [입원결정일자] cmd_medispcl 콤보 아이템 변경 후 이벤트
  3057. * @param {[type]} obj: Combo [description]
  3058. * @param {[type]} e: ItemChangeEventInfo [description]
  3059. * @return {[type]} [description]
  3060. */
  3061. function grp1_cmd_medispcl_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  3062. var adrv_orddeptcd = utlf_transNullToEmpty(ds_send.getColumn(0, "sorddeptcd"));
  3063. if (adrv_orddeptcd == '' || adrv_orddeptcd == "-") {
  3064. ds_send.setColumn("sorddeptcd", "");
  3065. grp1.cmb_rorddeptcd1.setFocus();
  3066. return;
  3067. }
  3068. }
  3069. /**
  3070. * bol_checkdd1 체크박스 클릭 이벤트
  3071. * @param {[type]} obj: CheckBox [description]
  3072. * @param {[type]} e: ClickEventInfo [description]
  3073. * @return {[type]} [description]
  3074. */
  3075. function grp1_bol_checkdd1_onclick(obj: CheckBox, e: ClickEventInfo) {
  3076. var value = ds_send_data1.getColumn(0, 's_checkflag');
  3077. if (value == 'Y') {
  3078. grp1.caption3.visible = true;
  3079. grp1.ipt_inrsrvfromdd.visible = true;
  3080. grp1.ipt_inrsrvtodd.visible = true;
  3081. ds_send_data1.setColumn(0, "inrsrvacpttodd", utlf_getCurrentDate());
  3082. }
  3083. else {
  3084. grp1.caption3.visible = false;
  3085. grp1.ipt_inrsrvtodd.visible = false;
  3086. ds_send_data1.setColumn(0, "inrsrvacpttodd", "");
  3087. }
  3088. }
  3089. /**
  3090. * btn_search1 button click event
  3091. * @param {[type]} obj: Button [description]
  3092. * @param {[type]} e: ClickEventInfo [description]
  3093. * @return {[type]} [description]
  3094. */
  3095. function btn_search1_onclick(obj: Button, e: ClickEventInfo) {
  3096. ds_send_data1.setColumn(0, "pid", "");
  3097. //예약정보 삭제 2008.05.02 한윤희
  3098. ds_main_adrv.clearData();
  3099. ds_main_adrv.addRow();
  3100. ds_main_ptbspatinfo.clearData();
  3101. ds_main_ptbspatinfo.addRow();
  3102. fSQueryRef();
  3103. }
  3104. /**
  3105. * btn_print button onclick event
  3106. * @param {[type]} obj: Button [description]
  3107. * @param {[type]} e: ClickEventInfo [description]
  3108. * @return {[type]} [description]
  3109. */
  3110. function btn_print_onclick(obj: Button, e: ClickEventInfo) {
  3111. // DOM 객체 설정
  3112. var objDOM = rptf_createDOM();
  3113. rptf_setNodeListToDOM(objDOM, "root/main/list1/grdinhpdeci", ds_main_list1_grdinhpdeci);
  3114. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  3115. rptf_exeReportPreview30(["RPPMI00201"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
  3116. }
  3117. /**
  3118. * btn_delrcvr button onclick event
  3119. * @param {[type]} obj: Button [description]
  3120. * @param {[type]} e: ClickEventInfo [description]
  3121. * @return {[type]} [description]
  3122. */
  3123. function btn_delrcvr_onclick(obj: Button, e: ClickEventInfo) {
  3124. var row = grd_inhpdeci.currentrow;
  3125. var param = ds_main_list1_grdinhpdeci.getColumn(row, "pid");
  3126. frmf_setParameter("SPPMI03400_param", param);
  3127. frmf_modal("SPPMI03400", "SPPMI03400", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
  3128. frmf_clearParameter("SPPMI03400_param");
  3129. }
  3130. /**
  3131. * [grd_inhpdeci_oncelldblclick description]
  3132. * @param {[type]} obj: Grid [description]
  3133. * @param {[type]} e: GridClickEventInfo [description]
  3134. * @return {[type]} [description]
  3135. */
  3136. function grd_inhpdeci_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  3137. //그리드에 row를 선택하는지 row가 아닌 곳을 선택하는지 체크
  3138. var row = grd_inhpdeci.currentrow; //입원결정서
  3139. var erreglyn = ds_main_list1_grdinhpdeci.getColumn(row, "erreglyn");
  3140. //DSC환자체크
  3141. if (erreglyn == 'D') {
  3142. sysf_messageBox("DSC환자는 처리 할 수 없습니다. ", "E999");
  3143. return false;
  3144. }
  3145. var adrv_pid = utlf_transNullToEmpty(ds_main_list1_grdinhpdeci.getColumn(row, "pid"));
  3146. if (adrv_pid == '' || adrv_pid == " ") {
  3147. return false;
  3148. }
  3149. else {
  3150. ds_main_list2_grdinhprsspec.selectRow(grd_inhprsspec.currentrow, false);
  3151. //버튼
  3152. btn_update.enable = false;
  3153. btn_cncl.enable = false;
  3154. btn_insert.enable = true;
  3155. ds_send_data4.setColumn(0, "pid", ds_main_list1_grdinhpdeci.getColumn(row, "pid"));
  3156. ds_send_data4.setColumn(0, "inrsrvacptdd", ds_main_list1_grdinhpdeci.getColumn(row, "inrsrvacptdd"));
  3157. ds_send_data4.setColumn(0, "orddeptcd", ds_main_list1_grdinhpdeci.getColumn(row, "orddeptcd"));
  3158. ds_send_data4.setColumn(0, "inrsrvacptseqno", ds_main_list1_grdinhpdeci.getColumn(row, "inrsrvacptseqno"));
  3159. ds_send_data4.setColumn(0, "mode", "1");
  3160. ds_send_data4.setColumn(0, "inrsrvstat", "S");
  3161. dsf_setTypeFormat(ds_send_data4, "inrsrvacptseqno:INT^mode:INT");
  3162. ds_hidden_rcv_ptbspatinfo.clearData();
  3163. ds_hidden_rcv_adrv.clearData();
  3164. var oParam = {};
  3165. oParam.id = "TRPMI00204";
  3166. oParam.service = "ipatmngtapp.InRsrv";
  3167. oParam.method = "reqGetInRsrvDetlSpec";
  3168. oParam.inds = "req=ds_send_data4";
  3169. oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
  3170. oParam.async = false;
  3171. oParam.callback = "callback";
  3172. tranf_submit(oParam);
  3173. if (arErrorCode.pop("TRPMI00204") > -1) {
  3174. ds_send_data4.clearData();
  3175. ds_send_data4.addRow();
  3176. ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
  3177. ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
  3178. ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
  3179. var sErreglyn = ds_main_adrv.getColumn(0, "erreglyn");
  3180. if (sErreglyn == "F") {
  3181. combo2.style.background.color = "#ff0000";
  3182. }
  3183. else {
  3184. combo2.style.background.color = "#ffffff";
  3185. }
  3186. }
  3187. }
  3188. // 보험정보 조회
  3189. fGetPtinInfo();
  3190. }
  3191. /**
  3192. * [grd_inhpdeci_onexpanddown description]
  3193. * @param {[type]} obj: Grid [description]
  3194. * @param {[type]} e: GridMouseEventInfo [description]
  3195. * @return {[type]} [description]
  3196. */
  3197. function grd_inhpdeci_onexpanddown(obj: Grid, e: GridMouseEventInfo) {
  3198. var row = grd_inhpdeci.currentrow;
  3199. var pid = ds_main_list1_grdinhpdeci.getColumn(row, "pid");
  3200. var hngnm = ds_main_list1_grdinhpdeci.getColumn(row, "hngnm");
  3201. var orddeptcd = ds_main_list1_grdinhpdeci.getColumn(row, "orddeptcd");
  3202. var orddrid = ds_main_list1_grdinhpdeci.getColumn(row, "orddrid");
  3203. var insukind = ds_main_list1_grdinhpdeci.getColumn(row, "insukind");
  3204. var suppkind = ds_main_list1_grdinhpdeci.getColumn(row, "suppkind");
  3205. var orddd = ds_main_list1_grdinhpdeci.getColumn(row, "inrsrvacptdd");
  3206. var cretno = "";
  3207. var ioflag = "I"
  3208. var param = pid + "▦" + //등록번호
  3209. hngnm + "▦" + //환자명
  3210. orddeptcd + "▦" + //진료과코드
  3211. orddrid + "▦" + //진료의ID
  3212. insukind + "▦" + //보험유형
  3213. suppkind + "▦" + //보조유형
  3214. orddd + "▦" + //진료일자(입원일자)
  3215. cretno + "▦" + //생성번호
  3216. ioflag; //외래입원구분
  3217. frmf_setParameter("SPMMO00100_param", param);
  3218. frmf_modal("SPMMO00100", "SPMMO00100", '', "", "", "", "", "", "", "", "", "", "M");
  3219. }
  3220. /**
  3221. * [cmb_rorddeptcd2_onitemchanged description]
  3222. * @param {[type]} obj: Combo [description]
  3223. * @param {[type]} e: ItemChangeEventInfo [description]
  3224. * @return {[type]} [description]
  3225. */
  3226. function cmb_rorddeptcd2_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  3227. var sorddeptcd = ds_send_data2.getColumn(0, "rorddeptcd");
  3228. ds_hidden_init_orddrid.filter('dp == "' + sorddeptcd + '" && (jobposcd = 1782 || jobposcd = 1784 || jobposcd = 1786'
  3229. +' || jobposcd = 1788 || jobposcd = 1847 || jobposcd = 1848 || jobposcd = 1849 || jobposcd = 1850)');
  3230. ds_combo21.copyData(ds_hidden_init_orddrid, true);
  3231. ds_hidden_init_orddrid.filter('');
  3232. }
  3233. /**
  3234. * [grp2_bol_checkdd1_onclick description]
  3235. * @param {[type]} obj: CheckBox [description]
  3236. * @param {[type]} e: ClickEventInfo [description]
  3237. * @return {[type]} [description]
  3238. */
  3239. function grp2_bol_checkdd1_onclick(obj: CheckBox, e: ClickEventInfo) {
  3240. var value = ds_send_data2.getColumn(0, 'r_checkflag');
  3241. if (value == 'Y') {
  3242. grp2.caption5.visible = true;
  3243. grp2.ipt_inhopefromdd.visible = true;
  3244. grp2.ipt_inhopetodd.visible = true;
  3245. ds_send_data2.setColumn(0, "patinhopetodd", utlf_getCurrentDate());
  3246. }
  3247. else {
  3248. grp2.caption5.visible = false;
  3249. grp2.ipt_inhopetodd.visible = false;
  3250. ds_send_data2.setColumn(0, "patinhopetodd", "");
  3251. }
  3252. }
  3253. /**
  3254. * [btn_search2_onclick description]
  3255. * @param {[type]} obj: Button [description]
  3256. * @param {[type]} e: ClickEventInfo [description]
  3257. * @return {[type]} [description]
  3258. */
  3259. function btn_search2_onclick(obj: Button, e: ClickEventInfo) {
  3260. //예약정보 삭제 2008.05.02 한윤희
  3261. ds_send_data2.setColumn(0, "pid", "");
  3262. ds_main_adrv.clearData();
  3263. ds_main_adrv.addRow();
  3264. ds_main_ptbspatinfo.clearData();
  3265. ds_main_ptbspatinfo.addRow();
  3266. fRQueryRef(); //입원예약환자 조회
  3267. }
  3268. /**
  3269. * grp2 print button onclick event
  3270. * @param {[type]} obj: Button [description]
  3271. * @param {[type]} e: ClickEventInfo [description]
  3272. * @return {[type]} [description]
  3273. */
  3274. function button3_onclick(obj: Button, e: ClickEventInfo) {
  3275. // DOM 객체 설정
  3276. var objDOM = rptf_createDOM();
  3277. rptf_setNodeListToDOM(objDOM, "root/main/list2/grdinhprsspec", ds_main_list2_grdinhprsspec);
  3278. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  3279. rptf_exeReportPreview30(["RPPMI00202"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
  3280. }
  3281. /**
  3282. * [btn_excsave_onclick description]
  3283. * @param {[type]} obj: Button [description]
  3284. * @param {[type]} e: ClickEventInfo [description]
  3285. * @return {[type]} [description]
  3286. */
  3287. function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
  3288. grdf_exportExcel(grd_inhprsspec, "excel", "SheetName", false, "" ,"user");
  3289. }
  3290. /**
  3291. * [grd_inhprsspec_oncelldblclick description]
  3292. * @param {[type]} obj: Grid [description]
  3293. * @param {[type]} e: GridClickEventInfo [description]
  3294. * @return {[type]} [description]
  3295. */
  3296. function grd_inhprsspec_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  3297. var row = grd_inhprsspec.currentrow;
  3298. //그리드에 row를 선택하는지 row가 아닌 곳을 선택하는지 체크
  3299. ds_main_list1_grdinhpdeci.selectRow(grd_inhpdeci.currentrow, false);
  3300. ///grd_inhpdeci.row = -1;
  3301. //버튼 Disabled
  3302. btn_update.disabled = false;
  3303. btn_cncl.disabled = false;
  3304. btn_insert.disabled = true;
  3305. //submit 보k내기전에 클리어
  3306. ds_send_data4.clearData();
  3307. ds_send_data4.addRow();
  3308. ds_send_data4.setColumn(0, "pid", ds_main_list2_grdinhprsspec.getColumn(row, "pid"));
  3309. ds_send_data4.setColumn(0, "inrsrvacptdd", ds_main_list2_grdinhprsspec.getColumn(row, "inrsrvacptdd"));
  3310. ds_send_data4.setColumn(0, "orddeptcd", ds_main_list2_grdinhprsspec.getColumn(row, "orddeptcd"));
  3311. ds_send_data4.setColumn(0, "inrsrvacptseqno", ds_main_list2_grdinhprsspec.getColumn(row, "inrsrvacptseqno"));
  3312. ds_send_data4.setColumn(0, "mode", "1");
  3313. ds_send_data4.setColumn(0, "inrsrvstat", "R");
  3314. ds_hidden_rcv_ptbspatinfo.clearData();
  3315. ds_hidden_rcv_adrv.clearData();
  3316. dsf_setTypeFormat(ds_send_data4, "inrsrvacptseqno:INT^mode:INT");
  3317. var oParam = {};
  3318. oParam.id = "TRPMI00204";
  3319. oParam.service = "ipatmngtapp.InRsrv";
  3320. oParam.method = "reqGetInRsrvDetlSpec";
  3321. oParam.inds = "req=ds_send_data4";
  3322. oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
  3323. oParam.async = false;
  3324. oParam.callback = "callback";
  3325. tranf_submit(oParam);
  3326. if (arErrorCode.pop("TRPMI00204") > -1) {
  3327. ds_hidden_rcv_ptbspatinfo.updateColID('ptbsremfact', 'remfact');
  3328. //submit 보낸후에 클리어
  3329. ds_send_data4.clearData();
  3330. ds_send_data4.addRow();
  3331. ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
  3332. ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
  3333. ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
  3334. var sErreglyn = ds_main_adrv.getColumn(0, "erreglyn");
  3335. if (sErreglyn == "F") {
  3336. combo2.style.background.color = "#ff0000";
  3337. }
  3338. else {
  3339. combo2.style.background.color = "#ffffff";
  3340. }
  3341. }
  3342. // 보험정보 조회
  3343. fGetPtinInfo();
  3344. }
  3345. /**
  3346. * 선택신청 버튼 클릭 이벤트
  3347. * @param {[type]} obj: Button [description]
  3348. * @param {[type]} e: ClickEventInfo [description]
  3349. * @return {[type]} [description]
  3350. */
  3351. function button23_onclick(obj: Button, e: ClickEventInfo) {
  3352. // 입원같은 경우에는 무조건 입력을 하기때문에 기여부를 존재하는것 자체가 무의미한다.
  3353. // 하여 일단 해당 입력값들을 넘긴다음에 해당건이 존재하면 이력으로 발생을 시키고
  3354. // 없으면 입력한다.
  3355. // 넘길값들 인스턴스에 담기
  3356. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "stat", 'string', ""); // stat
  3357. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "pid", 'string', ds_main_ptbspatinfo.getColumn(0, "pid")); // pid
  3358. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "hngnm", 'string', ds_main_ptbspatinfo.getColumn(0, "hngnm")); // hngnm
  3359. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "rrgstno1", 'string', ds_main_ptbspatinfo.getColumn(0, "rrgstno1")); // rrgstno1
  3360. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "rrgstno2", 'string', ds_main_ptbspatinfo.getColumn(0, "rrgstno2")); // rrgstno2
  3361. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "choiflag", 'string', ""); // choiflag
  3362. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "ordtype", 'string', "I"); // ordtype
  3363. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "orddd", 'string', ds_main_adrv.getColumn(0, "patinhopedd")); // orddd
  3364. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "orddeptcd", 'string', ds_main_adrv.getColumn(0, "orddeptcd")); // orddeptcd
  3365. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "orddrid", 'string', ds_main_adrv.getColumn(0, "orddrid")); // orddrid
  3366. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "specordyn", 'string', "Y"); // specordyn
  3367. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "fromdd", 'string', ds_main_adrv.getColumn(0, "patinhopedd")); // fromdd
  3368. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "rsrvdd", 'string', ds_main_adrv.getColumn(0, "indirecdd")); // rsrvdd
  3369. dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "flag", 'string', "ins"); // flag(upt, ins)
  3370. // 선택진료신청화면열기
  3371. frmf_modal("SMPMC06500", "SMPMC06500", { arg_ds_main_patappinfo_patappinfo01: ds_hidden_patappinfo_patappinfo1 },
  3372. "", "", "", "", "", "", "", "", "", "M");
  3373. ds_hidden_patappinfo_patappinfo1.clearData();
  3374. ds_hidden_patappinfo_patappinfo1.addRow();
  3375. }
  3376. /**
  3377. * 약정서재출력 버튼 클릭 이벤트
  3378. *
  3379. * @param {[type]} obj: Button [description]
  3380. * @param {[type]} e: ClickEventInfo [description]
  3381. * @return {[type]} [description]
  3382. */
  3383. function button2_onclick(obj: Button, e: ClickEventInfo) {
  3384. var adrv_inrsrvstat = ds_main_adrv.getColumn(0, "inrsrvstat");
  3385. var adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
  3386. if (adrv_pid == '' || adrv_pid == "-" || adrv_pid == " ") {
  3387. sysf_messageBox("출력할 환자가 없습니다.", "E999", "");
  3388. return false;
  3389. }
  3390. if (adrv_inrsrvstat != "R") {
  3391. sysf_messageBox("입원 예약 상태가 아니여서 입원 약정서를 재출력 할 수 없습니다.", "E999", "");
  3392. return false;
  3393. }
  3394. else {
  3395. // 2008.12.16 - 공단자격조회
  3396. fGetNhicInfo();
  3397. var sNhicYn = ds_hidden.getColumn(0, "nhicyn");
  3398. if (sNhicYn == "Y") {
  3399. // 2008.12.17 - 보험정보 비교 및 저장
  3400. fSetNhicPtin();
  3401. }
  3402. //입원결정서 재출력
  3403. fInDeciPrint(ds_main_adrv.getColumn(0, "pid"),
  3404. ds_main_adrv.getColumn(0, "inrsrvacptdd"),
  3405. ds_main_adrv.getColumn(0, "orddeptcd"),
  3406. "R");
  3407. }
  3408. }
  3409. /**
  3410. * 예약 버튼 클릭 이벤트
  3411. * @param {[type]} obj: Button [description]
  3412. * @param {[type]} e: ClickEventInfo [description]
  3413. * @return {[type]} [description]
  3414. */
  3415. function btn_insert_onclick(obj: Button, e: ClickEventInfo) {
  3416. var cur_row = grd_inhpdeci.currentrow;
  3417. // 이 데이터셋의 row 가 1라인 이상인 경우 가 있나?
  3418. var erreglyn = ds_main_adrv.getColumn(cur_row, "erreglyn");
  3419. var y_adrv_pid = utlf_transNullToEmpty(ds_main_list1_grdinhpdeci.getColumn(cur_row, "pid"));
  3420. var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
  3421. var n_adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
  3422. if (y_adrv_pid == '' || y_adrv_pid == " ") {
  3423. y_adrv_pid = null;
  3424. }
  3425. if (ptbs_pid == '' || ptbs_pid == " ") {
  3426. ptbs_pid = null;
  3427. }
  3428. if (n_adrv_pid == '' || n_adrv_pid == " ") {
  3429. n_adrv_pid = null;
  3430. }
  3431. if (y_adrv_pid == null && ptbs_pid == null && n_adrv_pid == null) {
  3432. sysf_messageBox("환자를", "C002");
  3433. return false;
  3434. }
  3435. //dec환자체크
  3436. if (erreglyn == 'D') {
  3437. sysf_messageBox("DSC환자는 처리 할 수 없습니다. ", "E999");
  3438. return false;
  3439. }
  3440. //입원결정서를 선택
  3441. if (cur_row > 0) {
  3442. if (y_adrv_pid == ptbs_pid) {
  3443. ds_main_adrv.setColumn(0, "rsrvflag", "RS");
  3444. ds_main_adrv.setColumn(0, "status", "U");
  3445. ds_send_data6.copyData(ds_main_adrv, false);
  3446. dsf_createDs('ds_res');
  3447. var oParam = {};
  3448. oParam.id = "TXPMI00201";
  3449. oParam.service = "ipatmngtapp.InRsrv";
  3450. oParam.method = "reqExeInhpRsrv";
  3451. oParam.inds = "s_adrv=ds_send_data6";
  3452. oParam.outds = "ds_res=result";
  3453. oParam.async = false;
  3454. oParam.callback = "callback";
  3455. tranf_submit(oParam);
  3456. if (arErrorCode.pop("TXPMI00201") > -1) {
  3457. // 2008.12.16 - 공단자격조회
  3458. fGetNhicInfo();
  3459. var sNhicYn = ds_hidden.getColumn(0, "nhicyn");
  3460. if (sNhicYn == "Y") {
  3461. // 2008.12.17 - 보험정보 비교 및 저장
  3462. fSetNhicPtin();
  3463. }
  3464. //입원결정서 출력
  3465. fInDeciPrint(ds_main_adrv.getColumn(0, "pid"),
  3466. ds_main_adrv.getColumn(0, "inrsrvacptdd"),
  3467. ds_main_adrv.getColumn(0, "orddeptcd"),
  3468. "R");
  3469. //2008.05.02 예약정보 남겨두기 한윤희
  3470. ds_send_data6.clearData();
  3471. ds_send_data6.addRow();
  3472. //2008.04.30 예약한 환자만 조회되도록 수정 한윤희
  3473. ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
  3474. ds_send_data1.setColumn(0, "pid", ptbs_pid);
  3475. ds_send_data1.setColumn(0, "s_checkflag", "false");
  3476. fSQueryRef();
  3477. ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
  3478. ds_send_data1.setColumn(0, "pid", "");
  3479. ds_send_data1.setColumn(0, "s_checkflag", "true");
  3480. ds_send_data2.setColumn(0, "patinhopefromdd", "");
  3481. ds_send_data2.setColumn(0, "pid", ptbs_pid);
  3482. ds_send_data2.setColumn(0, "r_checkflag", "false");
  3483. fRQueryRef();
  3484. ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
  3485. ds_send_data2.setColumn(0, "pid", "");
  3486. ds_send_data2.setColumn(0, "r_checkflag", "true");
  3487. // 2008.09.26 최병진 - 예약 후 예약정보가 그대로 남아있어서 약정서재발행이 바로 되지 않음
  3488. // 예약 후의 상태이기 때문에 강제로 상태값 변경
  3489. ds_main_adrv.setColumn(0, "inrsrvstat", "R");
  3490. }
  3491. }
  3492. else {
  3493. sysf_messageBox("선택된 입원결정서 환자번호와 인적사항의 차트번호가", "E004");
  3494. return false;
  3495. }
  3496. //입원결정서를 미선택
  3497. }
  3498. else {
  3499. if (n_adrv_pid == ptbs_pid) {
  3500. ds_main_adrv.setColumn(0, "rsrvflag", "RS");
  3501. ds_main_adrv.setColumn(0, "status", "U");
  3502. ds_send_data6.copyData(ds_main_adrv, false);
  3503. dsf_createDs('ds_res');
  3504. var oParam = {};
  3505. oParam.id = "TXPMI00201";
  3506. oParam.service = "ipatmngtapp.InRsrv";
  3507. oParam.method = "reqExeInhpRsrv";
  3508. oParam.inds = "s_adrv=ds_send_data6";
  3509. oParam.outds = "ds_res=result";
  3510. oParam.async = false;
  3511. oParam.callback = "callback";
  3512. tranf_submit(oParam);
  3513. if (arErrorCode.pop("TXPMI00201") > -1) {
  3514. // 2008.12.16 - 공단자격조회
  3515. fGetNhicInfo();
  3516. // 입원결정서 출력
  3517. fInDeciPrint(ds_main_adrv.getColumn(0, "pid"),
  3518. ds_main_adrv.getColumn(0, "inrsrvacptdd"),
  3519. ds_main_adrv.getColumn(0, "orddeptcd"),
  3520. "R");
  3521. ds_main_adrv.clearData();
  3522. ds_main_adrv.addRow();
  3523. ds_main_ptbspatinfo.clearData();
  3524. ds_main_ptbspatinfo.addRow();
  3525. ds_send_data6.clearData();
  3526. ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
  3527. ds_send_data1.setColumn(0, "pid", ptbs_pid);
  3528. ds_send_data1.setColumn(0, "s_checkflag", "false");
  3529. fSQueryRef();
  3530. ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
  3531. ds_send_data2.setColumn(0, "patinhopefromdd", "");
  3532. ds_send_data2.setColumn(0, "pid", ptbs_pid);
  3533. ds_send_data2.setColumn(0, "r_checkflag", "false");
  3534. fRQueryRef();
  3535. ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
  3536. // 2008.09.26 최병진 - 예약 후 예약정보가 그대로 남아있어서 약정서재발행이 바로 되지 않음
  3537. // 예약 후의 상태이기 때문에 강제로 상태값 변경
  3538. ds_main_adrv.setColumn(0, "inrsrvstat", "R");
  3539. }
  3540. }
  3541. else {
  3542. sysf_messageBox("입원결정서 환자번호와 인적사항의 차트번호가", "E004");
  3543. return false;
  3544. }
  3545. ds_hidden.setColumn(0, "nhicyn", "Y"); // 공단체크
  3546. }
  3547. //2009.09.23 zzui - 선택진료창
  3548. if (fCheckSpecOrdApp()) {
  3549. // do nothing
  3550. }
  3551. }
  3552. /**
  3553. * 예약변경 버튼 클릭 이벤트
  3554. * @param {[type]} obj: Button [description]
  3555. * @param {[type]} e: ClickEventInfo [description]
  3556. * @return {[type]} [description]
  3557. */
  3558. function btn_update_onclick(obj: Button, e: ClickEventInfo) {
  3559. //입원예약을 선택
  3560. var cur_row = grd_inhprsspec.row;
  3561. var y_adrv_pid = ds_main_list2_grdinhprsspec.getColumn(cur_row, "pid");
  3562. var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
  3563. var n_adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
  3564. if (y_adrv_pid == '' || y_adrv_pid == " ") {
  3565. y_adrv_pid = null;
  3566. }
  3567. if (ptbs_pid == '' || ptbs_pid == " ") {
  3568. ptbs_pid = null;
  3569. }
  3570. if (n_adrv_pid == '' || n_adrv_pid == " ") {
  3571. n_adrv_pid = null;
  3572. }
  3573. if (y_adrv_pid == null && ptbs_pid == null && n_adrv_pid == null) {
  3574. sysf_messageBox("환자를", "C002");
  3575. return false;
  3576. }
  3577. if (cur_row > 0) {
  3578. if (y_adrv_pid == ptbs_pid) {
  3579. ds_main_adrv.setColumn(0, "rsrvflag", "RU");
  3580. ds_main_adrv.setColumn(0, "status", "U");
  3581. ds_send_data6.copyData(ds_main_adrv, false);
  3582. dsf_createDsRow('ds_TXPMI00201', [
  3583. { col: 'pid', type: 'string', size: 256, val: '' },
  3584. { col: 'status', type: 'string', size: 256, val: '' },
  3585. { col: 'rsrvflag', type: 'string', size: 256, val: '' },
  3586. { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
  3587. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  3588. { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
  3589. { col: 'instcd', type: 'string', size: 256, val: '' },
  3590. { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
  3591. { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
  3592. { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
  3593. { col: 'insukind', type: 'string', size: 256, val: '' },
  3594. { col: 'suppkind', type: 'string', size: 256, val: '' },
  3595. { col: 'suppkindresn', type: 'string', size: 256, val: '' },
  3596. { col: 'insuno', type: 'string', size: 256, val: '' },
  3597. { col: 'indirecdrid', type: 'string', size: 256, val: '' },
  3598. { col: 'indirecdd', type: 'string', size: 256, val: '' },
  3599. { col: 'orddrid', type: 'string', size: 256, val: '' },
  3600. { col: 'inhopedd', type: 'string', size: 256, val: '' },
  3601. { col: 'patinhopedd', type: 'string', size: 256, val: '' },
  3602. { col: 'inhopeward', type: 'string', size: 256, val: '' },
  3603. { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
  3604. { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
  3605. { col: 'assgward', type: 'string', size: 256, val: '' },
  3606. { col: 'assgroom', type: 'string', size: 256, val: '' },
  3607. { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
  3608. { col: 'assgroomtype', type: 'string', size: 256, val: '' },
  3609. { col: 'inflag', type: 'string', size: 256, val: '' },
  3610. { col: 'drgyn', type: 'string', size: 256, val: '' },
  3611. { col: 'bmtyn', type: 'string', size: 256, val: '' },
  3612. { col: 'cpyn', type: 'string', size: 256, val: '' },
  3613. { col: 'cpcd', type: 'string', size: 256, val: '' },
  3614. { col: 'fcstinterm', type: 'string', size: 256, val: '' },
  3615. { col: 'erreglyn', type: 'string', size: 256, val: '' },
  3616. { col: 'isolroomyn', type: 'string', size: 256, val: '' },
  3617. { col: 'oxyyn', type: 'string', size: 256, val: '' },
  3618. { col: 'suctyn', type: 'string', size: 256, val: '' },
  3619. { col: 'specroomyn', type: 'string', size: 256, val: '' },
  3620. { col: 'scheopdd', type: 'string', size: 256, val: '' },
  3621. { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
  3622. { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
  3623. { col: 'drrem', type: 'string', size: 256, val: '' },
  3624. { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
  3625. { col: 'incncldd', type: 'string', size: 256, val: '' },
  3626. { col: 'incncltm', type: 'string', size: 256, val: '' },
  3627. { col: 'nblsyn', type: 'string', size: 256, val: '' },
  3628. { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
  3629. { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
  3630. { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
  3631. { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
  3632. { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
  3633. { col: 'clincstdyno', type: 'string', size: 256, val: '' },
  3634. { col: 'ocrtag', type: 'string', size: 256, val: '' },
  3635. { col: 'centcd', type: 'string', size: 256, val: '' },
  3636. { col: 'subdeptcd', type: 'string', size: 256, val: '' },
  3637. { col: 'coopteamcd', type: 'string', size: 256, val: '' },
  3638. { col: 'wardtypecd', type: 'string', size: 256, val: '' },
  3639. { col: 'specwardcd', type: 'string', size: 256, val: '' },
  3640. { col: 'ampmflag', type: 'string', size: 256, val: '' },
  3641. { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
  3642. { col: 'specordtype', type: 'string', size: 256, val: '' }
  3643. ], false);
  3644. ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
  3645. dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
  3646. ds_hidden_rsltflag.clearData();
  3647. var oParam = {};
  3648. oParam.id = "TXPMI00201";
  3649. oParam.service = "ipatmngtapp.InRsrv";
  3650. oParam.method = "reqExeInhpRsrv";
  3651. oParam.inds = "s_adrv=ds_TXPMI00201";
  3652. oParam.outds = "ds_hidden_rsltflag=result";
  3653. oParam.async = false;
  3654. oParam.callback = "callback";
  3655. tranf_submit(oParam);
  3656. if (arErrorCode.pop("TXPMI00201") > -1) {
  3657. // 2008.05.02 예약변경 후 예약 변경 환자만 보여주기
  3658. ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
  3659. ds_send_data1.setColumn(0, "pid", ptbs_pid);
  3660. ds_send_data1.setColumn(0, "s_checkflag", "false");
  3661. fSQueryRef();
  3662. ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
  3663. ds_send_data1.setColumn(0, "pid", "");
  3664. ds_send_data1.setColumn(0, "s_checkflag", "true");
  3665. ds_send_data2.setColumn(0, "patinhopefromdd", "");
  3666. ds_send_data2.setColumn(0, "pid", ptbs_pid);
  3667. ds_send_data2.setColumn(0, "r_checkflag", "false");
  3668. fRQueryRef();
  3669. ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
  3670. ds_send_data2.setColumn(0, "pid", "");
  3671. ds_send_data2.setColumn(0, "r_checkflag", "true");
  3672. ds_send_data4.clearData();
  3673. ds_send_data4.addRow();
  3674. ds_main_ptbspatinfo.setColumn(0, "pid", ptbs_pid);
  3675. ds_send_data4.setColumn(0, "pid", ptbs_pid);
  3676. ds_send_data4.setColumn(0, "mode", "0");
  3677. //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
  3678. ds_send_data5.setColumn(0, "pid", ptbs_pid);
  3679. ds_send_data5.setColumn(0, "srchcond", "1")
  3680. fPatRsrvInfoSrch();
  3681. }
  3682. }
  3683. else {
  3684. sysf_messageBox("선택된 입원예약 환자번호와 인적사항의 차트번호가", "E004");
  3685. return false;
  3686. }
  3687. //입원예약을 미선택
  3688. }
  3689. else {
  3690. if (n_adrv_pid == ptbs_pid) {
  3691. ds_main_adrv.setColumn(0, "rsrvflag", "RU");
  3692. ds_main_adrv.setColumn(0, "status", "U");
  3693. ds_send_data6.copyData(ds_main_adrv, false);
  3694. dsf_createDsRow('ds_TXPMI00201', [
  3695. { col: 'pid', type: 'string', size: 256, val: '' },
  3696. { col: 'status', type: 'string', size: 256, val: '' },
  3697. { col: 'rsrvflag', type: 'string', size: 256, val: '' },
  3698. { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
  3699. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  3700. { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
  3701. { col: 'instcd', type: 'string', size: 256, val: '' },
  3702. { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
  3703. { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
  3704. { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
  3705. { col: 'insukind', type: 'string', size: 256, val: '' },
  3706. { col: 'suppkind', type: 'string', size: 256, val: '' },
  3707. { col: 'suppkindresn', type: 'string', size: 256, val: '' },
  3708. { col: 'insuno', type: 'string', size: 256, val: '' },
  3709. { col: 'indirecdrid', type: 'string', size: 256, val: '' },
  3710. { col: 'indirecdd', type: 'string', size: 256, val: '' },
  3711. { col: 'orddrid', type: 'string', size: 256, val: '' },
  3712. { col: 'inhopedd', type: 'string', size: 256, val: '' },
  3713. { col: 'patinhopedd', type: 'string', size: 256, val: '' },
  3714. { col: 'inhopeward', type: 'string', size: 256, val: '' },
  3715. { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
  3716. { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
  3717. { col: 'assgward', type: 'string', size: 256, val: '' },
  3718. { col: 'assgroom', type: 'string', size: 256, val: '' },
  3719. { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
  3720. { col: 'assgroomtype', type: 'string', size: 256, val: '' },
  3721. { col: 'inflag', type: 'string', size: 256, val: '' },
  3722. { col: 'drgyn', type: 'string', size: 256, val: '' },
  3723. { col: 'bmtyn', type: 'string', size: 256, val: '' },
  3724. { col: 'cpyn', type: 'string', size: 256, val: '' },
  3725. { col: 'cpcd', type: 'string', size: 256, val: '' },
  3726. { col: 'fcstinterm', type: 'string', size: 256, val: '' },
  3727. { col: 'erreglyn', type: 'string', size: 256, val: '' },
  3728. { col: 'isolroomyn', type: 'string', size: 256, val: '' },
  3729. { col: 'oxyyn', type: 'string', size: 256, val: '' },
  3730. { col: 'suctyn', type: 'string', size: 256, val: '' },
  3731. { col: 'specroomyn', type: 'string', size: 256, val: '' },
  3732. { col: 'scheopdd', type: 'string', size: 256, val: '' },
  3733. { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
  3734. { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
  3735. { col: 'drrem', type: 'string', size: 256, val: '' },
  3736. { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
  3737. { col: 'incncldd', type: 'string', size: 256, val: '' },
  3738. { col: 'incncltm', type: 'string', size: 256, val: '' },
  3739. { col: 'nblsyn', type: 'string', size: 256, val: '' },
  3740. { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
  3741. { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
  3742. { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
  3743. { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
  3744. { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
  3745. { col: 'clincstdyno', type: 'string', size: 256, val: '' },
  3746. { col: 'ocrtag', type: 'string', size: 256, val: '' },
  3747. { col: 'centcd', type: 'string', size: 256, val: '' },
  3748. { col: 'subdeptcd', type: 'string', size: 256, val: '' },
  3749. { col: 'coopteamcd', type: 'string', size: 256, val: '' },
  3750. { col: 'wardtypecd', type: 'string', size: 256, val: '' },
  3751. { col: 'specwardcd', type: 'string', size: 256, val: '' },
  3752. { col: 'ampmflag', type: 'string', size: 256, val: '' },
  3753. { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
  3754. { col: 'specordtype', type: 'string', size: 256, val: '' }
  3755. ], false);
  3756. ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
  3757. dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
  3758. ds_hidden_rsltflag.clearData();
  3759. var oParam = {};
  3760. oParam.id = "TXPMI00201";
  3761. oParam.service = "ipatmngtapp.InRsrv";
  3762. oParam.method = "reqExeInhpRsrv";
  3763. oParam.inds = "s_adrv=ds_TXPMI00201";
  3764. oParam.outds = "ds_hidden_rsltflag=result";
  3765. oParam.async = false;
  3766. oParam.callback = "callback";
  3767. tranf_submit(oParam);
  3768. if (arErrorCode.pop("TXPMI00201") > -1) {
  3769. sysf_messageBox("예약내용이 정상적으로 ", "I001");
  3770. ds_main_adrv.clearData();
  3771. ds_main_adrv.addRow();
  3772. ds_main_ptbspatinfo.clearData();
  3773. ds_main_ptbspatinfo.addRow();
  3774. ds_send_data6.clearData();
  3775. fRQueryRef();
  3776. ds_send_data4.clearData();
  3777. ds_send_data4.addRow();
  3778. ds_main_ptbspatinfo.setColumn(0, "pid", ptbs_pid);
  3779. ds_send_data4.setColumn(0, "pid", ptbs_pid);
  3780. ds_send_data4.setColumn(0, "mode", "0");
  3781. //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
  3782. ds_send_data5.setColumn(0, "pid", ptbs_pid);
  3783. ds_send_data5.setColumn(0, "srchcond", "1")
  3784. fPatRsrvInfoSrch();
  3785. }
  3786. }
  3787. else {
  3788. sysf_messageBox("입원예약 환자번호와 인적사항의 차트번호가", "E004");
  3789. return false;
  3790. }
  3791. }
  3792. }
  3793. /**
  3794. * 예약취소 버튼 클릭 이벤트
  3795. * @param {[type]} obj: Button [description]
  3796. * @param {[type]} e: ClickEventInfo [description]
  3797. * @return {[type]} [description]
  3798. */
  3799. function btn_cncl_onclick(obj: Button, e: ClickEventInfo) {
  3800. //입원예약을 선택
  3801. var cur_row = grd_inhprsspec.currentrow;
  3802. var y_adrv_pid = ds_main_list2_grdinhprsspec.getColumn(cur_row, "pid");
  3803. var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
  3804. var n_adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
  3805. if (y_adrv_pid == '' || y_adrv_pid == " ") {
  3806. y_adrv_pid = null;
  3807. }
  3808. if (ptbs_pid == '' || ptbs_pid == " ") {
  3809. ptbs_pid = null;
  3810. }
  3811. if (n_adrv_pid == '' || n_adrv_pid == " ") {
  3812. n_adrv_pid = null;
  3813. }
  3814. if (y_adrv_pid == null && ptbs_pid == null && n_adrv_pid == null) {
  3815. sysf_messageBox("환자를", "C002");
  3816. return false;
  3817. }
  3818. if (cur_row > 0) {
  3819. if (y_adrv_pid == ptbs_pid) {
  3820. ds_send_data7.setColumn(0, "rsrvflag", "RC");
  3821. ds_send_data7.setColumn(0, "status", "U");
  3822. ds_send_data7.setColumn(0, "pid", ds_main_list2_grdinhprsspec.getColumn(cur_row, "pid"));
  3823. ds_send_data7.setColumn(0, "inrsrvacptdd", ds_main_list2_grdinhprsspec.getColumn(cur_row, "inrsrvacptdd"));
  3824. ds_send_data7.setColumn(0, "orddeptcd", ds_main_list2_grdinhprsspec.getColumn(cur_row, "orddeptcd"));
  3825. ds_send_data7.setColumn(0, "inrsrvacptseqno", ds_main_list2_grdinhprsspec.getColumn(cur_row, "inrsrvacptseqno"));
  3826. ds_send_data7.setColumn(0, "inrsrvrem", model.getValue("/root/main/adrv/inrsrvrem"));
  3827. dsf_createDs('ds_res');
  3828. dsf_createDsRow('ds_TXPMI00202', [
  3829. { col: 'pid', type: 'string', size: 256, val: '' },
  3830. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  3831. { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
  3832. { col: 'rsrvflag', type: 'string', size: 256, val: '' },
  3833. { col: 'status', type: 'string', size: 256, val: '' },
  3834. { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
  3835. { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
  3836. { col: 'inrsrvrem', type: 'string', size: 256, val: '' }
  3837. ], false);
  3838. ds_TXPMI00202.copyRow(0, ds_send_data7, 0);
  3839. var oParam = {};
  3840. oParam.id = "TXPMI00202";
  3841. oParam.service = "ipatmngtapp.InRsrv";
  3842. oParam.method = "reqExeRsrvCncl";
  3843. oParam.inds = "req=ds_TXPMI00202";
  3844. oParam.outds = "ds_res=result";
  3845. oParam.async = false;
  3846. oParam.callback = "callback";
  3847. tranf_submit(oParam);
  3848. if (arErrorCode.pop("TXPMI00202") > -1) {
  3849. ds_send_data7.clearData();
  3850. ds_send_data7.addRow();
  3851. ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
  3852. ds_send_data1.setColumn(0, "pid", ptbs_pid);
  3853. ds_send_data1.setColumn(0, "s_checkflag", "false");
  3854. fSQueryRef();
  3855. ds_send_data2.setColumn(0, "patinhopefromdd", "");
  3856. ds_send_data2.setColumn(0, "pid", ptbs_pid);
  3857. ds_send_data2.setColumn(0, "r_checkflag", "false");
  3858. fRQueryRef();
  3859. ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
  3860. ds_send_data1.setColumn(0, "pid", "");
  3861. ds_send_data1.setColumn(0, "s_checkflag", "true");
  3862. ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
  3863. ds_send_data2.setColumn(0, "pid", "");
  3864. ds_send_data2.setColumn(0, "r_checkflag", "true");
  3865. // 2008.08.19 - 결정서 보존여부
  3866. var msgResult = sysf_messageBox("입원결정서를 보존하시겠습니까?", "Q");
  3867. if (msgResult == "7") {
  3868. frmf_setParameter("SPPMI03400_param", ptbs_pid);
  3869. frmf_modal("SPPMI03400", "SPPMI03400", '', "", "", "", "", "", "", "", "", "", "M");
  3870. frmf_clearParameter("SPPMI03400_param");
  3871. }
  3872. }
  3873. }
  3874. else {
  3875. sysf_messageBox("선택된 입원예약 환자번호와 인적사항의 차트번호가", "E004");
  3876. return false;
  3877. }
  3878. //입원예약을 미선택
  3879. }
  3880. else {
  3881. if (n_adrv_pid == ptbs_pid) {
  3882. ds_main_adrv.setColumn(0, "rsrvflag", "RC");
  3883. ds_main_adrv.setColumn(0, "status", "U");
  3884. ds_send_data6.copyData(ds_main_adrv, false);
  3885. dsf_createDsRow('ds_TXPMI00201', [
  3886. { col: 'pid', type: 'string', size: 256, val: '' },
  3887. { col: 'status', type: 'string', size: 256, val: '' },
  3888. { col: 'rsrvflag', type: 'string', size: 256, val: '' },
  3889. { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
  3890. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  3891. { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
  3892. { col: 'instcd', type: 'string', size: 256, val: '' },
  3893. { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
  3894. { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
  3895. { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
  3896. { col: 'insukind', type: 'string', size: 256, val: '' },
  3897. { col: 'suppkind', type: 'string', size: 256, val: '' },
  3898. { col: 'suppkindresn', type: 'string', size: 256, val: '' },
  3899. { col: 'insuno', type: 'string', size: 256, val: '' },
  3900. { col: 'indirecdrid', type: 'string', size: 256, val: '' },
  3901. { col: 'indirecdd', type: 'string', size: 256, val: '' },
  3902. { col: 'orddrid', type: 'string', size: 256, val: '' },
  3903. { col: 'inhopedd', type: 'string', size: 256, val: '' },
  3904. { col: 'patinhopedd', type: 'string', size: 256, val: '' },
  3905. { col: 'inhopeward', type: 'string', size: 256, val: '' },
  3906. { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
  3907. { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
  3908. { col: 'assgward', type: 'string', size: 256, val: '' },
  3909. { col: 'assgroom', type: 'string', size: 256, val: '' },
  3910. { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
  3911. { col: 'assgroomtype', type: 'string', size: 256, val: '' },
  3912. { col: 'inflag', type: 'string', size: 256, val: '' },
  3913. { col: 'drgyn', type: 'string', size: 256, val: '' },
  3914. { col: 'bmtyn', type: 'string', size: 256, val: '' },
  3915. { col: 'cpyn', type: 'string', size: 256, val: '' },
  3916. { col: 'cpcd', type: 'string', size: 256, val: '' },
  3917. { col: 'fcstinterm', type: 'string', size: 256, val: '' },
  3918. { col: 'erreglyn', type: 'string', size: 256, val: '' },
  3919. { col: 'isolroomyn', type: 'string', size: 256, val: '' },
  3920. { col: 'oxyyn', type: 'string', size: 256, val: '' },
  3921. { col: 'suctyn', type: 'string', size: 256, val: '' },
  3922. { col: 'specroomyn', type: 'string', size: 256, val: '' },
  3923. { col: 'scheopdd', type: 'string', size: 256, val: '' },
  3924. { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
  3925. { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
  3926. { col: 'drrem', type: 'string', size: 256, val: '' },
  3927. { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
  3928. { col: 'incncldd', type: 'string', size: 256, val: '' },
  3929. { col: 'incncltm', type: 'string', size: 256, val: '' },
  3930. { col: 'nblsyn', type: 'string', size: 256, val: '' },
  3931. { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
  3932. { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
  3933. { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
  3934. { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
  3935. { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
  3936. { col: 'clincstdyno', type: 'string', size: 256, val: '' },
  3937. { col: 'ocrtag', type: 'string', size: 256, val: '' },
  3938. { col: 'centcd', type: 'string', size: 256, val: '' },
  3939. { col: 'subdeptcd', type: 'string', size: 256, val: '' },
  3940. { col: 'coopteamcd', type: 'string', size: 256, val: '' },
  3941. { col: 'wardtypecd', type: 'string', size: 256, val: '' },
  3942. { col: 'specwardcd', type: 'string', size: 256, val: '' },
  3943. { col: 'ampmflag', type: 'string', size: 256, val: '' },
  3944. { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
  3945. { col: 'specordtype', type: 'string', size: 256, val: '' }
  3946. ], false);
  3947. ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
  3948. dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
  3949. ds_hidden_rsltflag.clearData();
  3950. var oParam = {};
  3951. oParam.id = "TXPMI00201";
  3952. oParam.service = "ipatmngtapp.InRsrv";
  3953. oParam.method = "reqExeInhpRsrv";
  3954. oParam.inds = "s_adrv=ds_TXPMI00201";
  3955. oParam.outds = "ds_hidden_rsltflag=result";
  3956. oParam.async = false;
  3957. oParam.callback = "callback";
  3958. tranf_submit(oParam);
  3959. if (arErrorCode.pop("TXPMI00201") > -1) {
  3960. ds_send_data6.clearData();
  3961. ds_send_data6.addRow();
  3962. ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
  3963. ds_send_data1.setColumn(0, "pid", ptbs_pid);
  3964. ds_send_data1.setColumn(0, "s_checkflag", "false");
  3965. fSQueryRef();
  3966. ds_send_data2.setColumn(0, "patinhopefromdd", "");
  3967. ds_send_data2.setColumn(0, "pid", ptbs_pid);
  3968. ds_send_data2.setColumn(0, "r_checkflag", "false");
  3969. fRQueryRef();
  3970. ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
  3971. ds_send_data1.setColumn(0, "pid", "");
  3972. ds_send_data1.setColumn(0, "s_checkflag", "true");
  3973. ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
  3974. ds_send_data2.setColumn(0, "pid", "");
  3975. ds_send_data2.setColumn(0, "r_checkflag", "true");
  3976. // 2008.08.19 - 결정서 보존여부
  3977. var msgResult = sysf_messageBox("입원결정서를 보존하시겠습니까?", "Q");
  3978. if (msgResult == "7") {
  3979. frmf_setParameter("SPPMI03400_param", ptbs_pid);
  3980. frmf_modal("SPPMI03400", "SPPMI03400", '', "", "", "", "", "", "", "", "", "", "M");
  3981. frmf_clearParameter("SPPMI03400_param");
  3982. }
  3983. }
  3984. else {
  3985. sysf_messageBox("입원예약 환자번호와 인적사항의 차트번호가", "E004");
  3986. return false;
  3987. }
  3988. }
  3989. }
  3990. }
  3991. /**
  3992. * 초기화 버튼 클릭 이벤트
  3993. * @param {[type]} obj: Button [description]
  3994. * @param {[type]} e: ClickEventInfo [description]
  3995. * @return {[type]} [description]
  3996. */
  3997. function btn_clear_onclick(obj: Button, e: ClickEventInfo) {
  3998. fInitialize();
  3999. }
  4000. ]]></Script>
  4001. </Form>
  4002. </FDL>