12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMI00200" position="absolute 0 0 1213 805" titletext="입원예약관리" class="line_3" style="border:2 none #808080ff ;" onload="SMPMI00200_onload">
- <Layouts>
- <Layout>
- <Static text="입원예약관리" position="absolute 0 0 125 26" id="caption6" class="tit_1"/>
- <Shape position="absolute 0 765 1194 771" linetype="horizontal" id="line47" class="line_6"/>
- <Button position="absolute 905 772 961 794" id="btn_insert" class="btn4" text="예약" style="font:dotum,9,bold;" onclick="btn_insert_onclick"/>
- <Button position="absolute 963 772 1043 794" id="btn_update" class="btn4" text="예약변경" style="font:dotum,9,bold;" onclick="btn_update_onclick"/>
- <Button position="absolute 1127 772 1195 794" id="btn_clear" class="btn4" text="초기화" style="font:dotum,9,bold;" onclick="btn_clear_onclick"/>
- <Button position="absolute 799 772 903 794" id="button2" class="btn4" text="약정서재출력" style="font:dotum,9,bold;" onclick="button2_onclick"/>
- <Button position="absolute 1045 772 1125 794" id="btn_cncl" class="btn4" text="예약취소" style="font:dotum,9,bold;" onclick="btn_cncl_onclick"/>
- <Button position="absolute 2 772 82 794" id="button23" text="선택신청" style="font:dotum,9,bold;" onclick="button23_onclick" class="btn3"/>
- <Shape position="absolute 0 226 700 242" linetype="vertical" id="line4" class="line_2"/>
- <Shape position="absolute 0 188 1194 194" linetype="vertical" id="line3" class="line_2"/>
- <Shape position="absolute 0 564 1194 570" linetype="horizontal" id="line10" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Static text="입원예약내역" position="absolute 5 546 110 562" id="caption21" class="tit_2"/>
- <Static text="입원결정서" position="absolute 5 303 116 319" id="caption36" class="tit_2"/>
- <Static text="인적사항" position="absolute 5 28 116 44" id="caption75" class="tit_2"/>
- <Static text="입원예약상세내역" position="absolute 5 105 149 122" id="caption78" class="tit_2"/>
- <Shape position="absolute 0 97 1194 103" linetype="horizontal" id="line20" class="line_1"/>
- <Shape position="absolute 0 254 1194 260" linetype="horizontal" id="line28" class="line_1"/>
- <Static text="VIP" position="absolute 415 75 447 98" align="align:center middle;" id="caption82" class="cell_1"/>
- <Edit readonly="true" position="absolute 933 51 1003 70" id="output1" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <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"/>
- <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"/>
- <Static text="직원소개/추천인" position="absolute 698 49 796 72" align="align:center middle;" id="caption81" class="cell_1" style="font:Dotum,8;"/>
- <Static text="연락처/휴대폰" position="absolute 415 49 505 72" align="align:center middle;" id="caption83" class="cell_1"/>
- <Static text="우편번호" position="absolute 499 75 559 98" align="align:center middle;" id="caption84" class="cell_1"/>
- <Static text="환자번호" position="absolute 0 49 77 72" align="align:center middle;" id="caption85" class="cell_1"/>
- <Static text="주민번호" position="absolute 194 49 271 72" align="align:center middle;" id="caption86" class="cell_1"/>
- <Static text="성명" position="absolute 0 75 77 98" align="align:center middle;" id="caption77" class="cell_1"/>
- <Static text="하위주소" position="absolute 871 75 947 98" align="align:center middle;" id="caption79" class="cell_1"/>
- <Static text="생년월일" position="absolute 194 75 271 98" align="align:center middle;" id="caption80" class="cell_1"/>
- <Static text="입원예약병실형태" position="absolute 697 179 802 202" align="align:center middle;" id="caption102" class="cell_1" style="font:Dotum,8;"/>
- <Static text="입원진료과" position="absolute 471 127 561 150" align="align:center middle;" id="caption92" class="cell_1"/>
- <Static text="입원희망일[의사]" position="absolute 947 127 1052 150" align="align:center middle;" id="caption103" class="cell_1" style="font:Dotum,8;"/>
- <Static text="수술예정일" position="absolute 252 153 348 176" align="align:center middle;" id="caption93" class="cell_1"/>
- <Static text="병실등급TO" position="absolute 947 153 1052 176" align="align:center middle;" id="caption104" class="cell_1"/>
- <Static text="최종수정일시" position="absolute 252 232 348 255" align="align:center middle;" id="caption94" class="cell_1"/>
- <Static text="센터세부병동" position="absolute 252 179 348 202" align="align:center middle;" id="caption95" class="cell_1"/>
- <Static text="입원일자/시간" position="absolute 252 127 348 150" align="align:center middle;" id="caption96" class="cell_1"/>
- <Static text="병실등급FROM" position="absolute 697 153 802 176" align="align:center middle;" id="caption97" class="cell_1"/>
- <Static text="DRG/O2/Suc" position="absolute 471 206 561 229" align="align:center middle;" id="caption98" class="cell_1"/>
- <Static text="입원희망일[환자]" position="absolute 0 153 105 176" align="align:center middle;" id="caption87" class="cell_1" style="font:Dotum,8;"/>
- <Static text="지시의사/일자" position="absolute 0 127 105 150" align="align:center middle;" id="caption76" class="cell_1"/>
- <Static text="격리실여부" position="absolute 252 206 348 229" align="align:center middle;" id="caption99" class="cell_1"/>
- <Static text="접수일자/시간" position="absolute 0 232 105 255" align="align:center middle;" id="caption88" class="cell_1"/>
- <Static text="병동형태" position="absolute 0 179 105 202" align="align:center middle;" id="caption89" class="cell_1"/>
- <Static text="입원담당교수" position="absolute 697 127 802 150" align="align:center middle;" id="caption100" class="cell_1"/>
- <Static text="희망병동" position="absolute 471 153 561 176" align="align:center middle;" id="caption90" class="cell_1"/>
- <Static text="예약우선순위" position="absolute 471 232 561 255" align="align:center middle;" id="caption101" class="cell_1"/>
- <Static text="BMT/이식여부" position="absolute 471 179 561 202" align="align:center middle;" id="caption91" class="cell_1" style="font:Dotum,8;"/>
- <Edit position="absolute 80 51 172 70" id="ipt_pid" class="input_essential" taborder="1" onkeydown="ipt_pid_onkeydown"/>
- <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;"/>
- <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;"/>
- <Grid position="absolute 0 568 1194 765" id="grd_inhprsspec" class="datagrid2" binddataset="ds_main_list2_grdinhprsspec" oncelldblclick="grd_inhprsspec_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="67"/>
- <Column size="58"/>
- <Column size="36"/>
- <Column size="70"/>
- <Column size="125"/>
- <Column size="0"/>
- <Column size="37"/>
- <Column size="93"/>
- <Column size="91"/>
- <Column size="85"/>
- <Column size="81"/>
- <Column size="54"/>
- <Column size="57"/>
- <Column size="88"/>
- <Column size="90"/>
- <Column size="86"/>
- <Column size="79"/>
- <Column size="82"/>
- <Column size="117"/>
- <Column size="111"/>
- <Column size="80"/>
- <Column size="64"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="45"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="66"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="환자번호"/>
- <Cell col="2" text="환자이름"/>
- <Cell col="3" text="성별"/>
- <Cell col="4" text="접수일자"/>
- <Cell col="5" text="진료과"/>
- <Cell col="6" text="번호"/>
- <Cell col="7" text="시간"/>
- <Cell col="8" text="환자유형"/>
- <Cell col="9" text="지시의사"/>
- <Cell col="10" text="지시일자"/>
- <Cell col="11" text="담당교수"/>
- <Cell col="12" text="우선순위"/>
- <Cell col="13" text="대기일수"/>
- <Cell col="14" text="수술예정일"/>
- <Cell col="15" text="환자희망입원일"/>
- <Cell col="16" text="예상입원기간"/>
- <Cell col="17" text="희망입원일"/>
- <Cell col="18" text="희망병동"/>
- <Cell col="19" text="희망병실등급FROM"/>
- <Cell col="20" text="희망병실등급TO"/>
- <Cell col="21" text="배정병동"/>
- <Cell col="22" text="배정병실"/>
- <Cell col="23" text="배정병실등급"/>
- <Cell col="24" text="배정병실형태"/>
- <Cell col="25" text="cp여부"/>
- <Cell col="26" text="DRG여부" wordwrap="char"/>
- <Cell col="27" text="응급여부"/>
- <Cell col="28" text="BMT여부" wordwrap="char"/>
- <Cell col="29" text="격리실여부" wordwrap="char"/>
- <Cell col="30" text="예약병실 형태"/>
- <Cell col="31" text="진료 참고사항"/>
- <Cell col="32" text="원무 참고사항"/>
- <Cell col="33" text="임상시험접수"/>
- <Cell col="34" text="임상시험번호 (과제번호)"/>
- <Cell col="35" text="병동형태"/>
- <Cell col="36" text="센터세부병동"/>
- <Cell col="37" text="세부진료과"/>
- <Cell col="38" text="Ocrtag"/>
- <Cell col="39" text="센터코드"/>
- <Cell col="40" text="협력팀코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:center middle;" text="bind:pid"/>
- <Cell col="2" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="3" style="align:center middle;" text="bind:sex"/>
- <Cell col="4" style="align:center middle;" text="bind:inrsrvacptdd" mask="expr:utlf_isNull(inrsrvacptdd)?'':'####-##-##'"/>
- <Cell col="5" style="align:center middle;" text="bind:orddeptcd_nm" enable="false"/>
- <Cell col="6" text="bind:inrsrvacptseqno"/>
- <Cell col="7" text="bind:inrsrvacpttm" mask="@@:@@"/>
- <Cell col="8" displaytype="combo" style="align:center middle;" text="bind:insukind" combodataset="ds_init_P0008list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="9" style="align:center middle;" text="bind:indirecdrid_nm" enable="false"/>
- <Cell col="10" style="align:center middle;" text="bind:indirecdd" mask="expr:utlf_isNull(indirecdd)?'':'####-##-##'" enable="false"/>
- <Cell col="11" style="align:center middle;" text="bind:orddrid_nm" enable="false"/>
- <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:inrsrvgrad" combodataset="ds_static_inrsrvgrad" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="13" style="align:right middle;" text="bind:delay"/>
- <Cell col="14" displaytype="date" style="align:center middle;" text="bind:scheopdd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="15" displaytype="date" style="align:center middle;" text="bind:patinhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="16" text="bind:fcstinterm" enable="false"/>
- <Cell col="17" displaytype="date" style="align:center middle;" text="bind:inhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
- <Cell col="18" displaytype="combo" style="align:center middle;" text="bind:inhopeward" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="19" displaytype="combo" text="bind:inhoperoomgrdefrom" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="20" displaytype="combo" text="bind:inhoperoomgrdeto" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="21" displaytype="combo" text="bind:assgward" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="22" displaytype="text" edittype="text" text="bind:assgroom"/>
- <Cell col="23" displaytype="combo" text="bind:assgroomgrde" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="24" displaytype="combo" text="bind:assgroomtype" combodataset="ds_init_P0026list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="25" text="bind:cpyn"/>
- <Cell col="26" displaytype="combo" style="align:center middle;" text="bind:drgyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="27" displaytype="combo" style="align:center middle;" text="bind:erreglyn" combodataset="ds_init_P0001list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="28" displaytype="combo" edittype="combo" text="bind:bmtyn" enable="false"/>
- <Cell col="29" displaytype="combo" style="align:center middle;" text="bind:isolroomyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="30" displaytype="combo" style="align:center middle;" text="bind:specroomyn" combodataset="ds_init_P0378list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="31" displaytype="none" edittype="none" text="bind:drrem"/>
- <Cell col="32" displaytype="normal" edittype="none" style="align:left middle;" text="bind:inrsrvrem" enable="false"/>
- <Cell col="33" displaytype="combo" edittype="combo" text="bind:clincstdyacptflag" combodataset="ds_static_clincstdyacptflag" combocodecol="value" combodatacol="label"/>
- <Cell col="34" text="bind:clincstdyno"/>
- <Cell col="35" displaytype="combo" text="bind:wardtypecd" combodataset="ds_init_P0474list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="36" displaytype="combo" text="bind:specwardcd" combodataset="ds_hidden_init__wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="37" text="bind:subdeptcd"/>
- <Cell col="38" text="bind:ocrtag"/>
- <Cell col="39" text="bind:centcd"/>
- <Cell col="40" text="bind:coopteamcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit position="absolute 80 77 172 96" id="ipt_hngnm" class="input_essential" taborder="2" onkeydown="ipt_hngnm_onkeydown"/>
- <CheckBox position="absolute 799 53 868 69" id="chk_recmyn" onclick="chk_recmyn_onclick" text="직원소개" truevalue="checkbox1" falsevalue="N"/>
- <Edit readonly="true" position="absolute 870 51 930 70" id="opt_recmerid" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <CheckBox position="absolute 450 79 492 94" id="chk_vipyn" text="VIP" falsevalue="N" truevalue="Y"/>
- <MaskEdit readonly="true" position="absolute 179 129 249 148" id="opt_indirecdd" mask="@@@@-@@-@@" enable="false"/>
- <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"/>
- <MaskEdit readonly="true" position="absolute 108 234 178 253" id="opt_inrsrvacptdd" mask="@@@@-@@-@@" type="string" maskchar=" "/>
- <MaskEdit readonly="true" position="absolute 181 234 249 253" id="opt_inrsrvacpttm" mask="@@:@@" type="string" maskchar=" "/>
- <Calendar position="absolute 351 155 468 174" id="ipt_scheopdd" class="input_default" enable="false"/>
- <MaskEdit readonly="true" position="absolute 351 234 468 253" id="opt_lastupdtdt" mask="@@@@-@@-@@ @@:@@" type="string" maskchar=" " style="align:left middle;"/>
- <Combo position="absolute 564 155 694 174" id="cmb_inhopeward" class="combo_default" innerdataset="@ds_hidden_init_wardcd" datacolumn="nm" codecolumn="cd"/>
- <Combo position="absolute 564 234 694 253" id="cmb_inrsrvgrad" class="combo_default" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">-</Col>
- <Col id="datacolumn">-</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">상</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">중</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">하</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <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"/>
- <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;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Yes</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">No</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <MaskEdit readonly="true" position="absolute 1055 129 1194 148" id="opt_inhopedd" mask="@@@@-@@-@@" enable="false" maskchar=" "/>
- <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"/>
- <Button position="absolute 175 54 187 66" id="btn_pid" class="icon_search" taborder="3" text="" onclick="btn_pid_onclick"/>
- <Button position="absolute 175 80 187 92" id="btn_hngnm" class="icon_search" taborder="4" text="" onclick="btn_hngnm_onclick"/>
- <Button position="absolute 396 54 408 66" id="btn_rrgstno" class="icon_search" taborder="7" text="" onclick="btn_rrgstno_onclick"/>
- <Button position="absolute 535 159 547 171" id="btn_inhopeward" class="icon_search" text="" onclick="btn_inhopeward_onclick"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="16"/>
- <Column size="70"/>
- <Column size="56"/>
- <Column size="36"/>
- <Column size="73"/>
- <Column size="131"/>
- <Column size="37"/>
- <Column size="37"/>
- <Column size="96"/>
- <Column size="78"/>
- <Column size="78"/>
- <Column size="78"/>
- <Column size="45"/>
- <Column size="92"/>
- <Column size="73"/>
- <Column size="87"/>
- <Column size="116"/>
- <Column size="116"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="85"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text=".."/>
- <Cell col="2" text="환자번호"/>
- <Cell col="3" text="환자이름"/>
- <Cell col="4" text="성별"/>
- <Cell col="5" text="접수일자"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="번호"/>
- <Cell col="8" text="시간"/>
- <Cell col="9" text="환자유형"/>
- <Cell col="10" text="지시의사"/>
- <Cell col="11" text="지시일자"/>
- <Cell col="12" text="담당교수"/>
- <Cell col="13" text="cp여부"/>
- <Cell col="14" text="환자희망입원일"/>
- <Cell col="15" text="희망입원일"/>
- <Cell col="16" text="희망병동"/>
- <Cell col="17" text="희망병실등급FROM"/>
- <Cell col="18" text="희망병실등급TO"/>
- <Cell col="19" text="진료 참고사항"/>
- <Cell col="20" text="원무 전달사항"/>
- <Cell col="21" text="입원일자"/>
- <Cell col="22" text="시간"/>
- <Cell col="23" text="O2여부"/>
- <Cell col="24" text="Suction 여부"/>
- <Cell col="25" text="예상입원기간"/>
- <Cell col="26" text="임상시험접수"/>
- <Cell col="27" text="임상시험번호 (과제번호)"/>
- <Cell col="28" text="병동형태"/>
- <Cell col="29" text="센터세부병동"/>
- <Cell col="30" text="세부진료과"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="text" edittype="text" expandshow="show"/>
- <Cell col="2" style="align:center middle;" text="bind:pid"/>
- <Cell col="3" style="align:center middle;" text="bind:hngnm"/>
- <Cell col="4" style="align:center middle;" text="bind:sex"/>
- <Cell col="5" displaytype="date" style="align:center middle;" text="bind:inrsrvacptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="6" style="align:center middle;" text="bind:orddeptcd_nm" enable="false"/>
- <Cell col="7" text="bind:inrsrvacptseqno"/>
- <Cell col="8" text="bind:inrsrvacpttm" mask="##:##"/>
- <Cell col="9" displaytype="combo" text="bind:insukind" combodataset="ds_hidden_init_insukind" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="10" style="align:center middle;" text="bind:indirecdrid_nm" enable="false"/>
- <Cell col="11" displaytype="date" text="bind:indirecdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="12" style="align:center middle;" text="bind:orddrid_nm" enable="false"/>
- <Cell col="13" text="bind:cpyn"/>
- <Cell col="14" displaytype="date" style="align:center middle;" text="bind:patinhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="15" displaytype="date" style="align:center middle;" text="bind:inhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
- <Cell col="16" displaytype="combo" style="align:center middle;" text="bind:inhopeward" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="17" displaytype="combo" text="bind:inhoperoomgrdefrom" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="18" displaytype="combo" text="bind:inhoperoomgrdeto" combodataset="ds_hidden_roomgrdelist_roomgrde" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="19" displaytype="normal" edittype="none" text="bind:drrem"/>
- <Cell col="20" text="bind:inrsrvrem"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23" displaytype="combo" text="bind:oxyyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="24" displaytype="combo" edittype="combo" text="bind:suctyn" combodataset="ds_static_yn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="25" text="bind:fcstinterm"/>
- <Cell col="26" displaytype="combo" edittype="combo" text="bind:clincstdyacptflag" combodataset="ds_static_clincstdyacptflag" combocodecol="value" combodatacol="label"/>
- <Cell col="27" text="bind:clincstdyno"/>
- <Cell col="28" displaytype="combo" text="bind:wardtypecd" combodataset="ds_init_P0474list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="29" displaytype="combo" text="bind:specwardcd" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="30" text="bind:subdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 1041 26 1105 45" id="button1" class="btn2" visible="true" text="환자인적" onclick="button1_onclick"/>
- <Static text="원무 전달사항" position="absolute 697 206 802 253" align="align:center middle;" id="caption1" class="cell_1"/>
- <Static text="결정서형태" position="absolute 0 206 105 229" align="align:center middle;" id="caption2" class="cell_1"/>
- <Static text="감면" position="absolute 1006 49 1044 72" align="align:center middle;" id="caption4" class="cell_1"/>
- <Combo position="absolute 1047 51 1194 70" id="combo1" enable="false" innerdataset="@ds_hidden_init_disccd" datacolumn="nm" codecolumn="cd"/>
- <TextArea position="absolute 805 208 1195 251" id="tar_inrsrvrem" imemode="hangul" wordwrap="char" scrollbars="fixedvert"/>
- <Combo position="absolute 805 181 944 200" id="cmb_specroomyn" class="combo_default" innerdataset="@ds_init_P0378list" datacolumn="cdnm" codecolumn="cdid"/>
- <Edit position="absolute 274 51 328 70" id="ipt_rrgstno1" class="input_essential" taborder="5" onkillfocus="ipt_rrgstno1_onkillfocus" onkeydown="ipt_rrgstno1_onkeydown"/>
- <Edit position="absolute 331 51 393 70" id="ipt_rrgstno2" class="input_essential" taborder="6" onkeydown="ipt_rrgstno2_onkeydown" onkillfocus="ipt_rrgstno2_onkillfocus"/>
- <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"/>
- <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">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">DSC/CHEMO</Col>
- </Row>
- <Row>
- <Col id="codecolumn">F</Col>
- <Col id="datacolumn">DCC</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">응급</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo position="absolute 564 181 694 200" id="cmb_bmtyn" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">해당없음</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">환자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">공여자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">타기관공여자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button position="absolute 1120 300 1194 319" id="btn_delrcvr" class="btn2" text="삭제/복원" onclick="btn_delrcvr_onclick"/>
- <Static text="임상시험과제번호" position="absolute 947 179 1052 202" align="align:center middle;" id="caption7" class="cell_1" style="font:Dotum,8;"/>
- <Edit readonly="true" position="absolute 1055 181 1194 200" id="output3" style="background:URL('theme://images/bg_edit_R.png') stretch 5,5;"/>
- <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"/>
- <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"/>
- <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"/>
- <Edit position="absolute 508 51 600 70" id="ipt_hometel" class="input"/>
- <Edit position="absolute 603 51 695 70" id="ipt_mpphontel" class="input"/>
- <MaskEdit position="absolute 274 77 346 96" id="ipt_brthyy" class="input" mask="yyyy-mm-dd"/>
- <Edit position="absolute 563 77 593 96" id="ipt_zipcd1" class="input" taborder="8"/>
- <Edit position="absolute 596 77 626 96" id="ipt_zipcd2" class="input" taborder="9"/>
- <Edit position="absolute 667 77 868 96" id="ipt_addr" class="input"/>
- <Edit position="absolute 950 77 1194 96" id="ipt_detladdr" class="input"/>
- <Button position="absolute 1108 26 1194 45" id="button5" class="btn5" text="인적사항변경" onclick="button5_onclick"/>
- <Combo position="absolute 564 208 606 227" id="combo3" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo position="absolute 608 208 650 227" id="combo4" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo position="absolute 652 208 694 227" id="combo5" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo position="absolute 351 181 468 200" id="combo6" class="combo_default" innerdataset="@ds_hidden_init_wardcd" datacolumn="nm" codecolumn="cd"/>
- <Combo position="absolute 108 181 249 200" id="combo7" innerdataset="@ds_init_P0474list" datacolumn="cdnm" codecolumn="cdid"/>
- <Button position="absolute 1114 544 1194 563" id="btn_excsave" class="btn7" text="액셀저장" onclick="btn_excsave_onclick"/>
- <Button position="absolute 1065 300 1119 319" id="btn_print" class="btn6" text="출력" onclick="btn_print_onclick"/>
- <Button position="absolute 1059 544 1113 563" id="button3" class="btn6" text="출력" onclick="button3_onclick"/>
- <Button position="absolute 1119 102 1194 121" id="button4" class="btn5" text="결정서저장" onclick="button4_onclick"/>
- <Button position="absolute 647 80 659 92" id="button37" class="icon_search" taborder="10" text="" onclick="button37_onclick"/>
- <Shape id="Shape00" position="absolute 0 47 1194 50" class="line_3" style="strokepen:2 solid #33bbbbff;"/>
- <Shape id="Shape01" position="absolute 0 73 1194 76" style="strokepen:1 solid #9ebed4ff;"/>
- <Shape id="Shape02" class="line_3" position="absolute 0 124 1194 127" style="strokepen:2 solid #33bbbbff;"/>
- <Shape id="line00" linetype="horizontal" class="line_1" position="absolute 0 322 1194 328" style="strokepen:3 solid #33bbbbff;"/>
- <Div id="grp2" taborder="11" position="absolute 0 506 1194 541" class="div_SA2">
- <Layouts>
- <Layout>
- <Shape id="line17" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
- <Static id="caption72" text="진료과 :" class="search_name" position="absolute 359 9 434 26" anchor="default"/>
- <Static id="caption73" text="입원희망일자 :" class="search_name" position="absolute 10 9 122 26" anchor="default"/>
- <Combo id="combo21" taborder="1" innerdataset="ds_combo21" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 615 8 714 27" anchor="default"/>
- <Static id="caption74" text="담당교수 :" class="search_name" position="absolute 551 9 626 26" anchor="default"/>
- <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"/>
- <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"/>
- <Static id="caption5" text="~" position="absolute 214 8 225 28" anchor="default"/>
- <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"/>
- <Calendar id="ipt_inhopefromdd" taborder="5" dateformat="yyyy-MM-dd" class="input_search" position="absolute 113 8 212 27" anchor="default" autoselect="true"/>
- <Calendar id="ipt_inhopetodd" taborder="6" dateformat="yyyy-MM-dd" class="input_search" position="absolute 227 8 326 27" anchor="default" autoselect="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp1" taborder="12" position="absolute 0 262 1194 297" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption22" text="입원결정일자 :" class="search_name" position="absolute 10 9 111 26" anchor="default"/>
- <Shape id="line12" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
- <Static id="caption24" text="진료과 :" class="search_name" position="absolute 359 9 434 26" anchor="default"/>
- <Static id="caption32" text="담당교수 :" class="search_name" position="absolute 551 9 626 26" anchor="default"/>
- <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"/>
- <Button id="btn_search1" taborder="3" text="조회" onclick="btn_search1_onclick" class="btn1" position="absolute 1123 7 1179 29" anchor="default"/>
- <Static id="caption3" text="~" position="absolute 214 8 225 28" anchor="default"/>
- <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"/>
- <Calendar id="ipt_inrsrvfromdd" taborder="5" dateformat="yyyy-MM-dd" class="input_search" position="absolute 113 8 212 27" anchor="default" autoselect="true"/>
- <Calendar id="ipt_inrsrvtodd" taborder="6" dateformat="yyyy-MM-dd" class="input_search" position="absolute 227 8 326 27" anchor="default" autoselect="true"/>
- <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"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="Shape04" position="absolute 0 151 1194 154" style="strokepen:1 solid #9ebed4ff;"/>
- <Shape id="Shape05" position="absolute 0 177 1194 180" style="strokepen:1 solid #9ebed4ff;"/>
- <Shape id="Shape06" position="absolute 0 203 1194 206" style="strokepen:1 solid #9ebed4ff;"/>
- <Shape id="Shape07" position="absolute 0 230 694 233" style="strokepen:1 solid #9ebed4ff;"/>
- <CheckBox id="chk_nhicyn" taborder="13" text="공단자격조회" position="absolute 948 545 1048 565" falsevalue="N" truevalue="Y"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_ptbspatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="brthdd" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="hometel" type="STRING" size="256"/>
- <Column id="mpphontel" type="STRING" size="256"/>
- <Column id="zipcd1" type="STRING" size="256"/>
- <Column id="zipcd2" type="STRING" size="256"/>
- <Column id="zipcdseq" type="STRING" size="256"/>
- <Column id="zipnm" type="STRING" size="256"/>
- <Column id="detladdr" type="STRING" size="256"/>
- <Column id="forgeryn" type="STRING" size="256"/>
- <Column id="recmyn" type="STRING" size="256"/>
- <Column id="recmerid" type="STRING" size="256"/>
- <Column id="vipyn" type="STRING" size="256"/>
- <Column id="religncd" type="STRING" size="256"/>
- <Column id="remfact" type="STRING" size="256"/>
- <Column id="inhospyn" type="STRING" size="256"/>
- <Column id="disccd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="engnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- <Col id="brthdd"/>
- <Col id="sex"/>
- <Col id="age"/>
- <Col id="hometel"/>
- <Col id="mpphontel"/>
- <Col id="zipcd1"/>
- <Col id="zipcd2"/>
- <Col id="zipcdseq"/>
- <Col id="zipnm"/>
- <Col id="detladdr"/>
- <Col id="forgeryn"/>
- <Col id="recmyn"/>
- <Col id="recmerid"/>
- <Col id="vipyn"/>
- <Col id="religncd"/>
- <Col id="remfact"/>
- <Col id="inhospyn"/>
- <Col id="disccd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data13" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sess_posinstcd" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sess_posinstcd"/>
- <Col id="ioflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvflag" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="inrsrvacptdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="inrsrvacptseqno" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="inrsrvacpttm" type="STRING" size="256"/>
- <Column id="inrsrvstat" type="STRING" size="256"/>
- <Column id="inrsrvprcpno" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- <Column id="suppkind" type="STRING" size="256"/>
- <Column id="suppkindresn" type="STRING" size="256"/>
- <Column id="insuno" type="STRING" size="256"/>
- <Column id="indirecdrid" type="STRING" size="256"/>
- <Column id="indirecdrid_nm" type="STRING" size="256"/>
- <Column id="indirecdd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="inhopedd" type="STRING" size="256"/>
- <Column id="patinhopedd" type="STRING" size="256"/>
- <Column id="inhopeward" type="STRING" size="256"/>
- <Column id="inhoperoomgrdefrom" type="STRING" size="256"/>
- <Column id="inhoperoomgrdeto" type="STRING" size="256"/>
- <Column id="assgward" type="STRING" size="256"/>
- <Column id="assgroom" type="STRING" size="256"/>
- <Column id="assgroomgrde" type="STRING" size="256"/>
- <Column id="assgroomtype" type="STRING" size="256"/>
- <Column id="inflag" type="STRING" size="256"/>
- <Column id="drgyn" type="STRING" size="256"/>
- <Column id="bmtyn" type="STRING" size="256"/>
- <Column id="cpyn" type="STRING" size="256"/>
- <Column id="cpcd" type="STRING" size="256"/>
- <Column id="fcstinterm" type="STRING" size="256"/>
- <Column id="erreglyn" type="STRING" size="256"/>
- <Column id="isolroomyn" type="STRING" size="256"/>
- <Column id="oxyyn" type="STRING" size="256"/>
- <Column id="suctyn" type="STRING" size="256"/>
- <Column id="specroomyn" type="STRING" size="256"/>
- <Column id="scheopdd" type="STRING" size="256"/>
- <Column id="inrsrvgrad" type="STRING" size="256"/>
- <Column id="inrsrvrem" type="STRING" size="256"/>
- <Column id="drrem" type="STRING" size="256"/>
- <Column id="inrsrvcnclresn" type="STRING" size="256"/>
- <Column id="incncldd" type="STRING" size="256"/>
- <Column id="incncltm" type="STRING" size="256"/>
- <Column id="nblsyn" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="clincstdyno" type="STRING" size="256"/>
- <Column id="orddrid_nm" type="STRING" size="256"/>
- <Column id="orddeptcd_nm" type="STRING" size="256"/>
- <Column id="wardtypecd" type="STRING" size="256"/>
- <Column id="specwardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rsrvflag"/>
- <Col id="status"/>
- <Col id="pid"/>
- <Col id="inrsrvacptdd"/>
- <Col id="orddeptcd"/>
- <Col id="inrsrvacptseqno"/>
- <Col id="instcd"/>
- <Col id="inrsrvacpttm"/>
- <Col id="inrsrvstat"/>
- <Col id="inrsrvprcpno"/>
- <Col id="insukind"/>
- <Col id="suppkind"/>
- <Col id="suppkindresn"/>
- <Col id="insuno"/>
- <Col id="indirecdrid"/>
- <Col id="indirecdrid_nm"/>
- <Col id="indirecdd"/>
- <Col id="orddrid"/>
- <Col id="inhopedd"/>
- <Col id="patinhopedd"/>
- <Col id="inhopeward"/>
- <Col id="inhoperoomgrdefrom"/>
- <Col id="inhoperoomgrdeto"/>
- <Col id="assgward"/>
- <Col id="assgroom"/>
- <Col id="assgroomgrde"/>
- <Col id="assgroomtype"/>
- <Col id="inflag"/>
- <Col id="drgyn"/>
- <Col id="bmtyn">1</Col>
- <Col id="cpyn"/>
- <Col id="cpcd"/>
- <Col id="fcstinterm"/>
- <Col id="erreglyn"/>
- <Col id="isolroomyn"/>
- <Col id="oxyyn"/>
- <Col id="suctyn"/>
- <Col id="specroomyn"/>
- <Col id="scheopdd"/>
- <Col id="inrsrvgrad"/>
- <Col id="inrsrvrem"/>
- <Col id="drrem"/>
- <Col id="inrsrvcnclresn"/>
- <Col id="incncldd"/>
- <Col id="incncltm"/>
- <Col id="nblsyn"/>
- <Col id="fstrgstrid"/>
- <Col id="fstrgstdt"/>
- <Col id="lastupdtrid"/>
- <Col id="lastupdtdt"/>
- <Col id="clincstdyno"/>
- <Col id="orddrid_nm"/>
- <Col id="orddeptcd_nm"/>
- <Col id="wardtypecd"/>
- <Col id="specwardcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inrsrvacptfromdd" type="STRING" size="256"/>
- <Column id="inrsrvacpttodd" type="STRING" size="256"/>
- <Column id="sorddeptcd" type="STRING" size="256"/>
- <Column id="sorddrid" type="STRING" size="256"/>
- <Column id="sendflag" type="STRING" size="256"/>
- <Column id="s_checkflag" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="inrsrvacptfromdd"/>
- <Col id="inrsrvacpttodd"/>
- <Col id="sorddeptcd"/>
- <Col id="sorddrid"/>
- <Col id="sendflag"/>
- <Col id="s_checkflag"/>
- <Col id="pid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list1_grdinhpdeci" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="patinhopefromdd" type="STRING" size="256"/>
- <Column id="patinhopetodd" type="STRING" size="256"/>
- <Column id="rorddeptcd" type="STRING" size="256"/>
- <Column id="rorddrid" type="STRING" size="256"/>
- <Column id="sendflag" type="STRING" size="256"/>
- <Column id="r_checkflag" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="patinhopefromdd"/>
- <Col id="patinhopetodd"/>
- <Col id="rorddeptcd"/>
- <Col id="rorddrid"/>
- <Col id="sendflag"/>
- <Col id="r_checkflag"/>
- <Col id="pid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list2_grdinhprsspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_roomgrdelist_roomgrde" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="typecd" type="STRING" size="256"/>
- <Column id="tn" type="STRING" size="256"/>
- <Column id="cdyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_pam_P0041list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0001list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0025list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0026list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0039list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0378list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_P0474list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_pam_P0041list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_rorddeptcd1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cmb_rorddeptcd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="inrsrvacptdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="inrsrvacptseqno" type="STRING" size="256"/>
- <Column id="mode" type="STRING" size="256"/>
- <Column id="inrsrvstat" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="inrsrvacptdd"/>
- <Col id="orddeptcd"/>
- <Col id="inrsrvacptseqno"/>
- <Col id="mode"/>
- <Col id="inrsrvstat"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data5" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchcond"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_rcv_ptbspatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="상태"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
- <Column id="engnm" type="STRING" size="256" sumtext="영문성명"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞자리"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒷자리"/>
- <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="hometel" type="STRING" size="256" sumtext="연락처"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰"/>
- <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
- <Column id="recmyn" type="STRING" size="256" sumtext="직원소개"/>
- <Column id="recmerid" type="STRING" size="256" sumtext="추천인"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호앞자리"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호뒷자리"/>
- <Column id="zipnm" type="STRING" size="256" sumtext="주소"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
- <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_rcv_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="status" type="STRING" size="256" sumtext="상태값"/>
- <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분자"/>
- <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="입원예약 접수일자"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddeptcd_nm" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="inrsrvacptseqno" type="STRING" size="256" sumtext="입원예약 접수번호"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="inrsrvacpttm" type="STRING" size="256" sumtext="입원예약 접수시간"/>
- <Column id="inrsrvstat" type="STRING" size="256" sumtext="입원예약상태"/>
- <Column id="inrsrvprcpno" type="STRING" size="256" sumtext="입원예약처방번호"/>
- <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
- <Column id="suppkindresn" type="STRING" size="256" sumtext="환자유형사유코드"/>
- <Column id="insuno" type="STRING" size="256" sumtext="보험사코드"/>
- <Column id="indirecdrid" type="STRING" size="256" sumtext="입원지시의사"/>
- <Column id="indirecdrid_nm" type="STRING" size="256" sumtext="입원지시의사"/>
- <Column id="indirecdd" type="STRING" size="256" sumtext="입원지시일자"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="입원시 진료의사"/>
- <Column id="orddrid_nm" type="STRING" size="256" sumtext="입원시 진료의사"/>
- <Column id="inhopedd" type="STRING" size="256" sumtext="입원희망일자"/>
- <Column id="patinhopedd" type="STRING" size="256" sumtext="환자입원희망일자"/>
- <Column id="inhopeward" type="STRING" size="256" sumtext="희망병동"/>
- <Column id="inhoperoomgrdefrom" type="STRING" size="256" sumtext="입원희망병실등급시작일자"/>
- <Column id="inhoperoomgrdeto" type="STRING" size="256" sumtext="입원희망병실등급종료일자"/>
- <Column id="assgward" type="STRING" size="256" sumtext="배정병동"/>
- <Column id="assgroom" type="STRING" size="256" sumtext="배정병실"/>
- <Column id="assgroomgrde" type="STRING" size="256" sumtext="배정병실등급"/>
- <Column id="assgroomtype" type="STRING" size="256" sumtext="배정병실형태"/>
- <Column id="inflag" type="STRING" size="256" sumtext="입원상태"/>
- <Column id="drgyn" type="STRING" size="256" sumtext="DRG여부"/>
- <Column id="bmtyn" type="STRING" size="256" sumtext="BMT여부"/>
- <Column id="cpyn" type="STRING" size="256" sumtext="CP여부"/>
- <Column id="cpcd" type="STRING" size="256" sumtext="CP종류"/>
- <Column id="fcstinterm" type="STRING" size="256" sumtext="예상입원기간(CP)"/>
- <Column id="erreglyn" type="STRING" size="256" sumtext="응급정규여부"/>
- <Column id="isolroomyn" type="STRING" size="256" sumtext="격리실사용여부"/>
- <Column id="oxyyn" type="STRING" size="256" sumtext="O2사용여부"/>
- <Column id="suctyn" type="STRING" size="256" sumtext="Suction사용여부"/>
- <Column id="specroomyn" type="STRING" size="256" sumtext="입원예약병실형태"/>
- <Column id="scheopdd" type="STRING" size="256" sumtext="수술예정일자"/>
- <Column id="inrsrvgrad" type="STRING" size="256" sumtext="입원예약등급"/>
- <Column id="inrsrvrem" type="STRING" size="256" sumtext="입원예약 참고사항"/>
- <Column id="drrem" type="STRING" size="256" sumtext="의료진 참고사항"/>
- <Column id="inrsrvcnclresn" type="STRING" size="256" sumtext="입원예약취소사유"/>
- <Column id="incncldd" type="STRING" size="256" sumtext="입원취소 일자"/>
- <Column id="incncltm" type="STRING" size="256" sumtext="입원취소 시간"/>
- <Column id="nblsyn" type="STRING" size="256" sumtext="노블레스여부"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- <Column id="clincstdyacptflag" type="STRING" size="256" sumtext="임상시험접수상태"/>
- <Column id="clincstdyno" type="STRING" size="256" sumtext="임상시험과제번호"/>
- <Column id="ocrtag" type="STRING" size="256" sumtext="ocrtag"/>
- <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
- <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
- <Column id="coopteamcd" type="STRING" size="256" sumtext="협력팀코드"/>
- <Column id="wardtypecd" type="STRING" size="256" sumtext="병동형태"/>
- <Column id="wardtypecd" type="STRING" size="256" sumtext="병동형태"/>
- <Column id="specwardcd" type="STRING" size="256" sumtext="세부병동"/>
- <Column id="ampmflag" type="STRING" size="256" sumtext="DCC오전오후구분"/>
- <Column id="rsrvprcsstat" type="STRING" size="256" sumtext="입원예약진행상태"/>
- <Column id="specordtype" type="STRING" size="256" sumtext="선택진료형태"/>
- <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_original_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data6" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data7" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvflag" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="inrsrvacptdd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="inrsrvacptseqno" type="STRING" size="256"/>
- <Column id="inrsrvrem" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rsrvflag"/>
- <Col id="status"/>
- <Col id="pid"/>
- <Col id="inrsrvacptdd"/>
- <Col id="orddeptcd"/>
- <Col id="inrsrvacptseqno"/>
- <Col id="inrsrvrem"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_data8" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="mode" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hngnm"/>
- <Col id="mode"/>
- <Col id="rrgstno1"/>
- <Col id="rrgstno2"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_h_rcv_ptin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptin_status" type="STRING" size="256" sumtext="상태"/>
- <Column id="ptin_pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="ptin_insukind" type="STRING" size="256" sumtext="보험유형"/>
- <Column id="ptin_todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="ptin_seqno" type="STRING" size="256" sumtext="일련번호"/>
- <Column id="ptin_fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="ptin_histstat" type="STRING" size="256" sumtext="이력상태"/>
- <Column id="ptin_insucd" type="STRING" size="256" sumtext="보험자코드"/>
- <Column id="ptin_insucdnm" type="STRING" size="256" sumtext="보험자코드명"/>
- <Column id="ptin_insuno" type="STRING" size="256" sumtext="보험증번호"/>
- <Column id="ptin_insdnm" type="STRING" size="256" sumtext="피보험자명"/>
- <Column id="ptin_insdrela" type="STRING" size="256" sumtext="피보험자와의관계"/>
- <Column id="ptin_insdrrgstno1" type="STRING" size="256" sumtext="피보험자주민번호1"/>
- <Column id="ptin_insdrrgstno2" type="STRING" size="256" sumtext="피보험자주민번호2"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_check_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data9" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data10" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data11" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="insukind" type="STRING" size="256"/>
- <Column id="insucd" type="STRING" size="256"/>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="checkflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="insukind"/>
- <Col id="insucd"/>
- <Col id="appdd"/>
- <Col id="instcd"/>
- <Col id="checkflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ptin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="popupendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_pam_printer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_roomgrdecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_roomtypecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_rcv_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_rsltflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_data3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sess_posinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nhicyn" type="STRING" size="256"/>
- <Column id="rsrvyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_target_grdroomspec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmd_medispcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sorddeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_static_yn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_static_clincstdyacptflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">-</Col>
- <Col id="value">N</Col>
- </Row>
- <Row>
- <Col id="label">임상(전액청구)</Col>
- <Col id="value">P</Col>
- </Row>
- <Row>
- <Col id="label">임상(진찰료제외)</Col>
- <Col id="value">Q</Col>
- </Row>
- <Row>
- <Col id="label">동물임상</Col>
- <Col id="value">A</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_combo21" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_static_inrsrvgrad" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">-</Col>
- <Col id="value">-</Col>
- </Row>
- <Row>
- <Col id="label">상</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">중</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">하</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_init_proccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_nhicinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nhic_rareobstflag" type="STRING" size="256"/>
- <Column id="nhic_disregprson3" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="nhic_rareobstflag"/>
- <Col id="nhic_disregprson3"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_h_deciprint" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="indd" type="STRING" size="256" sumtext="입원일자년"/>
- <Column id="inpath" type="STRING" size="256" sumtext="입원경로"/>
- <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="담당교수"/>
- <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="한글성명"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별1"/>
- <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
- <Column id="address" type="STRING" size="256" sumtext="주소"/>
- <Column id="hometel" type="STRING" size="256" sumtext="연락처"/>
- <Column id="mpphontel" type="STRING" size="256" sumtext="핸드폰"/>
- <Column id="insukind" type="STRING" size="256" sumtext="영문약어"/>
- <Column id="insucd" type="STRING" size="256" sumtext="선택여부"/>
- <Column id="insuno" type="STRING" size="256" sumtext="일련번호"/>
- <Column id="insdnm" type="STRING" size="256" sumtext="바코드"/>
- <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
- <Column id="termhngnm" type="STRING" size="256" sumtext="상병명"/>
- <Column id="inschedd" type="STRING" size="256" sumtext="입원예정일"/>
- <Column id="opschedd" type="STRING" size="256" sumtext="수술예정일"/>
- <Column id="indirecdrnm" type="STRING" size="256" sumtext="의뢰자"/>
- <Column id="inrsrvacptdt" type="STRING" size="256" sumtext="의뢰일시"/>
- <Column id="handicapryn1" type="STRING" size="256" sumtext="장애인유무1"/>
- <Column id="handicapryn2" type="STRING" size="256" sumtext="장애인유무2"/>
- <Column id="inrsrvrem" type="STRING" size="256" sumtext="원무참고사항"/>
- <Column id="cnstyn" type="STRING" size="256" sumtext="의뢰서제출여부"/>
- <Column id="rareobstflag" type="STRING" size="256" sumtext="희귀난치"/>
- <Column id="disregprson3" type="STRING" size="256" sumtext="차상위"/>
- <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTag"/>
- <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
- <Column id="bedcnt" type="STRING" size="256" sumtext="병상수"/>
- <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞자리"/>
- <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒷자리"/>
- <Column id="grnternm" type="STRING" size="256" sumtext="보증인명"/>
- <Column id="grntertel" type="STRING" size="256" sumtext="보증인전화번호"/>
- <Column id="realcd" type="STRING" size="256" sumtext="관계"/>
- <Column id="addr" type="STRING" size="256" sumtext="주소"/>
- <Column id="grnterrrgstno1" type="STRING" size="256" sumtext="보증인주민번호앞"/>
- <Column id="grnterrrgstno2" type="STRING" size="256" sumtext="보증인주민번호뒤"/>
- <Column id="grntermpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
- <Column id="worknm" type="STRING" size="256" sumtext="직장명"/>
- <Column id="worktel" type="STRING" size="256" sumtext="직장전화번호"/>
- <Column id="grnternm1" type="STRING" size="256" sumtext="보증인명1"/>
- <Column id="grntertel1" type="STRING" size="256" sumtext="보증인전화번호1"/>
- <Column id="real1" type="STRING" size="256" sumtext="관계1"/>
- <Column id="addr1" type="STRING" size="256" sumtext="주소1"/>
- <Column id="grnterrrgstno11" type="STRING" size="256" sumtext="보증인주민번호앞1"/>
- <Column id="grnterrrgstno12" type="STRING" size="256" sumtext="보증인주민번호뒤1"/>
- <Column id="grntermpphontel1" type="STRING" size="256" sumtext="휴대전화번호1"/>
- <Column id="worknm1" type="STRING" size="256" sumtext="직장명1"/>
- <Column id="worktel1" type="STRING" size="256" sumtext="직장전화번호1"/>
- <Column id="centcd" type="STRING" size="256" sumtext="센터명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="hosptel" type="STRING" size="256" sumtext="병원전화번호"/>
- <Column id="insukindcd" type="STRING" size="256" sumtext="보험유형코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_printers_printer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_patappinfo_patappinfo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item49" compid="grp1.cmb_rorddeptcd1" propid="value" datasetid="ds_send_data1" columnid="sorddeptcd"/>
- <BindItem id="item0" compid="ipt_pid" propid="value" datasetid="ds_main_ptbspatinfo" columnid="pid"/>
- <BindItem id="item1" compid="ipt_hngnm" propid="value" datasetid="ds_main_ptbspatinfo" columnid="hngnm"/>
- <BindItem id="item2" compid="ipt_rrgstno1" propid="value" datasetid="ds_main_ptbspatinfo" columnid="rrgstno1"/>
- <BindItem id="item3" compid="ipt_rrgstno2" propid="value" datasetid="ds_main_ptbspatinfo" columnid="rrgstno2"/>
- <BindItem id="item4" compid="ipt_hometel" propid="value" datasetid="ds_main_ptbspatinfo" columnid="hometel"/>
- <BindItem id="item5" compid="ipt_mpphontel" propid="value" datasetid="ds_main_ptbspatinfo" columnid="mpphontel"/>
- <BindItem id="item6" compid="chk_recmyn" propid="value" datasetid="ds_main_ptbspatinfo" columnid="recmyn"/>
- <BindItem id="item7" compid="opt_recmerid" propid="value" datasetid="ds_main_ptbspatinfo" columnid="recmerid"/>
- <BindItem id="item8" compid="ipt_brthyy" propid="value" datasetid="ds_main_ptbspatinfo" columnid="brthdd"/>
- <BindItem id="item9" compid="opt_brthmm" propid="value" datasetid="ds_main_ptbspatinfo" columnid="sex"/>
- <BindItem id="item10" compid="opt_brthdd" propid="value" datasetid="ds_main_ptbspatinfo" columnid="age"/>
- <BindItem id="item11" compid="chk_vipyn" propid="value" datasetid="ds_main_ptbspatinfo"/>
- <BindItem id="item12" compid="ipt_zipcd1" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipcd1"/>
- <BindItem id="item13" compid="ipt_zipcd2" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipcd2"/>
- <BindItem id="item14" compid="ipt_addr" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipnm"/>
- <BindItem id="item15" compid="ipt_detladdr" propid="value" datasetid="ds_main_ptbspatinfo" columnid="detladdr"/>
- <BindItem id="item16" compid="output6" propid="value" datasetid="ds_main_adrv" columnid="indirecdrid_nm"/>
- <BindItem id="item17" compid="opt_indirecdd" propid="value" datasetid="ds_main_adrv" columnid="indirecdd"/>
- <BindItem id="item18" compid="output4" propid="value" datasetid="ds_main_adrv" columnid="orddeptcd_nm"/>
- <BindItem id="item19" compid="output5" propid="value" datasetid="ds_main_adrv" columnid="orddrid_nm"/>
- <BindItem id="item20" compid="opt_inhopedd" propid="value" datasetid="ds_main_adrv" columnid="inhopedd"/>
- <BindItem id="item21" compid="ipt_patinhopedd" propid="value" datasetid="ds_main_adrv" columnid="patinhopedd"/>
- <BindItem id="item22" compid="ipt_scheopdd" propid="value" datasetid="ds_main_adrv" columnid="scheopdd"/>
- <BindItem id="item23" compid="cmb_inhopeward" propid="value" datasetid="ds_main_adrv" columnid="inhopeward"/>
- <BindItem id="item24" compid="cmb_inhoperoomgrdefrom" propid="value" datasetid="ds_main_adrv" columnid="inhoperoomgrdefrom"/>
- <BindItem id="item25" compid="cmb_inhoperoomgrdeto" propid="value" datasetid="ds_main_adrv" columnid="inhoperoomgrdeto"/>
- <BindItem id="item26" compid="combo7" propid="value" datasetid="ds_main_adrv" columnid="wardtypecd"/>
- <BindItem id="item27" compid="combo6" propid="value" datasetid="ds_main_adrv" columnid="specwardcd"/>
- <BindItem id="item28" compid="cmb_bmtyn" propid="value" datasetid="ds_main_adrv" columnid="bmtyn"/>
- <BindItem id="item29" compid="cmb_specroomyn" propid="value" datasetid="ds_main_adrv" columnid="specroomyn"/>
- <BindItem id="item30" compid="output3" propid="value" datasetid="ds_main_adrv" columnid="clincstdyno"/>
- <BindItem id="item31" compid="combo2" propid="value" datasetid="ds_main_adrv" columnid="erreglyn"/>
- <BindItem id="item32" compid="rdo_isolroomyn" propid="value" datasetid="ds_main_adrv" columnid="isolroomyn"/>
- <BindItem id="item33" compid="combo3" propid="value" datasetid="ds_main_adrv" columnid="drgyn"/>
- <BindItem id="item34" compid="combo4" propid="value" datasetid="ds_main_adrv" columnid="oxyyn"/>
- <BindItem id="item35" compid="combo5" propid="value" datasetid="ds_main_adrv" columnid="suctyn"/>
- <BindItem id="item36" compid="tar_inrsrvrem" propid="value" datasetid="ds_main_adrv" columnid="inrsrvrem"/>
- <BindItem id="item37" compid="opt_inrsrvacptdd" propid="value" datasetid="ds_main_adrv" columnid="inrsrvacptdd"/>
- <BindItem id="item38" compid="opt_inrsrvacpttm" propid="value" datasetid="ds_main_adrv" columnid="inrsrvacpttm"/>
- <BindItem id="item39" compid="opt_lastupdtdt" propid="value" datasetid="ds_main_adrv" columnid="lastupdtdt"/>
- <BindItem id="item40" compid="cmb_inrsrvgrad" propid="value" datasetid="ds_main_adrv" columnid="inrsrvgrad"/>
- <BindItem id="item41" compid="grp1.bol_checkdd1" propid="value" datasetid="ds_send_data1" columnid="s_checkflag"/>
- <BindItem id="item42" compid="output2" propid="value" datasetid="ds_main_ptbspatinfo" columnid="zipcdseq"/>
- <BindItem id="item44" compid="combo1" propid="value" datasetid="ds_main_ptbspatinfo" columnid="disccd"/>
- <BindItem id="item47" compid="grp1.ipt_inrsrvfromdd" propid="value" datasetid="ds_send_data1" columnid="inrsrvacptfromdd"/>
- <BindItem id="item48" compid="grp1.cmd_medispcl" propid="value" datasetid="ds_send_data1" columnid="sorddrid"/>
- <BindItem id="item50" compid="grp1.ipt_inrsrvtodd" propid="value" datasetid="ds_send_data1" columnid="inrsrvacpttodd"/>
- <BindItem id="item51" compid="grp2.ipt_inhopefromdd" propid="value" datasetid="ds_send_data2" columnid="patinhopefromdd"/>
- <BindItem id="item52" compid="grp2.ipt_inhopetodd" propid="value" datasetid="ds_send_data2" columnid="patinhopetodd"/>
- <BindItem id="item53" compid="grp2.cmb_rorddeptcd2" propid="value" datasetid="ds_send_data2" columnid="rorddeptcd"/>
- <BindItem id="item54" compid="grp2.combo21" propid="value" datasetid="ds_send_data2" columnid="rorddrid"/>
- <BindItem id="item55" compid="grp2.bol_checkdd1" propid="value" datasetid="ds_send_data2" columnid="r_checkflag"/>
- <BindItem id="item43" compid="chk_nhicyn" propid="value" datasetid="ds_hidden" columnid="nhicyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[//=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- include 'com_basiccodexp::ZBC001.xjs'
- include 'pam_pamcomnxp::PAM001.xjs';
- include "pam_pamcomnxp::PAM.xjs";
- var arErrorCode = new HashArray();
- var cmcnuprinter_path = system.convertRealPath("%MYDOCUMENT%") + "\\KU20\\cmcnuprinter";
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * [fPatRsrvInfoSrch description]
- * @return {[type]} [description]
- */
- function fPatRsrvInfoSrch() {
- ds_hidden_rcv_ptbspatinfo.clearData();
- ds_hidden_rcv_adrv.clearData();
- var oParam = {};
- oParam.id = "TRPMI00204";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetInRsrvDetlSpec";
- oParam.inds = "req=ds_send_data4";
- oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI00204") > -1) {
- ds_hidden_rcv_ptbspatinfo.updateColID('ptbsremfact', 'remfact');
- var iptbscnt = ds_hidden_rcv_ptbspatinfo.rowcount;
- var iadrvcnt = ds_hidden_rcv_adrv.rowcount;
- if (iptbscnt > 0) {
- ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
- }
- else {
- sysf_messageBox("환자인적이", "I004");
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- return false;
- }
- if (iadrvcnt > 0) {
- ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
- ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
- }
- else {
- sysf_messageBox("입원결정서 또는 입원예약 내용이", "I004");
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- return false;
- }
- var inrsrvstat_flag = ds_main_adrv.getColumn(0, "inrsrvstat");
- //결정서내역이면
- if (inrsrvstat_flag == "S") {
- btn_update.enable = false;
- btn_cncl.enable = false;
- btn_insert.enable = true;
- }
- else if (inrsrvstat_flag == "R") {
- btn_update.enable = true;
- btn_cncl.enable = true;
- btn_insert.enable = false;
- }
- var sErreglyn = ds_main_adrv.getColumn(0, "erreglyn");
- if (sErreglyn == "F") {
- combo2.style.background.color = "#ff0000";
- }
- else {
- combo2.style.background.color = "#ffffff";
- }
- }
- }
- /**
- * [fPatEmplInfoRef description]
- * @return {[type]} [description]
- */
- function fPatEmplInfoRef() {
- //2007.11.28 인사정보의 직원, 직원가족정보 조회
- var rrgstno1 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- var rrgstno2 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
- // 2008.07.12 - 직원정보 조회 방법변경에 따른 소스수정
- if (rrgstno1.length == 6 && rrgstno2.length == 7) {
- var sEmplInfo = fGetPsnWorkInfo(rrgstno1 + rrgstno2);
- }
- }
- /**
- * 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- * @return {[type]} [description]
- */
- function fInitialize() {
- ds_send_data1.clearData();
- ds_send_data1.addRow();
- ds_send_data2.clearData();
- ds_send_data2.addRow();
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data6.clearData();
- ds_send_data6.addRow();
- ds_send_data7.clearData();
- ds_send_data7.addRow();
- ds_send_data8.clearData();
- ds_send_data8.addRow();
- ds_send_data9.clearData();
- ds_send_data9.addRow();
- ds_send_data10.clearData();
- ds_send_data10.addRow();
- ds_send_data11.clearData();
- ds_send_data11.addRow();
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow()
- ds_main_adrv.clearData();
- ds_main_adrv.addRow()
- ds_main_patinfo.clearData();
- ds_main_patinfo.addRow()
- ds_main_list1_grdinhpdeci.clearData();
- ds_main_list2_grdinhprsspec.clearData();
- ds_hidden_rcv_ptbspatinfo.clearData();
- ds_hidden_rcv_adrv.clearData();
- ds_hidden_h_rcv_ptin.clearData();
- ds_hidden_original_adrv.clearData();
- ds_hidden_check_ptbs.clearData();
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "inrsrvacpttodd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "patinhopetodd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- combo2.style.background.color = "#ffffff";
- btn_insert.enable = true;
- btn_update.enable = true;
- btn_cncl.enable = true;
- }
- /**
- * [fSQueryRef description]
- * @return {[type]} [description]
- */
- function fSQueryRef() {
- ds_send_data1.setColumn(0, "sendflag", "D");
- dsf_createDsRow('ds_TRPMI00201', [
- { col: 'inrsrvacptfromdd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacpttodd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'orddrid', type: 'string', size: 256, val: '' },
- { col: 'sendflag', type: 'string', size: 256, val: '' },
- { col: 's_checkflag', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00201.copyRow(0, ds_send_data1, 0);
- ds_TRPMI00201.setColumn(0, 'orddeptcd', ds_send_data1.getColumn(0, 'sorddeptcd'));
- ds_TRPMI00201.setColumn(0, 'orddrid', ds_send_data1.getColumn(0, 'sorddrid'));
- var oParam = {};
- oParam.id = "TRPMI00201";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetInRsrvRefList";
- oParam.inds = "req=ds_TRPMI00201";
- oParam.outds = "ds_main_list1_grdinhpdeci=grdinhpdeci";
- oParam.async = false;
- tranf_submit(oParam);
- var s_adrvcnt = ds_main_list1_grdinhpdeci.rowcount;
- if (s_adrvcnt > 0) {
- //2008.01.28 잠시막음
- //선택진료의인경우 색표시
- // var nodeList = instance1.selectSingleNode("/root/hidden/init");
- // var node = nodeList.childNodes;
- // for (j = 1; j <= s_adrvcnt; j++) {
- // var adrv_orddrid = model.getValue("/root/main/list1/grdinhpdeci[" + j + "]/orddrid");
- // for (i = 1; i <= node.length; i++) {
- // var cd_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/cd");
- // if (cd_orddrid == adrv_orddrid) {
- // var sp_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/sp");
- // if (sp_orddrid == "Y") {
- // grd_inhpdeci.colStyle(11, "data", "color") = "blue";
- // }
- // }
- // }
- // }
- // model.refresh();
- }
- else {
- ds_main_list1_grdinhpdeci.clearData();
- }
- }
- /**
- * [fRQueryRef description]
- * @return {[type]} [description]
- */
- function fRQueryRef() {
- ds_send_data2.setColumn(0, "sendflag", "Y");
- dsf_createDsRow('ds_TRPMI00202', [
- { col: 'patinhopefromdd', type: 'string', size: 256, val: '' },
- { col: 'patinhopetodd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'orddrid', type: 'string', size: 256, val: '' },
- { col: 'sendflag', type: 'string', size: 256, val: '' },
- { col: 'r_checkflag', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00202.copyRow(0, ds_send_data2, 0);
- ds_TRPMI00202.setColumn(0, 'orddeptcd', ds_send_data2.getColumn(0, 'rorddeptcd'));
- ds_TRPMI00202.setColumn(0, 'orddrid', ds_send_data2.getColumn(0, 'rorddrid'));
- ds_main_list2_grdinhprsspec.clearData();
- var oParam = {};
- oParam.id = "TRPMI00202";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetInRsrvRefList";
- oParam.inds = "req=ds_TRPMI00202";
- oParam.outds = "ds_main_list2_grdinhprsspec=grdinhprsspec";
- oParam.async = false;
- tranf_submit(oParam);
- var r_adrvcnt = ds_main_list2_grdinhprsspec.rowcount;
- if (r_adrvcnt > 0) {
- //2008.01.28 잠시막음
- //선택진료의인경우 색표시
- // var nodeList = instance1.selectSingleNode("/root/hidden/init");
- // var node = nodeList.childNodes;
- // for (j = 1; j <= r_adrvcnt; j++) {
- // var adrv_orddrid = model.getValue("/root/main/list2/grdinhprsspec[" + j + "]/orddrid");
- // for (i = 1; i <= node.length; i++) {
- // var cd_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/cd");
- // if (cd_orddrid == adrv_orddrid) {
- // var sp_orddrid = model.getValue("/root/hidden/init/orddrid[" + i + "]/sp");
- // if (sp_orddrid == "Y") {
- // grd_inhprsspec.colStyle(10, "data", "color") = "blue";
- // }
- // }
- // }
- // }
- // model.refresh();
- }
- else {
- ds_main_list2_grdinhprsspec.clearData();
- }
- }
- /**
- * 2008.12.16 환자보험정보 조회
- * @return {[type]} [description]
- */
- function fGetPtinInfo() {
- // 2008.12.16 - 환자보험유형에 따라서 보험정보조회(pmcmptin)
- // 건강보험, 의료급여1종, 의료급여2종일 때만 조회
- var sInsuKind = ds_main_adrv.getColumn(0, "insukind");
- if (sInsuKind == "11" || sInsuKind == "21" || sInsuKind == "22") {
- //map화일에 min_count="1" 데이터가 없어도 인스턴스 존재. temp의 값을 카피할 필요없다.
- ds_send_data11.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data11.setColumn(0, "insukind", sInsuKind);
- ds_send_data11.setColumn(0, "insucd", "");
- ds_send_data11.setColumn(0, "appdd", utlf_getCurrentDate());
- ds_send_data11.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send_data11.setColumn(0, "checkflag", "1");
- dsf_createDsRow('ds_TRPMI00109', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'insucd', type: 'string', size: 256, val: '' },
- { col: 'appdd', type: 'string', size: 256, val: '' },
- { col: 'orddd', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'indd', type: 'string', size: 256, val: '' },
- { col: 'checkflag', type: 'string', size: 256, val: '' },
- { col: 'suppkind', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00109.copyRow(0, ds_send_data11, 0);
- ds_TRPMI00109.setColumn(0, 'orddd', ds_send_data11.getColumn(0, 'appdd'));
- ds_hidden_h_rcv_ptin.clearData();
- var oParam = {};
- oParam.id = "TRPMI00109";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetPatInsuInfo";
- oParam.inds = "req=ds_TRPMI00109";
- oParam.outds = "ds_hidden_h_rcv_ptin=ptin";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI00109") > -1) {
- ds_send_data11.clearData();
- var sPtinPid = ds_hidden_h_rcv_ptin.getColumn(0, "ptin_pid");
- if (!isNull(sPtinPid)) {
- ds_main_ptin.copyData(ds_hidden_h_rcv_ptin, false);
- }
- }
- }
- }
- /**
- * [fRrgstNo1Veri description]
- * @return {[type]} [description]
- */
- function fRrgstNo1Veri() {
- var ptbs_rrgstno1 = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- if (ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-") {
- if (ptbs_rrgstno1.length != 6) {
- sysf_messageBox("주민번호1은 6자리여야 합니다!", "E999", "");
- ptbs_rrgstno1.setFocus();
- return false;
- }
- if (ptbs_rrgstno1.isNumber() != true) {
- sysf_messageBox("주민번호1은 숫자형태로 입력되어야 합니다!", "E999", "");
- ptbs_rrgstno1.setFocus();
- return false;
- }
- }
- else {
- sysf_messageBox("주민번호1은 6자리여야 합니다!", "E999", "");
- ptbs_rrgstno1.setFocus();
- return false;
- }
- }
- /**
- * [fRrgstNo2Veri description]
- * @return {[type]} [description]
- */
- function fRrgstNo2Veri() {
- var ptbs_brthdd;
- var ptbs_rrgstno1 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- var ptbs_rrgstno2 = String(ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
- if (ptbs_rrgstno1.length != 6) {
- sysf_messageBox("환자주민번호1은 6자리입니다!", "E999", "");
- model.setFocus("ptbs_rrgstno1");
- return false;
- }
- if (ptbs_rrgstno2.length != 7) {
- sysf_messageBox("환자주민번호2은 7자리입니다!", "E999", "");
- model.setFocus("ipt_rrgstno2");
- return false;
- }
- var gubn = ptbs_rrgstno2.substr(0, 1);
- switch (gubn) {
- case '1':
- case '2':
- case '5':
- case '6':
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- case '3':
- case '4':
- case '7':
- case '8':
- ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
- break;
- case '9':
- case '0':
- ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
- break;
- default:
- ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
- break;
- }
- //model.setValue("/root/main/ptbspatinfo/brthdd",ptbs_brthdd);
- if (utlf_isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false) {
- sysf_messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!", "E999", "");
- ds_main_ptbspatinfo.setColumn(0, "rrgstno1", "");
- ds_main_ptbspatinfo.setColumn(0, "rrgstno2", "");
- ds_main_ptbspatinfo.setColumn(0, "brthdd", "");
- return false;
- }
- }
- /**
- * 2009년 03월 20일, JHP
- * 서울성모이전으로 프린터를 2tray와 1tray짜리를 동시에 사용한다. 수납쪽(영수증, 중간계산서)은 1tray, 등록쪽(약정서, 입원카드)은 2tray를 쓰는데
- * 1트레이는 기본이므로 수납쪽은 그냥 둔다. 근데 2트레이는 렉스퍼트 출력시 트레이번호를 셋팅값으로 박아줘야하는데 프린터 정보는 동적으로 가지고 올수 없기때문에
- * 임의의 경로에 txt파일을 만들어 트레이값을 설정하여 저장하여놓고 불러와서 트레이번호를 매겨준다.
- * 이때 해당 파일이 없으면 해당파일을 사용자가 만들어준다.
- * @return {[type]} [description]
- */
- function fSetPrinterTray() {
- // 프린터 트레이 설정을 위한 ini파일 조회
- var printerfileno = "X";
- var vFile = new VirtualFile(cmcnuprinter_path + "\\printer.ini", VirtualFile.openRead | VirtualFile.openText);
- var sLine = "";
- // 파일읽기
- if (vFile.readLine() != null) {
- while ((sLine = vFile.readLine()).length > 0) {
- if (sLine.indexOf("=") > -1) {
- printerfileno = sLine.charAt(sLine.indexOf("=") + 1);
- }
- }
- }
- // 파일 존재하지 않는 경우 파일생성
- if (printerfileno == "X") {
- if (sysf_messageBox("프린터 트레이정보가 존재하지 않습니다. ''예 = 트레이1개'', ''아니오 = 트레이2개'' ", "Q003") == "6") {
- printerfileno = "1";
- }
- else {
- printerfileno = "2";
- }
- // 폴더생성
- if (VirtualFile.isExist(cmcnuprinter_path) == false) {
-
- VirtualFile.createDirectory(cmcnuprinter_path);
- }
- // 파일쓰기
- var vFileNew = new VirtualFile(cmcnuprinter_path + "\\printer.ini", VirtualFile.openWrite | VirtualFile.openText);
- vFileNew.write("[Tray]");
- vFileNew.write("\r\n");
- vFileNew.write("trayno=" + printerfileno);
- vFileNew.close();
- dsf_makeValue(ds_hidden_pam_printer, "value", 'string', printerfileno);
- }
- else{
- dsf_makeValue(ds_hidden_pam_printer, "value", 'string', printerfileno);
- }
- }
- /**
- * [fHngNmVeri description]
- * @param {[type]} gubn [description]
- * @return {[type]} [description]
- */
- function fHngNmVeri(gubn) {
- var ptbs_hngnm;
- if (gubn == "xforms-next") {
- ptbs_hngnm = String(ds_main_ptbspatinfo.getColumn(0, "hngnm"));
- }
- else if (gubn == "onkeypress" || gubn == "onkeyup") {
- ptbs_hngnm = String(ds_main_ptbspatinfo.getColumn(0, "hngnm"));
- }
- //한글 한글자를 그냥 길이1로 계산
- if (parseInt((ptbs_hngnm.length)) < 2) {
- sysf_messageBox("환자성명은 2글자 이상되어야 합니다!", "E999", "");
- ipt_hngnm.setFocus();
- return false;
- }
- }
- /**
- * [fGetPidInfo description]
- * @return {[type]} [description]
- */
- function fGetPidInfo() {
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data6.clearData();
- ds_send_data6.addRow();
- ds_send_data7.clearData();
- ds_send_data7.addRow();
- ds_send_data8.clearData();
- ds_send_data8.addRow();
- ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
- ds_send_data5.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data5.setColumn(0, "srchcond", "1")
- fPatRsrvInfoSrch();
- //20100115 jhp 수정추가 변경요청번호 3258 인사정보의 직원, 직원가족정보 조회
- fPatEmplInfoRef();
- //2008-04-14 이성인 추가
- //인적사항 조회시 자동으로 입원결정서 , 입원예약내역을 조회하여온다.
- if (isNull(ds_main_ptbspatinfo.getColumn(0, "pid"))) {
- fInitialize();
- }
- else {
- var temp = ds_send_data1.getColumn(0, "inrsrvacptfromdd");
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
- ds_send_data1.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data1.setColumn(0, "s_checkflag", "false");
- fSQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", "");
- ds_send_data2.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data2.setColumn(0, "r_checkflag", "false");
- fRQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", temp);
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", temp);
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- // 보험정보 조회
- fGetPtinInfo();
- }
- }
- /**
- * [fGetNhicInfo description]
- * @return {[type]} [description]
- */
- function fGetNhicInfo() {
- // 로딩창 열기
- var sWindowMsg = "공단자격 조회중...";
- //callLoadingWindow(sWindowMsg);
- // 2008.10.15 조진희 요청 - 등록 시 공단조회 팝업 오픈
- // 2008.12.11 조진희 요청 - 자동으로 조회되도록 수정 - 공단자격조회
- var sNhicYn = ds_hidden.getColumn(0, "nhicyn"); // 공단조회 체크가 되어 있을 때만 자동조회한다.
- var sInsuKind = ds_main_adrv.getColumn(0, "insukind");
- if (sNhicYn == "Y" && (sInsuKind == "11" || sInsuKind == "21" || sInsuKind == "22")) {
- var sPid = ds_main_ptbspatinfo.getColumn(0, "pid");
- var sHngnm = ds_main_ptbspatinfo.getColumn(0, "hngnm");
- var sRrgstno = ds_main_ptbspatinfo.getColumn(0, "rrgstno1") + ds_main_ptbspatinfo.getColumn(0, "rrgstno2");
- var sOrddd = utlf_getCurrentDate();
- var sPrcpcd = ds_hidden_init_proccd.getColumn(0, "cd");
- var sLoginId = ds_hidden_init_proccd.getColumn(0, "loginid");
- var sPassWord = ds_hidden_init_proccd.getColumn(0, "password");
- // 공단자격조회
- var sQualication = pmcfGetNhicQualification(sPid, sHngnm, sRrgstno, sOrddd, sPrcpcd, sLoginId, sPassWord);
- if (!utlf_isNull(sQualication)) {
- var tempArray = sQualication.split("▩");
- var valueArray = tempArray[1]; // index 0은 header 이기 때문에 제외
- var columnArray = null;
- if (!utlf_isNull(valueArray)) {
- columnArray = valueArray.split("▦"); // column을 분리해서 배열에 넣는다.
- // 각 값별로 체크하기 위해서 컬럼 분리
- var sM2_rrgstno = columnArray[0].getTrim(); // 수진자주민번호
- var sM2_hngnm = columnArray[1].getTrim(); // 수진자성명
- var sM2_proccorpcd = columnArray[2].getTrim(); // 의료기관기호
- var sM2_qualflag = columnArray[3].getTrim(); // 자격구분
- var sM2_qualacqtdd = columnArray[4].getTrim(); // 자격취득일자
- var sM2_hshdnm = columnArray[5].getTrim(); //
- var sM2_secuinstmark = columnArray[6].getTrim(); //
- var sM2_estmmark = columnArray[7].getTrim(); //
- var sM2_paylimdd = columnArray[8].getTrim(); // 급여제한일자
- var sM2_ownbflag = columnArray[9].getTrim(); // 본인부담구분
- var sM2_heallifeamtval = columnArray[10].getTrim(); // 건강생황유지비
- var sM2_pregremamt = columnArray[11].getTrim(); // 산전산모지원금
- var sM2_choicorpmark1 = columnArray[12].getTrim(); // 선택기관1
- var sM2_choicorpmark2 = columnArray[13].getTrim(); // 선택기관2
- var sM2_choicorpmark3 = columnArray[14].getTrim(); // 선택기관3
- var sM2_choicorpmark4 = columnArray[15].getTrim(); // 선택기관4
- var sM2_choicorpnm1 = columnArray[16].getTrim(); // 선택기관명1
- var sM2_choicorpnm2 = columnArray[17].getTrim(); // 선택기관명2
- var sM2_choicorpnm3 = columnArray[18].getTrim(); // 선택기관명3
- var sM2_choicorpnm4 = columnArray[19].getTrim(); // 선택기관명4
- var sM2_handicaprrgstdd = columnArray[20].getTrim(); // 장애인등록일자
- var sM2_datainptdt = columnArray[21].getTrim(); //
- var sM2_dcntrypsnyn = columnArray[22].getTrim(); //
- var sM2_msgcd = columnArray[23].getTrim(); // 메시지코드
- var sM2_msg = columnArray[24].getTrim(); // 메시지
- var sM2_msgtype = columnArray[25].getTrim(); // 메시지형태
- var sM2_clntuniqval = columnArray[26].getTrim(); //
- var sM2_disregprson1 = columnArray[27].getTrim(); // 희귀난치대상자
- var sM2_disregprson2 = columnArray[28].getTrim(); //
- var sM2_disregprson3 = columnArray[29].getTrim(); // 차상위대상자
- var sM2_disregprson4 = columnArray[30].getTrim(); //
- // 자격구분이 없으면 자격상실로 판단하여 '일반'으로 설정
- if (utlf_isNull(sM2_qualflag)) {
- ds_main_ptin.setColumn(0, "ptin_insukind", "51");
- }
- else {
- // 1. 보험유형이 화면과 같은 지 비교
- // 건강보험
- if (sInsuKind == "11") {
- if (sM2_qualflag == "7") { // 7:의료급여1종, 8:의료급여2종
- ds_main_ptin.setColumn(0, "ptin_insukind", "21");
- }
- if (sM2_qualflag == "8") { // 7:의료급여1종, 8:의료급여2종
- ds_main_ptin.setColumn(0, "ptin_insukind", "22");
- }
- }
- // 의료급여1종
- if (sInsuKind == "21" && sM2_qualflag != "7") { // 7:의료급여1종, 8:의료급여2종
- if (sM2_qualflag == "8") { // 7:의료급여1종, 8:의료급여2종
- ds_main_ptin.setColumn(0, "ptin_insukind", "22");
- }
- else {
- ds_main_ptin.setColumn(0, "ptin_insukind", "11");
- }
- }
- // 의료급여2종
- // 7:의료급여1종, 8:의료급여2종
- if (sInsuKind == "22" && sM2_qualflag != "8") {
- // 7:의료급여1종, 8:의료급여2종
- if (sM2_qualflag == "7") {
- ds_main_ptin.setColumn(0, "ptin_insukind", "21");
- }
- else {
- ds_main_ptin.setColumn(0, "ptin_insukind", "11");
- }
- }
- var sPtinInsuKind = ds_main_ptin.getColumn(0, "ptin_insukind");
- // sPtinInsuKind == null일 때
- if (utlf_isNull(sPtinInsuKind)) {
- if (sM2_qualflag == "7") { // 7:의료급여1종, 8:의료급여2종
- ds_main_ptin.setColumn(0, "ptin_insukind", "21");
- }
- else if (sM2_qualflag == "8") { // 7:의료급여1종, 8:의료급여2종
- ds_main_ptin.setColumn(0, "ptin_insukind", "22");
- }
- else {
- ds_main_ptin.setColumn(0, "ptin_insukind", "11");
- }
- }
- // 2. 기본값 설정
- if (utlf_isNull(sM2_secuinstmark)) {
- ds_main_ptin.setColumn(0, "ptin_insucd", "0015");
- }
- else {
- ds_main_ptin.setColumn(0, "ptin_insucd", sM2_secuinstmark);
- }
- ds_main_ptin.setColumn(0, "ptin_insuno", sM2_estmmark);
- ds_main_ptin.setColumn(0, "ptin_insdnm", sM2_hshdnm);
- ds_main_ptin.setColumn(0, "ptin_fromdd", sM2_qualacqtdd);
- if (utlf_isNull(sM2_paylimdd)) {
- // 종료일자는 좀더 로직 필요 - 상실일자가 있으면서 선택기관이 존재하는지 여부에 따라 의미가 다르다
- ds_main_ptin.setColumn(0, "ptin_todd", "99991231");
- }
- else {
- if (utlf_isNull(sM2_choicorpmark1) && utlf_isNull(sM2_choicorpmark2) && utlf_isNull(sM2_choicorpmark3) && utlf_isNull(sM2_choicorpmark4)) { // 선택기관기호가 없을 때
- ds_main_ptin.setColumn(0, "ptin_todd", "sM2_paylimdd");
- }
- else {
- // 종료일자는 좀더 로직 필요 - 상실일자가 있으면서 선택기관이 존재하는지 여부에 따라 의미가 다르다
- ds_main_ptin.setColumn(0, "ptin_todd", "99991231");
- }
- }
- // 3. 특정케이스 설정 - 희귀난치대상자, 차상위
- // 본인부담구분
- // if (!isNull(sM2_ownbflag)) {
- // model.setValue("/root/main/inpt/inpt_ownbflag", sM2_ownbflag);
- // }
- // 희귀난치대상자
- if (utlf_isNull(sM2_disregprson1)) {
- dsf_makeValue(ds_main_nhicinfo, "nhic_rareobstflag", 'string', "I");
- }
- else {
- dsf_makeValue(ds_main_nhicinfo, "nhic_rareobstflag", 'string', "H");
- }
- // 차상위대상자 - 보조유형으로 설정
- if (!utlf_isNull(sM2_disregprson3)) {
- dsf_makeValue(ds_main_nhicinfo, "nhic_disregprson3", 'string', "32");
- }
- else {
- dsf_makeValue(ds_main_nhicinfo, "nhic_disregprson3", 'string', "00");
- }
- // 세대주성명과 환자이름이 같으면 본인으로 관계 설정
- if (sHngnm == sM2_hshdnm) {
- ds_main_ptin.setColumn(0, "ptin_insdrela", "1");
- ds_main_ptin.setColumn(0, "ptin_insdrrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- ds_main_ptin.setColumn(0, "ptin_insdrrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
- }
- }
- }
- }
- } // 공단자격조회 end
- // 로딩창 닫기
- // removeLoadingWindow();
- }
- /**
- * [erasePrefix description]
- * @param {[type]} target: Dataset [description]
- * @param {[type]} prefix [description]
- * @return {[type]} [description]
- */
- function erasePrefix(target: Dataset, prefix) {
- if (target.rowcount < 1) {
- return;
- }
- for (var i = 0; i < target.colcount; i++) {
- var updatedId = target.getColID(i).replace(prefix, '');
- if (!utlf_isNull(updatedId)) {
- target.updateColID(i, updatedId);
- }
- }
- }
- // 2008.12.17 - 공단자격조회 결과와 ptin을 비교하여 변경된 내역 있으면 저장
- function fSetNhicPtin() {
- var xInstatance = document.models(0).instances(0);
- var sInsuKind = ds_main_adrv.getColumn(0, "insukind");
- if (sInsuKind == "11" || sInsuKind == "21" || sInsuKind == "22") {
- var sPtinFlag = null;
- var xHiddenPtin = ds_hidden_h_rcv_ptin;
- var xMainPtin = d_main_ptin;
- dsf_createDs('ds_send_data12');
- if (xHiddenPtin.rowcount < 1) {
- sPtinFlag = null; // 데이터가 없으면 인스턴스 노드가 없다. 그러면 에러난다.
- }
- else if (xMainPtin.rowcount < 1) {
- sPtinFlag = null;
- }
- else if (xHiddenPtin.saveXML() == xMainPtin.saveXML()) {
- sPtinFlag = null;
- }
- else { // xHiddenPtin.xml != xMainPtin.xml
- sPtinFlag = "U";
- ds_main_ptin.setColumn(0, "ptin_status", sPtinFlag);
- var sPid = ds_hidden_h_rcv_ptin.getColumn(0, "ptin_pid");
- if (utlf_isNull(sPid)) {
- ds_main_ptin.setColumn(0, "ptin_pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- }
- ds_send_data12.copyData(ds_main_ptin, false);
- erasePrefix(ds_send_data12, 'ptin_');
- dsf_createDs('ds_res');
- var oParam = {};
- oParam.id = "TXPMI00204";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqSetPtinInfo";
- oParam.inds = "ptin=ds_send_data12";
- oParam.outds = "ds_res=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00204") > -1) {
- ds_send_data12.clearData();
- }
- }
- }
- }
- /**
- * [fInDeciPrint description]
- * @param {[type]} vpid [description]
- * @param {[type]} vinrsrvacptdd [description]
- * @param {[type]} vorddeptcd [description]
- * @param {[type]} vdeciflag [description]
- * @return {[type]} [description]
- */
- function fInDeciPrint(vpid, vinrsrvacptdd, vorddeptcd, vdeciflag) {
- dsf_createDsRow('ds_hidden_h_deciprint_deciprint', [
- { col: 'indd', type: 'string', size: 256, val: '' }, //입원일 - 입원일시
- { col: 'inpath', type: 'string', size: 256, val: '' }, //입원경로
- { col: 'roomcd', type: 'string', size: 256, val: '' }, //입원병실
- { col: 'orddeptcd', type: 'string', size: 256, val: '' }, //진료과
- { col: 'orddrid', type: 'string', size: 256, val: '' }, //선택의
- { col: 'specordyn', type: 'string', size: 256, val: '' }, //선택의/지정의
- { col: 'pid', type: 'string', size: 256, val: '' }, //등록번호
- { col: 'hngnm', type: 'string', size: 256, val: '' }, //환자성명
- { col: 'rrgstno', type: 'string', size: 256, val: '' }, //주민번호
- { col: 'sex', type: 'string', size: 256, val: '' }, //성별1
- { col: 'religncd', type: 'string', size: 256, val: '' }, //종교
- { col: 'address', type: 'string', size: 256, val: '' }, //주소 = 상위주소 + 하위주소
- { col: 'hometel', type: 'string', size: 256, val: '' }, //전화번호
- { col: 'mpphontel', type: 'string', size: 256, val: '' }, //휴대폰
- { col: 'insukind', type: 'string', size: 256, val: '' }, //보험유형
- { col: 'insucd', type: 'string', size: 256, val: '' }, //기관기호
- { col: 'insuno', type: 'string', size: 256, val: '' }, //증번호
- { col: 'insdnm', type: 'string', size: 256, val: '' }, //세대주(피보험자)
- { col: 'diagcd', type: 'string', size: 256, val: '' }, //상병코드
- { col: 'termhngnm', type: 'string', size: 256, val: '' }, //상병명
- { col: 'inschedd', type: 'string', size: 256, val: '' }, //입원예정일
- { col: 'opschedd', type: 'string', size: 256, val: '' }, //수술예정일
- { col: 'indirecdrnm', type: 'string', size: 256, val: '' }, //의뢰자
- { col: 'inrsrvacptdt', type: 'string', size: 256, val: '' },//의뢰일시
- { col: 'handicapryn1', type: 'string', size: 256, val: '' },//장애인유무체크
- { col: 'handicapryn2', type: 'string', size: 256, val: '' },//장애인유무체크
- { col: 'inrsrvrem', type: 'string', size: 256, val: '' }, //원무참고사항
- { col: 'cnstyn', type: 'string', size: 256, val: '' }, //의뢰서제출여부
- { col: 'rareobstflag', type: 'string', size: 256, val: '' },//희귀난치
- { col: 'disregprson3', type: 'string', size: 256, val: '' } //차상위
- ], false);
- dsf_createDsRow('ds_send_data40', [
- { col: 'pid', type: 'string', size: 256, val: pid },
- { col: 'inrsrvacptdd', type: 'string', size: 256, val: inrsrvacptdd },
- { col: 'orddeptcd', type: 'string', size: 256, val: orddeptcd },
- { col: 'deciflag', type: 'string', size: 256, val: deciflag }
- ], false);
- dsf_createDs('ds_res');
- var oParam = {};
- oParam.id = "TRPMI01201";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetInDeciPrintRef";
- oParam.inds = "req=ds_send_data40";
- oParam.outds = "ds_res=deciprint";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI01201") > -1) {
- ds_hidden_h_deciprint_deciprint.copyRow(0, ds_res, 0);
- var indd = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "indd"));
- if (indd != '' && indd != " ") {
- var s_indd = indd.substr(0, 4) + "-" +
- indd.substr(4, 2) + "-" +
- indd.substr(6, 2);
- ds_hidden_h_deciprint_deciprint.setColumn(0, "indd", s_indd);
- }
- var rrgstno = String(ds_hidden_h_deciprint_deciprint.getColumn(0, "rrgstno"));
- var s_rrgstno = rrgstno.substr(0, 6) + "-" + rrgstno.substr(6, 7);
- ds_hidden_h_deciprint_deciprint.setColumn(0, "rrgstno", s_rrgstno);
- var sinschedd = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "inschedd"));
- var sopschedd = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "opschedd"));
- var sinrsrvacptdt = utlf_transNullToEmpty(ds_hidden_h_deciprint_deciprint.getColumn(0, "inrsrvacptdt"));
- var s_inrsrvacptdt = sinrsrvacptdt.substr(0, 4) + "/" +
- sinrsrvacptdt.substr(4, 2) + "/" +
- sinrsrvacptdt.substr(6, 2) + " " +
- sinrsrvacptdt.substr(8, 2) + ":" +
- sinrsrvacptdt.substr(10, 2);
- ds_hidden_h_deciprint_deciprint.setColumn(0, "inrsrvacptdt", "");
- if (sinschedd != "" && sinschedd != " ") {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "inschedd",
- sinschedd.substr(0, 4) + "년" + " " + sinschedd.substr(4, 2) + "월" + " " + sinschedd.substr(6.2) + "일");
- }
- if (sopschedd != "" && sopschedd != " ") {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "opschedd",
- sopschedd.substr(0, 4) + "년" + " " + sopschedd.substr(4, 2) + "월" + " " + sopschedd.substr(6.2) + "일");
- }
- if (sinrsrvacptdt != "" && sinrsrvacptdt != " ") {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "inrsrvacptdt", s_inrsrvacptdt);
- }
- }
- // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 시작
- var rsrvYn = ds_hidden.getColumn(0, "rsrvyn");
- if (rsrvYn == 'N') {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "inrsrvrem", "");
- ds_hidden_h_deciprint_deciprint.setColumn(0, "diagcd", "");
- ds_hidden_h_deciprint_deciprint.setColumn(0, "termhngnm", "");
- }
- // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 끝
- var sNhicRareobstflag = ds_main_nhicinfo.getColumn(0, "nhic_rareobstflag");
- var sNhicDisregprson3 = ds_main_nhicinfo.getColumn(0, "nhic_disregprson3");
- if (sNhicRareobstflag == "H") {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "rareobstflag", "희귀난치"); //희귀난치
- }
- else {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "rareobstflag", ""); //희귀난치
- }
- if (sNhicDisregprson3 == "32") {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "disregprson3", "차상위"); //차상위
- }
- else {
- ds_hidden_h_deciprint_deciprint.setColumn(0, "disregprson3", ""); //차상위
- }
- var sPrinter;
- var trayno;
- // 2009.06.19 - local에 설정된 파일을 우선시 한다.
- // print1:입원약정서, print2:입원환자카드, print3:선택신청
- var printInfo = pmifGetPrintSetting("print1");
- if (printInfo.length == 2) {
- sPrinter = printInfo[0];
- trayno = printInfo[1];
- }
- else {
- // 2008.09.21 입원약정서 출력용 프린터 이름 조회 - 최병진
- sPrinter = "";
- ds_send_data9.setColumn(0, "pam_code", "P0018");
- dsf_createDsRow('ds_TRPMI00118', [{ col: 'pam_code', type: 'string', size: 256, val: 'P0018' }], false);
- ds_hidden_printers_printer.clearData();
- var oParam = {};
- oParam.id = "TRPMI00118";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetPamCodeInfo";
- oParam.inds = "req=ds_TRPMI00118";
- oParam.outds = "ds_hidden_printers_printer=printer";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI00118") > -1) {
- sPrinter = ds_hidden_printers_printer.getColumn(0, "nm");
- if (utlf_isNull(sPrinter)) {
- sPrinter = "true";
- }
- }
- else {
- sPrinter = "true";
- }
- // 2009년 03월 24일, JHP, 트레이정보를 받아서 넣는다.
- trayno = ds_hidden_pam_printer.getColumn(0, "value");
- }
- // DOM 객체 설정
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/hidden/h_deciprint/deciprint", ds_hidden_h_deciprint_deciprint);
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPPMI01200"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SMPMI00200_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
-
- grdf_setGridSort(grd_inhpdeci);
- grdf_setGridSort(grd_inhprsspec);
- // 2009년 03월 20일, JHP
- // 서울성모이전으로 프린터를 2tray와 1tray짜리를 동시에 사용한다. 수납쪽(영수증, 중간계산서)은 1tray, 등록쪽(약정서, 입원카드)은 2tray를 쓰는데
- // 1트레이는 기본이므로 수납쪽은 그냥 둔다. 근데 2트레이는 렉스퍼트 출력시 트레이번호를 셋팅값으로 박아줘야하는데 프린터 정보는 동적으로 가지고 올수 없기때문에
- // 임의의 경로에 txt파일을 만들어 트레이값을 설정하여 저장하여놓고 불러와서 트레이번호를 매겨준다.
- // 이때 해당 파일이 없으면 해당파일을 사용자가 만들어준다.
- fSetPrinterTray();
- //20090602 JHP 추가_ 등급을 공통코드로 가져오는데 이는 입원료 수가 매핑과 관련해서 종료된 입원료를 컨트롤 할수 있는 소지가 있기에
- // 실제 수가와 매핑코드를 조회하여 살아있는 입원료 등급 코드를 가져온다.
- // 해당 조회를 실행한다음에 병실등급에 해당하는 콤보박스를 이걸로 바꾼다. 기존은 P0025(/root/init/P0025list/P0025)였다.
- var sUserInfosS = sysf_getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- //var posinstcd = UserInfosS_Array[2]; //소속기관코드
- //var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
- var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
- ds_send_data13.setColumn(0, "sess_posinstcd", posinstcd);
- ds_hidden_roomgrdelist_roomgrde.clearData();
- // 병실등급 조회
- var oParam = {};
- oParam.id = "TRPMI00405";
- oParam.service = "ipatmngtapp.InhospUpdt";
- oParam.method = "reqGetRoomGrdeInfoList";
- oParam.inds = "req=ds_send_data13";
- oParam.outds = "ds_hidden_roomgrdelist_roomgrde=roomgrdelist";
- oParam.async = false;
- tranf_submit(oParam);
- combo1.enable = false;
- appf_getCodeList([
- { dsNm: 'ds_init_P0001list', cdGrpId: 'P0001' },
- { dsNm: 'ds_init_P0008list', cdGrpId: 'P0008' },
- { dsNm: 'ds_init_P0025list', cdGrpId: 'P0025' },
- { dsNm: 'ds_init_P0026list', cdGrpId: 'P0026' },
- { dsNm: 'ds_init_P0149list', cdGrpId: 'P0149' },
- { dsNm: 'ds_init_P0039list', cdGrpId: 'P0039' },
- { dsNm: 'ds_init_P0378list', cdGrpId: 'P0378' },
- { dsNm: 'ds_init_P0474list', cdGrpId: 'P0474' }
- ]);
- // 2009.04.02 - 출력물 자동 출력여부를 위해서 원무공통코드조회
- pamfGetCodeList([{ dsNm: 'ds_init_pam_P0041list', cdGrpId: "P0041" }]);
- dsf_createDsRow('ds_TRPMI00106', [
- { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
- { col: 'ioflag', type: 'string', size: 256, val: '' },
- { col: 'dridsorttype', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00106.copyRow(0, ds_send_data3, 0);
- var oParam = {};
- oParam.id = "TRPMI00106";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_TRPMI00106";
- oParam.outds = "ds_hidden_init_disccd=disccd ds_hidden_init_insukind=insukind ds_hidden_init_suppkind=suppkind "
- + "ds_hidden_init_orddeptcd=orddeptcd ds_hidden_init_orddrid=orddrid ds_hidden_init_wardcd=wardcd "
- + "ds_hidden_init_roomcd=roomcd ds_hidden_init_roomgrdecd=roomgrdecd ds_hidden_init_roomtypecd=roomtypecd "
- + "ds_hidden_init_flag=flag ds_hidden_init_proccd=proccd";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_cmd_medispcl.copyData(ds_hidden_init_orddrid, false);
- ds_combo21.copyData(ds_hidden_init_orddrid, false);
- ds_cmb_rorddeptcd1.copyData(ds_hidden_init_orddeptcd.filter('orddeptflag == "D"'), true);
- ds_cmb_rorddeptcd2.copyData(ds_hidden_init_orddeptcd.filter('orddeptflag == "D"'), true);
- //2008.01.07 추가 요구사항 적용 - fromdd~todd으로 조회가능케. 조회날짜보다 작은경우포함해서 조회
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "inrsrvacpttodd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "patinhopetodd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- // 2009.04.08 - 공단체크여부 코드로 변경
- var sNhicYN = ds_init_pam_P0041list.getColumn(ds_init_pam_P0041list.findRow('cdid', 'A01'), "cdnm");
- ds_hidden.setColumn(0, "nhicyn", sNhicYN); // 공단체크
- // 2009.08.05 - zzui - 입원약정서 상병,참고사항 숨김(성가만 적용) - 시작
- var rsrvYN = ds_init_pam_P0041list.getColumn(ds_init_pam_P0041list.findRow('cdid', 'F01'), "cdnm");
- ds_hidden.setColumn(0, "rsrvyn", rsrvYN);
- //현황판에서 입원예약 클릭시 팝업연결하기 위해 구현..
- ds_hidden_source.copyData(arg_ds_source, false);
- var adrv_pid = utlf_transNullToEmpty(ds_hidden_source.getColumn(0, "pid"));
- if (adrv_pid == "" || adrv_pid == " ") {
- // do nothing
- }
- else {
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_main_ptbspatinfo.setColumn(0, "pid", adrv_pid);
- ds_send_data4.setColumn(0, "pid", adrv_pid);
- ds_send_data4.setColumn(0, "mode", "0");
- //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
- ds_send_data5.setColumn(0, "pid", adrv_pid);
- ds_send_data5.setColumn(0, "srchcond", "1")
- ds_hidden_rcv_ptbspatinfo.clearData();
- ds_hidden_rcv_adrv.clearData();
- //dsf_setTypeFormat(ds_send_data4, "inrsrvacptseqno:INT^mode:INT");
- var oParam = {};
- oParam.id = "TRPMI00204";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetInRsrvDetlSpec";
- oParam.inds = "req=ds_send_data4";
- oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI00204") > -1) {
- ds_hidden_rcv_ptbspatinfo.updateColID('ptbsremfact', 'remfact');
- var iptbscnt = ds_hidden_rcv_ptbspatinfo.rowcount;
- var iadrvcnt = ds_hidden_rcv_adrv.rowcount;
- if (iptbscnt > 0) {
- ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
- }
- else {
- sysf_messageBox("환자인적이", "I004");
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- return false;
- }
- if (iadrvcnt > 0) {
- ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
- ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
- }
- else {
- sysf_messageBox("입원결정서 또는 입원예약 내용이", "I004");
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- return false;
- }
- var inrsrvstat_flag = ds_main_adrv.getColumn(0, "inrsrvstat");
- //결정서내역이면
- if (inrsrvstat_flag == "S") {
- btn_update.enable = false;
- btn_cncl.enable = false;
- btn_insert.enable = true;
- }
- else if (inrsrvstat_flag == "R") {
- btn_update.enable = true;
- btn_cncl.enable = true;
- btn_insert.enable = false;
- }
- }
- }
- }
- /**
- * [인적사항] 환자번호 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
- //fGetPidInfo(); 밑에부분전체가 이 함수와 같다. 20100413 JHP
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data6.clearData();
- ds_send_data6.addRow()
- ds_send_data7.clearData();
- ds_send_data7.addRow()
- ds_send_data8.clearData();
- ds_send_data8.addRow()
- var pid = ds_main_ptbspatinfo.getColumn(0, 'pid');
- //model.setValue("/root/main/ptbspatinfo/pid", ipt_pid.currentText);
- ds_send_data4.setColumn(0, "pid", pid);
- ds_send_data4.setColumn(0, "mode", "0");
- //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
- ds_send_data5.setColumn(0, "pid", pid);
- ds_send_data5.setColumn(0, "srchcond", "1")
- fPatRsrvInfoSrch();
- //20100115 jhp 수정추가 변경요청번호 3258 인사정보의 직원, 직원가족정보 조회
- fPatEmplInfoRef();
- //2008-04-14 이성인 추가
- //인적사항 조회시 자동으로 입원결정서 , 입원예약내역을 조회하여온다.
- if (isNull(pid)) {
- fInitialize();
- }
- else {
- var temp = ds_send_data1.getColumn(0, "inrsrvacptfromdd");
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
- ds_send_data1.setColumn(0, "pid", pid);
- ds_send_data1.setColumn(0, "s_checkflag", "false");
- fSQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", "");
- ds_send_data2.setColumn(0, "pid", pid);
- ds_send_data2.setColumn(0, "r_checkflag", "false");
- fRQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", temp);
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", temp);
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- // 보험정보 조회
- fGetPtinInfo();
- }
- }
- }
- /**
- * [인적사항] 환자번호 검색 아이콘 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_pid_onclick(obj: Button, e: ClickEventInfo) {
- var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
- if (ptbs_pid == " " || ptbs_pid == "") {
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow()
- ds_main_adrv.clearData();
- ds_main_adrv.addRow()
- }
- }
- else {
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data5.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data5.setColumn(0, "srchcond", "1")
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow()
- ds_main_adrv.clearData();
- ds_main_adrv.addRow()
- }
- }
- }
- /**
- * [인적사항] ipt_rrgstno1 포커스 상실 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KillFocusEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_rrgstno1_onkillfocus(obj: Edit, e: KillFocusEventInfo) {
- if (!fRrgstNo1Veri()) {
- return;
- }
- }
- /**
- * [인적사항] ipt_rrgstno1 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_rrgstno1_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
- if (!fRrgstNo1Veri()) {
- return;
- }
- }
- }
- /**
- * [인적사항] ipt_rrgstno2 포커스 상실 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KillFocusEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_rrgstno2_onkillfocus(obj: Edit, e: KillFocusEventInfo) {
- if (!fRrgstNo2Veri()) {
- return;
- }
- }
- /**
- * [인적사항] ipt_rrgstno2 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_rrgstno2_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode == 13) {
- obj.updateToDataset();
- if (!fRrgstNo2Veri()) {
- return;
- }
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data6.clearData();
- ds_send_data6.addRow();
- ds_send_data7.clearData();
- ds_send_data7.addRow();
- ds_send_data8.clearData();
- ds_send_data8.addRow();
- // ds_main_ptbspatinfo.setColumn(0, "rrgstno1", ipt_rrgstno1.currentText);
- // ds_main_ptbspatinfo.setColumn(0, "rrgstno2", ipt_rrgstno2.currentText);
- ds_send_data8.setColumn(0, "rrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- ds_send_data8.setColumn(0, "rrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
- ds_send_data8.setColumn(0, "mode", "1");
- dsf_createDsRow('ds_TRPMI00107', [
- { col: 'mode', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'hngnm', type: 'string', size: 256, val: '' },
- { col: 'rrgstno1', type: 'string', size: 256, val: '' },
- { col: 'rrgstno2', type: 'string', size: 256, val: '' },
- { col: 'orddd', type: 'string', size: 256, val: '' },
- { col: 'ioflag', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00107.copyRow(0, ds_send_data8, 0);
- ds_TRPMI00107.setColumn(0, 'orddd', ds_send_data8.getColumn(0, 'indd'));
- ds_hidden_check_ptbs.clearData();
- var oParam = {};
- oParam.id = "TRPMI00107";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetInRgPatInfo";
- oParam.inds = "req=ds_TRPMI00107";
- 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";
- oParam.async = false;
- tranf_submit(oParam);
- var ptbs_chkcnt = ds_hidden_check_ptbs.rowcount;
- if (ptbs_chkcnt > 0) {
- //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
- if (ptbs_chkcnt > 1) {
- ds_send_data5.setColumn(0, "rrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- ds_send_data5.setColumn(0, "rrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
- ds_send_data5.setColumn(0, "srchcond", "3");
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- return false;
- }
- }
- else {
- ds_send_data3.clearData();
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_hidden_check_ptbs.getColumn(0, "ptbs_pid"));
- ds_main_ptbspatinfo.setColumn(0, "hngnm", ds_hidden_check_ptbs.getColumn(0, "ptbs_hngnm"));
- ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- }
- else {
- sysf_messageBox("환자인적이", "I004");
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- return false;
- }
- }
- }
- /**
- * [인적사항] 주민번호 검색 아이콘 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_rrgstno_onclick(obj: Button, e: ClickEventInfo) {
- var ptbs_rrgstno1 = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- var ptbs_rrgstno2 = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
- if ((ptbs_rrgstno1 == "" || ptbs_rrgstno1 == " ") && (ptbs_rrgstno2 == "" || ptbs_rrgstno2 == " ")) {
- ds_send_data5.clearData();
- ds_send_data5.addRow();
-
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow()
- ds_main_adrv.clearData();
- ds_main_adrv.addRow()
- }
- }
- else {
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data5.setColumn(0, "rrgstno1", ds_patinfolist.getColumn(0, "rrgstno1"));
- ds_send_data5.setColumn(0, "rrgstno2", ds_patinfolist.getColumn(0, "rrgstno2"));
- ds_send_data5.setColumn(0, "srchcond", "3")
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow()
- ds_main_adrv.clearData();
- ds_main_adrv.addRow()
- }
- }
- }
- /**
- * [인적사항] 성명 키보드 입력 이벤트
- * @param {[type]} obj: Edit [description]
- * @param {[type]} e: KeyEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_hngnm_onkeydown(obj: Edit, e: KeyEventInfo) {
- if (e.keycode != 13) {
- return;
- }
- obj.updateToDataset();
- /*
- data1 입원결정서 조회, data2 입원예약조회, data3 ready시 기본값 조회, data4 그리드 클릭시 조회
- data5 팝업 조회 data6 저장 data7 data8 성명,주민번호 조회시
- */
- if (!fHngNmVeri("onkeypress")) {
- return;
- }
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data6.clearData();
- ds_send_data6.addRow();
- ds_send_data7.clearData();
- ds_send_data7.addRow();
- ds_send_data8.clearData();
- ds_send_data8.addRow();
- var hngnm = ds_main_ptbspatinfo.getColumn(0, 'hngnm');
- ds_send_data8.setColumn(0, "hngnm", hngnm);
- ds_send_data8.setColumn(0, "mode", "1");
- dsf_createDsRow('ds_TRPMI00107', [
- { col: 'mode', type: 'string', size: 256, val: '' },
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'hngnm', type: 'string', size: 256, val: '' },
- { col: 'rrgstno1', type: 'string', size: 256, val: '' },
- { col: 'rrgstno2', type: 'string', size: 256, val: '' },
- { col: 'orddd', type: 'string', size: 256, val: '' },
- { col: 'ioflag', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' }
- ], false);
- ds_TRPMI00107.copyRow(0, ds_send_data8, 0);
- ds_TRPMI00107.setColumn(0, 'orddd', ds_send_data8.getColumn(0, 'indd'));
- ds_hidden_check_ptbs.clearData();
- var oParam = {};
- oParam.id = "TRPMI00107";
- oParam.service = "ipatmngtapp.InRgst";
- oParam.method = "reqGetInRgPatInfo";
- oParam.inds = "req=ds_TRPMI00107";
- 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";
- oParam.async = false;
- tranf_submit(oParam);
- var ptbs_chkcnt = ds_hidden_check_ptbs.rowcount;
- if (ptbs_chkcnt > 0) {
- //ptbs의 자료가 한개이상일 경우 팝업을 띄워준다.
- if (ptbs_chkcnt > 1) {
- ds_send_data5.setColumn(0, "hngnm", hngnm);
- ds_send_data5.setColumn(0, "srchcond", "2");
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- return false;
- }
- }
- else {
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_main_ptbspatinfo.setColumn(0, "pid", ds_hidden_check_ptbs.getColumn(0, "ptbs_pid"));
- ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- }
- else {
- sysf_messageBox("환자인적이", "I004");
- ds_main_ptbspatinfo.clearData();
- ds_main_adrv.clearData();
- return false;
- }
- }
- /**
- * [인적사항] 성명 검색 아이콘 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_hngnm_onclick(obj: Button, e: ClickEventInfo) {
- var ptbs_hngnm = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "hngnm"));
- if (ptbs_hngnm == '' || ptbs_hngnm == " ") {
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.getColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- }
- }
- else {
- ds_send_data5.clearData();
- ds_send_data5.addRow();
- ds_send_data5.setColumn(0, "hngnm", ds_main_ptbspatinfo.getColumn(0, "hngnm"));
- ds_send_data5.setColumn(0, "srchcond", "2")
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- if (ds_main.getColumn(0,"popupendflag") == "ok"){
- ds_main_ptbspatinfo.getColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data4.setColumn(0, "mode", "0");
- fPatRsrvInfoSrch();
- }
- else {
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- }
- }
- }
- /**
- * [인적사항] 우편번호 검색 아이콘 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button37_onclick(obj: Button, e: ClickEventInfo) {
- var sZipcd = appf_getZipCodeList();
- ds_main_ptbspatinfo.setColumn(0, "zipcd1", sZipcd.zipcdhead);
- ds_main_ptbspatinfo.setColumn(0, "zipcd2", sZipcd.zipcdfoot);
- ds_main_ptbspatinfo.setColumn(0, "zipcdseq", sZipcd.seqno); //미확인
- ds_main_ptbspatinfo.setColumn(0, "zipnm", sZipcd.address); //sZipcd.address
- ds_main_ptbspatinfo.setColumn(0, "detladdr", sZipcd.address_detail); //sZipcd.detladdr
- //20070907 팝업에서 데이터 더블클릭후 메인으로 넘어간 후에는 커서 하위조소로 이동 요청..
- var ptbs_zipnm = utlf_transNullToEmpty(ds_main_ptbspatinfo(0, "zipnm"));
- if (ptbs_zipnm != "" && ptbs_zipnm != " " && ptbs_zipnm != "-") {
- ipt_detladdr.setFocus();
- }
- }
- /**
- * [인적사항] 환자인적 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button1_onclick(obj: Button, e: ClickEventInfo) {
- ds_send_data5.setColumn(0, "srchcond", "1");
- ds_send_data5.setColumn(0, "pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- }
- /**
- * [인적사항] 인적사항변경 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button5_onclick(obj: Button, e: ClickEventInfo) {
- var sPid = ds_main_ptbspatinfo.getColumn(0, "pid");
- var sHngnm = ds_main_ptbspatinfo.getColumn(0, "hngnm");
- var sRrgstno1 = ds_main_ptbspatinfo.getColumn(0, "rrgstno1");
- var sRrgstno2 = ds_main_ptbspatinfo.getColumn(0, "rrgstno2");
- if (isNull(sPid)) {
- sysf_messageBox("환자 조회후에 인적사항을 변경하십시요!", "E999", "");
- return;
- }
- if (isNull(sHngnm)) {
- sysf_messageBox("성명을 입력하십시오!", "E999", "");
- return;
- }
- if (isNull(sRrgstno1)) {
- sysf_messageBox("주민번호 앞자리를 입력하십시오!", "E999", "");
- return;
- }
- if (isNull(sRrgstno2)) {
- sysf_messageBox("주민번호 뒷자리를 입력하십시오!", "E999", "");
- return;
- }
- ds_send_data10.setColumn(0, "sess_userid", getUserId());
- ds_send_data10.setColumn(0, "sess_dutplceinstcd", getUserInfo("dutplceinstcd"));
- ds_send_data10.setColumn(0, "ptbs_pid", ds_main_ptbspatinfo.getColumn(0, "pid"));
- ds_send_data10.setColumn(0, "ptbs_hngnm", ds_main_ptbspatinfo.getColumn(0, "hngnm"));
- ds_send_data10.setColumn(0, "ptbs_engnm", ds_main_ptbspatinfo.getColumn(0, "engnm"));
- ds_send_data10.setColumn(0, "ptbs_rrgstno1", ds_main_ptbspatinfo.getColumn(0, "rrgstno1"));
- ds_send_data10.setColumn(0, "ptbs_rrgstno2", ds_main_ptbspatinfo.getColumn(0, "rrgstno2"));
- ds_send_data10.setColumn(0, "ptbs_brthdd", ds_main_ptbspatinfo.getColumn(0, "brthdd"));
- ds_send_data10.setColumn(0, "ptbs_sex", ds_main_ptbspatinfo.getColumn(0, "sex"));
- ds_send_data10.setColumn(0, "ptbs_age", ds_main_ptbspatinfo.getColumn(0, "age"));
- ds_send_data10.setColumn(0, "ptbs_hometel", ds_main_ptbspatinfo.getColumn(0, "hometel"));
- ds_send_data10.setColumn(0, "ptbs_mpphontel", ds_main_ptbspatinfo.getColumn(0, "mpphontel"));
- ds_send_data10.setColumn(0, "ptbs_zipcd1", ds_main_ptbspatinfo.getColumn(0, "zipcd1"));
- ds_send_data10.setColumn(0, "ptbs_zipcd2", ds_main_ptbspatinfo.getColumn(0, "zipcd2"));
- ds_send_data10.setColumn(0, "ptbs_zipcdseq", ds_main_ptbspatinfo.getColumn(0, "zipcdseq"));
- ds_send_data10.setColumn(0, "ptbs_zipnm", ds_main_ptbspatinfo.getColumn(0, "zipnm"));
- ds_send_data10.setColumn(0, "ptbs_detladdr", ds_main_ptbspatinfo.getColumn(0, "detladdr"));
- ds_send_data10.setColumn(0, "ptbs_forgeryn", ds_main_ptbspatinfo.getColumn(0, "forgeryn"));
- ds_send_data10.setColumn(0, "ptbs_recmyn", ds_main_ptbspatinfo.getColumn(0, "recmyn"));
- ds_send_data10.setColumn(0, "ptbs_recmerid", ds_main_ptbspatinfo.getColumn(0, "recmerid"));
- ds_send_data10.setColumn(0, "ptbs_vipyn", ds_main_ptbspatinfo.getColumn(0, "vipyn"));
- ds_send_data10.setColumn(0, "ptbs_religncd", ds_main_ptbspatinfo.getColumn(0, "religncd"));
- ds_send_data10.setColumn(0, "ptbs_refact", ds_main_ptbspatinfo.getColumn(0, "remfact"));
- ds_send_data10.setColumn(0, "ptbs_inhospyn", ds_main_ptbspatinfo.getColumn(0, "inhospyn"));
- ds_send_data10.setColumn(0, "ptbs_disccd", ds_main_ptbspatinfo.getColumn(0, "disccd"));
- // 20100114 수정추가 JHP 인적사항 변경시 우편번호 상위주소(zipcdaddr)값을 셋팅을 안해서 계속 '-'형태로 들어가고 있었음.
- // 하여 추가함. pamlib쪽을 태우기에 그쪽에 맞게 인스턴스명으로 넘김.
- ds_send_data10.setColumn(0, "ptbs_highaddr", ds_main_ptbspatinfo.getColumn(0, "zipnm"));
- dsf_createDsRow('ds_TXPMO00104', [
- { col: 'sess_userid', type: 'string', size: 256, val: '' },
- { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
- { col: 'pid_flag', type: 'string', size: 256, val: '' },
- { col: 'ptbs_pid', type: 'string', size: 256, val: '' },
- { col: 'ptbs_instcd', type: 'string', size: 256, val: '' },
- { col: 'ptbs_hngnm', type: 'string', size: 256, val: '' },
- { col: 'ptbs_engnm', type: 'string', size: 256, val: '' },
- { col: 'ptbs_chinm', type: 'string', size: 256, val: '' },
- { col: 'old_rrgstno1', type: 'string', size: 256, val: '' },
- { col: 'old_rrgstno2', type: 'string', size: 256, val: '' },
- { col: 'ptbs_rrgstno1', type: 'string', size: 256, val: '' },
- { col: 'ptbs_rrgstno2', type: 'string', size: 256, val: '' },
- { col: 'ptbs_brthdd', type: 'string', size: 256, val: '' },
- { col: 'ptbs_sex', type: 'string', size: 256, val: '' },
- { col: 'ptbs_age', type: 'string', size: 256, val: '' },
- { col: 'ptbs_bindpid', type: 'string', size: 256, val: '' },
- { col: 'ptbs_hometel', type: 'string', size: 256, val: '' },
- { col: 'ptbs_mpphontel', type: 'string', size: 256, val: '' },
- { col: 'ptbs_etctel1', type: 'string', size: 256, val: '' },
- { col: 'ptbs_etctel2', type: 'string', size: 256, val: '' },
- { col: 'ptbs_smsaprvyn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_email', type: 'string', size: 256, val: '' },
- { col: 'ptbs_zipcd1', type: 'string', size: 256, val: '' },
- { col: 'ptbs_zipcd2', type: 'string', size: 256, val: '' },
- { col: 'ptbs_zipcdseq', type: 'string', size: 256, val: '' },
- { col: 'ptbs_highaddr', type: 'string', size: 256, val: '' },
- { col: 'ptbs_detladdr', type: 'string', size: 256, val: '' },
- { col: 'ptbs_btype', type: 'string', size: 256, val: '' },
- { col: 'ptbs_rh', type: 'string', size: 256, val: '' },
- { col: 'ptbs_forgeryn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_nati', type: 'string', size: 256, val: '' },
- { col: 'ptbs_psptno', type: 'string', size: 256, val: '' },
- { col: 'ptbs_recmyn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_recmerid', type: 'string', size: 256, val: '' },
- { col: 'ptbs_recmernm', type: 'string', size: 256, val: '' },
- { col: 'ptbs_vipyn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_viprem', type: 'string', size: 256, val: '' },
- { col: 'ptbs_religncd', type: 'string', size: 256, val: '' },
- { col: 'ptbs_baptnm', type: 'string', size: 256, val: '' },
- { col: 'ptbs_chchnm', type: 'string', size: 256, val: '' },
- { col: 'ptbs_dethyn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_dethdt', type: 'string', size: 256, val: '' },
- { col: 'ptbs_chosresn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_animyn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_exptresncd', type: 'string', size: 256, val: '' },
- { col: 'ptbs_inhospyn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_handicapryn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_kioskrcptnoyn', type: 'string', size: 256, val: '' },
- { col: 'ptbs_carnum', type: 'string', size: 256, val: '' },
- { col: 'ptbs_remfact', type: 'string', size: 256, val: '' },
- { col: 'ptbs_acptdd', type: 'string', size: 256, val: '' },
- { col: 'ptbs_acptno', type: 'string', size: 256, val: '' },
- { col: 'ptbs_fstrgstrid', type: 'string', size: 256, val: '' },
- { col: 'ptbs_fstrgstdt', type: 'string', size: 256, val: '' },
- { col: 'ptbs_lastupdtrid', type: 'string', size: 256, val: '' },
- { col: 'ptbs_lastupdtdt', type: 'string', size: 256, val: '' },
- { col: 'ptbs_ipaddr', type: 'string', size: 256, val: '' },
- { col: 'ptbs_builno', type: 'string', size: 256, val: '' }
- ], false);
- ds_TXPMO00104.copyRow(0, ds_send_data10, 0);
- ds_TXPMO00104.setColumn(0, 'sess_posinstcd', ds_send_data10.getColumn(0, 'sess_dutplceinstcd'));
- ds_TXPMO00104.setColumn(0, 'old_rrgstno1', ds_send_data10.getColumn(0, 'rgstno1'));
- ds_TXPMO00104.setColumn(0, 'old_rrgstno2', ds_send_data10.getColumn(0, 'rgstno2'));
- ds_hidden_rcv_ptbs.clearData();
- var oParam = {};
- oParam.id = "TXPMO00104";
- oParam.service = "opatmngtapp.OPatMngt";
- oParam.method = "reqSetPatInfo";
- oParam.inds = "req=ds_TXPMO00104";
- oParam.outds = "ds_hidden_rcv_ptbs=ptbs";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMO00104") > -1) {
- ds_send_data10.clearData();
- sysf_messageBox("저장되었습니다!", "I");
- }
- }
- /**
- * 결정서저장 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button4_onclick(obj: Button, e: ClickEventInfo) {
- // 입원결정서 상태에서 내용 저장
- /*
- 1. 입원예약 시 로직을 이용한다 - flag로 구분하여 사용
- 2. 상태가 '결정서'일때만 저장할 수 있도록 제한
- */
- var sPid = ds_main_ptbspatinfo.getColumn(0, "pid");
- if (isNull(sPid)) {
- sysf_messageBox("입원결정서 선택 후 저장하십시오!", "I");
- return;
- }
- var sRsrvStat = ds_main_adrv.getColumn(0, "inrsrvstat");
- if (sRsrvStat == "R") {
- sysf_messageBox("입원예약된 상태입니다. 예약변경하십시오!", "I");
- return;
- }
- ds_main_adrv.setColumn(0, "rsrvflag", "SS");
- ds_main_adrv.setColumn(0, "status", "U");
- dsf_createDsRow('ds_TXPMI00201', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'status', type: 'string', size: 256, val: '' },
- { col: 'rsrvflag', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
- { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
- { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'suppkind', type: 'string', size: 256, val: '' },
- { col: 'suppkindresn', type: 'string', size: 256, val: '' },
- { col: 'insuno', type: 'string', size: 256, val: '' },
- { col: 'indirecdrid', type: 'string', size: 256, val: '' },
- { col: 'indirecdd', type: 'string', size: 256, val: '' },
- { col: 'orddrid', type: 'string', size: 256, val: '' },
- { col: 'inhopedd', type: 'string', size: 256, val: '' },
- { col: 'patinhopedd', type: 'string', size: 256, val: '' },
- { col: 'inhopeward', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
- { col: 'assgward', type: 'string', size: 256, val: '' },
- { col: 'assgroom', type: 'string', size: 256, val: '' },
- { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
- { col: 'assgroomtype', type: 'string', size: 256, val: '' },
- { col: 'inflag', type: 'string', size: 256, val: '' },
- { col: 'drgyn', type: 'string', size: 256, val: '' },
- { col: 'bmtyn', type: 'string', size: 256, val: '' },
- { col: 'cpyn', type: 'string', size: 256, val: '' },
- { col: 'cpcd', type: 'string', size: 256, val: '' },
- { col: 'fcstinterm', type: 'string', size: 256, val: '' },
- { col: 'erreglyn', type: 'string', size: 256, val: '' },
- { col: 'isolroomyn', type: 'string', size: 256, val: '' },
- { col: 'oxyyn', type: 'string', size: 256, val: '' },
- { col: 'suctyn', type: 'string', size: 256, val: '' },
- { col: 'specroomyn', type: 'string', size: 256, val: '' },
- { col: 'scheopdd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
- { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
- { col: 'drrem', type: 'string', size: 256, val: '' },
- { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
- { col: 'incncldd', type: 'string', size: 256, val: '' },
- { col: 'incncltm', type: 'string', size: 256, val: '' },
- { col: 'nblsyn', type: 'string', size: 256, val: '' },
- { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
- { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
- { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
- { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
- { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
- { col: 'clincstdyno', type: 'string', size: 256, val: '' },
- { col: 'ocrtag', type: 'string', size: 256, val: '' },
- { col: 'centcd', type: 'string', size: 256, val: '' },
- { col: 'subdeptcd', type: 'string', size: 256, val: '' },
- { col: 'coopteamcd', type: 'string', size: 256, val: '' },
- { col: 'wardtypecd', type: 'string', size: 256, val: '' },
- { col: 'specwardcd', type: 'string', size: 256, val: '' },
- { col: 'ampmflag', type: 'string', size: 256, val: '' },
- { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
- { col: 'specordtype', type: 'string', size: 256, val: '' }
- ], false);
- ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
- dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
- ds_hidden_rsltflag.clearData();
- var oParam = {};
- oParam.id = "TXPMI00201";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqExeInhpRsrv";
- oParam.inds = "s_adrv=ds_TXPMI00201";
- oParam.outds = "ds_hidden_rsltflag=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00201") > -1) {
- sysf_messageBox("저장되었습니다.", "I");
- //inputEnterKey("ipt_pid", "onkeypress");
- // 결정서저장이후에 인적사항의 환자번호로 조회하는 로직 으로 refresh한다. 수정 JHP 20100413
- // 위의 내용이 발생을 하지 않아 해당내용 함수로 만들어 처리함.
- fGetPidInfo();
- }
- }
- /**
- * [입원예약상세내역] 입원희망일[환자] 날자 변경 이벤트
- * @param {[type]} obj: Calendar [description]
- * @param {[type]} e: ChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_patinhopedd_onchanged(obj: Calendar, e: ChangeEventInfo) {
- //2008-04-14 이성인 수정
- if (parseInt(utlf_getCurrentDate()) - parseInt(e.postvalue) > 0) {
- ipt_patinhopedd.value = ipt_patinhopedd.attribute("_value");
- ds_main_adrv.setColumn(0, 'patinhopedd', utlf_getCurrentDate());
- sysf_messageBox("입원희망일은 현재일자 보다 과거일수 없습니다.", "E999", "");
- return false;
- }
- }
- /**
- * [입원예약상세내역] 희망병동 검색 아이콘 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_inhopeward_onclick(obj: Button, e: ClickEventInfo) {
- ds_hidden_target.clearData();
- ds_hidden_target.addRow();
- var inhopeward = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, 'inhopeward'));
- if (inhopeward != "") {
- frmf_modal("SPPMI02000", "SPPMI02000", { arg_hidden_target: { wardcd: inhopeward } }, "", "", "", "", "", "", "", "", "", "M");
- var swardcd = ds_hidden_target_grdroomspec.getColumn(0, "wardcd");
- if (!utlf_isNull(swardcd)) {
- ds_main_adrv.setColumn(0, "inhoperoomgrdefrom", ds_hidden_target_grdroomspec.getColumn(0, "roomgrdecd"));
- model.refresh();
- }
- }
- }
- /**
- * [입원예약상세내역] 병실등급FROM 콤보 아이템 변경 후 이벤트
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function cmb_inhoperoomgrdefrom_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- //20090720 - zzu - cdnm 공통코드기준아닌 수가기준으로 보여주기
- var cdid = e.postvalue;
- var row = ds_hidden_roomgrdelist_roomgrde.findRow('cdid', cdid);
- var yn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "yn");
- var cdyn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdyn");
- var cdnm = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdnm");
- if (yn == "종료됨" || cdyn == "종료됨") {
- sysf_messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ", "I007");
- }
- }
- /**
- * [입원예약상세내역] 병실등급TO 콤보 아이템 변경 후 이벤트
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function cmb_inhoperoomgrdeto_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- //20090720 - zzu - cdnm 공통코드기준아닌 수가기준으로 보여주기
- var cdid = e.postvalue;
- var row = ds_hidden_roomgrdelist_roomgrde.findRow('cdid', cdid);
- var yn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "yn");
- var cdyn = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdyn");
- var cdnm = ds_hidden_roomgrdelist_roomgrde.getColumn(row, "cdnm");
- if (yn == "종료됨" || cdyn == "종료됨") {
- sysf_messageBox("'" + cdnm + "' \n\n수가코드 종료된 병실등급입니다.!!!!!!!!!!!!! ", "I007");
- }
- }
- /**
- * 입원결정일자 cmb_rorddeptcd1 콤보 아이템 변경 후 이벤트
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function cmb_rorddeptcd1_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- var sorddeptcd = utlf_transNullToEmpty(ds_send_data1.getColumn(0, "sorddeptcd"));
- if (sorddeptcd == '' || sorddeptcd == " ") {
- ds_hidden_init_orddrid.filter('');
- ds_cmd_medispcl.copyData(ds_hidden_init_orddrid, true);
- }
- else {
- ds_hidden_init_orddrid.filter('dp == "' + sorddeptcd + '" && (jobposcd = 1782 || jobposcd = 1784 || jobposcd = 1786 || jobposcd = 1788 '
- + '|| jobposcd = 1847 || jobposcd = 1848 || jobposcd = 1849 || jobposcd = 1850)');
- ds_cmd_medispcl.copyData(ds_hidden_init_orddrid, true);
- ds_hidden_init_orddrid.filter('');
- }
- }
- /**
- * [입원결정일자] cmd_medispcl 콤보 아이템 변경 후 이벤트
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function grp1_cmd_medispcl_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- var adrv_orddeptcd = utlf_transNullToEmpty(ds_send.getColumn(0, "sorddeptcd"));
- if (adrv_orddeptcd == '' || adrv_orddeptcd == "-") {
- ds_send.setColumn("sorddeptcd", "");
- grp1.cmb_rorddeptcd1.setFocus();
- return;
- }
- }
- /**
- * bol_checkdd1 체크박스 클릭 이벤트
- * @param {[type]} obj: CheckBox [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp1_bol_checkdd1_onclick(obj: CheckBox, e: ClickEventInfo) {
- var value = ds_send_data1.getColumn(0, 's_checkflag');
- if (value == 'Y') {
- grp1.caption3.visible = true;
- grp1.ipt_inrsrvfromdd.visible = true;
- grp1.ipt_inrsrvtodd.visible = true;
- ds_send_data1.setColumn(0, "inrsrvacpttodd", utlf_getCurrentDate());
- }
- else {
- grp1.caption3.visible = false;
- grp1.ipt_inrsrvtodd.visible = false;
- ds_send_data1.setColumn(0, "inrsrvacpttodd", "");
- }
- }
- /**
- * btn_search1 button click event
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_search1_onclick(obj: Button, e: ClickEventInfo) {
- ds_send_data1.setColumn(0, "pid", "");
- //예약정보 삭제 2008.05.02 한윤희
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- fSQueryRef();
- }
- /**
- * btn_print button onclick event
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_print_onclick(obj: Button, e: ClickEventInfo) {
- // DOM 객체 설정
- var objDOM = rptf_createDOM();
-
- rptf_setNodeListToDOM(objDOM, "root/main/list1/grdinhpdeci", ds_main_list1_grdinhpdeci);
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPPMI00201"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- /**
- * btn_delrcvr button onclick event
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_delrcvr_onclick(obj: Button, e: ClickEventInfo) {
- var row = grd_inhpdeci.currentrow;
- var param = ds_main_list1_grdinhpdeci.getColumn(row, "pid");
- frmf_setParameter("SPPMI03400_param", param);
- frmf_modal("SPPMI03400", "SPPMI03400", { arg_ds_send: ds_send_data5 }, "", "", "", "", "", "", "", "", "", "M");
- frmf_clearParameter("SPPMI03400_param");
- }
- /**
- * [grd_inhpdeci_oncelldblclick description]
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grd_inhpdeci_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
- //그리드에 row를 선택하는지 row가 아닌 곳을 선택하는지 체크
- var row = grd_inhpdeci.currentrow; //입원결정서
- var erreglyn = ds_main_list1_grdinhpdeci.getColumn(row, "erreglyn");
- //DSC환자체크
- if (erreglyn == 'D') {
- sysf_messageBox("DSC환자는 처리 할 수 없습니다. ", "E999");
- return false;
- }
- var adrv_pid = utlf_transNullToEmpty(ds_main_list1_grdinhpdeci.getColumn(row, "pid"));
- if (adrv_pid == '' || adrv_pid == " ") {
- return false;
- }
- else {
- ds_main_list2_grdinhprsspec.selectRow(grd_inhprsspec.currentrow, false);
- //버튼
- btn_update.enable = false;
- btn_cncl.enable = false;
- btn_insert.enable = true;
- ds_send_data4.setColumn(0, "pid", ds_main_list1_grdinhpdeci.getColumn(row, "pid"));
- ds_send_data4.setColumn(0, "inrsrvacptdd", ds_main_list1_grdinhpdeci.getColumn(row, "inrsrvacptdd"));
- ds_send_data4.setColumn(0, "orddeptcd", ds_main_list1_grdinhpdeci.getColumn(row, "orddeptcd"));
- ds_send_data4.setColumn(0, "inrsrvacptseqno", ds_main_list1_grdinhpdeci.getColumn(row, "inrsrvacptseqno"));
- ds_send_data4.setColumn(0, "mode", "1");
- ds_send_data4.setColumn(0, "inrsrvstat", "S");
- dsf_setTypeFormat(ds_send_data4, "inrsrvacptseqno:INT^mode:INT");
- ds_hidden_rcv_ptbspatinfo.clearData();
- ds_hidden_rcv_adrv.clearData();
- var oParam = {};
- oParam.id = "TRPMI00204";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetInRsrvDetlSpec";
- oParam.inds = "req=ds_send_data4";
- oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI00204") > -1) {
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
- ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
- ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
- var sErreglyn = ds_main_adrv.getColumn(0, "erreglyn");
- if (sErreglyn == "F") {
- combo2.style.background.color = "#ff0000";
- }
- else {
- combo2.style.background.color = "#ffffff";
- }
- }
- }
- // 보험정보 조회
- fGetPtinInfo();
- }
- /**
- * [grd_inhpdeci_onexpanddown description]
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridMouseEventInfo [description]
- * @return {[type]} [description]
- */
- function grd_inhpdeci_onexpanddown(obj: Grid, e: GridMouseEventInfo) {
- var row = grd_inhpdeci.currentrow;
- var pid = ds_main_list1_grdinhpdeci.getColumn(row, "pid");
- var hngnm = ds_main_list1_grdinhpdeci.getColumn(row, "hngnm");
- var orddeptcd = ds_main_list1_grdinhpdeci.getColumn(row, "orddeptcd");
- var orddrid = ds_main_list1_grdinhpdeci.getColumn(row, "orddrid");
- var insukind = ds_main_list1_grdinhpdeci.getColumn(row, "insukind");
- var suppkind = ds_main_list1_grdinhpdeci.getColumn(row, "suppkind");
- var orddd = ds_main_list1_grdinhpdeci.getColumn(row, "inrsrvacptdd");
- var cretno = "";
- var ioflag = "I"
- var param = pid + "▦" + //등록번호
- hngnm + "▦" + //환자명
- orddeptcd + "▦" + //진료과코드
- orddrid + "▦" + //진료의ID
- insukind + "▦" + //보험유형
- suppkind + "▦" + //보조유형
- orddd + "▦" + //진료일자(입원일자)
- cretno + "▦" + //생성번호
- ioflag; //외래입원구분
- frmf_setParameter("SPMMO00100_param", param);
- frmf_modal("SPMMO00100", "SPMMO00100", '', "", "", "", "", "", "", "", "", "", "M");
- }
- /**
- * [cmb_rorddeptcd2_onitemchanged description]
- * @param {[type]} obj: Combo [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function cmb_rorddeptcd2_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
- var sorddeptcd = ds_send_data2.getColumn(0, "rorddeptcd");
- ds_hidden_init_orddrid.filter('dp == "' + sorddeptcd + '" && (jobposcd = 1782 || jobposcd = 1784 || jobposcd = 1786'
- +' || jobposcd = 1788 || jobposcd = 1847 || jobposcd = 1848 || jobposcd = 1849 || jobposcd = 1850)');
- ds_combo21.copyData(ds_hidden_init_orddrid, true);
- ds_hidden_init_orddrid.filter('');
- }
- /**
- * [grp2_bol_checkdd1_onclick description]
- * @param {[type]} obj: CheckBox [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp2_bol_checkdd1_onclick(obj: CheckBox, e: ClickEventInfo) {
- var value = ds_send_data2.getColumn(0, 'r_checkflag');
- if (value == 'Y') {
- grp2.caption5.visible = true;
- grp2.ipt_inhopefromdd.visible = true;
- grp2.ipt_inhopetodd.visible = true;
- ds_send_data2.setColumn(0, "patinhopetodd", utlf_getCurrentDate());
- }
- else {
- grp2.caption5.visible = false;
- grp2.ipt_inhopetodd.visible = false;
- ds_send_data2.setColumn(0, "patinhopetodd", "");
- }
- }
- /**
- * [btn_search2_onclick description]
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_search2_onclick(obj: Button, e: ClickEventInfo) {
- //예약정보 삭제 2008.05.02 한윤희
- ds_send_data2.setColumn(0, "pid", "");
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
-
- fRQueryRef(); //입원예약환자 조회
- }
- /**
- * grp2 print button onclick event
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button3_onclick(obj: Button, e: ClickEventInfo) {
- // DOM 객체 설정
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "root/main/list2/grdinhprsspec", ds_main_list2_grdinhprsspec);
- var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
- rptf_exeReportPreview30(["RPPMI00202"], [{ xml_data_XML1: objDOM.documentElement.source }], option);
- }
- /**
- * [btn_excsave_onclick description]
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_excsave_onclick(obj: Button, e: ClickEventInfo) {
- grdf_exportExcel(grd_inhprsspec, "excel", "SheetName", false, "" ,"user");
- }
- /**
- * [grd_inhprsspec_oncelldblclick description]
- * @param {[type]} obj: Grid [description]
- * @param {[type]} e: GridClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grd_inhprsspec_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
- var row = grd_inhprsspec.currentrow;
- //그리드에 row를 선택하는지 row가 아닌 곳을 선택하는지 체크
- ds_main_list1_grdinhpdeci.selectRow(grd_inhpdeci.currentrow, false);
- ///grd_inhpdeci.row = -1;
- //버튼 Disabled
- btn_update.disabled = false;
- btn_cncl.disabled = false;
- btn_insert.disabled = true;
- //submit 보k내기전에 클리어
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_send_data4.setColumn(0, "pid", ds_main_list2_grdinhprsspec.getColumn(row, "pid"));
- ds_send_data4.setColumn(0, "inrsrvacptdd", ds_main_list2_grdinhprsspec.getColumn(row, "inrsrvacptdd"));
- ds_send_data4.setColumn(0, "orddeptcd", ds_main_list2_grdinhprsspec.getColumn(row, "orddeptcd"));
- ds_send_data4.setColumn(0, "inrsrvacptseqno", ds_main_list2_grdinhprsspec.getColumn(row, "inrsrvacptseqno"));
- ds_send_data4.setColumn(0, "mode", "1");
- ds_send_data4.setColumn(0, "inrsrvstat", "R");
- ds_hidden_rcv_ptbspatinfo.clearData();
- ds_hidden_rcv_adrv.clearData();
- dsf_setTypeFormat(ds_send_data4, "inrsrvacptseqno:INT^mode:INT");
- var oParam = {};
- oParam.id = "TRPMI00204";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqGetInRsrvDetlSpec";
- oParam.inds = "req=ds_send_data4";
- oParam.outds = "ds_hidden_rcv_ptbspatinfo=ptbspatinfo ds_hidden_rcv_adrv=adrv";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TRPMI00204") > -1) {
- ds_hidden_rcv_ptbspatinfo.updateColID('ptbsremfact', 'remfact');
- //submit 보낸후에 클리어
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_main_ptbspatinfo.copyData(ds_hidden_rcv_ptbspatinfo, false);
- ds_main_adrv.copyData(ds_hidden_rcv_adrv, false);
- ds_hidden_original_adrv.copyData(ds_hidden_rcv_adrv, false);
- var sErreglyn = ds_main_adrv.getColumn(0, "erreglyn");
- if (sErreglyn == "F") {
- combo2.style.background.color = "#ff0000";
- }
- else {
- combo2.style.background.color = "#ffffff";
- }
- }
- // 보험정보 조회
- fGetPtinInfo();
- }
- /**
- * 선택신청 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button23_onclick(obj: Button, e: ClickEventInfo) {
- // 입원같은 경우에는 무조건 입력을 하기때문에 기여부를 존재하는것 자체가 무의미한다.
- // 하여 일단 해당 입력값들을 넘긴다음에 해당건이 존재하면 이력으로 발생을 시키고
- // 없으면 입력한다.
- // 넘길값들 인스턴스에 담기
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "stat", 'string', ""); // stat
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "pid", 'string', ds_main_ptbspatinfo.getColumn(0, "pid")); // pid
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "hngnm", 'string', ds_main_ptbspatinfo.getColumn(0, "hngnm")); // hngnm
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "rrgstno1", 'string', ds_main_ptbspatinfo.getColumn(0, "rrgstno1")); // rrgstno1
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "rrgstno2", 'string', ds_main_ptbspatinfo.getColumn(0, "rrgstno2")); // rrgstno2
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "choiflag", 'string', ""); // choiflag
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "ordtype", 'string', "I"); // ordtype
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "orddd", 'string', ds_main_adrv.getColumn(0, "patinhopedd")); // orddd
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "orddeptcd", 'string', ds_main_adrv.getColumn(0, "orddeptcd")); // orddeptcd
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "orddrid", 'string', ds_main_adrv.getColumn(0, "orddrid")); // orddrid
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "specordyn", 'string', "Y"); // specordyn
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "fromdd", 'string', ds_main_adrv.getColumn(0, "patinhopedd")); // fromdd
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "rsrvdd", 'string', ds_main_adrv.getColumn(0, "indirecdd")); // rsrvdd
- dsf_makeValue(ds_hidden_patappinfo_patappinfo1, "flag", 'string', "ins"); // flag(upt, ins)
-
- // 선택진료신청화면열기
- frmf_modal("SMPMC06500", "SMPMC06500", { arg_ds_main_patappinfo_patappinfo01: ds_hidden_patappinfo_patappinfo1 },
- "", "", "", "", "", "", "", "", "", "M");
- ds_hidden_patappinfo_patappinfo1.clearData();
- ds_hidden_patappinfo_patappinfo1.addRow();
- }
- /**
- * 약정서재출력 버튼 클릭 이벤트
- *
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- var adrv_inrsrvstat = ds_main_adrv.getColumn(0, "inrsrvstat");
- var adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
- if (adrv_pid == '' || adrv_pid == "-" || adrv_pid == " ") {
- sysf_messageBox("출력할 환자가 없습니다.", "E999", "");
- return false;
- }
- if (adrv_inrsrvstat != "R") {
- sysf_messageBox("입원 예약 상태가 아니여서 입원 약정서를 재출력 할 수 없습니다.", "E999", "");
- return false;
- }
- else {
- // 2008.12.16 - 공단자격조회
- fGetNhicInfo();
- var sNhicYn = ds_hidden.getColumn(0, "nhicyn");
- if (sNhicYn == "Y") {
- // 2008.12.17 - 보험정보 비교 및 저장
- fSetNhicPtin();
- }
- //입원결정서 재출력
- fInDeciPrint(ds_main_adrv.getColumn(0, "pid"),
- ds_main_adrv.getColumn(0, "inrsrvacptdd"),
- ds_main_adrv.getColumn(0, "orddeptcd"),
- "R");
- }
- }
- /**
- * 예약 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_insert_onclick(obj: Button, e: ClickEventInfo) {
- var cur_row = grd_inhpdeci.currentrow;
- // 이 데이터셋의 row 가 1라인 이상인 경우 가 있나?
- var erreglyn = ds_main_adrv.getColumn(cur_row, "erreglyn");
- var y_adrv_pid = utlf_transNullToEmpty(ds_main_list1_grdinhpdeci.getColumn(cur_row, "pid"));
- var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
- var n_adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
- if (y_adrv_pid == '' || y_adrv_pid == " ") {
- y_adrv_pid = null;
- }
- if (ptbs_pid == '' || ptbs_pid == " ") {
- ptbs_pid = null;
- }
- if (n_adrv_pid == '' || n_adrv_pid == " ") {
- n_adrv_pid = null;
- }
- if (y_adrv_pid == null && ptbs_pid == null && n_adrv_pid == null) {
- sysf_messageBox("환자를", "C002");
- return false;
- }
- //dec환자체크
- if (erreglyn == 'D') {
- sysf_messageBox("DSC환자는 처리 할 수 없습니다. ", "E999");
- return false;
- }
- //입원결정서를 선택
- if (cur_row > 0) {
- if (y_adrv_pid == ptbs_pid) {
- ds_main_adrv.setColumn(0, "rsrvflag", "RS");
- ds_main_adrv.setColumn(0, "status", "U");
- ds_send_data6.copyData(ds_main_adrv, false);
- dsf_createDs('ds_res');
- var oParam = {};
- oParam.id = "TXPMI00201";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqExeInhpRsrv";
- oParam.inds = "s_adrv=ds_send_data6";
- oParam.outds = "ds_res=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00201") > -1) {
- // 2008.12.16 - 공단자격조회
- fGetNhicInfo();
- var sNhicYn = ds_hidden.getColumn(0, "nhicyn");
- if (sNhicYn == "Y") {
- // 2008.12.17 - 보험정보 비교 및 저장
- fSetNhicPtin();
- }
- //입원결정서 출력
- fInDeciPrint(ds_main_adrv.getColumn(0, "pid"),
- ds_main_adrv.getColumn(0, "inrsrvacptdd"),
- ds_main_adrv.getColumn(0, "orddeptcd"),
- "R");
- //2008.05.02 예약정보 남겨두기 한윤희
- ds_send_data6.clearData();
- ds_send_data6.addRow();
- //2008.04.30 예약한 환자만 조회되도록 수정 한윤희
-
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
- ds_send_data1.setColumn(0, "pid", ptbs_pid);
- ds_send_data1.setColumn(0, "s_checkflag", "false");
- fSQueryRef();
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "pid", "");
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "patinhopefromdd", "");
- ds_send_data2.setColumn(0, "pid", ptbs_pid);
- ds_send_data2.setColumn(0, "r_checkflag", "false");
- fRQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "pid", "");
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- // 2008.09.26 최병진 - 예약 후 예약정보가 그대로 남아있어서 약정서재발행이 바로 되지 않음
- // 예약 후의 상태이기 때문에 강제로 상태값 변경
- ds_main_adrv.setColumn(0, "inrsrvstat", "R");
- }
- }
- else {
- sysf_messageBox("선택된 입원결정서 환자번호와 인적사항의 차트번호가", "E004");
- return false;
- }
- //입원결정서를 미선택
- }
- else {
- if (n_adrv_pid == ptbs_pid) {
- ds_main_adrv.setColumn(0, "rsrvflag", "RS");
- ds_main_adrv.setColumn(0, "status", "U");
- ds_send_data6.copyData(ds_main_adrv, false);
- dsf_createDs('ds_res');
- var oParam = {};
- oParam.id = "TXPMI00201";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqExeInhpRsrv";
- oParam.inds = "s_adrv=ds_send_data6";
- oParam.outds = "ds_res=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00201") > -1) {
- // 2008.12.16 - 공단자격조회
- fGetNhicInfo();
- // 입원결정서 출력
- fInDeciPrint(ds_main_adrv.getColumn(0, "pid"),
- ds_main_adrv.getColumn(0, "inrsrvacptdd"),
- ds_main_adrv.getColumn(0, "orddeptcd"),
- "R");
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_send_data6.clearData();
-
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
- ds_send_data1.setColumn(0, "pid", ptbs_pid);
- ds_send_data1.setColumn(0, "s_checkflag", "false");
- fSQueryRef();
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "patinhopefromdd", "");
- ds_send_data2.setColumn(0, "pid", ptbs_pid);
- ds_send_data2.setColumn(0, "r_checkflag", "false");
- fRQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
- // 2008.09.26 최병진 - 예약 후 예약정보가 그대로 남아있어서 약정서재발행이 바로 되지 않음
- // 예약 후의 상태이기 때문에 강제로 상태값 변경
- ds_main_adrv.setColumn(0, "inrsrvstat", "R");
- }
- }
- else {
- sysf_messageBox("입원결정서 환자번호와 인적사항의 차트번호가", "E004");
- return false;
- }
- ds_hidden.setColumn(0, "nhicyn", "Y"); // 공단체크
- }
- //2009.09.23 zzui - 선택진료창
- if (fCheckSpecOrdApp()) {
- // do nothing
- }
- }
- /**
- * 예약변경 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_update_onclick(obj: Button, e: ClickEventInfo) {
- //입원예약을 선택
- var cur_row = grd_inhprsspec.row;
- var y_adrv_pid = ds_main_list2_grdinhprsspec.getColumn(cur_row, "pid");
- var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
- var n_adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
- if (y_adrv_pid == '' || y_adrv_pid == " ") {
- y_adrv_pid = null;
- }
- if (ptbs_pid == '' || ptbs_pid == " ") {
- ptbs_pid = null;
- }
- if (n_adrv_pid == '' || n_adrv_pid == " ") {
- n_adrv_pid = null;
- }
- if (y_adrv_pid == null && ptbs_pid == null && n_adrv_pid == null) {
- sysf_messageBox("환자를", "C002");
- return false;
- }
- if (cur_row > 0) {
- if (y_adrv_pid == ptbs_pid) {
- ds_main_adrv.setColumn(0, "rsrvflag", "RU");
- ds_main_adrv.setColumn(0, "status", "U");
- ds_send_data6.copyData(ds_main_adrv, false);
- dsf_createDsRow('ds_TXPMI00201', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'status', type: 'string', size: 256, val: '' },
- { col: 'rsrvflag', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
- { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
- { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'suppkind', type: 'string', size: 256, val: '' },
- { col: 'suppkindresn', type: 'string', size: 256, val: '' },
- { col: 'insuno', type: 'string', size: 256, val: '' },
- { col: 'indirecdrid', type: 'string', size: 256, val: '' },
- { col: 'indirecdd', type: 'string', size: 256, val: '' },
- { col: 'orddrid', type: 'string', size: 256, val: '' },
- { col: 'inhopedd', type: 'string', size: 256, val: '' },
- { col: 'patinhopedd', type: 'string', size: 256, val: '' },
- { col: 'inhopeward', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
- { col: 'assgward', type: 'string', size: 256, val: '' },
- { col: 'assgroom', type: 'string', size: 256, val: '' },
- { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
- { col: 'assgroomtype', type: 'string', size: 256, val: '' },
- { col: 'inflag', type: 'string', size: 256, val: '' },
- { col: 'drgyn', type: 'string', size: 256, val: '' },
- { col: 'bmtyn', type: 'string', size: 256, val: '' },
- { col: 'cpyn', type: 'string', size: 256, val: '' },
- { col: 'cpcd', type: 'string', size: 256, val: '' },
- { col: 'fcstinterm', type: 'string', size: 256, val: '' },
- { col: 'erreglyn', type: 'string', size: 256, val: '' },
- { col: 'isolroomyn', type: 'string', size: 256, val: '' },
- { col: 'oxyyn', type: 'string', size: 256, val: '' },
- { col: 'suctyn', type: 'string', size: 256, val: '' },
- { col: 'specroomyn', type: 'string', size: 256, val: '' },
- { col: 'scheopdd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
- { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
- { col: 'drrem', type: 'string', size: 256, val: '' },
- { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
- { col: 'incncldd', type: 'string', size: 256, val: '' },
- { col: 'incncltm', type: 'string', size: 256, val: '' },
- { col: 'nblsyn', type: 'string', size: 256, val: '' },
- { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
- { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
- { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
- { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
- { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
- { col: 'clincstdyno', type: 'string', size: 256, val: '' },
- { col: 'ocrtag', type: 'string', size: 256, val: '' },
- { col: 'centcd', type: 'string', size: 256, val: '' },
- { col: 'subdeptcd', type: 'string', size: 256, val: '' },
- { col: 'coopteamcd', type: 'string', size: 256, val: '' },
- { col: 'wardtypecd', type: 'string', size: 256, val: '' },
- { col: 'specwardcd', type: 'string', size: 256, val: '' },
- { col: 'ampmflag', type: 'string', size: 256, val: '' },
- { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
- { col: 'specordtype', type: 'string', size: 256, val: '' }
- ], false);
- ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
- dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
- ds_hidden_rsltflag.clearData();
- var oParam = {};
- oParam.id = "TXPMI00201";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqExeInhpRsrv";
- oParam.inds = "s_adrv=ds_TXPMI00201";
- oParam.outds = "ds_hidden_rsltflag=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00201") > -1) {
- // 2008.05.02 예약변경 후 예약 변경 환자만 보여주기
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
- ds_send_data1.setColumn(0, "pid", ptbs_pid);
- ds_send_data1.setColumn(0, "s_checkflag", "false");
- fSQueryRef();
-
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "pid", "");
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "patinhopefromdd", "");
- ds_send_data2.setColumn(0, "pid", ptbs_pid);
- ds_send_data2.setColumn(0, "r_checkflag", "false");
- fRQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "pid", "");
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_main_ptbspatinfo.setColumn(0, "pid", ptbs_pid);
- ds_send_data4.setColumn(0, "pid", ptbs_pid);
- ds_send_data4.setColumn(0, "mode", "0");
- //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
- ds_send_data5.setColumn(0, "pid", ptbs_pid);
- ds_send_data5.setColumn(0, "srchcond", "1")
- fPatRsrvInfoSrch();
- }
- }
- else {
- sysf_messageBox("선택된 입원예약 환자번호와 인적사항의 차트번호가", "E004");
- return false;
- }
- //입원예약을 미선택
- }
- else {
- if (n_adrv_pid == ptbs_pid) {
- ds_main_adrv.setColumn(0, "rsrvflag", "RU");
- ds_main_adrv.setColumn(0, "status", "U");
- ds_send_data6.copyData(ds_main_adrv, false);
- dsf_createDsRow('ds_TXPMI00201', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'status', type: 'string', size: 256, val: '' },
- { col: 'rsrvflag', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
- { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
- { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'suppkind', type: 'string', size: 256, val: '' },
- { col: 'suppkindresn', type: 'string', size: 256, val: '' },
- { col: 'insuno', type: 'string', size: 256, val: '' },
- { col: 'indirecdrid', type: 'string', size: 256, val: '' },
- { col: 'indirecdd', type: 'string', size: 256, val: '' },
- { col: 'orddrid', type: 'string', size: 256, val: '' },
- { col: 'inhopedd', type: 'string', size: 256, val: '' },
- { col: 'patinhopedd', type: 'string', size: 256, val: '' },
- { col: 'inhopeward', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
- { col: 'assgward', type: 'string', size: 256, val: '' },
- { col: 'assgroom', type: 'string', size: 256, val: '' },
- { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
- { col: 'assgroomtype', type: 'string', size: 256, val: '' },
- { col: 'inflag', type: 'string', size: 256, val: '' },
- { col: 'drgyn', type: 'string', size: 256, val: '' },
- { col: 'bmtyn', type: 'string', size: 256, val: '' },
- { col: 'cpyn', type: 'string', size: 256, val: '' },
- { col: 'cpcd', type: 'string', size: 256, val: '' },
- { col: 'fcstinterm', type: 'string', size: 256, val: '' },
- { col: 'erreglyn', type: 'string', size: 256, val: '' },
- { col: 'isolroomyn', type: 'string', size: 256, val: '' },
- { col: 'oxyyn', type: 'string', size: 256, val: '' },
- { col: 'suctyn', type: 'string', size: 256, val: '' },
- { col: 'specroomyn', type: 'string', size: 256, val: '' },
- { col: 'scheopdd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
- { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
- { col: 'drrem', type: 'string', size: 256, val: '' },
- { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
- { col: 'incncldd', type: 'string', size: 256, val: '' },
- { col: 'incncltm', type: 'string', size: 256, val: '' },
- { col: 'nblsyn', type: 'string', size: 256, val: '' },
- { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
- { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
- { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
- { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
- { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
- { col: 'clincstdyno', type: 'string', size: 256, val: '' },
- { col: 'ocrtag', type: 'string', size: 256, val: '' },
- { col: 'centcd', type: 'string', size: 256, val: '' },
- { col: 'subdeptcd', type: 'string', size: 256, val: '' },
- { col: 'coopteamcd', type: 'string', size: 256, val: '' },
- { col: 'wardtypecd', type: 'string', size: 256, val: '' },
- { col: 'specwardcd', type: 'string', size: 256, val: '' },
- { col: 'ampmflag', type: 'string', size: 256, val: '' },
- { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
- { col: 'specordtype', type: 'string', size: 256, val: '' }
- ], false);
- ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
- dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
- ds_hidden_rsltflag.clearData();
- var oParam = {};
- oParam.id = "TXPMI00201";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqExeInhpRsrv";
- oParam.inds = "s_adrv=ds_TXPMI00201";
- oParam.outds = "ds_hidden_rsltflag=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00201") > -1) {
- sysf_messageBox("예약내용이 정상적으로 ", "I001");
- ds_main_adrv.clearData();
- ds_main_adrv.addRow();
- ds_main_ptbspatinfo.clearData();
- ds_main_ptbspatinfo.addRow();
- ds_send_data6.clearData();
- fRQueryRef();
- ds_send_data4.clearData();
- ds_send_data4.addRow();
- ds_main_ptbspatinfo.setColumn(0, "pid", ptbs_pid);
- ds_send_data4.setColumn(0, "pid", ptbs_pid);
- ds_send_data4.setColumn(0, "mode", "0");
- //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
- ds_send_data5.setColumn(0, "pid", ptbs_pid);
- ds_send_data5.setColumn(0, "srchcond", "1")
- fPatRsrvInfoSrch();
- }
- }
- else {
- sysf_messageBox("입원예약 환자번호와 인적사항의 차트번호가", "E004");
- return false;
- }
- }
- }
- /**
- * 예약취소 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_cncl_onclick(obj: Button, e: ClickEventInfo) {
- //입원예약을 선택
- var cur_row = grd_inhprsspec.currentrow;
- var y_adrv_pid = ds_main_list2_grdinhprsspec.getColumn(cur_row, "pid");
- var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbspatinfo.getColumn(0, "pid"));
- var n_adrv_pid = utlf_transNullToEmpty(ds_main_adrv.getColumn(0, "pid"));
- if (y_adrv_pid == '' || y_adrv_pid == " ") {
- y_adrv_pid = null;
- }
- if (ptbs_pid == '' || ptbs_pid == " ") {
- ptbs_pid = null;
- }
- if (n_adrv_pid == '' || n_adrv_pid == " ") {
- n_adrv_pid = null;
- }
- if (y_adrv_pid == null && ptbs_pid == null && n_adrv_pid == null) {
- sysf_messageBox("환자를", "C002");
- return false;
- }
- if (cur_row > 0) {
- if (y_adrv_pid == ptbs_pid) {
- ds_send_data7.setColumn(0, "rsrvflag", "RC");
- ds_send_data7.setColumn(0, "status", "U");
- ds_send_data7.setColumn(0, "pid", ds_main_list2_grdinhprsspec.getColumn(cur_row, "pid"));
- ds_send_data7.setColumn(0, "inrsrvacptdd", ds_main_list2_grdinhprsspec.getColumn(cur_row, "inrsrvacptdd"));
- ds_send_data7.setColumn(0, "orddeptcd", ds_main_list2_grdinhprsspec.getColumn(cur_row, "orddeptcd"));
- ds_send_data7.setColumn(0, "inrsrvacptseqno", ds_main_list2_grdinhprsspec.getColumn(cur_row, "inrsrvacptseqno"));
- ds_send_data7.setColumn(0, "inrsrvrem", model.getValue("/root/main/adrv/inrsrvrem"));
- dsf_createDs('ds_res');
- dsf_createDsRow('ds_TXPMI00202', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
- { col: 'rsrvflag', type: 'string', size: 256, val: '' },
- { col: 'status', type: 'string', size: 256, val: '' },
- { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
- { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
- { col: 'inrsrvrem', type: 'string', size: 256, val: '' }
- ], false);
- ds_TXPMI00202.copyRow(0, ds_send_data7, 0);
- var oParam = {};
- oParam.id = "TXPMI00202";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqExeRsrvCncl";
- oParam.inds = "req=ds_TXPMI00202";
- oParam.outds = "ds_res=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00202") > -1) {
- ds_send_data7.clearData();
- ds_send_data7.addRow();
-
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
- ds_send_data1.setColumn(0, "pid", ptbs_pid);
- ds_send_data1.setColumn(0, "s_checkflag", "false");
- fSQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", "");
- ds_send_data2.setColumn(0, "pid", ptbs_pid);
- ds_send_data2.setColumn(0, "r_checkflag", "false");
- fRQueryRef();
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "pid", "");
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "pid", "");
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- // 2008.08.19 - 결정서 보존여부
- var msgResult = sysf_messageBox("입원결정서를 보존하시겠습니까?", "Q");
- if (msgResult == "7") {
- frmf_setParameter("SPPMI03400_param", ptbs_pid);
- frmf_modal("SPPMI03400", "SPPMI03400", '', "", "", "", "", "", "", "", "", "", "M");
- frmf_clearParameter("SPPMI03400_param");
- }
- }
- }
- else {
- sysf_messageBox("선택된 입원예약 환자번호와 인적사항의 차트번호가", "E004");
- return false;
- }
- //입원예약을 미선택
- }
- else {
- if (n_adrv_pid == ptbs_pid) {
- ds_main_adrv.setColumn(0, "rsrvflag", "RC");
- ds_main_adrv.setColumn(0, "status", "U");
-
- ds_send_data6.copyData(ds_main_adrv, false);
- dsf_createDsRow('ds_TXPMI00201', [
- { col: 'pid', type: 'string', size: 256, val: '' },
- { col: 'status', type: 'string', size: 256, val: '' },
- { col: 'rsrvflag', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptdd', type: 'string', size: 256, val: '' },
- { col: 'orddeptcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacptseqno', type: 'string', size: 256, val: '' },
- { col: 'instcd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvacpttm', type: 'string', size: 256, val: '' },
- { col: 'inrsrvstat', type: 'string', size: 256, val: '' },
- { col: 'inrsrvprcpno', type: 'string', size: 256, val: '' },
- { col: 'insukind', type: 'string', size: 256, val: '' },
- { col: 'suppkind', type: 'string', size: 256, val: '' },
- { col: 'suppkindresn', type: 'string', size: 256, val: '' },
- { col: 'insuno', type: 'string', size: 256, val: '' },
- { col: 'indirecdrid', type: 'string', size: 256, val: '' },
- { col: 'indirecdd', type: 'string', size: 256, val: '' },
- { col: 'orddrid', type: 'string', size: 256, val: '' },
- { col: 'inhopedd', type: 'string', size: 256, val: '' },
- { col: 'patinhopedd', type: 'string', size: 256, val: '' },
- { col: 'inhopeward', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdefrom', type: 'string', size: 256, val: '' },
- { col: 'inhoperoomgrdeto', type: 'string', size: 256, val: '' },
- { col: 'assgward', type: 'string', size: 256, val: '' },
- { col: 'assgroom', type: 'string', size: 256, val: '' },
- { col: 'assgroomgrde', type: 'string', size: 256, val: '' },
- { col: 'assgroomtype', type: 'string', size: 256, val: '' },
- { col: 'inflag', type: 'string', size: 256, val: '' },
- { col: 'drgyn', type: 'string', size: 256, val: '' },
- { col: 'bmtyn', type: 'string', size: 256, val: '' },
- { col: 'cpyn', type: 'string', size: 256, val: '' },
- { col: 'cpcd', type: 'string', size: 256, val: '' },
- { col: 'fcstinterm', type: 'string', size: 256, val: '' },
- { col: 'erreglyn', type: 'string', size: 256, val: '' },
- { col: 'isolroomyn', type: 'string', size: 256, val: '' },
- { col: 'oxyyn', type: 'string', size: 256, val: '' },
- { col: 'suctyn', type: 'string', size: 256, val: '' },
- { col: 'specroomyn', type: 'string', size: 256, val: '' },
- { col: 'scheopdd', type: 'string', size: 256, val: '' },
- { col: 'inrsrvgrad', type: 'string', size: 256, val: '' },
- { col: 'inrsrvrem', type: 'string', size: 256, val: '' },
- { col: 'drrem', type: 'string', size: 256, val: '' },
- { col: 'inrsrvcnclresn', type: 'string', size: 256, val: '' },
- { col: 'incncldd', type: 'string', size: 256, val: '' },
- { col: 'incncltm', type: 'string', size: 256, val: '' },
- { col: 'nblsyn', type: 'string', size: 256, val: '' },
- { col: 'fstrgstrid', type: 'string', size: 256, val: '' },
- { col: 'fstrgstdt', type: 'string', size: 256, val: '' },
- { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
- { col: 'lastupdtdt', type: 'string', size: 256, val: '' },
- { col: 'clincstdyacptflag', type: 'string', size: 256, val: '' },
- { col: 'clincstdyno', type: 'string', size: 256, val: '' },
- { col: 'ocrtag', type: 'string', size: 256, val: '' },
- { col: 'centcd', type: 'string', size: 256, val: '' },
- { col: 'subdeptcd', type: 'string', size: 256, val: '' },
- { col: 'coopteamcd', type: 'string', size: 256, val: '' },
- { col: 'wardtypecd', type: 'string', size: 256, val: '' },
- { col: 'specwardcd', type: 'string', size: 256, val: '' },
- { col: 'ampmflag', type: 'string', size: 256, val: '' },
- { col: 'rsrvprcsstat', type: 'string', size: 256, val: '' },
- { col: 'specordtype', type: 'string', size: 256, val: '' }
- ], false);
- ds_TXPMI00201.copyRow(0, ds_main_adrv, 0);
- dsf_setTypeFormat(ds_TXPMI00201, "inrsrvacptseqno:INT^inrsrvprcpno:INT^fcstinterm:INT");
- ds_hidden_rsltflag.clearData();
- var oParam = {};
- oParam.id = "TXPMI00201";
- oParam.service = "ipatmngtapp.InRsrv";
- oParam.method = "reqExeInhpRsrv";
- oParam.inds = "s_adrv=ds_TXPMI00201";
- oParam.outds = "ds_hidden_rsltflag=result";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMI00201") > -1) {
- ds_send_data6.clearData();
- ds_send_data6.addRow();
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", "");
- ds_send_data1.setColumn(0, "pid", ptbs_pid);
- ds_send_data1.setColumn(0, "s_checkflag", "false");
- fSQueryRef();
- ds_send_data2.setColumn(0, "patinhopefromdd", "");
- ds_send_data2.setColumn(0, "pid", ptbs_pid);
- ds_send_data2.setColumn(0, "r_checkflag", "false");
- fRQueryRef();
- ds_send_data1.setColumn(0, "inrsrvacptfromdd", utlf_getCurrentDate());
- ds_send_data1.setColumn(0, "pid", "");
- ds_send_data1.setColumn(0, "s_checkflag", "true");
- ds_send_data2.setColumn(0, "patinhopefromdd", utlf_getCurrentDate());
- ds_send_data2.setColumn(0, "pid", "");
- ds_send_data2.setColumn(0, "r_checkflag", "true");
- // 2008.08.19 - 결정서 보존여부
- var msgResult = sysf_messageBox("입원결정서를 보존하시겠습니까?", "Q");
- if (msgResult == "7") {
- frmf_setParameter("SPPMI03400_param", ptbs_pid);
- frmf_modal("SPPMI03400", "SPPMI03400", '', "", "", "", "", "", "", "", "", "", "M");
- frmf_clearParameter("SPPMI03400_param");
- }
- }
- else {
- sysf_messageBox("입원예약 환자번호와 인적사항의 차트번호가", "E004");
- return false;
- }
- }
- }
- }
- /**
- * 초기화 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_clear_onclick(obj: Button, e: ClickEventInfo) {
- fInitialize();
- }
- ]]></Script>
- </Form>
- </FDL>
|