SMPMI00301_병실배정관리(경북대공용병상배정관리).xfdl 191 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI00301" position="absolute 0 0 1210 805" titletext="병실배정관리" onload="SMPMI00301_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="공용병상배정관리" class="tit_1" position="absolute 0 0 140 25"/>
  8. <Edit id="ipt_pid1" taborder="33" class="input_essential" position="absolute 99 55 210 74" onkeydown="ipt_pid1_onkeydown"/>
  9. <Static id="caption38" text="환자번호" class="cell_1" position="absolute 0 53 97 76" style="padding:0 0 0 3;"/>
  10. <Button id="btn_ptbspid" taborder="34" class="icon_search" position="absolute 213 58 227 71" onclick="btn_ptbspid_onclick"/>
  11. <Static id="caption40" text="성별/나이" class="cell_1" position="absolute 232 53 301 76" style="padding:0 0 0 3;"/>
  12. <Edit id="ipt_age" taborder="35" class="input_default" enable="false" position="absolute 347 55 387 74"/>
  13. <Edit id="ipt_sex" taborder="36" class="input_default" enable="false" position="absolute 304 55 344 74"/>
  14. <Button id="button1" taborder="37" text="환자인적" class="btn2" position="absolute 323 28 387 47" onclick="button1_onclick"/>
  15. <Shape id="line27" linetype="horizontal" class="line_1" position="absolute 0 47 387 53" style="strokepen:3 solid #33bbbbff;"/>
  16. <Button id="btn_patspcfyn" taborder="38" position="absolute 89 27 108 46" onclick="btn_patspcfyn_onclick" style="background:#c0c0c0ff;"/>
  17. <Static id="caption20" text="인적사항" class="tit_2" position="absolute 0 31 79 47"/>
  18. <Shape id="line1" linetype="horizontal" class="line_6" position="absolute 0 755 1194 761"/>
  19. <Button id="btn_can" taborder="39" text="취소" class="btn4" position="absolute 1067 763 1123 785" onclick="btn_can_onclick"/>
  20. <Button id="btn_clear" taborder="40" text="초기화" class="btn4" position="absolute 1126 763 1194 785" onclick="btn_clear_onclick"/>
  21. <Button id="btn_update" taborder="41" text="저장" class="btn4" position="absolute 1008 763 1064 785" onclick="btn_update_onclick"/>
  22. <Static id="caption14" text="※ 병상 배정 후 저장 시 '입원담당자 연락처'로 SMS가 발송됩니다." position="absolute 628 767 997 780" style="color:red;"/>
  23. <Edit id="input2" taborder="42" position="absolute 5 764 98 783"/>
  24. <Static id="caption15" text="병상배정 SMS 회신번호" class="cell_1" position="absolute 380 764 530 784" style="background:#ecf7fcff;padding:0 0 0 3;"/>
  25. <Button id="button2" taborder="43" text="준공용병상 가용현황" class="btn3" position="absolute 5 763 157 785" onclick="button2_onclick"/>
  26. <Static id="caption44" text="병상내역" class="tit_2" position="absolute 396 66 471 83"/>
  27. <Div id="div_srch" taborder="45" position="absolute 395 24 1194 59" class="div_SA2">
  28. <Layouts>
  29. <Layout width="799" height="35">
  30. <Static id="caption43" text="병상검색조건 :" class="search_name" position="absolute 18 9 136 26"/>
  31. <Radio id="radio1" taborder="11" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 554 8 689 28" style="textpadding:0 3 0 3;" onitemchanged="div_srch_radio1_onitemchanged">
  32. <Dataset id="innerdataset">
  33. <ColumnInfo>
  34. <Column id="codecolumn"/>
  35. <Column id="datacolumn"/>
  36. </ColumnInfo>
  37. <Rows>
  38. <Row>
  39. <Col id="codecolumn">A</Col>
  40. <Col id="datacolumn">전체</Col>
  41. </Row>
  42. <Row>
  43. <Col id="codecolumn">C</Col>
  44. <Col id="datacolumn">공용</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">D</Col>
  48. <Col id="datacolumn">전용</Col>
  49. </Row>
  50. </Rows>
  51. </Dataset>
  52. </Radio>
  53. <Shape id="line32" linetype="vertical" class="line_4" position="absolute 710 7 716 29"/>
  54. <Combo id="cmb_rmsrch" taborder="12" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 125 8 225 27" onitemchanged="div_srch_cmb_rmsrch_onitemchanged">
  55. <Dataset id="innerdataset">
  56. <ColumnInfo>
  57. <Column id="codecolumn"/>
  58. <Column id="datacolumn"/>
  59. </ColumnInfo>
  60. <Rows>
  61. <Row>
  62. <Col id="codecolumn">P1</Col>
  63. <Col id="datacolumn">전체</Col>
  64. </Row>
  65. <Row>
  66. <Col id="codecolumn">P2</Col>
  67. <Col id="datacolumn">진료과</Col>
  68. </Row>
  69. <Row>
  70. <Col id="codecolumn">P3</Col>
  71. <Col id="datacolumn">병동</Col>
  72. </Row>
  73. <Row>
  74. <Col id="codecolumn">P4</Col>
  75. <Col id="datacolumn">병실</Col>
  76. </Row>
  77. <Row>
  78. <Col id="codecolumn">P5</Col>
  79. <Col id="datacolumn">빈병상</Col>
  80. </Row>
  81. </Rows>
  82. </Dataset>
  83. </Combo>
  84. <Edit id="ipt_room" taborder="13" class="input_search" visible="false" position="absolute 228 8 353 27" onkeydown="div_srch_ipt_room_onkeydown"/>
  85. <Combo id="cmb_grde" taborder="14" innerdataset="@ds_init_P0025list" codecolumn="cdid" datacolumn="cdnm" class="combo_search" visible="false" position="absolute 228 8 353 27" onitemchanged="div_srch_cmb_grde_onitemchanged"/>
  86. <Combo id="cmb_sex" taborder="15" innerdataset="@ds_init_P0391list" codecolumn="cdid" datacolumn="cdnm" class="combo_search" visible="false" position="absolute 228 8 353 27" onitemchanged="div_srch_cmb_sex_onitemchanged"/>
  87. <Combo id="cmb_orddept" taborder="16" innerdataset="@ds_cmb_orddept" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 228 8 353 27" onitemchanged="div_srch_cmb_orddept_onitemchanged"/>
  88. <Combo id="cmb_ward" taborder="17" innerdataset="@ds_hidden_init_wardcd" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 228 8 353 27" onitemchanged="div_srch_cmb_ward_onitemchanged"/>
  89. <Button id="btn_search1" taborder="18" text="조회" class="btn1" position="absolute 728 7 784 29" onclick="div_srch_btn_search1_onclick"/>
  90. <Combo id="cmb_type" taborder="19" innerdataset="@ds_init_P0026list" codecolumn="cdid" datacolumn="cdnm" class="combo_search" visible="false" position="absolute 228 8 353 27" onitemchanged="div_srch_cmb_type_onitemchanged"/>
  91. <Combo id="cmb_search" taborder="20" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 228 8 446 27">
  92. <Dataset id="innerdataset">
  93. <ColumnInfo>
  94. <Column id="codecolumn" size="256"/>
  95. <Column id="datacolumn" size="256"/>
  96. </ColumnInfo>
  97. <Rows>
  98. <Row>
  99. <Col id="codecolumn">S</Col>
  100. <Col id="datacolumn">특수병상(PK117) 제외</Col>
  101. </Row>
  102. <Row>
  103. <Col id="codecolumn">E</Col>
  104. <Col id="datacolumn">특수병상(PK074) 제외</Col>
  105. </Row>
  106. <Row>
  107. <Col id="codecolumn">A</Col>
  108. <Col id="datacolumn">전체</Col>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. </Combo>
  113. <Static id="caption9" text="병상구분 :" class="search_name" position="absolute 475 9 565 26"/>
  114. </Layout>
  115. </Layouts>
  116. </Div>
  117. <Static id="caption10" text="※ 전용병상 조회 시 검색조건 추가필요(속도저하)" position="absolute 741 62 1068 82" style="color:red;"/>
  118. <Button id="btn_left" taborder="46" class="icon_left" position="absolute 1138 63 1164 82" onclick="btn_left_onclick"/>
  119. <Button id="btn_right" taborder="47" class="icon_right" position="absolute 1168 63 1194 82" onclick="btn_right_onclick"/>
  120. <Static id="caption11" text="공용" position="absolute 508 62 538 82"/>
  121. <Shape id="rectangle2" type="rectangle" position="absolute 540 64 555 79" style="fillbrush:solid #b9e5fbff true;"/>
  122. <Static id="caption12" text="전용" position="absolute 558 62 588 82"/>
  123. <Shape id="rectangle3" type="rectangle" position="absolute 590 64 605 79" style="fillbrush:solid #f7a08bff true;"/>
  124. <Static id="caption13" text="부도(2일 이상 연속부도)" position="absolute 608 62 742 82"/>
  125. <Static id="caption46" text="범 례" class="cell_2" visible="false" position="absolute 815 405 885 425"/>
  126. <Div id="div_srch2" taborder="48" class="div_SA2" position="absolute 0 362 1194 397">
  127. <Layouts>
  128. <Layout width="1194" height="35">
  129. <Static id="caption45" text="조회조건 :" class="search_name" position="absolute 10 9 84 26" anchor="default"/>
  130. <Shape id="line34" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="default"/>
  131. <Combo id="cmb_rssrch" taborder="9" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 84 8 208 27" onitemchanged="div_srch2_cmb_rssrch_onitemchanged" anchor="default">
  132. <Dataset id="innerdataset">
  133. <ColumnInfo>
  134. <Column id="codecolumn" size="256"/>
  135. <Column id="datacolumn" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="codecolumn">1</Col>
  140. <Col id="datacolumn">희망일자</Col>
  141. </Row>
  142. <Row>
  143. <Col id="codecolumn">6</Col>
  144. <Col id="datacolumn">배정일자</Col>
  145. </Row>
  146. <Row>
  147. <Col id="codecolumn">5</Col>
  148. <Col id="datacolumn">입원일자</Col>
  149. </Row>
  150. <Row>
  151. <Col id="codecolumn">2</Col>
  152. <Col id="datacolumn">환자번호</Col>
  153. </Row>
  154. <Row>
  155. <Col id="codecolumn">3</Col>
  156. <Col id="datacolumn">환자성명</Col>
  157. </Row>
  158. <Row>
  159. <Col id="codecolumn">4</Col>
  160. <Col id="datacolumn">진료과</Col>
  161. </Row>
  162. </Rows>
  163. </Dataset>
  164. </Combo>
  165. <Calendar id="ipt_hopedd" taborder="10" class="input_search" visible="false" position="absolute 221 8 335 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null" anchor="default" style="align:center middle;"/>
  166. <Edit id="ipt_pid" taborder="11" class="input_search" visible="false" position="absolute 221 8 335 27" onkeydown="div_srch2_ipt_pid_onkeydown" anchor="default"/>
  167. <Edit id="ipt_pidnm" taborder="12" class="input_search" visible="false" position="absolute 221 8 335 27" onkeydown="div_srch2_ipt_pidnm_onkeydown" anchor="default"/>
  168. <Combo id="cmb_ordept" taborder="13" innerdataset="@ds_cmb_ordept" codecolumn="cd" datacolumn="nm" class="combo_search" visible="false" position="absolute 221 8 402 27" onitemchanged="div_srch2_cmb_ordept_onitemchanged" anchor="default"/>
  169. <Button id="btn_search2" taborder="14" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="default" onclick="div_srch2_btn_search2_onclick"/>
  170. <Calendar id="ipt_hopetodd" taborder="15" class="input_search" visible="false" position="absolute 359 8 473 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" anchor="default" onkillfocus="div_srch2_ipt_hopetodd_onkillfocus" style="align:center middle;"/>
  171. <CheckBox id="bol_ckeckdd1" taborder="16" visible="false" position="absolute 479 9 494 26" anchor="default" onclick="div_srch2_bol_ckeckdd1_onclick" falsevalue="false" truevalue="true"/>
  172. <Static id="caption4" text="~" visible="false" position="absolute 342 5 352 30" anchor="default"/>
  173. <Static id="caption21" text="입원경로 :" class="search_name" position="absolute 538 9 612 26" anchor="default"/>
  174. <Radio id="radio2" taborder="17" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 617 8 864 28" style="textpadding:0 3 0 3;" anchor="default" columncount="-1" rowcount="-1">
  175. <Dataset id="innerdataset">
  176. <ColumnInfo>
  177. <Column id="codecolumn" size="256"/>
  178. <Column id="datacolumn" size="256"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row>
  182. <Col id="codecolumn">A</Col>
  183. <Col id="datacolumn">전체</Col>
  184. </Row>
  185. <Row>
  186. <Col id="codecolumn">I</Col>
  187. <Col id="datacolumn">입원</Col>
  188. </Row>
  189. <Row>
  190. <Col id="codecolumn">E</Col>
  191. <Col id="datacolumn">응급</Col>
  192. </Row>
  193. <Row>
  194. <Col id="codecolumn">D</Col>
  195. <Col id="datacolumn">DSC/특수주사실</Col>
  196. </Row>
  197. </Rows>
  198. </Dataset>
  199. </Radio>
  200. <Static id="caption00" text="병상구분 :" class="search_name" position="absolute 879 9 953 26" anchor="default"/>
  201. <Radio id="radio3" taborder="18" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 958 8 1093 28" style="textpadding:0 3 0 3;" anchor="default" columncount="-1" rowcount="-1">
  202. <Dataset id="innerdataset">
  203. <ColumnInfo>
  204. <Column id="codecolumn"/>
  205. <Column id="datacolumn"/>
  206. </ColumnInfo>
  207. <Rows>
  208. <Row>
  209. <Col id="codecolumn">A</Col>
  210. <Col id="datacolumn">전체</Col>
  211. </Row>
  212. <Row>
  213. <Col id="codecolumn">C</Col>
  214. <Col id="datacolumn">공용</Col>
  215. </Row>
  216. <Row>
  217. <Col id="codecolumn">D</Col>
  218. <Col id="datacolumn">전용</Col>
  219. </Row>
  220. </Rows>
  221. </Dataset>
  222. </Radio>
  223. </Layout>
  224. </Layouts>
  225. </Div>
  226. <Static id="caption5" class="color_6" visible="false" position="absolute 981 407 996 422"/>
  227. <Static id="caption47" class="color_5" visible="false" position="absolute 895 407 910 422"/>
  228. <Shape id="line18" linetype="horizontal" class="line_1" position="absolute 0 425 1194 431" style="strokepen:3 solid #33bbbbff;"/>
  229. <Static id="caption7" text="예약환자" visible="false" position="absolute 999 408 1055 422"/>
  230. <Static id="caption16" text="공용병상 배정 대기 환자리스트" class="tit_2" position="absolute -1 409 208 425"/>
  231. <Static id="caption8" text="결정서환자" visible="false" position="absolute 913 408 975 422"/>
  232. <Grid id="grd_inrsv" class="datagrid2" taborder="49" binddataset="ds_main_adrvlist" useinputpanel="false" position="absolute 0 430 1194 755" oncelldblclick="grd_inrsv_oncelldblclick">
  233. <Formats>
  234. <Format id="default">
  235. <Columns>
  236. <Column size="25" band="left"/>
  237. <Column size="48" band="left"/>
  238. <Column size="40" band="left"/>
  239. <Column size="45" band="left"/>
  240. <Column size="68" band="left"/>
  241. <Column size="40" band="left"/>
  242. <Column size="0" band="left"/>
  243. <Column size="61" band="left"/>
  244. <Column size="50" band="left"/>
  245. <Column size="40" band="left"/>
  246. <Column size="70"/>
  247. <Column size="76"/>
  248. <Column size="50"/>
  249. <Column size="150"/>
  250. <Column size="80"/>
  251. <Column size="50"/>
  252. <Column size="60"/>
  253. <Column size="0"/>
  254. <Column size="0"/>
  255. <Column size="0"/>
  256. <Column size="70"/>
  257. <Column size="40"/>
  258. <Column size="50"/>
  259. <Column size="90"/>
  260. <Column size="50"/>
  261. <Column size="100"/>
  262. <Column size="200"/>
  263. <Column size="100"/>
  264. <Column size="200"/>
  265. <Column size="53"/>
  266. <Column size="110"/>
  267. <Column size="100"/>
  268. <Column size="93"/>
  269. <Column size="106"/>
  270. <Column size="0"/>
  271. <Column size="0"/>
  272. <Column size="0"/>
  273. <Column size="0"/>
  274. <Column size="0"/>
  275. <Column size="0"/>
  276. <Column size="0"/>
  277. <Column size="0"/>
  278. <Column size="0"/>
  279. <Column size="0"/>
  280. <Column size="0"/>
  281. <Column size="0"/>
  282. <Column size="0"/>
  283. <Column size="0"/>
  284. <Column size="0"/>
  285. <Column size="0"/>
  286. <Column size="0"/>
  287. <Column size="0"/>
  288. <Column size="0"/>
  289. <Column size="0"/>
  290. <Column size="0"/>
  291. <Column size="0"/>
  292. <Column size="0"/>
  293. <Column size="0"/>
  294. <Column size="0"/>
  295. <Column size="0"/>
  296. <Column size="0"/>
  297. <Column size="0"/>
  298. <Column size="0"/>
  299. <Column size="0"/>
  300. <Column size="0"/>
  301. <Column size="0"/>
  302. <Column size="0"/>
  303. <Column size="0"/>
  304. <Column size="0"/>
  305. <Column size="0"/>
  306. <Column size="0"/>
  307. <Column size="0"/>
  308. <Column size="0"/>
  309. <Column size="0"/>
  310. <Column size="0"/>
  311. </Columns>
  312. <Rows>
  313. <Row size="30" band="head"/>
  314. <Row size="24"/>
  315. </Rows>
  316. <Band id="head">
  317. <Cell/>
  318. <Cell col="1" text="우선&#10;순위"/>
  319. <Cell col="2" text="배정&#13;&#10;순위"/>
  320. <Cell col="3" text="입원&#10;여부"/>
  321. <Cell col="4" colspan="2" text="결정일시/결정자" taborder="undefined"/>
  322. <Cell col="6" text="번호"/>
  323. <Cell col="7" text="환자번호"/>
  324. <Cell col="8" text="환자명"/>
  325. <Cell col="9" text="성별"/>
  326. <Cell col="10" text="생년월일"/>
  327. <Cell col="11" text="환자입원&#10;희망일자"/>
  328. <Cell col="12" text="담당교수"/>
  329. <Cell col="13" text="진료과"/>
  330. <Cell col="14" displaytype="normal" text="수술예정일자"/>
  331. <Cell col="15" text="경로"/>
  332. <Cell col="16" text="희망&#10;병실"/>
  333. <Cell col="17" text="희망병동"/>
  334. <Cell col="18" colspan="2" text="희망병실등급FROM/TO" taborder="undefined"/>
  335. <Cell col="20" text="배정병동"/>
  336. <Cell col="21" colspan="2" text="배정병실/병상" taborder="undefined"/>
  337. <Cell col="23" colspan="2" text="배정병실등급/형태" taborder="undefined"/>
  338. <Cell col="25" text="배정병상&#13;&#10;공용구분"/>
  339. <Cell col="26" text="원무 참고사항"/>
  340. <Cell col="27" text="진료과 입원&#10;담당자 연락처"/>
  341. <Cell col="28" text="진료 참고사항"/>
  342. <Cell col="29" colspan="2" text="공용병상 배정자/일시" taborder="undefined"/>
  343. <Cell col="31" displaytype="normal" text="입원일자"/>
  344. <Cell col="32" text="임상시험접수"/>
  345. <Cell col="33" text="임상시험과제번호"/>
  346. <Cell col="34" text="진료과코드"/>
  347. <Cell col="35" text="진료의코드"/>
  348. <Cell col="36" text="공용병상여부"/>
  349. <Cell col="37" text="caption19"/>
  350. <Cell col="38" text="caption20"/>
  351. <Cell col="39" text="caption3"/>
  352. <Cell col="40" text="caption4"/>
  353. <Cell col="41" text="caption5"/>
  354. <Cell col="42" text="caption6"/>
  355. <Cell col="43" text="caption7"/>
  356. <Cell col="44" text="caption1"/>
  357. <Cell col="45" text="caption8"/>
  358. <Cell col="46" text="caption9"/>
  359. <Cell col="47" text="caption10"/>
  360. <Cell col="48" text="caption11"/>
  361. <Cell col="49" text="caption12"/>
  362. <Cell col="50" text="응급여부"/>
  363. <Cell col="51" text="caption14"/>
  364. <Cell col="52" text="caption15"/>
  365. <Cell col="53" text="caption16"/>
  366. <Cell col="54" text="caption17"/>
  367. <Cell col="55" text="caption2"/>
  368. <Cell col="56" text="caption13"/>
  369. <Cell col="57" text="caption21"/>
  370. <Cell col="58" text="caption22"/>
  371. <Cell col="59" text="caption23"/>
  372. <Cell col="60" text="caption24"/>
  373. <Cell col="61" text="caption25"/>
  374. <Cell col="62" text="caption26"/>
  375. <Cell col="63" text="caption27"/>
  376. <Cell col="64" text="caption28"/>
  377. <Cell col="65" text="caption29"/>
  378. <Cell col="66" text="caption30"/>
  379. <Cell col="67" text="caption31"/>
  380. <Cell col="68" text="caption32"/>
  381. <Cell col="69" text="caption33"/>
  382. <Cell col="70"/>
  383. <Cell col="71"/>
  384. <Cell col="72"/>
  385. <Cell col="73"/>
  386. <Cell col="74"/>
  387. </Band>
  388. <Band id="body">
  389. <Cell celltype="head" expr="expr:currow + 1"/>
  390. <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:patgrade" combodataset="ds_init_pam_PK092list" combocodecol="cdid" combodatacol="cdid"/>
  391. <Cell col="2" style="align:center middle;" text="bind:sortno"/>
  392. <Cell col="3" displaytype="combo" style="align:center middle;" text="bind:inflag" combodataset="ds_init_P0039list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  393. <Cell col="4" displaytype="date" style="align:center middle;" text="bind:inrsrvacptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
  394. <Cell col="5" displaytype="expr:utlf_isNull(inrsrvacpttm) ? 'none' : 'normal'" style="align:center middle;" text="bind:inrsrvacpttm" mask="##:##" maskchar=" " enable="false"/>
  395. <Cell col="6" style="align:center middle;" text="bind:inrsrvacptseqno" enable="false"/>
  396. <Cell col="7" style="align:center middle;" text="bind:pid" enable="false"/>
  397. <Cell col="8" style="align:center middle;" text="bind:hngnm" enable="false"/>
  398. <Cell col="9" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_init_P0391list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  399. <Cell col="10" displaytype="expr:utlf_isNull(rrgstno) ? 'none' : 'normal'" style="align:center middle;" text="bind:rrgstno" mask="99/99/99" maskchar=" " enable="false"/>
  400. <Cell col="11" displaytype="date" style="align:center middle;" text="bind:patinhopedd" mask="yyyy-MM-dd" calendardisplaynulltype="none" enable="false"/>
  401. <Cell col="12" style="align:center middle;" text="bind:orddrid_nm"/>
  402. <Cell col="13" style="align:left middle;" text="bind:orddeptcd_nm"/>
  403. <Cell col="14" displaytype="date" text="bind:opschedd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  404. <Cell col="15" displaytype="combo" style="align:center middle;" text="bind:erreglyn" combodataset="ds_static_erreglyn" combocodecol="value" combodatacol="label"/>
  405. <Cell col="16" displaytype="combo" style="align:center middle;" text="bind:publicroomtype" combodataset="ds_init_P0552list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  406. <Cell col="17" displaytype="combo" text="bind:inhopeward" enable="false"/>
  407. <Cell col="18" displaytype="combo" text="bind:inhoperoomgrdefrom" combodataset="ds_hidden_roomgrdelist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  408. <Cell col="19" displaytype="combo" text="bind:inhoperoomgrdeto" combodataset="ds_hidden_roomgrdelist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  409. <Cell col="20" displaytype="combo" class="gridinput" text="bind:assgward" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  410. <Cell col="21" displaytype="combo" class="gridinput" text="bind:assgroom" combodataset="ds_hidden_init_roomcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  411. <Cell col="22" displaytype="combo" text="bind:assgbed" combodataset="ds_hidden_init_bedcd" combocodecol="cd" combodatacol="nm" enable="false"/>
  412. <Cell col="23" displaytype="combo" text="bind:assgroomgrde" combodataset="ds_init_P0025list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  413. <Cell col="24" displaytype="combo" text="bind:assgroomtype" combodataset="ds_init_P0026list" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  414. <Cell col="25" style="align:center middle;" text="bind:bedorddeptnm"/>
  415. <Cell col="26" displaytype="normal" edittype="none" style="align:left middle;" text="bind:inrsrvrem"/>
  416. <Cell col="27" style="align:center middle;" text="bind:inmgrtelno" mask="###-####-####" maskchar=" "/>
  417. <Cell col="28" displaytype="normal" edittype="none" text="bind:drrem"/>
  418. <Cell col="29" style="align:center middle;" text="bind:nurcnfnm"/>
  419. <Cell col="30" displaytype="expr:nurcnfdt == '-' ? 'normal' : 'date'" style="align:center middle;" text="bind:nurcnfdt" mask="expr:nurcnfdt == '-' ? '' : 'yyyy-MM-dd hh:mm'" calendardisplaynulltype="none"/>
  420. <Cell col="31" displaytype="date" style="align:center middle;" text="bind:indd" calendardisplaynulltype="none"/>
  421. <Cell col="32" displaytype="combo" text="bind:clincstdyacptflag" combodataset="ds_static_clincstdyacptflag" combocodecol="value" combodatacol="label" enable="false"/>
  422. <Cell col="33" style="align:left middle;" text="bind:clincstdyno"/>
  423. <Cell col="34" displaytype="none" edittype="none" text="bind:orddeptcd" enable="false"/>
  424. <Cell col="35" text="bind:orddrid" enable="false"/>
  425. <Cell col="36" text="bind:publicbedyn"/>
  426. <Cell col="37" text="bind:inrsrvprcpno"/>
  427. <Cell col="38" text="bind:insukind"/>
  428. <Cell col="39" text="bind:suppkind"/>
  429. <Cell col="40" text="bind:suppkindresn"/>
  430. <Cell col="41" text="bind:insuno"/>
  431. <Cell col="42" text="bind:indirecdrid"/>
  432. <Cell col="43" text="bind:indirecdd"/>
  433. <Cell col="44" text="bind:patinhopedd"/>
  434. <Cell col="45" text="bind:drgyn"/>
  435. <Cell col="46" text="bind:bmtyn"/>
  436. <Cell col="47" text="bind:cpyn"/>
  437. <Cell col="48" text="bind:cpcd"/>
  438. <Cell col="49" text="bind:fcstinterm"/>
  439. <Cell col="50" text="bind:erreglyn"/>
  440. <Cell col="51" text="bind:isolroomyn"/>
  441. <Cell col="52" text="bind:oxyyn"/>
  442. <Cell col="53" text="bind:suctyn"/>
  443. <Cell col="54" text="bind:specroomyn"/>
  444. <Cell col="55" text="bind:scheopdd"/>
  445. <Cell col="56" text="bind:inrsrvstat"/>
  446. <Cell col="57" text="bind:inrsrvgrad"/>
  447. <Cell col="58" text="bind:inrsrvcnclresn"/>
  448. <Cell col="59" text="bind:incncldd"/>
  449. <Cell col="60" text="bind:incncltm"/>
  450. <Cell col="61" text="bind:nblsyn"/>
  451. <Cell col="62" text="bind:inrsrvprcpno"/>
  452. <Cell col="63" text="bind:clincstdyacptflag"/>
  453. <Cell col="64" text="bind:clincstdyno"/>
  454. <Cell col="65" text="bind:centcd"/>
  455. <Cell col="66" text="bind:subdeptcd"/>
  456. <Cell col="67" text="bind:coopteamcd"/>
  457. <Cell col="68" text="bind:wardtypecd"/>
  458. <Cell col="69" text="bind:specwardcd"/>
  459. <Cell col="70" text="bind:ampmflag"/>
  460. <Cell col="71" text="bind:rsrvprcsstat"/>
  461. <Cell col="72" text="bind:specordtype"/>
  462. <Cell col="73" text="bind:ocrtag"/>
  463. <Cell col="74" text="bind:sex"/>
  464. </Band>
  465. </Format>
  466. </Formats>
  467. </Grid>
  468. <Shape id="rectangle1" type="rectangle" position="absolute 490 64 505 79" style="fillbrush:solid #ffe79dff true;"/>
  469. <Button id="button5" taborder="50" class="btn7" position="absolute 1061 63 1135 82" text="엑셀저장" onclick="button5_onclick"/>
  470. <Button id="button4" taborder="51" text="엑셀저장" class="btn7" position="absolute 1117 406 1191 425" onclick="button4_onclick"/>
  471. <Button id="button3" taborder="52" text="출력" class="btn6" position="absolute 1066 406 1116 425" onclick="button3_onclick"/>
  472. <Div id="group4" taborder="54" position="absolute 0 77 387 341" visible="false">
  473. <Layouts>
  474. <Layout width="375" height="237">
  475. <Shape id="line11" class="line_3" position="absolute 0 250 387 264" anchor="default"/>
  476. <Shape id="line2" class="line_2" position="absolute 0 128 387 134" anchor="default"/>
  477. <Button id="btn_ptbsrrgstno" taborder="1" onclick="btn_ptbsrrgstno_onclick" class="icon_search" position="absolute 213 33 226 46" anchor="default"/>
  478. <Button id="btn_ptbshngnm" taborder="2" onclick="btn_ptbshngnm_onclick" class="icon_search" position="absolute 213 7 226 20" anchor="default"/>
  479. <Edit id="input1" taborder="3" position="absolute 165 82 187 101" anchor="default"/>
  480. <Combo id="combo2" taborder="4" innerdataset="@ds_init_P0327list" codecolumn="cdid" datacolumn="cdnm" position="absolute 288 160 387 179" anchor="default"/>
  481. <Edit id="ipt_rrgstno2" taborder="5" maxlength="7" onkillfocus="ipt_rrgstno2_onkillfocus" onkeydown="ipt_rrgstno2_onkeydown" class="input_essential" position="absolute 152 30 210 49" anchor="default"/>
  482. <Edit id="ipt_rrgstno1" taborder="6" maxlength="6" onkillfocus="ipt_rrgstno1_onkillfocus" onkeydown="ipt_rrgstno1_onkeydown" class="input_essential" position="absolute 99 30 149 49" anchor="default"/>
  483. <Combo id="combo1" taborder="7" innerdataset="@ds_hidden_init_disccd" codecolumn="cd" datacolumn="nm" enable="false" position="absolute 99 134 387 153" anchor="default"/>
  484. <Static id="caption3" text="감면" class="cell_1" position="absolute 0 132 97 155" anchor="default" style="padding:0 0 0 3;"/>
  485. <TextArea id="tar_remfact" taborder="8" position="absolute 99 185 387 254" anchor="default" wordwrap="char" scrollbars="fixedvert"/>
  486. <Edit id="ipt_detladdr" taborder="9" class="input_default" position="absolute 99 108 387 127" anchor="default"/>
  487. <Edit id="ipt_zipnm" taborder="10" class="input_default" position="absolute 209 82 387 101" anchor="default"/>
  488. <Edit id="ipt_zipcd2" taborder="11" class="input_default" position="absolute 132 82 162 101" anchor="default"/>
  489. <Edit id="ipt_zipcd1" taborder="12" class="input_default" position="absolute 99 82 129 101" anchor="default"/>
  490. <Edit id="ipt_mpphontel" taborder="13" class="input_default" position="absolute 233 56 387 75" anchor="default"/>
  491. <Edit id="ipt_hometel" taborder="14" class="input_default" position="absolute 99 56 227 75" anchor="default"/>
  492. <MaskEdit id="ipt_brthdd" taborder="15" type="string" mask="####-##-##" maskchar=" " class="input_default" position="absolute 304 30 387 49" style="align:center middle;" anchor="default" ontextchange="group4_ipt_brthdd_ontextchange"/>
  493. <CheckBox id="ipt_vipyn" taborder="16" text="VIP" value="N" truevalue="Y" falsevalue="N" position="absolute 304 6 346 21" anchor="default"/>
  494. <Edit id="ipt_hngnm" taborder="17" onkeydown="ipt_hngnm_onkeydown" class="input_essential" position="absolute 99 4 210 23" anchor="default"/>
  495. <Static id="caption19" text="우편번호" class="cell_1" position="absolute 0 80 97 103" anchor="default" style="padding:0 0 0 3;"/>
  496. <Static id="caption49" text="연락처/휴대폰" class="cell_1" position="absolute 0 54 97 77" anchor="default" style="padding:0 0 0 3;"/>
  497. <Static id="caption26" text="성명" class="cell_1" position="absolute 0 2 97 25" anchor="default" style="padding:0 0 0 3;"/>
  498. <Static id="caption48" text="참고사항" class="cell_1" position="absolute 0 184 97 254" anchor="default" style="padding:0 0 0 3;"/>
  499. <Static id="caption35" text="주민번호" class="cell_1" position="absolute 0 28 97 51" anchor="default" style="padding:0 0 0 3;"/>
  500. <Static id="caption1" text="직원소개/추천인" class="cell_1" position="absolute 0 158 97 181" anchor="default" style="padding:0 0 0 3;"/>
  501. <Static id="caption31" text="하위주소" class="cell_1" position="absolute 0 106 97 129" anchor="default" style="padding:0 0 0 3;"/>
  502. <Edit id="output24" taborder="18" readonly="true" enable="false" position="absolute 172 160 266 179" style="background:URL('theme://images/bg_edit_D.png') stretch 5,5;" anchor="default"/>
  503. <Static id="caption2" text="VIP" class="cell_1" position="absolute 232 2 301 25" anchor="default"/>
  504. <Shape id="line15" class="line_2" position="absolute 0 180 387 186" anchor="default"/>
  505. <Button id="button20" taborder="19" onclick="button20_onclick" class="icon_search" position="absolute 269 163 282 176" anchor="default"/>
  506. <Shape id="line40" class="line_2" position="absolute 0 76 387 82" anchor="default"/>
  507. <Shape id="line39" class="line_2" position="absolute 0 50 387 56" anchor="default"/>
  508. <Static id="caption39" text="생년월일" class="cell_1" position="absolute 232 28 301 51" anchor="default"/>
  509. <Shape id="line38" class="line_2" position="absolute 0 24 387 30" anchor="default"/>
  510. <Shape id="line36" class="line_2" position="absolute 0 -2 387 4" anchor="default"/>
  511. <Shape id="line35" class="line_2" position="absolute 0 154 387 160" anchor="default"/>
  512. <Shape id="line16" class="line_2" position="absolute 0 102 387 108" anchor="default"/>
  513. <Button id="button6" taborder="20" onclick="button6_onclick" class="icon_search" position="absolute 191 85 204 98" anchor="default"/>
  514. <CheckBox id="checkbox4" taborder="21" text="직원소개" truevalue="checkbox1" position="absolute 99 162 169 177" anchor="default"/>
  515. </Layout>
  516. </Layouts>
  517. </Div>
  518. <Edit id="ipt_pid00" taborder="53" position="absolute 532 764 625 783"/>
  519. <Div id="group6" taborder="55" position="absolute 0 83 1194 360">
  520. <Layouts>
  521. <Layout>
  522. <Shape id="line33" class="line_1" position="absolute 0 -1 1194 5" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  523. <Grid id="grd_bedspec" class="datagrid2" taborder="0" binddataset="ds_main_bedlist" useinputpanel="false" position="absolute 0 4 1194 275" anchor="default" oncelldblclick="group6_grd_bedspec_oncelldblclick" autoenter="select">
  524. <Formats>
  525. <Format id="default">
  526. <Columns>
  527. <Column size="25" band="left"/>
  528. <Column size="0" band="left"/>
  529. <Column size="110" band="left"/>
  530. <Column size="60" band="left"/>
  531. <Column size="60" band="left"/>
  532. <Column size="40"/>
  533. <Column size="109"/>
  534. <Column size="70"/>
  535. <Column size="0"/>
  536. <Column size="75"/>
  537. <Column size="100"/>
  538. <Column size="131"/>
  539. <Column size="130"/>
  540. <Column size="100"/>
  541. <Column size="100"/>
  542. <Column size="100"/>
  543. <Column size="100"/>
  544. <Column size="60"/>
  545. <Column size="200"/>
  546. <Column size="100"/>
  547. <Column size="0"/>
  548. <Column size="0"/>
  549. <Column size="0"/>
  550. <Column size="0"/>
  551. </Columns>
  552. <Rows>
  553. <Row size="30" band="head"/>
  554. <Row size="24"/>
  555. </Rows>
  556. <Band id="head">
  557. <Cell/>
  558. <Cell col="1" text="건물"/>
  559. <Cell col="2" text="병동"/>
  560. <Cell col="3" text="병실"/>
  561. <Cell col="4" text="병상"/>
  562. <Cell col="5" text="성별"/>
  563. <Cell col="6" text="등급"/>
  564. <Cell col="7" text="형태"/>
  565. <Cell col="8" text="빈병상"/>
  566. <Cell col="9" text="병상상태"/>
  567. <Cell col="10" text="환자정보"/>
  568. <Cell col="11" text="HOLD"/>
  569. <Cell col="12" text="진료과"/>
  570. <Cell col="13" text="부진료과1"/>
  571. <Cell col="14" text="부진료과2"/>
  572. <Cell col="15" text="부진료과3"/>
  573. <Cell col="16" text="부진료과4"/>
  574. <Cell col="17" text="부도여부"/>
  575. <Cell col="18" text="비고"/>
  576. <Cell col="19" text="sidebed"/>
  577. <Cell col="20" text="O2"/>
  578. <Cell col="21" text="Suction"/>
  579. <Cell col="22" text="시작일자"/>
  580. <Cell col="23" text="종료일자"/>
  581. </Band>
  582. <Band id="body">
  583. <Cell celltype="head" expr="expr:currow + 1"/>
  584. <Cell col="1" displaytype="combo" edittype="combo" text="bind:building" enable="false"/>
  585. <Cell col="2" displaytype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:wardcd" combodataset="ds_hidden_init_wardcd" combocodecol="cd" combodatacol="nm" tooltiptext="bind:wardcd" enable="false"/>
  586. <Cell col="3" displaytype="text" edittype="text" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:roomcd" tooltiptext="bind:roomcd" enable="false"/>
  587. <Cell col="4" displaytype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:bedcd" combodataset="ds_hidden_init_bedcd" combocodecol="cd" combodatacol="nm" tooltiptext="bind:bedcd" enable="false"/>
  588. <Cell col="5" displaytype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:sex" combodataset="ds_init_P0391list" combocodecol="cdid" combodatacol="cdnm" tooltiptext="bind:sex" enable="false"/>
  589. <Cell col="6" displaytype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:roomgrdecd" combodataset="ds_init_P0025list" combocodecol="cdid" combodatacol="cdnm" tooltiptext="bind:roomgrdecd" enable="false"/>
  590. <Cell col="7" displaytype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:roomtypecd" combodataset="ds_init_P0026list" combocodecol="cdid" combodatacol="cdnm" tooltiptext="bind:roomtypecd" enable="false"/>
  591. <Cell col="8" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:emptycheck" tooltiptext="bind:emptycheck"/>
  592. <Cell col="9" style="align:center top;padding:5 2 3 2;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:emptykind" wordwrap="word" tooltiptext="bind:emptykind"/>
  593. <Cell col="10" style="align:center top;padding:5 2 3 2;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:patinfo" wordwrap="char" tooltiptext="bind:patinfo"/>
  594. <Cell col="11" displaytype="text" edittype="text" style="align:center top;padding:5 2 3 2;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:holdmsg" wordwrap="char" tooltiptext="bind:holdmsg"/>
  595. <Cell col="12" style="background:BIND(orddeptcdBg);background2:BIND(orddeptcdBg);" text="bind:orddeptcd" tooltiptext="bind:orddeptcd" enable="false"/>
  596. <Cell col="13" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suborddeptcd1" tooltiptext="bind:suborddeptcd1" enable="false"/>
  597. <Cell col="14" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suborddeptcd2" tooltiptext="bind:suborddeptcd2" enable="false"/>
  598. <Cell col="15" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suborddeptcd3" tooltiptext="bind:suborddeptcd3" enable="false"/>
  599. <Cell col="16" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suborddeptcd4" tooltiptext="bind:suborddeptcd4" enable="false"/>
  600. <Cell col="17" displaytype="combo" edittype="combo" style="align:center middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:budogubun" combodataset="ds_static_budogubun" combocodecol="value" combodatacol="label" tooltiptext="bind:budogubun"/>
  601. <Cell col="18" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:bedrem" tooltiptext="bind:bedrem" enable="false"/>
  602. <Cell col="19" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suborddeptcd5" tooltiptext="bind:suborddeptcd5" enable="false"/>
  603. <Cell col="20" displaytype="combo" edittype="combo" text="bind:oxyyn"/>
  604. <Cell col="21" displaytype="combo" edittype="combo" text="bind:suctyn"/>
  605. <Cell col="22" displaytype="date" edittype="date" text="bind:fromdd" enable="false"/>
  606. <Cell col="23" displaytype="date" edittype="date" text="bind:todd" enable="false"/>
  607. </Band>
  608. </Format>
  609. </Formats>
  610. </Grid>
  611. </Layout>
  612. </Layouts>
  613. </Div>
  614. <Edit id="caption17" taborder="56" position="absolute 216 406 335 426" style="background:stretch 5,5; :disabled {color:black;}" value="※입원배정 우선순위" oneditdblclick="caption17_oneditdblclick" enable="false"/>
  615. <Div id="grp" taborder="57" position="absolute 224 423 392 536" class="div_SA2" style="padding:8 8 8 8;" visible="false">
  616. <Layouts>
  617. <Layout>
  618. <Static id="caption18" text="[입원배정 우선순위]&#13;&#10;&#13;&#10;1. 응급수술을 요하는 환자&#13;&#10;2. 수술예약환자&#13;&#10;3. 응급실에 대기 중인 환자&#13;&#10;4. 외래환자 중 중증환자&#13;&#10;5. 접수 순서에 의한 환자" position="absolute 0 4 162 102" anchor="default" style="padding:8 8 8 8;"/>
  619. </Layout>
  620. </Layouts>
  621. </Div>
  622. </Layout>
  623. </Layouts>
  624. <Objects>
  625. <Dataset id="ds_init_P0006list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  626. <ColumnInfo>
  627. <Column id="cdid" type="STRING" size="256"/>
  628. <Column id="cdnm" type="STRING" size="256"/>
  629. </ColumnInfo>
  630. </Dataset>
  631. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  632. <ColumnInfo>
  633. <Column id="cdid" type="STRING" size="256"/>
  634. <Column id="cdnm" type="STRING" size="256"/>
  635. </ColumnInfo>
  636. </Dataset>
  637. <Dataset id="ds_init_P0010list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  638. <ColumnInfo>
  639. <Column id="cdid" type="STRING" size="256"/>
  640. <Column id="cdnm" type="STRING" size="256"/>
  641. </ColumnInfo>
  642. </Dataset>
  643. <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  644. <ColumnInfo>
  645. <Column id="cdid" type="STRING" size="256"/>
  646. <Column id="cdnm" type="STRING" size="256"/>
  647. </ColumnInfo>
  648. </Dataset>
  649. <Dataset id="ds_init_P0025list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  650. <ColumnInfo>
  651. <Column id="cdid" type="STRING" size="256"/>
  652. <Column id="cdnm" type="STRING" size="256"/>
  653. </ColumnInfo>
  654. </Dataset>
  655. <Dataset id="ds_init_P0026list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  656. <ColumnInfo>
  657. <Column id="cdid" type="STRING" size="256"/>
  658. <Column id="cdnm" type="STRING" size="256"/>
  659. </ColumnInfo>
  660. </Dataset>
  661. <Dataset id="ds_init_P0032list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  662. <ColumnInfo>
  663. <Column id="cdid" type="STRING" size="256"/>
  664. <Column id="cdnm" type="STRING" size="256"/>
  665. </ColumnInfo>
  666. </Dataset>
  667. <Dataset id="ds_init_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  668. <ColumnInfo>
  669. <Column id="cdid" type="STRING" size="256"/>
  670. <Column id="cdnm" type="STRING" size="256"/>
  671. </ColumnInfo>
  672. </Dataset>
  673. <Dataset id="ds_init_P0039list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  674. <ColumnInfo>
  675. <Column id="cdid" type="STRING" size="256"/>
  676. <Column id="cdnm" type="STRING" size="256"/>
  677. </ColumnInfo>
  678. </Dataset>
  679. <Dataset id="ds_init_P0327list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  680. <ColumnInfo>
  681. <Column id="cdid" type="STRING" size="256"/>
  682. <Column id="cdnm" type="STRING" size="256"/>
  683. </ColumnInfo>
  684. </Dataset>
  685. <Dataset id="ds_init_P0391list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  686. <ColumnInfo>
  687. <Column id="cdid" type="STRING" size="256"/>
  688. <Column id="cdnm" type="STRING" size="256"/>
  689. </ColumnInfo>
  690. </Dataset>
  691. <Dataset id="ds_init_M0019list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  692. <ColumnInfo>
  693. <Column id="cdid" type="STRING" size="256"/>
  694. <Column id="cdnm" type="STRING" size="256"/>
  695. </ColumnInfo>
  696. </Dataset>
  697. <Dataset id="ds_init_P0552list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  698. <ColumnInfo>
  699. <Column id="cdid" type="STRING" size="256"/>
  700. <Column id="cdnm" type="STRING" size="256"/>
  701. </ColumnInfo>
  702. </Dataset>
  703. <Dataset id="ds_cmb_ordept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  704. <ColumnInfo>
  705. <Column id="cd" type="STRING" size="256"/>
  706. <Column id="nm" type="STRING" size="256"/>
  707. </ColumnInfo>
  708. </Dataset>
  709. <Dataset id="ds_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  710. <ColumnInfo>
  711. <Column id="cd" type="STRING" size="256"/>
  712. <Column id="nm" type="STRING" size="256"/>
  713. </ColumnInfo>
  714. </Dataset>
  715. <Dataset id="ds_init_pam_PK092list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  716. <Dataset id="ds_hidden_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  717. <ColumnInfo>
  718. <Column id="cd" type="STRING" size="256"/>
  719. <Column id="nm" type="STRING" size="256"/>
  720. </ColumnInfo>
  721. </Dataset>
  722. <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  723. <ColumnInfo>
  724. <Column id="cd" type="STRING" size="256"/>
  725. <Column id="nm" type="STRING" size="256"/>
  726. </ColumnInfo>
  727. </Dataset>
  728. <Dataset id="ds_hidden_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  729. <ColumnInfo>
  730. <Column id="cd" type="STRING" size="256"/>
  731. <Column id="nm" type="STRING" size="256"/>
  732. <Column id="up" type="STRING" size="256"/>
  733. <Column id="io" type="STRING" size="256"/>
  734. </ColumnInfo>
  735. </Dataset>
  736. <Dataset id="ds_hidden_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  737. <ColumnInfo>
  738. <Column id="cd" type="STRING" size="256"/>
  739. <Column id="nm" type="STRING" size="256"/>
  740. </ColumnInfo>
  741. </Dataset>
  742. <Dataset id="ds_hidden_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  743. <ColumnInfo>
  744. <Column id="cd" type="STRING" size="256"/>
  745. <Column id="nm" type="STRING" size="256"/>
  746. <Column id="dp" type="STRING" size="256"/>
  747. <Column id="sp" type="STRING" size="256"/>
  748. </ColumnInfo>
  749. </Dataset>
  750. <Dataset id="ds_hidden_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  751. <ColumnInfo>
  752. <Column id="prestdd" type="STRING" size="256"/>
  753. </ColumnInfo>
  754. </Dataset>
  755. <Dataset id="ds_hidden_init_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  756. <ColumnInfo>
  757. <Column id="cd" type="STRING" size="256"/>
  758. <Column id="nm" type="STRING" size="256"/>
  759. <Column id="of" type="STRING" size="256"/>
  760. </ColumnInfo>
  761. </Dataset>
  762. <Dataset id="ds_hidden_init_roomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  763. <ColumnInfo>
  764. <Column id="cd" type="STRING" size="256"/>
  765. <Column id="nm" type="STRING" size="256"/>
  766. <Column id="wd" type="STRING" size="256"/>
  767. <Column id="gr" type="STRING" size="256"/>
  768. <Column id="ty" type="STRING" size="256"/>
  769. </ColumnInfo>
  770. </Dataset>
  771. <Dataset id="ds_send_data2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  772. <ColumnInfo>
  773. <Column id="inrsrvcond" type="STRING" size="256"/>
  774. <Column id="inrsrvcondnm" type="STRING" size="256"/>
  775. <Column id="sendflag" type="STRING" size="256"/>
  776. <Column id="prestdd" type="STRING" size="256"/>
  777. <Column id="pid" type="STRING" size="256"/>
  778. <Column id="inrsrvtodd" type="STRING" size="256"/>
  779. <Column id="r_checkflag" type="STRING" size="256"/>
  780. <Column id="erreglyn" type="STRING" size="256"/>
  781. <Column id="publicflag" type="STRING" size="256"/>
  782. </ColumnInfo>
  783. <Rows>
  784. <Row>
  785. <Col id="inrsrvcond">1</Col>
  786. <Col id="inrsrvcondnm"/>
  787. <Col id="sendflag"/>
  788. <Col id="prestdd"/>
  789. <Col id="pid"/>
  790. <Col id="inrsrvtodd"/>
  791. <Col id="r_checkflag"/>
  792. <Col id="erreglyn">A</Col>
  793. <Col id="publicflag">A</Col>
  794. </Row>
  795. </Rows>
  796. </Dataset>
  797. <Dataset id="ds_main_comnbedsmsmsg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  798. <ColumnInfo>
  799. <Column id="msgfrmtid" type="STRING" size="256"/>
  800. <Column id="replytelno" type="STRING" size="256"/>
  801. <Column id="orgmsgfrmtcnts" type="STRING" size="256"/>
  802. </ColumnInfo>
  803. <Rows>
  804. <Row>
  805. <Col id="msgfrmtid"/>
  806. <Col id="replytelno"/>
  807. <Col id="orgmsgfrmtcnts"/>
  808. </Row>
  809. </Rows>
  810. </Dataset>
  811. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  812. <ColumnInfo>
  813. <Column id="rmspecref" type="STRING" size="256"/>
  814. <Column id="rmspecrefnm" type="STRING" size="256"/>
  815. <Column id="sendflag" type="STRING" size="256"/>
  816. <Column id="prestdd" type="STRING" size="256"/>
  817. <Column id="sex" type="STRING" size="256"/>
  818. <Column id="bedflag" type="STRING" size="256"/>
  819. <Column id="orddeptcd" type="STRING" size="256"/>
  820. <Column id="bedtype" type="STRING" size="256"/>
  821. <Column id="search" type="STRING" size="256"/>
  822. <Column id="budogubunyn" type="STRING" size="256"/>
  823. </ColumnInfo>
  824. <Rows>
  825. <Row>
  826. <Col id="rmspecref"/>
  827. <Col id="rmspecrefnm"/>
  828. <Col id="sendflag"/>
  829. <Col id="prestdd"/>
  830. <Col id="sex"/>
  831. <Col id="bedflag"/>
  832. <Col id="orddeptcd"/>
  833. <Col id="bedtype">C</Col>
  834. <Col id="search">S</Col>
  835. <Col id="budogubunyn"/>
  836. </Row>
  837. </Rows>
  838. </Dataset>
  839. <Dataset id="ds_hidden_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  840. <ColumnInfo>
  841. <Column id="pid" type="STRING" size="256"/>
  842. </ColumnInfo>
  843. <Rows>
  844. <Row/>
  845. </Rows>
  846. </Dataset>
  847. <Dataset id="ds_main_bedlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onvaluechanged="ds_main_bedlist_onvaluechanged">
  848. <ColumnInfo>
  849. <Column id="building" type="STRING" size="256" sumtext="건물"/>
  850. <Column id="wardcd" type="STRING" size="256" sumtext="병동"/>
  851. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  852. <Column id="bedcnt" type="STRING" size="256" sumtext="인실"/>
  853. <Column id="bedcd" type="STRING" size="256" sumtext="병상"/>
  854. <Column id="bednm" type="STRING" size="256" sumtext="병상"/>
  855. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  856. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  857. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  858. <Column id="roomgrdecd" type="STRING" size="256" sumtext="등급"/>
  859. <Column id="roomtypecd" type="STRING" size="256" sumtext="형태"/>
  860. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  861. <Column id="suborddeptcd1" type="STRING" size="256" sumtext="진료과"/>
  862. <Column id="suborddeptcd2" type="STRING" size="256" sumtext="진료과"/>
  863. <Column id="suborddeptcd3" type="STRING" size="256" sumtext="진료과"/>
  864. <Column id="suborddeptcd4" type="STRING" size="256" sumtext="진료과"/>
  865. <Column id="suborddeptcd5" type="STRING" size="256" sumtext="진료과"/>
  866. <Column id="holdmsg" type="STRING" size="256" sumtext="HOLD메세지"/>
  867. <Column id="bedrem" type="STRING" size="256" sumtext="병실참고사항"/>
  868. <Column id="oxyyn" type="STRING" size="256" sumtext="O2여부"/>
  869. <Column id="suctyn" type="STRING" size="256" sumtext="Suction여부"/>
  870. <Column id="emptycheck" type="STRING" size="256" sumtext="빈병상체크"/>
  871. <Column id="overbedyn" type="STRING" size="256" sumtext="오버베드여부"/>
  872. <Column id="emptykind" type="STRING" size="256" sumtext="병상상태"/>
  873. <Column id="patinfo" type="STRING" size="256" sumtext="환자정보"/>
  874. <Column id="patorddeptnm" type="STRING" size="256" sumtext="재원진료과"/>
  875. <Column id="budogubun" type="STRING" size="256" sumtext="부도여부"/>
  876. <Column id="bgColor" type="STRING" size="256"/>
  877. <Column id="orddeptcdBg" type="STRING" size="256"/>
  878. </ColumnInfo>
  879. </Dataset>
  880. <Dataset id="ds_main_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  881. <ColumnInfo>
  882. <Column id="ptbs_status" type="STRING" size="256"/>
  883. <Column id="ptbs_pid" type="STRING" size="256"/>
  884. <Column id="ptbs_hngnm" type="STRING" size="256"/>
  885. <Column id="ptbs_engnm" type="STRING" size="256"/>
  886. <Column id="ptbs_rrgstno1" type="STRING" size="256"/>
  887. <Column id="ptbs_rrgstno2" type="STRING" size="256"/>
  888. <Column id="ptbs_brthdd" type="STRING" size="256"/>
  889. <Column id="ptbs_sex" type="STRING" size="256"/>
  890. <Column id="ptbs_age" type="STRING" size="256"/>
  891. <Column id="ptbs_hometel" type="STRING" size="256"/>
  892. <Column id="ptbs_mpphontel" type="STRING" size="256"/>
  893. <Column id="ptbs_zipcd1" type="STRING" size="256"/>
  894. <Column id="ptbs_zipcd2" type="STRING" size="256"/>
  895. <Column id="ptbs_zipcdseq" type="STRING" size="256"/>
  896. <Column id="ptbs_zipcdaddr" type="STRING" size="256"/>
  897. <Column id="ptbs_detladdr" type="STRING" size="256"/>
  898. <Column id="ptbs_forgeryn" type="STRING" size="256"/>
  899. <Column id="ptbs_recmyn" type="STRING" size="256"/>
  900. <Column id="ptbs_recmerid" type="STRING" size="256"/>
  901. <Column id="ptbs_recmerrela" type="STRING" size="256"/>
  902. <Column id="ptbs_vipyn" type="STRING" size="256"/>
  903. <Column id="ptbs_religncd" type="STRING" size="256"/>
  904. <Column id="ptbs_remfact" type="STRING" size="256"/>
  905. <Column id="ptbs_inhospyn" type="STRING" size="256"/>
  906. </ColumnInfo>
  907. <Rows>
  908. <Row>
  909. <Col id="ptbs_status"/>
  910. <Col id="ptbs_pid"/>
  911. <Col id="ptbs_hngnm"/>
  912. <Col id="ptbs_engnm"/>
  913. <Col id="ptbs_rrgstno1"/>
  914. <Col id="ptbs_rrgstno2"/>
  915. <Col id="ptbs_brthdd"/>
  916. <Col id="ptbs_sex"/>
  917. <Col id="ptbs_age"/>
  918. <Col id="ptbs_hometel"/>
  919. <Col id="ptbs_mpphontel"/>
  920. <Col id="ptbs_zipcd1"/>
  921. <Col id="ptbs_zipcd2"/>
  922. <Col id="ptbs_zipcdseq"/>
  923. <Col id="ptbs_zipcdaddr"/>
  924. <Col id="ptbs_detladdr"/>
  925. <Col id="ptbs_forgeryn"/>
  926. <Col id="ptbs_recmyn"/>
  927. <Col id="ptbs_recmerid"/>
  928. <Col id="ptbs_recmerrela"/>
  929. <Col id="ptbs_vipyn"/>
  930. <Col id="ptbs_religncd"/>
  931. <Col id="ptbs_remfact"/>
  932. <Col id="ptbs_inhospyn"/>
  933. </Row>
  934. </Rows>
  935. </Dataset>
  936. <Dataset id="ds_send_data9" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  937. <ColumnInfo>
  938. <Column id="srchcond" type="STRING" size="256"/>
  939. <Column id="pid" type="STRING" size="256"/>
  940. <Column id="hngnm" type="STRING" size="256"/>
  941. <Column id="rrgstno1" type="STRING" size="256"/>
  942. <Column id="rrgstno2" type="STRING" size="256"/>
  943. <Column id="autoflag" type="STRING" size="256"/>
  944. </ColumnInfo>
  945. <Rows>
  946. <Row>
  947. <Col id="srchcond"/>
  948. <Col id="pid"/>
  949. <Col id="hngnm"/>
  950. <Col id="rrgstno1"/>
  951. <Col id="rrgstno2"/>
  952. <Col id="autoflag"/>
  953. </Row>
  954. </Rows>
  955. </Dataset>
  956. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  957. <Dataset id="ds_send_data11" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  958. <ColumnInfo>
  959. <Column id="hngnm" type="STRING" size="256"/>
  960. <Column id="mode" type="STRING" size="256"/>
  961. <Column id="rrgstno1" type="STRING" size="256"/>
  962. <Column id="rrgstno2" type="STRING" size="256"/>
  963. <Column id="pid" type="STRING" size="256"/>
  964. <Column id="indd" type="STRING" size="256"/>
  965. </ColumnInfo>
  966. <Rows>
  967. <Row>
  968. <Col id="hngnm"/>
  969. <Col id="mode"/>
  970. <Col id="rrgstno1"/>
  971. <Col id="rrgstno2"/>
  972. <Col id="pid"/>
  973. <Col id="indd"/>
  974. </Row>
  975. </Rows>
  976. </Dataset>
  977. <Dataset id="ds_hidden_check_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  978. <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  979. <Dataset id="ds_send_data3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  980. <ColumnInfo>
  981. <Column id="pid" type="STRING" size="256"/>
  982. <Column id="insukind" type="STRING" size="256"/>
  983. <Column id="mode" type="STRING" size="256"/>
  984. </ColumnInfo>
  985. <Rows>
  986. <Row>
  987. <Col id="pid"/>
  988. <Col id="insukind"/>
  989. <Col id="mode"/>
  990. </Row>
  991. </Rows>
  992. </Dataset>
  993. <Dataset id="ds_main_adrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  994. <ColumnInfo>
  995. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  996. <Column id="hngnm" type="STRING" size="256" sumtext="환자성명"/>
  997. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  998. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  999. <Column id="status" type="STRING" size="256" sumtext="상태값"/>
  1000. <Column id="inrsrvacptdd" type="STRING" size="256" sumtext="접수일자"/>
  1001. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1002. <Column id="orddeptcd_nm" type="STRING" size="256" sumtext="진료과"/>
  1003. <Column id="inrsrvacptseqno" type="STRING" size="256" sumtext="예약접수번호"/>
  1004. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1005. <Column id="inrsrvacpttm" type="STRING" size="256" sumtext="접수시간"/>
  1006. <Column id="inrsrvstat" type="STRING" size="256" sumtext="입원예약flag"/>
  1007. <Column id="inrsrvprcpno" type="STRING" size="256" sumtext="예약처방번호"/>
  1008. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  1009. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  1010. <Column id="suppkindresn" type="STRING" size="256" sumtext="유형사유"/>
  1011. <Column id="insuno" type="STRING" size="256" sumtext="보험자코드"/>
  1012. <Column id="indirecdrid" type="STRING" size="256" sumtext="지시의사"/>
  1013. <Column id="indirecdd" type="STRING" size="256" sumtext="지시일자"/>
  1014. <Column id="orddrid" type="STRING" size="256" sumtext="전문의"/>
  1015. <Column id="orddrid_nm" type="STRING" size="256" sumtext="전문의"/>
  1016. <Column id="inhopedd" type="STRING" size="256" sumtext="희망입원일자"/>
  1017. <Column id="patinhopedd" type="STRING" size="256" sumtext="환자희망입원일자"/>
  1018. <Column id="inhopeward" type="STRING" size="256" sumtext="희망병동"/>
  1019. <Column id="inhoperoomgrdefrom" type="STRING" size="256" sumtext="희망병실등급from"/>
  1020. <Column id="inhoperoomgrdeto" type="STRING" size="256" sumtext="희망병실등급to"/>
  1021. <Column id="assgward" type="STRING" size="256" sumtext="배정병동"/>
  1022. <Column id="assgroom" type="STRING" size="256" sumtext="배정병실"/>
  1023. <Column id="assgbed" type="STRING" size="256" sumtext="배정병실"/>
  1024. <Column id="assgroomgrde" type="STRING" size="256" sumtext="배정병실등급"/>
  1025. <Column id="assgroomtype" type="STRING" size="256" sumtext="배정병실형태"/>
  1026. <Column id="inflag" type="STRING" size="256" sumtext="입원상태"/>
  1027. <Column id="drgyn" type="STRING" size="256" sumtext="drg여부"/>
  1028. <Column id="bmtyn" type="STRING" size="256" sumtext="bmt여부"/>
  1029. <Column id="cpyn" type="STRING" size="256" sumtext="cp여부"/>
  1030. <Column id="cpcd" type="STRING" size="256" sumtext="cp종류"/>
  1031. <Column id="fcstinterm" type="STRING" size="256" sumtext="예상입원기간"/>
  1032. <Column id="erreglyn" type="STRING" size="256" sumtext="응급여부"/>
  1033. <Column id="isolroomyn" type="STRING" size="256" sumtext="격리실여부"/>
  1034. <Column id="oxyyn" type="STRING" size="256" sumtext="o2사용여부"/>
  1035. <Column id="suctyn" type="STRING" size="256" sumtext="suction사용여부"/>
  1036. <Column id="specroomyn" type="STRING" size="256" sumtext="입원예약병실형태"/>
  1037. <Column id="scheopdd" type="STRING" size="256" sumtext="수술예정일"/>
  1038. <Column id="opschedd" type="STRING" size="256" sumtext="수술예정일"/>
  1039. <Column id="inrsrvgrad" type="STRING" size="256" sumtext="입원우선순위"/>
  1040. <Column id="inrsrvrem" type="STRING" size="256" sumtext="입원예약참고사항"/>
  1041. <Column id="drrem" type="STRING" size="256" sumtext="의사참고사항"/>
  1042. <Column id="inrsrvcnclresn" type="STRING" size="256" sumtext="입원예약취소사유"/>
  1043. <Column id="incncldd" type="STRING" size="256" sumtext="입원취소일자"/>
  1044. <Column id="incncltm" type="STRING" size="256" sumtext="입원취소시간"/>
  1045. <Column id="nblsyn" type="STRING" size="256" sumtext="노블레스여부"/>
  1046. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자"/>
  1047. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  1048. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
  1049. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  1050. <Column id="clincstdyacptflag" type="STRING" size="256" sumtext="임상시험접수상태"/>
  1051. <Column id="clincstdyno" type="STRING" size="256" sumtext="임상시험과제번호"/>
  1052. <Column id="ocrtag" type="STRING" size="256" sumtext="OCRTag"/>
  1053. <Column id="centcd" type="STRING" size="256" sumtext="센터코드"/>
  1054. <Column id="subdeptcd" type="STRING" size="256" sumtext="세부진료과코드"/>
  1055. <Column id="coopteamcd" type="STRING" size="256" sumtext="협력팀코드"/>
  1056. <Column id="wardtypecd" type="STRING" size="256" sumtext="병동형태"/>
  1057. <Column id="specwardcd" type="STRING" size="256" sumtext="세부병동"/>
  1058. <Column id="ampmflag" type="STRING" size="256" sumtext="DCC오전오후구분"/>
  1059. <Column id="rsrvprcsstat" type="STRING" size="256" sumtext="입원예약진행상태"/>
  1060. <Column id="specordtype" type="STRING" size="256" sumtext="선택진료형태"/>
  1061. <Column id="publicbedyn" type="STRING" size="256" sumtext="공용병상사용여부"/>
  1062. <Column id="sortno" type="STRING" size="256" sumtext="우선순위"/>
  1063. <Column id="inmgrtelno" type="STRING" size="256" sumtext="입원담당자연락처"/>
  1064. <Column id="publicroomtype" type="STRING" size="256" sumtext="희망병실"/>
  1065. <Column id="nurcnfid" type="STRING" size="256" sumtext="공용병상 배정자ID"/>
  1066. <Column id="nurcnfnm" type="STRING" size="256" sumtext="공용병상 배정자명"/>
  1067. <Column id="nurcnfdt" type="STRING" size="256" sumtext="공용병상 배정일시"/>
  1068. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  1069. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자명"/>
  1070. <Column id="assgdt" type="STRING" size="256" sumtext="입원결정일시"/>
  1071. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의"/>
  1072. <Column id="patgrade" type="STRING" size="256" sumtext="환자등급"/>
  1073. <Column id="bedorddeptnm" type="STRING" size="256" sumtext="배정병상 공용구분"/>
  1074. </ColumnInfo>
  1075. </Dataset>
  1076. <Dataset id="ds_hidden_init_bedcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1077. <ColumnInfo>
  1078. <Column id="cd" type="STRING" size="256"/>
  1079. <Column id="nm" type="STRING" size="256"/>
  1080. </ColumnInfo>
  1081. </Dataset>
  1082. <Dataset id="ds_static_budogubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1083. <ColumnInfo>
  1084. <Column id="label" type="STRING" size="256"/>
  1085. <Column id="value" type="STRING" size="256"/>
  1086. </ColumnInfo>
  1087. <Rows>
  1088. <Row>
  1089. <Col id="label">부도</Col>
  1090. <Col id="value">N</Col>
  1091. </Row>
  1092. <Row>
  1093. <Col id="label">정상</Col>
  1094. <Col id="value">Y</Col>
  1095. </Row>
  1096. </Rows>
  1097. </Dataset>
  1098. <Dataset id="ds_static_erreglyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1099. <ColumnInfo>
  1100. <Column id="label" type="STRING" size="256"/>
  1101. <Column id="value" type="STRING" size="256"/>
  1102. </ColumnInfo>
  1103. <Rows>
  1104. <Row>
  1105. <Col id="label">입원</Col>
  1106. <Col id="value">I</Col>
  1107. </Row>
  1108. <Row>
  1109. <Col id="label">응급</Col>
  1110. <Col id="value">E</Col>
  1111. </Row>
  1112. <Row>
  1113. <Col id="label">DSC/특수주사실</Col>
  1114. <Col id="value">D</Col>
  1115. </Row>
  1116. </Rows>
  1117. </Dataset>
  1118. <Dataset id="ds_hidden_roomgrdelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1119. <Dataset id="ds_static_clincstdyacptflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1120. <ColumnInfo>
  1121. <Column id="label" type="STRING" size="256"/>
  1122. <Column id="value" type="STRING" size="256"/>
  1123. </ColumnInfo>
  1124. <Rows>
  1125. <Row>
  1126. <Col id="label">-</Col>
  1127. <Col id="value">N</Col>
  1128. </Row>
  1129. <Row>
  1130. <Col id="label">임상(전액청구)</Col>
  1131. <Col id="value">P</Col>
  1132. </Row>
  1133. <Row>
  1134. <Col id="label">임상(진찰료제외)</Col>
  1135. <Col id="value">Q</Col>
  1136. </Row>
  1137. <Row>
  1138. <Col id="label">동물임상</Col>
  1139. <Col id="value">A</Col>
  1140. </Row>
  1141. </Rows>
  1142. </Dataset>
  1143. <Dataset id="ds_hidden_original_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1144. <Dataset id="ds_hidden_original_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1145. <Dataset id="ds_main_otptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1146. <ColumnInfo>
  1147. <Column id="cvrtflag" type="STRING" size="256" sumtext="외래전환"/>
  1148. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1149. <Column id="calcflag" type="STRING" size="256" sumtext="수납Flag"/>
  1150. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  1151. <Column id="ordtm" type="STRING" size="256" sumtext="진료시간"/>
  1152. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  1153. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사"/>
  1154. <Column id="specordyn" type="STRING" size="256" sumtext="선택진료여부"/>
  1155. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  1156. <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
  1157. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  1158. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  1159. <Column id="suppkindresn" type="STRING" size="256" sumtext="보조유형"/>
  1160. <Column id="insucd" type="STRING" size="256" sumtext="보험자기호"/>
  1161. <Column id="medamtestmyn" type="STRING" size="256" sumtext="진찰료여부"/>
  1162. <Column id="ordtype" type="STRING" size="256" sumtext="형태"/>
  1163. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  1164. <Column id="acptseqno" type="STRING" size="256" sumtext="이력일련번호"/>
  1165. <Column id="histstat" type="STRING" size="256" sumtext="이력상태"/>
  1166. <Column id="ordreqformflag" type="STRING" size="256" sumtext="수급절차"/>
  1167. <Column id="rareobstflag" type="STRING" size="256" sumtext="희귀난치대상여부"/>
  1168. <Column id="disccd" type="STRING" size="256" sumtext="할인계정"/>
  1169. </ColumnInfo>
  1170. </Dataset>
  1171. <Dataset id="ds_buffer" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1172. <Dataset id="ds_hidden_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1173. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1174. <Dataset id="ds_main_adrv" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1175. <ColumnInfo>
  1176. <Column id="suppkind" type="STRING" size="256"/>
  1177. <Column id="suppkindresn" type="STRING" size="256"/>
  1178. <Column id="insukind" type="STRING" size="256"/>
  1179. </ColumnInfo>
  1180. <Rows>
  1181. <Row>
  1182. <Col id="suppkind"/>
  1183. <Col id="suppkindresn"/>
  1184. <Col id="insukind"/>
  1185. </Row>
  1186. </Rows>
  1187. </Dataset>
  1188. <Dataset id="ds_main_ptin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1189. <ColumnInfo>
  1190. <Column id="ptin_status" type="STRING" size="256" sumtext="상태"/>
  1191. <Column id="ptin_pid" type="STRING" size="256" sumtext="등록번호"/>
  1192. <Column id="ptin_insukind" type="STRING" size="256" sumtext="보험유형"/>
  1193. <Column id="ptin_todd" type="STRING" size="256" sumtext="종료일자"/>
  1194. <Column id="ptin_seqno" type="STRING" size="256" sumtext="일련번호"/>
  1195. <Column id="ptin_histstat" type="STRING" size="256" sumtext="이력상태"/>
  1196. <Column id="ptin_fromdd" type="STRING" size="256" sumtext="시작일자"/>
  1197. <Column id="ptin_insucd" type="STRING" size="256" sumtext="보험자코드"/>
  1198. <Column id="ptin_insucdnm" type="STRING" size="256" sumtext="보험자코드"/>
  1199. <Column id="ptin_insuno" type="STRING" size="256" sumtext="보험증번호"/>
  1200. <Column id="ptin_insdnm" type="STRING" size="256" sumtext="피보험자성명"/>
  1201. <Column id="ptin_insdrrgstno1" type="STRING" size="256" sumtext="피보험자주민번호앞자리"/>
  1202. <Column id="ptin_insdrrgstno2" type="STRING" size="256" sumtext="피보험자주민번호뒷자리"/>
  1203. <Column id="ptin_insdrela" type="STRING" size="256" sumtext="피보험자관계"/>
  1204. </ColumnInfo>
  1205. </Dataset>
  1206. <Dataset id="ds_cmb_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1207. <Dataset id="ds_hidden_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1208. <ColumnInfo>
  1209. <Column id="insuflag" type="STRING" size="256"/>
  1210. <Column id="pid" type="STRING" size="256"/>
  1211. <Column id="srchcond" type="STRING" size="256"/>
  1212. <Column id="srchcnts" type="STRING" size="256"/>
  1213. </ColumnInfo>
  1214. <Rows>
  1215. <Row>
  1216. <Col id="insuflag"/>
  1217. <Col id="pid"/>
  1218. <Col id="srchcond"/>
  1219. <Col id="srchcnts"/>
  1220. </Row>
  1221. </Rows>
  1222. </Dataset>
  1223. <Dataset id="ds_main_diaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1224. <ColumnInfo>
  1225. <Column id="diagkindcdflag" type="STRING" size="256" sumtext="주상병여부"/>
  1226. <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
  1227. <Column id="termhngnm" type="STRING" size="256" sumtext="한글상병명"/>
  1228. <Column id="termengnm" type="STRING" size="256" sumtext="영문상병명"/>
  1229. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  1230. </ColumnInfo>
  1231. </Dataset>
  1232. <Dataset id="ds_main_h_cnst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1233. <ColumnInfo>
  1234. <Column id="cnst_pid" type="STRING" size="256"/>
  1235. <Column id="cnst_orddeptcd" type="STRING" size="256"/>
  1236. <Column id="cnst_insuflag" type="STRING" size="256"/>
  1237. <Column id="cnst_ordreqkind" type="STRING" size="256"/>
  1238. <Column id="cnst_todd" type="STRING" size="256"/>
  1239. <Column id="cnst_seqno" type="STRING" size="256"/>
  1240. <Column id="cnst_instcd" type="STRING" size="256"/>
  1241. <Column id="cnst_histstat" type="STRING" size="256"/>
  1242. <Column id="cnst_fromdd" type="STRING" size="256"/>
  1243. <Column id="cnst_fstrgstrid" type="STRING" size="256"/>
  1244. <Column id="cnst_fstrgstdt" type="STRING" size="256"/>
  1245. <Column id="cnst_lastupdtrid" type="STRING" size="256"/>
  1246. <Column id="cnst_lastupdtdt" type="STRING" size="256"/>
  1247. <Column id="cnst_orddeptcd_before" type="STRING" size="256"/>
  1248. <Column id="cnst_insuflag_before" type="STRING" size="256"/>
  1249. <Column id="cnst_ordreqkind_before" type="STRING" size="256"/>
  1250. <Column id="cnst_todd_before" type="STRING" size="256"/>
  1251. <Column id="cnst_seqno_before" type="STRING" size="256"/>
  1252. <Column id="cnst_stat" type="STRING" size="256"/>
  1253. </ColumnInfo>
  1254. <Rows>
  1255. <Row>
  1256. <Col id="cnst_pid"/>
  1257. <Col id="cnst_orddeptcd"/>
  1258. <Col id="cnst_insuflag"/>
  1259. <Col id="cnst_ordreqkind"/>
  1260. <Col id="cnst_todd"/>
  1261. <Col id="cnst_seqno"/>
  1262. <Col id="cnst_instcd"/>
  1263. <Col id="cnst_histstat"/>
  1264. <Col id="cnst_fromdd"/>
  1265. <Col id="cnst_fstrgstrid"/>
  1266. <Col id="cnst_fstrgstdt"/>
  1267. <Col id="cnst_lastupdtrid"/>
  1268. <Col id="cnst_lastupdtdt"/>
  1269. <Col id="cnst_orddeptcd_before"/>
  1270. <Col id="cnst_insuflag_before"/>
  1271. <Col id="cnst_ordreqkind_before"/>
  1272. <Col id="cnst_todd_before"/>
  1273. <Col id="cnst_seqno_before"/>
  1274. <Col id="cnst_stat"/>
  1275. </Row>
  1276. </Rows>
  1277. </Dataset>
  1278. <Dataset id="ds_main_srdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1279. <ColumnInfo>
  1280. <Column id="srdg_pid" type="STRING" size="256"/>
  1281. <Column id="srdg_insuflag" type="STRING" size="256"/>
  1282. <Column id="srdg_suppkind" type="STRING" size="256"/>
  1283. <Column id="srdg_todd" type="STRING" size="256"/>
  1284. <Column id="srdg_seqno" type="STRING" size="256"/>
  1285. <Column id="srdg_instcd" type="STRING" size="256"/>
  1286. <Column id="srdg_histstat" type="STRING" size="256"/>
  1287. <Column id="srdg_fromdd" type="STRING" size="256"/>
  1288. <Column id="srdg_seridiagno" type="STRING" size="256"/>
  1289. <Column id="srdg_apppsnnm" type="STRING" size="256"/>
  1290. <Column id="srdg_rela" type="STRING" size="256"/>
  1291. <Column id="srdg_acptdd" type="STRING" size="256"/>
  1292. <Column id="srdg_acpttm" type="STRING" size="256"/>
  1293. <Column id="srdg_acptid" type="STRING" size="256"/>
  1294. <Column id="srdg_remfact" type="STRING" size="256"/>
  1295. <Column id="srdg_fstrgstrid" type="STRING" size="256"/>
  1296. <Column id="srdg_fstrgstdt" type="STRING" size="256"/>
  1297. <Column id="srdg_lastupdtrid" type="STRING" size="256"/>
  1298. <Column id="srdg_lastupdtdt" type="STRING" size="256"/>
  1299. <Column id="srdg_insuflag_before" type="STRING" size="256"/>
  1300. <Column id="srdg_suppkind_before" type="STRING" size="256"/>
  1301. <Column id="srdg_todd_before" type="STRING" size="256"/>
  1302. <Column id="srdg_seqno_before" type="STRING" size="256"/>
  1303. <Column id="srdg_stat" type="STRING" size="256"/>
  1304. </ColumnInfo>
  1305. <Rows>
  1306. <Row>
  1307. <Col id="srdg_pid"/>
  1308. <Col id="srdg_insuflag"/>
  1309. <Col id="srdg_suppkind"/>
  1310. <Col id="srdg_todd"/>
  1311. <Col id="srdg_seqno"/>
  1312. <Col id="srdg_instcd"/>
  1313. <Col id="srdg_histstat"/>
  1314. <Col id="srdg_fromdd"/>
  1315. <Col id="srdg_seridiagno"/>
  1316. <Col id="srdg_apppsnnm"/>
  1317. <Col id="srdg_rela"/>
  1318. <Col id="srdg_acptdd"/>
  1319. <Col id="srdg_acpttm"/>
  1320. <Col id="srdg_acptid"/>
  1321. <Col id="srdg_remfact"/>
  1322. <Col id="srdg_fstrgstrid"/>
  1323. <Col id="srdg_fstrgstdt"/>
  1324. <Col id="srdg_lastupdtrid"/>
  1325. <Col id="srdg_lastupdtdt"/>
  1326. <Col id="srdg_insuflag_before"/>
  1327. <Col id="srdg_suppkind_before"/>
  1328. <Col id="srdg_todd_before"/>
  1329. <Col id="srdg_seqno_before"/>
  1330. <Col id="srdg_stat"/>
  1331. </Row>
  1332. </Rows>
  1333. </Dataset>
  1334. <Dataset id="ds_main_aipm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1335. <ColumnInfo>
  1336. <Column id="aipm_insucmpycd" type="STRING" size="256"/>
  1337. <Column id="aipm_insucdnm" type="STRING" size="256"/>
  1338. <Column id="aipm_paylimamt" type="STRING" size="256"/>
  1339. <Column id="aipm_aprvfromdd" type="STRING" size="256"/>
  1340. <Column id="aipm_aprvtodd" type="STRING" size="256"/>
  1341. </ColumnInfo>
  1342. <Rows>
  1343. <Row>
  1344. <Col id="aipm_insucmpycd"/>
  1345. <Col id="aipm_insucdnm"/>
  1346. <Col id="aipm_paylimamt"/>
  1347. <Col id="aipm_aprvfromdd"/>
  1348. <Col id="aipm_aprvtodd"/>
  1349. </Row>
  1350. </Rows>
  1351. </Dataset>
  1352. <Dataset id="ds_main_icpm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1353. <ColumnInfo>
  1354. <Column id="icpm_mngtno" type="STRING" size="256"/>
  1355. <Column id="icpm_bizplcenm" type="STRING" size="256"/>
  1356. <Column id="icpm_inducsbrchcd" type="STRING" size="256"/>
  1357. <Column id="icpm_insucdnm" type="STRING" size="256"/>
  1358. <Column id="icpm_acddd" type="STRING" size="256"/>
  1359. <Column id="icpm_ordopendd" type="STRING" size="256"/>
  1360. <Column id="icpm_aprvfromdd" type="STRING" size="256"/>
  1361. <Column id="icpm_aprvtodd" type="STRING" size="256"/>
  1362. </ColumnInfo>
  1363. <Rows>
  1364. <Row>
  1365. <Col id="icpm_mngtno"/>
  1366. <Col id="icpm_bizplcenm"/>
  1367. <Col id="icpm_inducsbrchcd"/>
  1368. <Col id="icpm_insucdnm"/>
  1369. <Col id="icpm_acddd"/>
  1370. <Col id="icpm_ordopendd"/>
  1371. <Col id="icpm_aprvfromdd"/>
  1372. <Col id="icpm_aprvtodd"/>
  1373. </Row>
  1374. </Rows>
  1375. </Dataset>
  1376. <Dataset id="ds_hidden_rcv_ptin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1377. <Dataset id="ds_hidden_rcv_ptbs" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1378. <Dataset id="ds_hidden_original_ptin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1379. <Dataset id="ds_hidden_check_ptsp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1380. </Objects>
  1381. <Bind>
  1382. <BindItem id="item0" compid="ipt_pid1" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_pid"/>
  1383. <BindItem id="item1" compid="ipt_sex" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_sex"/>
  1384. <BindItem id="item2" compid="ipt_age" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_age"/>
  1385. <BindItem id="item3" compid="div_srch.cmb_rmsrch" propid="value" datasetid="ds_send_data1" columnid="rmspecref"/>
  1386. <BindItem id="item4" compid="div_srch.ipt_room" propid="value" datasetid="ds_send_data1" columnid="rmspecrefnm"/>
  1387. <BindItem id="item5" compid="div_srch.cmb_grde" propid="value" datasetid="ds_send_data1" columnid="rmspecrefnm"/>
  1388. <BindItem id="item6" compid="div_srch.cmb_sex" propid="value" datasetid="ds_send_data1" columnid="rmspecrefnm"/>
  1389. <BindItem id="item7" compid="div_srch.cmb_orddept" propid="value" datasetid="ds_send_data1" columnid="rmspecrefnm"/>
  1390. <BindItem id="item8" compid="div_srch.cmb_ward" propid="value" datasetid="ds_send_data1" columnid="rmspecrefnm"/>
  1391. <BindItem id="item9" compid="div_srch.cmb_type" propid="value" datasetid="ds_send_data1" columnid="rmspecrefnm"/>
  1392. <BindItem id="item10" compid="div_srch.cmb_search" propid="value" datasetid="ds_send_data1" columnid="search"/>
  1393. <BindItem id="item11" compid="div_srch.radio1" propid="value" datasetid="ds_send_data1" columnid="bedtype"/>
  1394. <BindItem id="item12" compid="group4.input1" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_zipcdseq"/>
  1395. <BindItem id="item17" compid="group4.combo2" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_recmerrela"/>
  1396. <BindItem id="item13" compid="group4.ipt_rrgstno2" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_rrgstno2"/>
  1397. <BindItem id="item14" compid="group4.ipt_rrgstno1" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_rrgstno1"/>
  1398. <BindItem id="item18" compid="group4.tar_remfact" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_remfact"/>
  1399. <BindItem id="item15" compid="group4.ipt_detladdr" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_detladdr"/>
  1400. <BindItem id="item16" compid="group4.ipt_zipnm" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_zipcdaddr"/>
  1401. <BindItem id="item19" compid="group4.ipt_zipcd2" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_zipcd2"/>
  1402. <BindItem id="item20" compid="group4.ipt_zipcd1" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_zipcd1"/>
  1403. <BindItem id="item21" compid="group4.ipt_mpphontel" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_mpphontel"/>
  1404. <BindItem id="item22" compid="group4.ipt_hometel" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_hometel"/>
  1405. <BindItem id="item23" compid="group4.ipt_brthdd" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_brthdd"/>
  1406. <BindItem id="item24" compid="group4.ipt_vipyn" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_vipyn"/>
  1407. <BindItem id="item25" compid="group4.ipt_hngnm" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_hngnm"/>
  1408. <BindItem id="item26" compid="group4.output24" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_recmerid"/>
  1409. <BindItem id="item27" compid="group4.checkbox4" propid="value" datasetid="ds_main_ptbs" columnid="ptbs_recmyn"/>
  1410. <BindItem id="item28" compid="div_srch2.ipt_hopedd" propid="value" datasetid="ds_send_data2" columnid="inrsrvcondnm"/>
  1411. <BindItem id="item29" compid="div_srch2.cmb_rssrch" propid="value" datasetid="ds_send_data2" columnid="inrsrvcond"/>
  1412. <BindItem id="item30" compid="div_srch2.ipt_pid" propid="value" datasetid="ds_send_data2" columnid="inrsrvcondnm"/>
  1413. <BindItem id="item31" compid="div_srch2.ipt_pidnm" propid="value" datasetid="ds_send_data2" columnid="inrsrvcondnm"/>
  1414. <BindItem id="item32" compid="div_srch2.cmb_ordept" propid="value" datasetid="ds_send_data2" columnid="inrsrvcondnm"/>
  1415. <BindItem id="item33" compid="div_srch2.ipt_hopetodd" propid="value" datasetid="ds_send_data2" columnid="inrsrvtodd"/>
  1416. <BindItem id="item34" compid="div_srch2.bol_ckeckdd1" propid="value" datasetid="ds_send_data2" columnid="r_checkflag"/>
  1417. <BindItem id="item35" compid="div_srch2.radio2" propid="value" datasetid="ds_send_data2" columnid="erreglyn"/>
  1418. <BindItem id="item36" compid="div_srch2.radio3" propid="value" datasetid="ds_send_data2" columnid="publicflag"/>
  1419. <BindItem id="item37" compid="ipt_pid00" propid="value" datasetid="ds_main_comnbedsmsmsg" columnid="replytelno"/>
  1420. </Bind>
  1421. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  1422. * System Name :
  1423. * Job Name :
  1424. * Creator :
  1425. * Make Date : 2016-05-24
  1426. * Description :
  1427. *---------------------------------------------------------------------------------------
  1428. * Modify Date Modifier Modify Description
  1429. *---------------------------------------------------------------------------------------
  1430. * 2016-05-24 Live Converter TF->XP
  1431. *
  1432. *---------------------------------------------------------------------------------------
  1433. ****************************************************************************************/
  1434. //=======================================================================================
  1435. // Lib Include
  1436. //---------------------------------------------------------------------------------------
  1437. include 'com_commonxp::comm_main.xjs';
  1438. include 'ast_examcurexp::AEZ0001.xjs'
  1439. include 'pam_pamcomnxp::PAM.xjs';
  1440. include 'pam_pamcomnxp::PAM001.xjs';
  1441. var srch_flag = "";
  1442. var arErrorCode = new HashArray();
  1443. //=======================================================================================
  1444. // Local methods
  1445. //---------------------------------------------------------------------------------------
  1446. /**
  1447. * MaskEdit 에서 입력한 데이터가 format 에 맞는 형식인지 검사 한다
  1448. * ontextchange 이벤트에서만 사용 할 것
  1449. * @param {[type]} obj:MaskEdit [description]
  1450. * @param {[type]} e:TextChangeEventInfo [description]
  1451. * @param {[type]} format [description]
  1452. * @return {[type]} [description]
  1453. */
  1454. /**
  1455. * [fChoice description]
  1456. * @param {[type]} rmchoi [description]
  1457. * @return {[type]} [description]
  1458. */
  1459. function fChoice(rmchoi) {
  1460. // 검색조건 초기화
  1461. ds_send_data1.setColumn(0, "rmspecrefnm", "");
  1462. // P1:전체, P2:진료과, P3:병동, P4:병실, P5:빈병상
  1463. if (rmchoi == 'P1') {
  1464. div_srch.ipt_room.visible = false;
  1465. div_srch.cmb_ward.visible = false;
  1466. div_srch.cmb_grde.visible = false;
  1467. div_srch.cmb_type.visible = false;
  1468. div_srch.cmb_sex.visible = false;
  1469. div_srch.cmb_orddept.visible = false;
  1470. div_srch.cmb_search.visible = false;
  1471. }
  1472. else if (rmchoi == 'P2') {
  1473. // div_srch.cmb_orddept.attribute("top") = "8px";
  1474. // div_srch.cmb_orddept.attribute("left") = "228px";
  1475. div_srch.cmb_orddept.setFocus();
  1476. div_srch.ipt_room.visible = false;
  1477. div_srch.cmb_ward.visible = false;
  1478. div_srch.cmb_grde.visible = false;
  1479. div_srch.cmb_type.visible = false;
  1480. div_srch.cmb_sex.visible = false;
  1481. div_srch.cmb_orddept.visible = true;
  1482. div_srch.cmb_search.visible = false;
  1483. ds_send_data1.setColumn(0, "bedtype", "D");
  1484. }
  1485. else if (rmchoi == 'P3') {
  1486. // cmb_ward.attribute("top") = "8px";
  1487. // cmb_ward.attribute("left") = "228px";
  1488. div_srch.cmb_ward.setFocus();
  1489. div_srch.ipt_room.visible = false;
  1490. div_srch.cmb_ward.visible = true;
  1491. div_srch.cmb_grde.visible = false;
  1492. div_srch.cmb_type.visible = false;
  1493. div_srch.cmb_sex.visible = false;
  1494. div_srch.cmb_orddept.visible = false;
  1495. div_srch.cmb_search.visible = false;
  1496. }
  1497. else if (rmchoi == 'P4') {
  1498. // ipt_room.attribute("top") = "8px";
  1499. // ipt_room.attribute("left") = "228px";
  1500. div_srch.ipt_room.setFocus();
  1501. div_srch.ipt_room.visible = true;
  1502. div_srch.cmb_ward.visible = false;
  1503. div_srch.cmb_grde.visible = false;
  1504. div_srch.cmb_type.visible = false;
  1505. div_srch.cmb_sex.visible = false;
  1506. div_srch.cmb_orddept.visible = false;
  1507. div_srch.cmb_search.visible = false;
  1508. }
  1509. else if (rmchoi == 'P5') {
  1510. // cmb_search.attribute("top") = "8px";
  1511. // cmb_search.attribute("left") = "228px";
  1512. div_srch.cmb_search.setFocus();
  1513. div_srch.ipt_room.visible = false;
  1514. div_srch.cmb_ward.visible = false;
  1515. div_srch.cmb_grde.visible = false;
  1516. div_srch.cmb_type.visible = false;
  1517. div_srch.cmb_sex.visible = false;
  1518. div_srch.cmb_orddept.visible = false;
  1519. div_srch.cmb_search.visible = true;
  1520. }
  1521. }
  1522. /**
  1523. * 병동병실 조회
  1524. * @return {[type]} [description]
  1525. */
  1526. function fQueryRoomRef(){
  1527. // 조회조건별 제어구문 추가 by 조중래 20141013
  1528. var rmspecref = ds_send_data1.getColumn(0, "rmspecref");
  1529. var bedtype = ds_send_data1.getColumn(0, "bedtype");
  1530. var rmspecrefnm = utlf_transNullToEmpty(ds_send_data1.getColumn(0, "rmspecrefnm"));
  1531. // 진료과 선택 시 "전용"만 선택가능
  1532. if (rmspecref == "P2" && bedtype != "D") {
  1533. sysf_messageBox("진료과를 선택한 경우, 전용 이외의 구분은 선택불가능합니다.", "C000");
  1534. return false;
  1535. }
  1536. else if (rmspecref == "P2" && (rmspecrefnm == "" || rmspecrefnm == "-")) {
  1537. sysf_messageBox("진료과를 선택해주십시오.", "C000");
  1538. return false;
  1539. }
  1540. else if (rmspecref == "P3" && (rmspecrefnm == "" || rmspecrefnm == "-")) {
  1541. sysf_messageBox("병동을 선택해주십시오.", "C000");
  1542. return false;
  1543. }
  1544. else if (rmspecref == "P4" && (rmspecrefnm == "" || rmspecrefnm == "-")) {
  1545. sysf_messageBox("병실을 입력해주십시오.", "C000");
  1546. return false;
  1547. }
  1548. ds_send_data1.setColumn(0, "bedflag", "Y"); //가동병실만 조회되도록 조건추가
  1549. ds_send_data1.setColumn(0, "sendflag", "R"); //병실검색 조회 구분자
  1550. ds_send_data1.setColumn(0, "prestdd", utlf_getCurrentDate());
  1551. ds_send_data1.setColumn(0, "orddeptcd", "0000000000"); //진료과코드가 '000000000' 일때는 공용병상으로 취급
  1552. ds_send_data1.setColumn(0, "budogubunyn", "Y"); // 부도병상 표시여부
  1553. dsf_createDsRow('ds_TRPMI02001', [
  1554. { col: 'rmspecref', type: 'string', size: 256, val: '' },
  1555. { col: 'rmspecrefnm', type: 'string', size: 256, val: '' },
  1556. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  1557. { col: 'wardcd', type: 'string', size: 256, val: '' },
  1558. { col: 'orduseyn', type: 'string', size: 256, val: '' },
  1559. { col: 'search', type: 'string', size: 256, val: '' },
  1560. { col: 'bedtype', type: 'string', size: 256, val: '' },
  1561. { col: 'budogubunyn', type: 'string', size: 256, val: '' }
  1562. ], false);
  1563. ds_TRPMI02001.copyRow(0, ds_send_data1, 0);
  1564. ds_main_bedlist.clearData();
  1565. var oParam = {};
  1566. oParam.id = "TRPMI02001";
  1567. oParam.service = "ipatmngtapp.InRsrv";
  1568. oParam.method = "reqGetBedSpecList";
  1569. oParam.inds = "req=ds_TRPMI02001";
  1570. oParam.outds = "ds_main_bedlist=grdbedspec";
  1571. oParam.async = false;
  1572. tranf_submit(oParam);
  1573. ds_main_bedlist.addColumn('bgColor', 'string');
  1574. ds_main_bedlist.addColumn('orddeptcdBg', 'string');
  1575. fSetRowStyle();
  1576. }
  1577. /**
  1578. * [fSetRowStyle description]
  1579. * @return {[type]} [description]
  1580. */
  1581. function fSetRowStyle() {
  1582. //group6.grd_bedspec.allStyle("all", "background-color") = "#ffffff"; // 배경색을 초기화 한다.
  1583. ds_main_bedlist.enableevent = false;
  1584. ds_main_bedlist.updatecontrol = false;
  1585. for (var i = 0; i < ds_main_bedlist.rowcount; i++) {
  1586. // 공용병상 처리
  1587. if (ds_main_bedlist.getColumn(i, "orddeptcd") == "공용병상") {
  1588. if (ds_main_bedlist.getColumn(i, "emptycheck") == "N") {
  1589. ds_main_bedlist.setColumn(i, 'bgColor', '#FFE79D');
  1590. ds_main_bedlist.setColumn(i, 'orddeptcdBg', '#FFDB6F');
  1591. }
  1592. else {
  1593. ds_main_bedlist.setColumn(i, 'orddeptcdBg', '#FFDB6F');
  1594. }
  1595. }
  1596. // 전용병상 처리
  1597. else {
  1598. if (ds_main_bedlist.getColumn(i, "emptycheck") == "N") {
  1599. ds_main_bedlist.setColumn(i, 'bgColor', '#FFE79D');
  1600. ds_main_bedlist.setColumn(i, 'orddeptcdBg', '#93D7F8');
  1601. }
  1602. else {
  1603. ds_main_bedlist.setColumn(i, 'orddeptcdBg', '#93D7F8');
  1604. }
  1605. }
  1606. }
  1607. ds_main_bedlist.updatecontrol = true;
  1608. ds_main_bedlist.enableevent = true;
  1609. // 부도병상 처리(N:부도)
  1610. //lf_aezfSetRowStyle(group6.grd_bedspec, '5', 'N', 'budogubun', 'equal');
  1611. }
  1612. /**
  1613. * [sendinit description]
  1614. * @return {[type]} [description]
  1615. */
  1616. function sendinit() {
  1617. // 추후 없는 데이터 셋은 삭제 바람
  1618. ds_send_data3.clearData();
  1619. ds_send_data3.addRow();
  1620. //ds_send_data5.clearData();
  1621. //ds_send_data5.addRow();
  1622. // ds_send_data6.clearData();
  1623. // ds_send_data6.addRow();
  1624. // ds_send_data7.clearData();
  1625. // ds_send_data7.addRow();
  1626. // ds_send_data8.clearData();
  1627. // ds_send_data8.addRow();
  1628. ds_send_data9.clearData();
  1629. ds_send_data9.addRow();
  1630. // ds_send_data10.clearData();
  1631. // ds_send_data10.addRow();
  1632. ds_send_data11.clearData();
  1633. ds_send_data11.addRow();
  1634. //ds_send_data12.clearData();
  1635. //ds_send_data12.addRow();
  1636. // ds_send_data13.clearData();
  1637. // ds_send_data13.addRow();
  1638. // ds_send_data14.clearData();
  1639. // ds_send_data14.addRow();
  1640. // ds_send_data15.clearData();
  1641. // ds_send_data15.addRow();
  1642. // ds_send_data16.clearData();
  1643. // ds_send_data16.addRow();
  1644. // ds_send_data17.clearData();
  1645. // ds_send_data17.addRow();
  1646. // ds_send_data18.clearData();
  1647. // ds_send_data18.addRow();
  1648. }
  1649. /**
  1650. * [fQueryRsrvRef description]
  1651. * @param {[type]} srchflag [description]
  1652. * @return {[type]} [description]
  1653. */
  1654. function fQueryRsrvRef(srchflag) {
  1655. if (srchflag == "1") {
  1656. if (ds_send_data2.getColumn(0, "inrsrvcond") == "1" ||
  1657. ds_send_data2.getColumn(0, "inrsrvcond") == "5" ||
  1658. ds_send_data2.getColumn(0, "inrsrvcond") == "6") {
  1659. var fromdd = ds_send_data2.getColumn(0, "inrsrvcondnm");
  1660. var todd = ds_send_data2.getColumn(0, "inrsrvtodd");
  1661. if (utlf_isNull(fromdd) || utlf_isNull(todd)) {
  1662. sysf_messageBox("시작일자와 종료일자는 반드시 입력하십시오.", "E");
  1663. return;
  1664. }
  1665. if (utlf_getDateInterval(fromdd, todd) > 31) {
  1666. sysf_messageBox("조회기간은 최대 1달(31일)입니다.", "E");
  1667. return;
  1668. }
  1669. }
  1670. if ((ds_send_data2.getColumn(0, "inrsrvcond") == "2" ||
  1671. ds_send_data2.getColumn(0, "inrsrvcond") == "3") &&
  1672. utlf_isNull(ds_send_data2.getColumn(0, "inrsrvcondnm"))) {
  1673. sysf_messageBox("등록번호 또는 환자성명을 입력하십시오.", "E");
  1674. return;
  1675. }
  1676. // 조회구분이 배정일자 / 입원일자일때만 병상구분 선택가능
  1677. if (ds_send_data2.getColumn(0, "publicflag") != "A" &&
  1678. ds_send_data2.getColumn(0, "inrsrvcond") != "5" &&
  1679. ds_send_data2.getColumn(0, "inrsrvcond") != "6") {
  1680. sysf_messageBox("병상구분은 배정일자 및 입원일자 조회시에만 선택 가능합니다.", "E");
  1681. return;
  1682. }
  1683. srch_flag = "N";
  1684. ds_send_data2.setColumn(0, "pid", "");
  1685. ds_send_data2.setColumn(0, "sendflag", "A");
  1686. ds_send_data2.setColumn(0, "prestdd", utlf_getCurrentDate());
  1687. dsf_createDsRow('ds_TRPMI00306', [
  1688. { col: 'inrsrvcond', type: 'string', size: 256, val: '' },
  1689. { col: 'inrsrvcondnm', type: 'string', size: 256, val: '' },
  1690. { col: 'inrsrvtodd', type: 'string', size: 256, val: '' },
  1691. { col: 'sendflag', type: 'string', size: 256, val: '' },
  1692. { col: 'prestdd', type: 'string', size: 256, val: '' },
  1693. { col: 'pid', type: 'string', size: 256, val: '' },
  1694. { col: 'r_checkflag', type: 'string', size: 256, val: '' },
  1695. { col: 'erreglyn', type: 'string', size: 256, val: '' },
  1696. { col: 'publicflag', type: 'string', size: 256, val: '' }
  1697. ], false);
  1698. ds_TRPMI00306.copyRow(0, ds_send_data2, 0);
  1699. ds_main_adrvlist.clearData();
  1700. var oParam = {};
  1701. oParam.id = "TRPMI00306";
  1702. oParam.service = "ipatmngtapp.InRsrv";
  1703. oParam.method = "reqGetComnBedInRsrvRefList";
  1704. oParam.inds = "req=ds_TRPMI00306";
  1705. oParam.outds = "ds_main_adrvlist=grdinrsrvlist";
  1706. oParam.async = false;
  1707. tranf_submit(oParam);
  1708. }
  1709. else if (srchflag == "2") {
  1710. srch_flag = "Y";
  1711. ds_send_data2.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  1712. ds_send_data2.setColumn(0, "sendflag", "A");
  1713. ds_send_data2.setColumn(0, "prestdd", utlf_getCurrentDate());
  1714. //환자번호로 조회시 입원예약환자 그리드 조회의 항목을 그대로 두어야한다.
  1715. var inrsrvcondnm = ds_send_data2.getColumn(0, "inrsrvcondnm");
  1716. var inrsrvcond = ds_send_data2.getColumn(0, "inrsrvcond");
  1717. ds_send_data2.setColumn(0, "inrsrvcond", "");
  1718. ds_send_data2.setColumn(0, "inrsrvcondnm", "");
  1719. dsf_createDsRow('ds_TRPMI00306', [
  1720. { col: 'inrsrvcond', type: 'string', size: 256, val: '' },
  1721. { col: 'inrsrvcondnm', type: 'string', size: 256, val: '' },
  1722. { col: 'inrsrvtodd', type: 'string', size: 256, val: '' },
  1723. { col: 'sendflag', type: 'string', size: 256, val: '' },
  1724. { col: 'prestdd', type: 'string', size: 256, val: '' },
  1725. { col: 'pid', type: 'string', size: 256, val: '' },
  1726. { col: 'r_checkflag', type: 'string', size: 256, val: '' },
  1727. { col: 'erreglyn', type: 'string', size: 256, val: '' },
  1728. { col: 'publicflag', type: 'string', size: 256, val: '' }
  1729. ], false);
  1730. ds_TRPMI00306.copyRow(0, ds_send_data2, 0);
  1731. ds_main_adrvlist.clearData();
  1732. var oParam = {};
  1733. oParam.id = "TRPMI00306";
  1734. oParam.service = "ipatmngtapp.InRsrv";
  1735. oParam.method = "reqGetComnBedInRsrvRefList";
  1736. oParam.inds = "req=ds_TRPMI00306";
  1737. oParam.outds = "ds_main_adrvlist=grdinrsrvlist";
  1738. oParam.async = false;
  1739. tranf_submit(oParam);
  1740. ds_send_data2.setColumn(0, "inrsrvcondnm", inrsrvcondnm);
  1741. ds_send_data2.setColumn(0, "inrsrvcond", inrsrvcond);
  1742. ds_main_adrvlist.rowposition = 1;
  1743. }
  1744. var adrvcnt = ds_main_adrvlist.rowcount;
  1745. if (adrvcnt == 0) {
  1746. sysf_messageBox("공용병상 배정대기/완료 환자가 ", "I004");
  1747. return false;
  1748. }
  1749. }
  1750. /**
  1751. * [fHngNmVeri description]
  1752. * @param {[type]} gubn [description]
  1753. * @return {[type]} [description]
  1754. */
  1755. function fHngNmVeri(gubn) {
  1756. var ptbs_hngnm;
  1757. if (gubn == "xforms-next") {
  1758. ptbs_hngnm = ds_main_ptbs.getColumn(0, "ptbs_hngnm");
  1759. }
  1760. else if (gubn == "onkeypress" || gubn == "onkeyup") {
  1761. ptbs_hngnm = ds_main_ptbs.getColumn(0, "ptbs_hngnm");
  1762. }
  1763. //한글 한글자를 그냥 길이1로 계산
  1764. if (String(ptbs_hngnm).length < 2) {
  1765. sysf_messageBox("환자성명은 2글자 이상되어야 합니다!", "E999", "");
  1766. ipt_hngnm.setFocus();
  1767. return false;
  1768. }
  1769. }
  1770. /**
  1771. * 2008.0.29 특이환자체크
  1772. * @return {[type]} [description]
  1773. */
  1774. function fCheckSpcfPat() {
  1775. if (ds_hidden_check_ptsp.rowcount > 0) {
  1776. btn_patspcfyn.style.backgroundColor = "#ff0000";
  1777. // 2008.08.21 자동팝업하도록 추가
  1778. btn_patspcfyn.click();
  1779. }
  1780. else {
  1781. btn_patspcfyn.style.backgroundColor = "#c0c0c0";
  1782. }
  1783. }
  1784. /**
  1785. * [fOutCHosCheck description]
  1786. * @return {[type]} [description]
  1787. */
  1788. function fOutCHosCheck() {
  1789. ds_send_data3.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  1790. dsf_createDsRow('ds_req', [
  1791. { col: 'pid', type: 'string', size: 256, val: ds_main_ptbs.getColumn(0, "ptbs_pid") },
  1792. { col: 'orddd', type: 'string', size: 256, val: '' }
  1793. ], false);
  1794. ds_main_otptlist.clearData();
  1795. var oParam = {};
  1796. oParam.id = "TRPMI00104";
  1797. oParam.service = "ipatmngtapp.InRgst";
  1798. oParam.method = "reqGetOutChos";
  1799. oParam.inds = "req=ds_req";
  1800. oParam.outds = "ds_main_otptlist=grdoutchoshist";
  1801. oParam.async = false;
  1802. oParam.callback = "callback";
  1803. tranf_submit(oParam);
  1804. if (arErrorCode.pop("TRPMI00104") > -1) {
  1805. var otpt_cnt = ds_main_otptlist.rowcount;
  1806. if (otpt_cnt > 0) {
  1807. ds_send_data3.clearData();
  1808. ds_send_data3.addRow();
  1809. ds_main_otptlist.rowposition = 0;
  1810. }
  1811. else {
  1812. ds_main_otptlist.clearData();
  1813. }
  1814. }
  1815. }
  1816. /**
  1817. * [fRrgstNo1VeriCheck description]
  1818. * @return {[type]} [description]
  1819. */
  1820. function fRrgstNo1VeriCheck() {
  1821. var ptbs_rrgstno1 = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_rrgstno1"));
  1822. if (ptbs_rrgstno1 != "" && ptbs_rrgstno1 != " " && ptbs_rrgstno1 != "-") {
  1823. if (ptbs_rrgstno1.length != 6) {
  1824. sysf_messageBox("주민번호1은 6자리여야 합니다!", "E999", "");
  1825. group4.ipt_rrgstno1.setFocus();
  1826. return false;
  1827. }
  1828. if (ptbs_rrgstno1.isNumber() != true) {
  1829. sysf_messageBox("주민번호1은 숫자형태로 입력되어야 합니다!", "E999", "");
  1830. group4.ipt_rrgstno1.setFocus();
  1831. return false;
  1832. }
  1833. }
  1834. else {
  1835. sysf_messageBox("주민번호1은 6자리여야 합니다!", "E999", "");
  1836. group4.ipt_rrgstno1.setFocus();
  1837. return false;
  1838. }
  1839. }
  1840. /**
  1841. * [fRrgstNo2VeriCheck description]
  1842. * @return {[type]} [description]
  1843. */
  1844. function fRrgstNo2VeriCheck() {
  1845. var ptbs_brthdd;
  1846. var ptbs_rrgstno1 = String(ds_main_ptbs.getColumn(0, "ptbs_rrgstno1"));
  1847. var ptbs_rrgstno2 = String(ds_main_ptbs.getColumn(0, "ptbs_rrgstno2"));
  1848. if (ptbs_rrgstno1.length != 6) {
  1849. sysf_messageBox("환자주민번호1은 6자리입니다!", "E999", "");
  1850. group4.ipt_rrgstno1.setFocus();
  1851. return false;
  1852. }
  1853. if (ptbs_rrgstno2.length != 7) {
  1854. sysf_messageBox("환자주민번호2은 7자리입니다!", "E999", "");
  1855. ipt_rrgstno2.setFocus();
  1856. return false;
  1857. }
  1858. var gubn = ptbs_rrgstno2.substr(0, 1);
  1859. switch (gubn) {
  1860. case '1':
  1861. case '2':
  1862. case '5':
  1863. case '6':
  1864. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  1865. break;
  1866. case '3':
  1867. case '4':
  1868. case '7':
  1869. case '8':
  1870. ptbs_brthdd = '20'.concat(ptbs_rrgstno1);
  1871. break;
  1872. case '9':
  1873. case '0':
  1874. ptbs_brthdd = '18'.concat(ptbs_rrgstno1);
  1875. break;
  1876. default:
  1877. ptbs_brthdd = '19'.concat(ptbs_rrgstno1);
  1878. break;
  1879. }
  1880. ds_main_ptbs.setColumn(0, "ptbs_brthdd", ptbs_brthdd);
  1881. if (utlf_isValidDateTime(ptbs_brthdd, "YYYYMMDD") == false) {
  1882. sysf_messageBox("주민번호 앞6자리 형식오류입니다. 올바른 일자형태로 입력하십시요!", "E999", "");
  1883. ds_main_ptbs.setColumn(0, "ptbs_rrgstno1", "");
  1884. ds_main_ptbs.setColumn(0, "ptbs_rrgstno2", "");
  1885. ds_main_ptbs.setColumn(0, "ptbs_brthdd", "");
  1886. return false;
  1887. }
  1888. var rrgstno1 = ds_main_ptbs.getColumn(0, "ptbs_rrgstno1");
  1889. var rrgstno2 = ds_main_ptbs.getColumn(0, "ptbs_rrgstno2");
  1890. ds_main_ptbs.setColumn(0, "ptbs_sex", utlf_getSex(rrgstno1 + rrgstno2));
  1891. var ptbs_age = ptbs_rrgstno1;
  1892. ds_main_ptbs.setColumn(0, "ptbs_age", utlf_getFullAge(rrgstno1 + rrgstno2));
  1893. if (!lf_isResidentNo(rrgstno1 + rrgstno2)) {
  1894. if (sysf_messageBox("유효하지 않은 주민번호입니다! 계속 진행", "S001") == 6) {
  1895. return true;
  1896. }
  1897. else {
  1898. ds_main_ptbs.setColumn(0, "ptbs_rrgstno1", "");
  1899. ds_main_ptbs.setColumn(0, "ptbs_rrgstno2", "");
  1900. ds_main_ptbs.setColumn(0, "ptbs_brthdd", "");
  1901. ds_main_ptbs.setColumn(0, "ptbs_sex", "");
  1902. ds_main_ptbs.setColumn(0, "ptbs_age", "");
  1903. group4.ipt_rrgstno1.setFocus();
  1904. return false;
  1905. }
  1906. }
  1907. }
  1908. /**
  1909. * [fQueryBaseInfo description]
  1910. * @return {[type]} [description]
  1911. */
  1912. function fQueryBaseInfo() {
  1913. ds_hidden_rcv_ptbs.clearData();
  1914. ds_hidden_rcv_ptin.clearData();
  1915. //환자인적와 보험정보를 조회한다.
  1916. var oParam = {};
  1917. oParam.id = "TRPMI00304";
  1918. oParam.service = "ipatmngtapp.InRgst";
  1919. oParam.method = "reqGetInRgPatInfo";
  1920. oParam.inds = "req=ds_send_data3";
  1921. oParam.outds = "ds_hidden_rcv_ptbs=ptbs ds_hidden_rcv_ptin=ptin";
  1922. oParam.async = false;
  1923. oParam.callback = "callback";
  1924. tranf_submit(oParam);
  1925. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_rcv_ptbs, 'ptbs_');
  1926. ds_hidden_rcv_ptbs.copyData(ds_tmp, false);
  1927. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_rcv_ptin, 'ptin_');
  1928. ds_hidden_rcv_ptin.copyData(ds_tmp, false);
  1929. if (arErrorCode.pop("TRPMI00304") > -1) {
  1930. ds_send_data3.clearData();
  1931. ds_send_data3.addRow();
  1932. var iptbscnt = ds_hidden_rcv_ptbs.rowcount;
  1933. var iptincnt = ds_hidden_rcv_ptin.rowcount;
  1934. if (iptbscnt > 0) {
  1935. ds_main_ptbs.copyData(ds_hidden_rcv_ptbs, false);
  1936. ds_hidden_original_ptbs.copyData(ds_hidden_rcv_ptbs, false);
  1937. }
  1938. else {
  1939. sysf_messageBox("환자인적이", "I004");
  1940. ds_main_ptbs.clearData();
  1941. ds_main_ptbs.addRow();
  1942. ds_main_ptin.clearData();
  1943. ds_main_ptin.addRow();
  1944. ds_main_otptlist.clearData();
  1945. ds_main_diaglist.clearData();
  1946. return false;
  1947. }
  1948. if (iptincnt > 0) {
  1949. ds_main_ptin.copyData(ds_hidden_rcv_ptin, false);
  1950. ds_hidden_original_ptin.copyData(ds_hidden_rcv_ptin, false);
  1951. }
  1952. else {
  1953. ds_main_ptin.clearData();
  1954. ds_main_ptin.addRow();
  1955. ds_hidden_original_ptin.clearData();
  1956. }
  1957. }
  1958. }
  1959. /**
  1960. * MaskEdit 에서 입력한 데이터가 format 에 맞는 형식인지 검사 한다
  1961. * ontextchange 이벤트에서만 사용 할 것
  1962. * @param {[type]} obj:MaskEdit [description]
  1963. * @param {[type]} e:TextChangeEventInfo [description]
  1964. * @param {[type]} format [description]
  1965. * @return {[type]} [description]
  1966. */
  1967. function checkValid(obj: MaskEdit, e: TextChangeEventInfo, format) {
  1968. var dummyDay = '20170101';
  1969. var postValue = utlf_trim(String(e.posttext).replace(':', '').replace('_', '').replace('-', '').replace(' ', ''));
  1970. postValue = (postValue.length == dummyDay.length) ? postValue : postValue + dummyDay.substr(postValue.length, dummyDay.length);
  1971. if (!utlf_isValidDateTime(postValue, format)) {
  1972. return false;
  1973. }
  1974. return true;
  1975. }
  1976. function fRoomSexCheck(inpt_wardcd, inpt_roomcd, ptbs_sex, inpt_sex, ipt_rrgstno) {
  1977. if (fRoomSexGubunCheck(ipt_rrgstno)) {
  1978. if (ptbs_sex != inpt_sex) {
  1979. if (inpt_sex != "" && inpt_sex != "A" && inpt_sex != " ") {
  1980. if (sysf_messageBox("성별이 맞지 않지만 10세를 넘기지 않습니다. 성별이 다른 병실 등록을", "Q003") == '6') {
  1981. return true;
  1982. }
  1983. }
  1984. }
  1985. }
  1986. if (ptbs_sex != inpt_sex) {
  1987. if (inpt_sex != "" && inpt_sex != "A" && inpt_sex != " ") {
  1988. sysf_messageBox("환자 성별과 병실정보 성별이 다릅니다. 다른 병실을", "C002");
  1989. //2008.07.09 노드를 찾지 못해 에러 발생 수정 한윤희
  1990. if (ds_main_inpt.rowcount > 0) {
  1991. ds_main_inpt.setColumn(0, "inpt_roomcd", "");
  1992. ds_main_inpt.setColumn(0, "inpt_roomgrdecd", "");
  1993. ds_main_inpt.setColumn(0, "inpt_roomtypecd", "");
  1994. }
  1995. return false;
  1996. }
  1997. }
  1998. //분만실("2100300000")일 경우 남자 체크
  1999. if (inpt_wardcd == "2100300000") {
  2000. if (ptbs_sex == "M") {
  2001. sysf_messageBox("성별이 남자입니다. 다른병동을", "C002");
  2002. if (ds_main_inpt.rowcount > 0) {
  2003. ds_main_inpt.setColumn(0, "inpt_wardcd", ds_hidden_original_inpt.getColumn(0, "inpt_wardcd"));
  2004. ds_main_inpt.setColumn(0, "inpt_roomcd", "");
  2005. ds_main_inpt.setColumn(0, "inpt_roomgrdecd", "");
  2006. ds_main_inpt.setColumn(0, "inpt_roomtypecd", "");
  2007. }
  2008. return false;
  2009. }
  2010. }
  2011. }
  2012. /**
  2013. * [Fselect description]
  2014. * @param {[type]} srchflag 1.희망일자 2.환자번호 3.환자성명 4.진료과 5.입원일자, 6.배정일자
  2015. */
  2016. function Fselect(srchflag) {
  2017. if (srchflag == '1' || srchflag == '5' || srchflag == '6') {
  2018. div_srch2.ipt_pid.visible = false;
  2019. div_srch2.ipt_pidnm.visible = false;
  2020. div_srch2.cmb_ordept.visible = false;
  2021. div_srch2.ipt_hopedd.value = utlf_getCurrentDate();
  2022. div_srch2.ipt_hopetodd.value = utlf_getCurrentDate();
  2023. div_srch2.ipt_hopedd.visible = true;
  2024. div_srch2.ipt_hopetodd.visible = true;
  2025. div_srch2.caption4.visible = true;
  2026. ds_send_data2.setColumn(0, 'r_checkflag', 'true');
  2027. }
  2028. else if (srchflag == '2') {
  2029. div_srch2.ipt_hopedd.visible = false;
  2030. div_srch2.ipt_hopetodd.visible = false;
  2031. div_srch2.caption4.visible = false;
  2032. div_srch2.ipt_pidnm.visible = false;
  2033. div_srch2.cmb_ordept.visible = false;
  2034. div_srch2.ipt_hopetodd.value = utlf_getCurrentDate();
  2035. div_srch2.ipt_hopedd.value = "";
  2036. div_srch2.ipt_pid.visible = true;
  2037. div_srch2.ipt_pid.setFocus();
  2038. }
  2039. else if (srchflag == '3') {
  2040. div_srch2.ipt_hopedd.visible = false;
  2041. div_srch2.ipt_hopetodd.visible = false;
  2042. div_srch2.caption4.visible = false;
  2043. div_srch2.ipt_pid.visible = false;
  2044. div_srch2.cmb_ordept.visible = false;
  2045. div_srch2.ipt_hopedd.value = "";
  2046. div_srch2.ipt_pidnm.visible = true;
  2047. div_srch2.ipt_pidnm.setFocus();
  2048. }
  2049. else if (srchflag == '4') {
  2050. div_srch2.ipt_hopedd.visible = false;
  2051. div_srch2.ipt_hopetodd.visible = false;
  2052. div_srch2.caption4.visible = false;
  2053. div_srch2.ipt_pid.visible = false;
  2054. div_srch2.ipt_pidnm.visible = false;
  2055. div_srch2.cmb_ordept.visible = true;
  2056. }
  2057. }
  2058. /**
  2059. * [fHopeRoomGrdeRef description]
  2060. * @param {[type]} flag [description]
  2061. * @return {[type]} [description]
  2062. */
  2063. function fHopeRoomGrdeRef(flag) {
  2064. //2010-10-12 이동식 추가
  2065. //해당 함수를 실행하지 않음.
  2066. //추후 필요시에 활성화 예정
  2067. return false;
  2068. //2007.07.26 추가요구사항 적용
  2069. //희망병실등급from~희망병실등급to사이의 병실내역 조회
  2070. var grd_row = 0;
  2071. if (flag == "1") {
  2072. grd_row = 0;
  2073. } else {
  2074. grd_row = grd_inrsv.currentrow;
  2075. }
  2076. var grdecdfrom = utlf_transNullToEmpty(ds_main_adrvlist.getColumn(grd_row, "inhoperoomgrdefrom"));
  2077. var grdecdto = utlf_transNullToEmpty(ds_main_adrvlist.getColumn(grd_row, "inhoperoomgrdeto"));
  2078. var sex = ds_main_adrvlist.getColumn(grd_row, "sex");
  2079. if (grdecdfrom != "" && grdecdfrom != " " && grdecdfrom != "-"
  2080. && grdecdto != "" && grdecdto != " " && grdecdto != "-") {
  2081. if (parseInt(grdecdfrom) > parseInt(grdecdto)) {
  2082. grdecdfrom = ds_main_adrvlist.getColumn(grd_row, "inhoperoomgrdeto");
  2083. grdecdto = ds_main_adrvlist.getColumn(grd_row, "inhoperoomgrdefrom");
  2084. }
  2085. dsf_createDsRow('ds_TRPMI00305', [
  2086. { col: 'grdecdfrom', type: 'string', size: 256, val: grdecdfrom },
  2087. { col: 'grdecdto', type: 'string', size: 256, val: grdecdto },
  2088. { col: 'today', type: 'string', size: 256, val: sex },
  2089. { col: 'sex', type: 'string', size: 256, val: utlf_getCurrentDate() }
  2090. ], false);
  2091. dsf_createDs('ds_hidden_grid_rcv_grdroomspec');
  2092. var oParam = {};
  2093. oParam.id = "TRPMI00305";
  2094. oParam.service = "ipatmngtapp.InRsrv";
  2095. oParam.method = "reqGetRoomGrdeRef";
  2096. oParam.inds = "req=ds_TRPMI00305";
  2097. oParam.outds = "ds_hidden_grid_rcv_grdroomspec=grdroomspec";
  2098. oParam.async = false;
  2099. oParam.callback = "callback";
  2100. tranf_submit(oParam);
  2101. if (arErrorCode.pop("TRPMI00305") > -1) {
  2102. ds_main_bedlist.copyData(ds_hidden_grid_rcv_grdroomspec, false);
  2103. fSetRowStyle();
  2104. }
  2105. } else {
  2106. //20080814 희망등급 없을땐, 성별과 관련된 빈병상 조회,
  2107. ds_send_data1.setColumn(0, "sex", sex);
  2108. fQueryRoomRef();
  2109. ds_send_data1.setColumn(0, "sex", "");
  2110. }
  2111. }
  2112. /**
  2113. * [erasePrefix description]
  2114. * @param {[type]} target: Dataset [description]
  2115. * @param {[type]} prefix [description]
  2116. * @return {[type]} [description]
  2117. */
  2118. function erasePrefix(target: Dataset, prefix) {
  2119. if (target.rowcount < 1) {
  2120. return;
  2121. }
  2122. for (var i = 0; i < target.colcount; i++) {
  2123. var updatedId = target.getColID(i).replace(prefix, '');
  2124. if (!utlf_isNull(updatedId)) {
  2125. target.updateColID(i, updatedId);
  2126. }
  2127. }
  2128. }
  2129. /**
  2130. * [fBaseDataInitPtbs description]
  2131. * @return {[type]} [description]
  2132. */
  2133. function fBaseDataInitPtbs() {
  2134. ds_main_ptbs.setColumn(0, "ptbs_engnm", "-");
  2135. ds_main_ptbs.setColumn(0, "ptbs_hometel", "-");
  2136. ds_main_ptbs.setColumn(0, "ptbs_mpphontel", "-");
  2137. ds_main_ptbs.setColumn(0, "ptbs_zipcd1", "000");
  2138. ds_main_ptbs.setColumn(0, "ptbs_zipcd2", "000");
  2139. ds_main_ptbs.setColumn(0, "ptbs_zipcdseq", "1");
  2140. ds_main_ptbs.setColumn(0, "ptbs_zipcdaddr", "-");
  2141. ds_main_ptbs.setColumn(0, "ptbs_detladdr", "-");
  2142. ds_main_ptbs.setColumn(0, "ptbs_recmerrela", "-");
  2143. ds_main_ptbs.setColumn(0, "ptbs_inhospyn", "N");
  2144. }
  2145. /**
  2146. * 보험정보 기본값 셋팅
  2147. * @return {[type]} [description]
  2148. */
  2149. function fBaseDataInitPtin() {
  2150. ds_main_adrv.setColumn(0, "insukind", "-");
  2151. ds_main_adrv.setColumn(0, "suppkind", "00");
  2152. ds_main_adrv.setColumn(0, "suppkindresn", "-");
  2153. ds_main_ptin.setColumn(0, "ptin_insukind", "-");
  2154. ds_main_ptin.setColumn(0, "ptin_insucd", "-");
  2155. ds_main_ptin.setColumn(0, "ptin_insuno", "-");
  2156. ds_main_ptin.setColumn(0, "ptin_insdnm", "-");
  2157. ds_main_ptin.setColumn(0, "ptin_insdrrgstno1", "-");
  2158. ds_main_ptin.setColumn(0, "ptin_insdrrgstno2", "-");
  2159. ds_main_ptin.setColumn(0, "ptin_insdrela", "-");
  2160. ds_main_ptin.setColumn(0, "ptin_fromdd", utlf_getCurrentDate());
  2161. ds_main_ptin.setColumn(0, "ptin_todd", "99991231");
  2162. fSuppkindSet();
  2163. }
  2164. /**
  2165. * [fSuppkindSet description]
  2166. * @return {[type]} [description]
  2167. */
  2168. function fSuppkindSet() {
  2169. //2007.10.18 건강보험,의료급여2종일때 6세미만 유형보조 체크
  2170. var ptbs_age = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_age"));
  2171. var ptin_insukind = ds_main_adrv.getColumn(0, "insukind");
  2172. if (ptin_insukind == "11" || ptin_insukind == "22") {
  2173. if (ptbs_age == " " || ptbs_age == "") {
  2174. ds_main_adrv.setColumn(0, "suppkind", "00");
  2175. }
  2176. else if (ptbs_age >= '0' && ptbs_age < '6') {
  2177. ds_main_adrv.setColumn(0, "suppkind", "08");
  2178. }
  2179. else {
  2180. ds_main_adrv.setColumn(0, "suppkind", "00");
  2181. }
  2182. }
  2183. else {
  2184. ds_main_adrv.setColumn(0, "suppkind", "00");
  2185. }
  2186. ds_hidden_init_suppkind.filter('up == "' + ptin_insukind + '" && (io == "A" || io == "I")');
  2187. ds_cmb_suppkind.copyData(ds_hidden_init_suppkind, true);
  2188. ds_hidden_init_suppkind.filter('');
  2189. }
  2190. /**
  2191. * 기초데이터 셋팅
  2192. * @return {[type]} [description]
  2193. */
  2194. function fBaseColumn() {
  2195. ds_cmb_suppkind.copyData(ds_hidden_init_suppkind, false);
  2196. dsf_createDsRow('ds_send_data4', [
  2197. { col: 'sess_posinstcd', type: 'string', size: 256, val: ds_hidden_session.getColumn(0, 'posinstcd') },
  2198. { col: 'ioflag', type: 'string', size: 256, val: '' },
  2199. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  2200. ], false);
  2201. var oParam = {};
  2202. oParam.id = "TRPMI00106";
  2203. oParam.service = "pamcomnapp.PamComn";
  2204. oParam.method = "reqGetComCD";
  2205. oParam.inds = "req=ds_send_data4";
  2206. oParam.outds = "ds_hidden_init_disccd=disccd ds_hidden_init_insukind=insukind ds_hidden_init_suppkind=suppkind "
  2207. + "ds_hidden_init_orddeptcd=orddeptcd ds_hidden_init_orddrid=orddrid ds_hidden_init_wardcd=wardcd "
  2208. + "ds_hidden_init_roomcd=roomcd ds_hidden_init_flag=flag";
  2209. oParam.async = false;
  2210. tranf_submit(oParam);
  2211. ds_hidden_init_orddeptcd.filter('orddeptflag == "D"');
  2212. ds_cmb_orddept.copyData(ds_hidden_init_orddeptcd, true);
  2213. ds_cmb_ordept.copyData(ds_hidden_init_orddeptcd, true);
  2214. ds_hidden_init_orddeptcd.filter('');
  2215. fBaseDataInitPtbs();
  2216. fBaseDataInitPtin();
  2217. }
  2218. /**
  2219. * 20070907 초기화 수정
  2220. * @return {[type]} [description]
  2221. */
  2222. function fInitialize() {
  2223. ds_main_otptlist.clearData();
  2224. ds_main_otptlist.addRow();
  2225. ds_main_diaglist.clearData();
  2226. ds_main_diaglist.addRow();
  2227. ds_main_h_cnst.clearData();
  2228. ds_main_adrv.clearData();
  2229. ds_main_srdg.clearData();
  2230. ds_main_aipm.clearData();
  2231. ds_main_icpm.clearData();
  2232. ds_patinfolist.clearData();
  2233. ds_patinfolist.addRow();
  2234. ds_main_otptlist.clearData();
  2235. ds_main_otptlist.addRow();
  2236. ds_main_diaglist.clearData();
  2237. ds_main_diaglist.addRow();
  2238. ds_patinfolist.clearData();
  2239. ds_patinfolist.addRow();
  2240. ds_main_ptbs.clearData();
  2241. ds_main_ptbs.addRow();
  2242. ds_main_ptin.clearData();
  2243. ds_main_ptin.addRow();
  2244. ds_main_adrv.clearData();
  2245. ds_main_bedlist.clearData();
  2246. ds_main_adrvlist.clearData();
  2247. ds_main_otptlist.clearData();
  2248. ds_main_diaglist.clearData();
  2249. ds_hidden_rcv_ptin.clearData();
  2250. ds_hidden_rcv_ptbs.clearData();
  2251. ds_hidden_check_ptbs.clearData();
  2252. ds_hidden_userpopupinfo.clearData();
  2253. ds_hidden_popup.clearData();
  2254. ds_hidden_popup.addRow();
  2255. // model.resetInstanceNode("/root/hidden/original");
  2256. // model.resetInstanceNode("/root/hidden/rcv");
  2257. // model.resetInstanceNode("/root/hidden/check");
  2258. // model.resetInstanceNode("/root/hidden/userpopupinfo");
  2259. // model.resetInstanceNode("/root/hidden/oneselect");
  2260. // model.resetInstanceNode("/root/hidden/flag");
  2261. // model.resetInstanceNode("/root/hidden/source");
  2262. // model.resetInstanceNode("/root/hidden/grid_rcv");
  2263. // model.resetInstanceNode("/root/hidden/popup");
  2264. // model.resetInstanceNode("/root/hidden/h_rcv");
  2265. // model.resetInstanceNode("/root/send");
  2266. //초기화후 디폴트로 예약자검색조건 - 희망일자,현재일자를 넣어준다.
  2267. ds_send_data2.setColumn(0, "inrsrvcond", "1");
  2268. ds_send_data2.setColumn(0, "inrsrvcondnm", utlf_getCurrentDate());
  2269. ds_send_data2.setColumn(0, "inrsrvtodd", utlf_getCurrentDate());
  2270. ds_send_data1.setColumn(0, "rmspecref", "P1");
  2271. ds_send_data1.setColumn(0, "bedtype", "C");
  2272. ds_send_data2.setColumn(0, "erreglyn", "A"); // A:전체
  2273. div_srch.ipt_room.visible = false;
  2274. div_srch.cmb_ward.visible = false;
  2275. div_srch.cmb_grde.visible = false;
  2276. div_srch.cmb_type.visible = false;
  2277. div_srch.cmb_sex.visible = false;
  2278. div_srch.cmb_orddept.visible = false;
  2279. div_srch.cmb_search.visible = false;
  2280. div_srch2.bol_ckeckdd1.selected = true;
  2281. ds_send_data2.setColumn(0, "r_checkflag", "true");
  2282. btn_patspcfyn.style.background = "#c0c0c0";
  2283. frmf_inputEnterKey('div_srch2.cmb_rssrch', 'onitemchanged', new ItemChangeEventInfo);
  2284. fSuppkindSet();
  2285. }
  2286. /**
  2287. * 세션정보
  2288. * @return {[type]} [description]
  2289. */
  2290. function fGetUserInfosSampling() {
  2291. var sUserInfosS = sysf_getUserInfos();
  2292. sUserInfosS = sUserInfosS + "|";
  2293. var UserInfosS_Array = sUserInfosS.split("|");
  2294. var userid = utlf_transNullToEmpty(UserInfosS_Array[0]); //사용자번호
  2295. var usernm = UserInfosS_Array[1]; //사용자이름
  2296. var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
  2297. var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
  2298. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  2299. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  2300. if (userid == "" || userid == " " || userid == "-") {
  2301. userid = "pam";
  2302. }
  2303. dsf_makeValue(ds_hidden_session, "userid", 'string', userid);
  2304. dsf_makeValue(ds_hidden_session, "usernm", 'string', usernm);
  2305. dsf_makeValue(ds_hidden_session, "posinstcd", 'string', posinstcd);
  2306. dsf_makeValue(ds_hidden_session, "posinstnm", 'string', posinstnm);
  2307. dsf_makeValue(ds_hidden_session, "posdeptcd", 'string', posdeptcd);
  2308. dsf_makeValue(ds_hidden_session, "posdeptnm", 'string', posdeptnm);
  2309. }
  2310. /**
  2311. * submit 후 호출 될 공통 콜백
  2312. * @param {[type]} sSvcId [description]
  2313. * @param {[type]} nErrorCode [description]
  2314. * @param {[type]} sErrorMsg [description]
  2315. * @return {Function} [description]
  2316. */
  2317. function callback(sSvcId, nErrorCode, sErrorMsg){
  2318. arErrorCode.push(sSvcId, nErrorCode);
  2319. }
  2320. //=======================================================================================
  2321. // Events
  2322. //---------------------------------------------------------------------------------------
  2323. /**
  2324. * onload 이벤트 발생 시 호출
  2325. * @param {[type]} obj:Form [description]
  2326. * @param {[type]} e:LoadEventInfo [description]
  2327. */
  2328. function SMPMI00301_onload(obj: Form, e: LoadEventInfo) {
  2329. frmf_initForm(obj);
  2330. grdf_setGridSort(group6.grd_bedspec);
  2331. var ptbs_updchk = null;
  2332. var ptin_updchk = null;
  2333. var adrv_updchk = null;
  2334. //세션정보
  2335. fGetUserInfosSampling();
  2336. appf_getCodeList([
  2337. { dsNm: 'ds_init_P0006list', cdGrpId: 'P0006' },
  2338. { dsNm: 'ds_init_P0008list', cdGrpId: 'P0008' },
  2339. { dsNm: 'ds_init_P0010list', cdGrpId: 'P0010' },
  2340. { dsNm: 'ds_init_P0016list', cdGrpId: 'P0016' },
  2341. { dsNm: 'ds_init_P0025list', cdGrpId: 'P0025' },
  2342. { dsNm: 'ds_init_P0026list', cdGrpId: 'P0026' },
  2343. { dsNm: 'ds_init_P0032list', cdGrpId: 'P0032' },
  2344. { dsNm: 'ds_init_P0149list', cdGrpId: 'P0149' },
  2345. { dsNm: 'ds_init_P0039list', cdGrpId: 'P0039' },
  2346. { dsNm: 'ds_init_P0327list', cdGrpId: 'P0327' },
  2347. { dsNm: 'ds_init_P0391list', cdGrpId: 'P0391' },
  2348. { dsNm: 'ds_init_M0019list', cdGrpId: 'M0019' },
  2349. { dsNm: 'ds_init_P0552list', cdGrpId: 'P0552' }
  2350. ]);
  2351. pamfGetCodeList([{ dsNm: "ds_init_pam_PK092list", cdGrpId: "PK092" }]);
  2352. dsf_createDsRow('ds_send_data4', [
  2353. { col: 'sess_posinstcd', type: 'string', size: 256, val: ds_hidden_session.getColumn(0, 'posinstcd') },
  2354. { col: 'ioflag', type: 'string', size: 256, val: '' },
  2355. { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  2356. ], false);
  2357. var oParam = {};
  2358. oParam.id = "TRPMI00106";
  2359. oParam.service = "pamcomnapp.PamComn";
  2360. oParam.method = "reqGetComCD";
  2361. oParam.inds = "req=ds_send_data4";
  2362. oParam.outds = "ds_hidden_init_disccd=disccd ds_hidden_init_insukind=insukind ds_hidden_init_suppkind=suppkind "
  2363. + "ds_hidden_init_orddeptcd=orddeptcd ds_hidden_init_orddrid=orddrid ds_hidden_init_wardcd=wardcd "
  2364. + "ds_hidden_init_roomcd=roomcd ds_hidden_init_flag=flag ds_hidden_init_bedcd=bedcd";
  2365. oParam.async = false;
  2366. tranf_submit(oParam);
  2367. ds_hidden_init_orddeptcd.filter('orddeptflag == "D"');
  2368. ds_cmb_orddept.copyData(ds_hidden_init_orddeptcd, true);
  2369. ds_cmb_ordept.copyData(ds_hidden_init_orddeptcd, true);
  2370. ds_hidden_init_orddeptcd.filter('');
  2371. //20090602 JHP 추가_ 등급을 공통코드로 가져오는데 이는 입원료 수가 매핑과 관련해서 종료된 입원료를 컨트롤 할수 있는 소지가 있기에
  2372. // 실제 수가와 매핑코드를 조회하여 살아있는 입원료 등급 코드를 가져온다.
  2373. // 해당 조회를 실행한다음에 병실등급에 해당하는 콤보박스를 이걸로 바꾼다. 기존은 P0025(/root/init/P0025list/P0025)였다.
  2374. dsf_createDsRow('ds_send_data19', [
  2375. { col: 'sess_posinstcd', type: 'string', size: 256, val: ds_hidden_session.getColumn(0, 'posinstcd') },
  2376. { col: 'ioflag', type: 'string', size: 256, val: '' }
  2377. ], false);
  2378. ds_hidden_roomgrdelist.clearData();
  2379. oParam = {};
  2380. oParam.id = "TRPMI00405";
  2381. oParam.service = "ipatmngtapp.InhospUpdt";
  2382. oParam.method = "reqGetRoomGrdeInfoList";
  2383. oParam.inds = "req=ds_send_data19";
  2384. oParam.outds = "ds_hidden_roomgrdelist=roomgrdelist";
  2385. oParam.async = false;
  2386. tranf_submit(oParam);
  2387. // 병상배정 시 SMS 전송용 기초정보 조회
  2388. dsf_createDsRow('ds_TRPMI00307', [{ col: 'pid', type: 'string', size: 256, val: '' }], false);
  2389. ds_TRPMI00307.copyRow(0, ds_send_data2, 0);
  2390. ds_main_comnbedsmsmsg.clearData();
  2391. var oParam = {};
  2392. oParam.id = "TRPMI00306";
  2393. oParam.service = "ipatmngtapp.InRsrv";
  2394. oParam.method = "reqGetComnBedInRsrvSmsInfo";
  2395. oParam.inds = "req=ds_TRPMI00307";
  2396. oParam.outds = "ds_main_comnbedsmsmsg=comnbedsmsmsg";
  2397. oParam.async = false;
  2398. tranf_submit(oParam);
  2399. ds_main_comnbedsmsmsg.updateColID('msgfrmtcnts', 'orgmsgfrmtcnts');
  2400. caption14.tooltiptext = ds_main_comnbedsmsmsg.getColumn(0, "orgmsgfrmtcnts");
  2401. //공용병상환자조회 조회조건 세팅
  2402. Fselect(ds_send_data2.getColumn(0, "inrsrvcond"));
  2403. fBaseDataInitPtbs();
  2404. fBaseDataInitPtin();
  2405. //2010-12-30 이동식 추가
  2406. //병상조회 시 조회조건에 전체로 기본 세팅
  2407. ds_send_data1.setColumn(0, "rmspecref", "P1"); // 전체
  2408. fChoice("P1");
  2409. fQueryRoomRef();
  2410. var adrv_pid = utlf_transNullToEmpty(ds_hidden_source.getColumn(0, "pid"));
  2411. // var adrv_pid = sPid;
  2412. ds_main_ptbs.setColumn(0, "ptbs_pid", adrv_pid);
  2413. if (adrv_pid == "" || adrv_pid == " ") {
  2414. // do nothing
  2415. }
  2416. else {
  2417. //입원예약(입원결정서환자 조회)
  2418. if (!fQueryRsrvRef(2)) {
  2419. return false;
  2420. }
  2421. /*
  2422. 환자번호 Enter 입력시 입원예약/결정서 환자인지 체크한다.
  2423. 입원예약/결정서 환자 인경우 -
  2424. 입원예약/결정서 미환자 인경우 -
  2425. */
  2426. ds_send_data3.clearData();
  2427. //ds_send_data5.clearData();
  2428. //2008.06.10 한윤희 수정 pid 셋팅 오류 수정
  2429. ds_send_data3.setColumn(0, "pid", adrv_pid);
  2430. ds_send_data3.setColumn(0, "mode", "4");
  2431. //환자번호 조회팝업 띄울때 필요한 값을 넣는다.
  2432. //2008.06.10 한윤희 수정 pid 셋팅 오류 수정
  2433. ds_send_data9.setColumn(0, "pid", adrv_pid);
  2434. ds_send_data9.setColumn(0, "srchcond", "1")
  2435. //환자인적정보+보험정보
  2436. ds_hidden_rcv_ptbs.clearData();
  2437. ds_hidden_rcv_ptin.clearData();
  2438. var oParam = {};
  2439. oParam.id = "TRPMI00304";
  2440. oParam.service = "ipatmngtapp.InRgst";
  2441. oParam.method = "reqGetInRgPatInfo";
  2442. oParam.inds = "req=ds_send_data3";
  2443. oParam.outds = "ds_hidden_rcv_ptbs=ptbs ds_hidden_rcv_ptin=ptin";
  2444. oParam.async = false;
  2445. oParam.callback = "callback";
  2446. tranf_submit(oParam);
  2447. if (arErrorCode.pop("TRPMI00304") > -1) {
  2448. ds_send_data3.clearData();
  2449. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_rcv_ptbs, 'ptbs_');
  2450. ds_hidden_rcv_ptbs.copyData(ds_tmp, false);
  2451. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_rcv_ptin, 'ptin_');
  2452. ds_hidden_rcv_ptin.copyData(ds_tmp, false);
  2453. var iptbscnt = ds_hidden_rcv_ptbs.rowcount;
  2454. var iptincnt = ds_hidden_rcv_ptin.rowcount;
  2455. if (iptbscnt > 0) {
  2456. ds_main_ptbs.copyData(ds_hidden_rcv_ptbs, false);
  2457. ds_hidden_original_ptbs.copyData(ds_hidden_rcv_ptbs, false);
  2458. }
  2459. else {
  2460. sysf_messageBox("환자인적이", "I004");
  2461. ds_main_ptbs.clearData();
  2462. ds_main_ptbs.addRow();
  2463. ds_main_ptin.clearData();
  2464. ds_main_ptin.addRow();
  2465. ds_main_otptlist.clearData();
  2466. ds_main_diaglist.clearData();
  2467. return false;
  2468. }
  2469. if (iptincnt > 0) {
  2470. ds_main_ptin.copyData(ds_hidden_rcv_ptin, false);
  2471. ds_hidden_original_ptin.copyData(ds_hidden_rcv_ptin, false);
  2472. ds_main_adrv.setColumn(0, "insukind", ds_main_ptin.getColumn(0, "ptin_insukind"));
  2473. ds_main_adrv.setColumn(0, "suppkind", ds_main_adrvlist.getColumn(0, "suppkind"));
  2474. ds_main_adrv.setColumn(0, "suppkindresn", ds_main_adrvlist.getColumn(0, "suppkindresn"));
  2475. }
  2476. else {
  2477. ds_main_ptin.clearData();
  2478. ds_main_ptin.addRow();
  2479. }
  2480. }
  2481. //외래내원조회
  2482. ds_send_data3.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2483. dsf_createDsRow('ds_req', [
  2484. { col: 'pid', type: 'string', size: 256, val: ds_main_ptbs.getColumn(0, "ptbs_pid") },
  2485. { col: 'orddd', type: 'string', size: 256, val: '' }
  2486. ], false);
  2487. ds_main_otptlist.clearData();
  2488. var oParam = {};
  2489. oParam.id = "TRPMI00104";
  2490. oParam.service = "ipatmngtapp.InRgst";
  2491. oParam.method = "reqGetOutChos";
  2492. oParam.inds = "req=ds_req";
  2493. oParam.outds = "ds_main_otptlist=grdoutchoshist";
  2494. oParam.async = false;
  2495. oParam.callback = "callback";
  2496. tranf_submit(oParam);
  2497. if (arErrorCode.pop("TRPMI00104") > -1) {
  2498. var otpt_cnt = ds_main_otptlist.rowcount;
  2499. if (otpt_cnt > 0) {
  2500. ds_send_data3.clearData();
  2501. ds_send_data3.addRow();
  2502. ds_main_otptlist.rowposition = 0;
  2503. }
  2504. else {
  2505. ds_main_otptlist.clearData();
  2506. }
  2507. }
  2508. }
  2509. }
  2510. /**
  2511. * btn_patspcfyn 버튼 클릭 이벤트
  2512. * @param {[type]} obj: Button [description]
  2513. * @param {[type]} e: ClickEventInfo [description]
  2514. * @return {[type]} [description]
  2515. */
  2516. function btn_patspcfyn_onclick(obj: Button, e: ClickEventInfo) {
  2517. ds_send_data9.clearData();
  2518. ds_send_data9.addRow();
  2519. ds_send_data9.setColumn(0, "srchcond", 1);
  2520. ds_send_data9.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2521. frmf_modal("SMPMC01300", "SMPMC01300", { arg_ds_source: ds_send_data9 } , "", "", "", "", "", "", "", "", "", "M");
  2522. }
  2523. /**
  2524. * 환자인적 버튼 클릭 이벤트
  2525. * @param {[type]} obj: Button [description]
  2526. * @param {[type]} e: ClickEventInfo [description]
  2527. * @return {[type]} [description]
  2528. */
  2529. function button1_onclick(obj: Button, e: ClickEventInfo) {
  2530. var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2531. if (ptbs_pid == " " || ptbs_pid == "") {
  2532. // do nothing
  2533. }
  2534. else {
  2535. ds_hidden_popup.setColumn(0, "pid", ptbs_pid);
  2536. ds_hidden_popup.setColumn(0, "srchcond", "1");
  2537. }
  2538. frmf_modal("SMPMC01400", "SMPMC01400", { arg_ds_source: ds_send_data9 } , "", "", "", "", "", "", "", "", "", "M");
  2539. }
  2540. /**
  2541. * [인적사항] 환자번호 키보드 입력 이벤트
  2542. * @param {[type]} obj: Edit [description]
  2543. * @param {[type]} e: KeyEventInfo [description]
  2544. * @return {[type]} [description]
  2545. */
  2546. function ipt_pid1_onkeydown(obj: Edit, e: KeyEventInfo) {
  2547. if (e.keycode == 13) {
  2548. obj.updateToDataset();
  2549. sendinit();
  2550. ds_send_data9.setColumn(0, "autoflag", "Y");
  2551. btn_ptbspid.click();
  2552. }
  2553. }
  2554. /**
  2555. * [인적사항] 환자번호 검색 아이콘 클릭 이벤트
  2556. * @param {[type]} obj: Button [description]
  2557. * @param {[type]} e: ClickEventInfo [description]
  2558. * @return {[type]} [description]
  2559. */
  2560. function btn_ptbspid_onclick(obj: Button, e: ClickEventInfo) {
  2561. var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2562. if (ptbs_pid == "" || ptbs_pid == " ") {
  2563. ds_send_data9.clearData();
  2564. ds_send_data9.addRow();
  2565. }
  2566. else {
  2567. ds_send_data9.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2568. ds_send_data9.setColumn(0, "srchcond", "1");
  2569. }
  2570. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data9 } , "", "", "", "", "", "", "", "", "", "M");
  2571. ds_send_data9.clearData();
  2572. ds_send_data9.addRow();
  2573. if (frmf_getParameter('SPPMC02500_popupendflag') == "ok") {
  2574. var ptbs_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, "ptbs_pid"));
  2575. if (ptbs_pid == "" || ptbs_pid == " ") {
  2576. return false;
  2577. }
  2578. //2008.01.29 특이환자조회,증증환자여부조회
  2579. ds_main_ptbs.setColumn(0, "ptbs_pid", ds_patinfolist.getColumn(0, "pid"));
  2580. ds_send_data11.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2581. ds_send_data11.setColumn(0, "indd", utlf_getCurrentDate());
  2582. ds_send_data11.setColumn(0, "mode", "11");
  2583. dsf_createDsRow('ds_req', [
  2584. { col: 'mode', type: 'string', size: 256, val: '' },
  2585. { col: 'pid', type: 'string', size: 256, val: '' },
  2586. { col: 'hngnm', type: 'string', size: 256, val: '' },
  2587. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  2588. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  2589. { col: 'orddd', type: 'string', size: 256, val: '' },
  2590. { col: 'ioflag', type: 'string', size: 256, val: '' },
  2591. { col: 'insukind', type: 'string', size: 256, val: '' },
  2592. { col: 'orddeptcd', type: 'string', size: 256, val: '' }
  2593. ], false);
  2594. ds_req.copyRow(0, ds_send_data11, 0);
  2595. ds_req.setColumn(0, 'orddd', ds_send_data11.getColumn(0, 'indd'));
  2596. ds_hidden_check_ptbs.clearData();
  2597. var oParam = {};
  2598. oParam.id = "TRPMI00107";
  2599. oParam.service = "ipatmngtapp.InRgst";
  2600. oParam.method = "reqGetInRgPatInfo";
  2601. oParam.inds = "req=ds_req";
  2602. oParam.outds = "ds_hidden_check_ptbs=ptbs ds_hidden_check_ptsp=ptsp";// ds_=ptsp ds_=srdg ds_=rooa ds_=adrv ds_=hndc ds_=cnst ds_=grdinrgstinfo ds_=inpt1 ds_=stdy ds_=disc ds_=bind ds_=tempdsch";
  2603. oParam.async = false;
  2604. tranf_submit(oParam);
  2605. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_check_ptbs, 'ptbs_');
  2606. ds_hidden_check_ptbs.copyData(ds_tmp, false);
  2607. fCheckSpcfPat();
  2608. ds_main_ptbs.setColumn(0, "ptbs_pid", ds_patinfolist.getColumn(0, "pid"));
  2609. ds_send_data3.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2610. ds_send_data3.setColumn(0, "mode", "4");
  2611. //입원예약(입원결정서환자 조회)
  2612. if (!fQueryRsrvRef(2)) {
  2613. return false;
  2614. }
  2615. //차트번호로 조회시-> 1건 이상일 경우 마지막 예약Data에 보험유형.보조유형.보조사유를 Display해준다..
  2616. var adrvcnt = ds_main_adrvlist.rowcount;
  2617. if (adrvcnt > 0) {
  2618. ds_send_data3.setColumn(0, "insukind", ds_main_adrvlist.getColumn(0, "insukind"));
  2619. ds_main_adrv.setColumn(0, "insukind", ds_main_adrvlist.getColumn(0, "insukind"));
  2620. ds_main_adrv.setColumn(0, "suppkind", ds_main_adrvlist.getColumn(0, "suppkind"));
  2621. ds_main_adrv.setColumn(0, "suppkindresn", ds_main_adrvlist.getColumn(0, "suppkindresn"));
  2622. ds_hidden_original_adrv.copyData(ds_main_adrv, false);
  2623. }
  2624. if (!fQueryBaseInfo()) {
  2625. return false;
  2626. }
  2627. fSuppkindSet();
  2628. fOutCHosCheck();
  2629. fHopeRoomGrdeRef("1");
  2630. }
  2631. else {
  2632. return false;
  2633. }
  2634. }
  2635. /**
  2636. * 병상검색조건 콤보 아이템 변경 후 이벤트
  2637. * @param {[type]} obj: Combo [description]
  2638. * @param {[type]} e: ItemChangeEventInfo [description]
  2639. * @return {[type]} [description]
  2640. */
  2641. function div_srch_cmb_rmsrch_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  2642. fChoice(ds_send_data1.getColumn(0, "rmspecref"));
  2643. }
  2644. /**
  2645. * 병상검색조건 ipt_room 키보드 입력 이벤트
  2646. * @param {[type]} obj: Edit [description]
  2647. * @param {[type]} e: KeyEventInfo [description]
  2648. * @return {[type]} [description]
  2649. */
  2650. function div_srch_ipt_room_onkeydown(obj: Edit, e: KeyEventInfo) {
  2651. if (e.keycode == 13) {
  2652. div_srch.btn_search1.click();
  2653. }
  2654. }
  2655. /**
  2656. * 병상검색조건 cmb_grde 콤보 아이템 변경 후 이벤트
  2657. * @param {[type]} obj: Combo [description]
  2658. * @param {[type]} e: ItemChangeEventInfo [description]
  2659. * @return {[type]} [description]
  2660. */
  2661. function div_srch_cmb_grde_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  2662. fQueryRoomRef();
  2663. }
  2664. /**
  2665. * 병상검색조건 cmb_sex 콤보 아이템 변경 후 이벤트
  2666. * @param {[type]} obj: Combo [description]
  2667. * @param {[type]} e: ItemChangeEventInfo [description]
  2668. * @return {[type]} [description]
  2669. */
  2670. function div_srch_cmb_sex_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  2671. fQueryRoomRef();
  2672. }
  2673. /**
  2674. * 병상검색조건 cmb_orddept 콤보 아이템 변경 후 이벤트
  2675. * @param {[type]} obj: Combo [description]
  2676. * @param {[type]} e: ItemChangeEventInfo [description]
  2677. * @return {[type]} [description]
  2678. */
  2679. function div_srch_cmb_orddept_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  2680. fQueryRoomRef();
  2681. }
  2682. /**
  2683. * 병상검색조건 cmb_ward 콤보 아이템 변경 후 이벤트
  2684. * @param {[type]} obj: Combo [description]
  2685. * @param {[type]} e: ItemChangeEventInfo [description]
  2686. * @return {[type]} [description]
  2687. */
  2688. function div_srch_cmb_ward_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  2689. fQueryRoomRef();
  2690. }
  2691. /**
  2692. * [div_srch_cmb_type_onitemchanged description]
  2693. * @param {[type]} obj: Combo [description]
  2694. * @param {[type]} e: ItemChangeEventInfo [description]
  2695. * @return {[type]} [description]
  2696. */
  2697. function div_srch_cmb_type_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  2698. fQueryRoomRef();
  2699. }
  2700. /**
  2701. * radio1 라디오 아이템 변경 후 이벤트
  2702. * @param {[type]} obj: Radio [description]
  2703. * @param {[type]} e: ItemChangeEventInfo [description]
  2704. * @return {[type]} [description]
  2705. */
  2706. function div_srch_radio1_onitemchanged(obj: Radio, e: ItemChangeEventInfo) {
  2707. // 공용의 경우 조회조건 "전체"로 검색실시
  2708. if (ds_send_data1.getColumn(0, "bedtype") == "C") {
  2709. ds_send_data1.setColumn(0, "rmspecref", "P1");
  2710. fChoice("P1");
  2711. fQueryRoomRef();
  2712. }
  2713. else if (ds_send_data1.getColumn(0, "bedtype") == "D") {
  2714. ds_send_data1.setColumn(0, "rmspecref", "P5");
  2715. fChoice("P5");
  2716. fQueryRoomRef();
  2717. }
  2718. }
  2719. /**
  2720. * 조회 버튼 클릭 이벤트
  2721. * @param {[type]} obj: Button [description]
  2722. * @param {[type]} e: ClickEventInfo [description]
  2723. * @return {[type]} [description]
  2724. */
  2725. function div_srch_btn_search1_onclick(obj: Button, e: ClickEventInfo) {
  2726. fQueryRoomRef();
  2727. }
  2728. /**
  2729. * 엑셀저장 버튼 클릭 이벤트
  2730. * @param {[type]} obj: Button [description]
  2731. * @param {[type]} e: ClickEventInfo [description]
  2732. * @return {[type]} [description]
  2733. */
  2734. function button5_onclick(obj: Button, e: ClickEventInfo) {
  2735. grdf_exportExcel(group6.grd_bedspec, "excel", "빈병상현황", true, "", 'user', true);
  2736. }
  2737. /**
  2738. * btn_left 클릭 이벤트
  2739. * @param {[type]} obj: Button [description]
  2740. * @param {[type]} e: ClickEventInfo [description]
  2741. * @return {[type]} [description]
  2742. */
  2743. function btn_left_onclick(obj: Button, e: ClickEventInfo) {
  2744. // 그룹전체
  2745. group6.position.left = "0";
  2746. group6.position.width = "1195";
  2747. // 검색조건
  2748. group4.visible = false;
  2749. button5.visible = true;
  2750. //group4.position.left = "395";
  2751. // // 데이터그리드
  2752. // grd_bedspec.position.left = "0";
  2753. // grd_bedspec.position.width = "1194";
  2754. // // 타이틀
  2755. // caption44.position.left = "395";
  2756. // // 범례
  2757. // rectangle1.position.left = "485";
  2758. // caption11.position.left = "503";
  2759. // rectangle2.position.left = "535";
  2760. // caption12.position.left = "553";
  2761. // rectangle3.position.left = "585";
  2762. // caption13.position.left = "603";
  2763. // // 안내문구
  2764. // caption10.position.left = "780";
  2765. // // <<버튼, >>버튼
  2766. // btn_left.position.left = "1133";
  2767. // btn_right.position.left = "1163";
  2768. // 구분선
  2769. group6.line33.position.left = "0";
  2770. group6.line33.position.width = "1194";
  2771. }
  2772. /**
  2773. * btn_right 버튼 클릭 이벤트
  2774. * @param {[type]} obj: Button [description]
  2775. * @param {[type]} e: ClickEventInfo [description]
  2776. * @return {[type]} [description]
  2777. */
  2778. function btn_right_onclick(obj: Button, e: ClickEventInfo) {
  2779. // 그룹전체
  2780. group6.position.left = "395";
  2781. group6.position.width = "800";
  2782. // 검색조건
  2783. group4.visible = true;
  2784. button5.visible = false;
  2785. group6.grd_bedspec.redraw();
  2786. //group4.position.left = "0";
  2787. // // 데이터그리드
  2788. // grd_bedspec.position.left = "0";
  2789. // grd_bedspec.position.width = "799";
  2790. // // 타이틀
  2791. // caption44.position.left = "0";
  2792. // // 범례
  2793. // rectangle1.position.left = "90";
  2794. // caption11.position.left = "108";
  2795. // rectangle2.position.left = "140";
  2796. // caption12.position.left = "158";
  2797. // // 안내문구
  2798. // caption10.position.left = "385";
  2799. // // <<버튼, >>버튼
  2800. // btn_left.position.left = "738";
  2801. // btn_right.position.left = "768";
  2802. // // 부도관련
  2803. // rectangle3.position.left = "190";
  2804. // caption13.position.left = "208";
  2805. // 구분선
  2806. group6.line33.position.left = "0";
  2807. group6.line33.position.width = "799";
  2808. }
  2809. /**
  2810. * [인적사항] 성명 키보드 입력 이벤트
  2811. * @param {[type]} obj: Edit [description]
  2812. * @param {[type]} e: KeyEventInfo [description]
  2813. * @return {[type]} [description]
  2814. */
  2815. function ipt_hngnm_onkeydown(obj: Edit, e: KeyEventInfo) {
  2816. if (e.keycode == 13) {
  2817. obj.updateToDataset();
  2818. if (fHngNmVeri("onkeypress") == false) {
  2819. return;
  2820. }
  2821. ds_send_data3.clearData();
  2822. ds_send_data3.addRow();
  2823. //ds_send_data5.clearData();
  2824. //ds_send_data5.addRow();
  2825. // ds_send_data7.clearData();
  2826. // ds_send_data7.addRow();
  2827. // ds_send_data8.clearData();
  2828. // ds_send_data8.addRow();
  2829. ds_send_data9.clearData();
  2830. ds_send_data9.addRow();
  2831. // ds_send_data10.clearData();
  2832. // ds_send_data10.addRow();
  2833. ds_send_data11.clearData();
  2834. ds_send_data11.addRow();
  2835. // ds_send_data12.clearData();
  2836. // ds_send_data12.addRow();
  2837. ds_send_data9.setColumn(0, "autoflag", "Y");
  2838. btn_ptbshngnm.click();
  2839. }
  2840. }
  2841. /**
  2842. * [인적사항] 성명 검색 아이콘 클릭 이벤트
  2843. * @param {[type]} obj: Button [description]
  2844. * @param {[type]} e: ClickEventInfo [description]
  2845. * @return {[type]} [description]
  2846. */
  2847. function btn_ptbshngnm_onclick(obj: Button, e: ClickEventInfo) {
  2848. var ptbs_hngnm = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_hngnm"));
  2849. if (ptbs_hngnm == "" || ptbs_hngnm == " ") {
  2850. ds_send_data9.clearData();
  2851. ds_send_data9.addRow();
  2852. }
  2853. else {
  2854. ds_send_data9.setColumn(0, "hngnm", ds_main_ptbs.getColumn(0, "ptbs_hngnm"));
  2855. ds_send_data9.setColumn(0, "srchcond", "2");
  2856. }
  2857. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data9 } , "", "", "", "", "", "", "", "", "", "M");
  2858. ds_send_data9.clearData();
  2859. ds_send_data9.addRow();
  2860. if (frmf_getParameter('SPPMC02500_popupendflag') == "ok") {
  2861. var ptbs_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, "pid"));
  2862. if (ptbs_pid == "" || ptbs_pid == " ") {
  2863. return false;
  2864. }
  2865. //2008.01.29 특이환자조회,증증환자여부조회
  2866. ds_main_ptbs.setColumn(0, "ptbs_pid", ds_patinfolist.getColumn(0, "pid"));
  2867. ds_send_data11.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2868. ds_send_data11.setColumn(0, "mode", "11");
  2869. dsf_createDsRow('ds_req', [
  2870. { col: 'mode', type: 'string', size: 256, val: '' },
  2871. { col: 'pid', type: 'string', size: 256, val: '' },
  2872. { col: 'hngnm', type: 'string', size: 256, val: '' },
  2873. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  2874. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  2875. { col: 'orddd', type: 'string', size: 256, val: '' },
  2876. { col: 'ioflag', type: 'string', size: 256, val: '' },
  2877. { col: 'insukind', type: 'string', size: 256, val: '' },
  2878. { col: 'orddeptcd', type: 'string', size: 256, val: '' }
  2879. ], false);
  2880. ds_req.copyRow(0, ds_send_data11, 0);
  2881. ds_hidden_check_ptbs.clearData();
  2882. var oParam = {};
  2883. oParam.id = "TRPMI00107";
  2884. oParam.service = "ipatmngtapp.InRgst";
  2885. oParam.method = "reqGetInRgPatInfo";
  2886. oParam.inds = "req=ds_req";
  2887. oParam.outds = "ds_hidden_check_ptbs=ptbs ds_hidden_check_ptsp=ptsp";// ds_=ptsp ds_=srdg ds_=rooa ds_=adrv ds_=hndc ds_=cnst ds_=grdinrgstinfo ds_=inpt1 ds_=stdy ds_=disc ds_=bind ds_=tempdsch";
  2888. oParam.async = false;
  2889. tranf_submit(oParam);
  2890. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_check_ptbs, 'ptbs_');
  2891. ds_hidden_check_ptbs.copyData(ds_tmp, false);
  2892. fCheckSpcfPat();
  2893. ds_main_ptbs.setColumn(0, "ptbs_pid", ds_patinfolist.getColumn(0, "pid"));
  2894. ds_send_data3.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2895. ds_send_data3.setColumn(0, "mode", "4");
  2896. //입원예약(입원결정서환자 조회)
  2897. if (!fQueryRsrvRef(2)) {
  2898. return false;
  2899. }
  2900. var adrvcnt = ds_main_adrvlist.clearData();
  2901. if (adrvcnt > 0) {
  2902. ds_main_adrv.setColumn(0, "suppkind", ds_main_adrvlist.getColumn(0, "suppkind"));
  2903. ds_main_adrv.setColumn(0, "suppkindresn", ds_main_adrvlist.getColumn(0, "suppkindresn"));
  2904. }
  2905. if (!fQueryBaseInfo()) {
  2906. return false;
  2907. }
  2908. fOutCHosCheck();
  2909. fHopeRoomGrdeRef("1");
  2910. }
  2911. else {
  2912. var ptbs_pid = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_pid"));
  2913. if (ptbs_pid != "") {
  2914. ds_main_ptbs.setColumn(0, "ptbs_hngnm", ds_hidden_original_ptbs.getColumn(ds_hidden_original_ptbs.findRow("ptbs_pid", ptbs_pid), 'ptbs_hngnm'));
  2915. }
  2916. else {
  2917. ds_main_ptbs.setColumn(0, "ptbs_hngnm", "");
  2918. }
  2919. }
  2920. }
  2921. /**
  2922. * [인적사항] 주민번호 앞자리 키보드 입력 이벤트
  2923. * @param {[type]} obj: Edit [description]
  2924. * @param {[type]} e: KeyEventInfo [description]
  2925. * @return {[type]} [description]
  2926. */
  2927. function ipt_rrgstno1_onkeydown(obj: Edit, e: KeyEventInfo) {
  2928. if (e.keycode == 13) {
  2929. obj.updateToDataset();
  2930. if (!fRrgstNo1VeriCheck()) {
  2931. return;
  2932. }
  2933. }
  2934. }
  2935. /**
  2936. * [인적사항] 주민번호 앞자리 포커스 상실 이벤트
  2937. * @param {[type]} obj: Edit [description]
  2938. * @param {[type]} e: KillFocusEventInfo [description]
  2939. * @return {[type]} [description]
  2940. */
  2941. function ipt_rrgstno1_onkillfocus(obj: Edit, e: KillFocusEventInfo) {
  2942. if (!fRrgstNo1VeriCheck()) {
  2943. return;
  2944. }
  2945. }
  2946. /**
  2947. * [인적사항] 주민번호 뒷자리 키보드 입력 이벤트
  2948. * @param {[type]} obj: Edit [description]
  2949. * @param {[type]} e: KeyEventInfo [description]
  2950. * @return {[type]} [description]
  2951. */
  2952. function ipt_rrgstno2_onkeydown(obj: Edit, e: KeyEventInfo) {
  2953. if (e.keycode == 13) {
  2954. obj.updateToDataset();
  2955. if (!fRrgstNo2VeriCheck()) {
  2956. return;
  2957. }
  2958. ds_send_data3.clearData();
  2959. ds_send_data3.addRow();
  2960. //ds_send_data5.clearData();
  2961. //ds_send_data5.addRow();
  2962. //ds_send_data7.clearData();
  2963. //ds_send_data7.addRow();
  2964. // ds_send_data8.clearData();
  2965. // ds_send_data8.addRow();
  2966. ds_send_data9.clearData();
  2967. ds_send_data9.addRow();
  2968. // ds_send_data10.clearData();
  2969. // ds_send_data10.addRow();
  2970. ds_send_data11.clearData();
  2971. ds_send_data11.addRow();
  2972. // ds_send_data12.clearData();
  2973. // ds_send_data12.addRow();
  2974. ds_send_data9.setColumn(0, "autoflag", "Y");
  2975. btn_ptbsrrgstno.click();
  2976. }
  2977. }
  2978. /**
  2979. * [인적사항] 주민번호 뒷자리 포커스 상실 이벤트
  2980. * @param {[type]} obj: Edit [description]
  2981. * @param {[type]} e: KillFocusEventInfo [description]
  2982. * @return {[type]} [description]
  2983. */
  2984. function ipt_rrgstno2_onkillfocus(obj: Edit, e: KillFocusEventInfo) {
  2985. if (!fRrgstNo2VeriCheck()) {
  2986. return;
  2987. }
  2988. btn_ptbsrrgstno.click();
  2989. }
  2990. /**
  2991. * [인적사항] 주민번호 검색 아이콘 클릭 이벤트
  2992. * @param {[type]} obj: Button [description]
  2993. * @param {[type]} e: ClickEventInfo [description]
  2994. * @return {[type]} [description]
  2995. */
  2996. function btn_ptbsrrgstno_onclick(obj: Button, e: ClickEventInfo) {
  2997. var ptbs_rrgstno1 = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_rrgstno1"));
  2998. var ptbs_rrgstno2 = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_rrgstno2"));
  2999. if ((ptbs_rrgstno1 == "" || ptbs_rrgstno1 == " ") && (ptbs_rrgstno2 == "" || ptbs_rrgstno2 == " ")) {
  3000. ds_send_data9.clearData();
  3001. ds_send_data9.addRow();
  3002. }
  3003. else {
  3004. ds_send_data9.setColumn(0, "rrgstno1", ds_main_ptbs.getColumn(0, "ptbs_rrgstno1"));
  3005. ds_send_data9.setColumn(0, "rrgstno2", ds_main_ptbs.getColumn(0, "ptbs_rrgstno2"));
  3006. ds_send_data9.setColumn(0, "srchcond", "3")
  3007. }
  3008. frmf_modal("SPPMC02500", "SPPMC02500", { arg_ds_send: ds_send_data9 } , "", "", "", "", "", "", "", "", "", "M");
  3009. ds_send_data9.clearData();
  3010. ds_send_data9.addRow();
  3011. if (frmf_getParameter('SPPMC02500_popupendflag') == "ok") {
  3012. var ptbs_pid = utlf_transNullToEmpty(ds_patinfolist.getColumn(0, "pid"));
  3013. if (ptbs_pid == " " || ptbs_pid == "") {
  3014. return false;
  3015. }
  3016. //2008.01.29 특이환자조회,증증환자여부조회
  3017. ds_main_ptbs.setColumn(0, "ptbs_pid", ds_patinfolist.getColumn(0, "pid"));
  3018. ds_send_data11.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  3019. ds_send_data11.setColumn(0, "mode", "11");
  3020. dsf_createDsRow('ds_req', [
  3021. { col: 'mode', type: 'string', size: 256, val: '' },
  3022. { col: 'pid', type: 'string', size: 256, val: '' },
  3023. { col: 'hngnm', type: 'string', size: 256, val: '' },
  3024. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  3025. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  3026. { col: 'orddd', type: 'string', size: 256, val: '' },
  3027. { col: 'ioflag', type: 'string', size: 256, val: '' },
  3028. { col: 'insukind', type: 'string', size: 256, val: '' },
  3029. { col: 'orddeptcd', type: 'string', size: 256, val: '' }
  3030. ], false);
  3031. ds_req.copyRow(0, ds_send_data11, 0);
  3032. ds_hidden_check_ptbs.clearData();
  3033. var oParam = {};
  3034. oParam.id = "TRPMI00107";
  3035. oParam.service = "ipatmngtapp.InRgst";
  3036. oParam.method = "reqGetInRgPatInfo";
  3037. oParam.inds = "req=ds_req";
  3038. oParam.outds = "ds_hidden_check_ptbs=ptbs ds_hidden_check_ptsp=ptsp";// ds_=ptsp ds_=srdg ds_=rooa ds_=adrv ds_=hndc ds_=cnst ds_=grdinrgstinfo ds_=inpt1 ds_=stdy ds_=disc ds_=bind ds_=tempdsch";
  3039. oParam.async = false;
  3040. tranf_submit(oParam);
  3041. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_check_ptbs, 'ptbs_');
  3042. ds_hidden_check_ptbs.copyData(ds_tmp, false);
  3043. fCheckSpcfPat();
  3044. ds_main_ptbs.setColumn(0, "ptbs_pid", ds_patinfolist.getColumn(0, "pid"));
  3045. ds_send_data3.setColumn(0, "pid", ds_main_ptbs.getColumn(0, "ptbs_pid"));
  3046. ds_send_data3.setColumn(0, "mode", "4");
  3047. //입원예약(입원결정서환자 조회)
  3048. if (!fQueryRsrvRef(2)) {
  3049. return false;
  3050. }
  3051. var adrvcnt = ds_main_adrvlist.rowcount;
  3052. if (adrvcnt > 0) {
  3053. ds_main_adrv.setColumn(0, "suppkind", ds_main_adrvlist.getColumn(0, "suppkind"));
  3054. ds_main_adrv.setColumn(0, "suppkindresn", ds_main_adrvlist.getColumn(0, "suppkindresn"));
  3055. }
  3056. fQueryBaseInfo();
  3057. fOutCHosCheck();
  3058. }
  3059. else {
  3060. return false;
  3061. }
  3062. }
  3063. /**
  3064. * [인적사항] 생년월일 텍스트 변경 이벤트
  3065. * @param {[type]} obj: MaskEdit [description]
  3066. * @param {[type]} e: TextChangeEventInfo [description]
  3067. * @return {[type]} [description]
  3068. */
  3069. function group4_ipt_brthdd_ontextchange(obj: MaskEdit, e: TextChangeEventInfo) {
  3070. checkValid(obj, e, 'YYYYMMDD');
  3071. }
  3072. /**
  3073. * [인적사항] 우편번호 검색 아이콘 클릭 이벤트
  3074. * @param {[type]} obj: Button [description]
  3075. * @param {[type]} e: ClickEventInfo [description]
  3076. * @return {[type]} [description]
  3077. */
  3078. function button6_onclick(obj: Button, e: ClickEventInfo) {
  3079. var sZipcd = appf_getZipCodeList();
  3080. ds_main_ptbs.setColumn(0, "ptbs_zipcd1", sZipcd.zipcdhead);
  3081. ds_main_ptbs.setColumn(0, "ptbs_zipcd2", sZipcd.zipcdfoot);
  3082. ds_main_ptbs.setColumn(0, "ptbs_zipcdseq", sZipcd.seqno); //미확인
  3083. ds_main_ptbs.setColumn(0, "ptbs_zipcdaddr", sZipcd.address); //sZipcd.address
  3084. ds_main_ptbs.setColumn(0, "ptbs_detladdr", sZipcd.address_detail); //sZipcd.detladdr
  3085. //20070907 팝업에서 데이터 더블클릭후 메인으로 넘어간 후에는 커서 하위조소로 이동 요청..
  3086. var ptbs_zipnm = utlf_transNullToEmpty(ds_main_ptbs.getColumn(0, "ptbs_zipcdaddr"));
  3087. if (ptbs_zipnm != " " && ptbs_zipnm != "" && ptbs_zipnm != "-") {
  3088. group4.ipt_detladdr.setFocus();
  3089. }
  3090. }
  3091. /**
  3092. * [인적사항] 직원소개/추천인 검색 아이콘 클릭 이벤트
  3093. * @param {[type]} obj: Button [description]
  3094. * @param {[type]} e: ClickEventInfo [description]
  3095. * @return {[type]} [description]
  3096. */
  3097. function button20_onclick(obj: Button, e: ClickEventInfo) {
  3098. /* 2007.09.07
  3099. 1. 직원 소개 버튼 클릭하여 조회후에 취소를 누를 경우에 기존 데이터 복구
  3100. 2. 직원사번 보완차원에서 직원명으로 디스플레이
  3101. 3. 직원명 디스플레이 후에 버튼 누르면 자동연동되어 팝업화면 띄운다.
  3102. */
  3103. var resultDs = frmf_modal("SPZSU10103", "SPZSU10103",{ param: "_OneS", flag: 'usernm', searchitem: ds_main_ptbs.getColumn(0, 'ptbs_recmerid') },
  3104. "", "", "", "", "", "", "", "", "", "M");
  3105. if (typeof(resultDs) != 'undefined' || resultDs.rowcount > 0) {
  3106. //ds_hidden_oneselect.copyData(resultDs, false);
  3107. ds_main_ptbs.getColumn(0, "ptbs_recmerid", resultDs.getColumn(0, "usernm"));
  3108. }
  3109. }
  3110. /**
  3111. * 병상내역 그리드 셀 더블클릭 이벤트
  3112. * @param {[type]} obj: Grid [description]
  3113. * @param {[type]} e: GridClickEventInfo [description]
  3114. * @return {[type]} [description]
  3115. */
  3116. function group6_grd_bedspec_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  3117. var room_row = group6.grd_bedspec.currentrow;
  3118. var adrv_row = grd_inrsv.currentrow;
  3119. var swardcd = ds_main_bedlist.getColumn(room_row, "wardcd");
  3120. var sroomcd = ds_main_bedlist.getColumn(room_row, "roomcd");
  3121. var sbedcd = ds_main_bedlist.getColumn(room_row, "bedcd");
  3122. var ptbs_sex = ds_main_adrvlist.getColumn(adrv_row, "sex");
  3123. var ptbs_rrgstno = ds_main_adrvlist.getColumn(adrv_row, "rrgstno");
  3124. var ssex = ds_main_bedlist.getColumn(room_row, "sex");
  3125. //var semptybedcnt = ds_main_bedlist.getColumn(room_row, "emptybedcnt");
  3126. var sOverBedYN = ds_main_bedlist.getColumn(room_row, "overbedyn");
  3127. var sPatinfo = utlf_transNullToEmpty(ds_main_bedlist.getColumn(room_row, "patinfo"));
  3128. var roomtypecd = ds_main_bedlist.getColumn(room_row, "roomtypecd");
  3129. //2007.09.24 수정
  3130. // 2009.11.09 - overbedyn 체크로직 추가
  3131. if(grd_inrsv.currentrow < 0){
  3132. sysf_messageBox("병실배정할 입원예약자를", "C002");
  3133. return false;
  3134. }
  3135. if (sOverBedYN == 'N' && sPatinfo != "") {
  3136. sysf_messageBox("빈병상이 있는 병실을", "C002");
  3137. return false;
  3138. }
  3139. //병실 성별 체크
  3140. if (roomtypecd != 'S02') {
  3141. if (fRoomSexCheck(swardcd, sroomcd, ptbs_sex, ssex, ptbs_rrgstno) == false) {
  3142. return false;
  3143. }
  3144. }
  3145. // 병상 중복배정방지용 로직 추가 by 조중래 20131104
  3146. var cnt = ds_main_adrvlist.getCaseCount('assgroom == "' + sroomcd + '" && assgbed == "' + sbedcd + '"');
  3147. if (cnt > 0) {
  3148. sysf_messageBox("하나의 병상에 두명이상의 환자가 지정되었습니다." +
  3149. "\r\n\r\n배정호실 : " + sroomcd + " " + ds_hidden_init_bedcd.getColumn(ds_hidden_init_bedcd.findRow('cd', sbedcd), "nm") +
  3150. "\r\n\r\n환자리스트를 확인하십시요!!!", "C000");
  3151. return false;
  3152. }
  3153. //배정병동
  3154. ds_main_adrvlist.setColumn(adrv_row, "assgward", ds_main_bedlist.getColumn(room_row, "wardcd"));
  3155. //배정병실
  3156. ds_main_adrvlist.setColumn(adrv_row, "assgroom", ds_main_bedlist.getColumn(room_row, "roomcd"));
  3157. //배정병상
  3158. ds_main_adrvlist.setColumn(adrv_row, "assgbed", ds_main_bedlist.getColumn(room_row, "bedcd"));
  3159. //배정병실등급
  3160. ds_main_adrvlist.setColumn(adrv_row, "assgroomgrde", ds_main_bedlist.getColumn(room_row, "roomgrdecd"));
  3161. //배정병실형태
  3162. ds_main_adrvlist.setColumn(adrv_row, "assgroomtype", ds_main_bedlist.getColumn(room_row, "roomtypecd"));
  3163. // grd_inrsv.addStatus(grd_inrsv.row, "update");
  3164. }
  3165. /**
  3166. * 병상내역 데이터셋 컬럼 변경 후 이벤트
  3167. * @param {[type]} obj: Dataset [description]
  3168. * @param {[type]} e: DSColChangeEventInfo [description]
  3169. * @return {[type]} [description]
  3170. */
  3171. // function ds_main_bedlist_oncolumnchanged(obj: Dataset, e: DSColChangeEventInfo) {
  3172. // // HOLD 메세지 수정 시 pam.pmbmbedm.holdmsg 반영
  3173. // if (e.columnid == "holdmsg") {
  3174. //
  3175. // var updated = grdf_getGridUpdateData(group6.grd_bedspec);
  3176. // grdf_setStatusColumn(updated, "m");
  3177. // ds_tmp.copyData(updated, false);
  3178. //
  3179. // dsf_createDs('ds_res');
  3180. //
  3181. // var oParam = {};
  3182. // oParam.id = "TXPMB00303";
  3183. // oParam.service = "pambaseinfomngtapp.WardRoom";
  3184. // oParam.method = "reqSetBedRem";
  3185. // oParam.inds = "datalist=ds_";
  3186. // oParam.outds = "ds_=aaaa";
  3187. // oParam.async = false;
  3188. // oParam.callback = "callback";
  3189. //
  3190. // tranf_submit(oParam);
  3191. //
  3192. // if (arErrorCode.pop("TXPMB00303") > -1) {
  3193. // // grd_bedspec.clearStatus();
  3194. // alert("저장되었습니다.");
  3195. // }
  3196. // else {
  3197. // alert("저장되었습니다.");
  3198. // }
  3199. // }
  3200. // }
  3201. /**
  3202. * 조회조건 컴보 아이템 변경 후 이벤트
  3203. * @param {[type]} obj: Combo [description]
  3204. * @param {[type]} e: ItemChangeEventInfo [description]
  3205. * @return {[type]} [description]
  3206. */
  3207. function div_srch2_cmb_rssrch_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  3208. Fselect(ds_send_data2.getColumn(0, "inrsrvcond"));
  3209. }
  3210. /**
  3211. * 조회조건 ipt_pid 키보드 입력 이벤트
  3212. * @param {[type]} obj: Edit [description]
  3213. * @param {[type]} e: KeyEventInfo [description]
  3214. * @return {[type]} [description]
  3215. */
  3216. function div_srch2_ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
  3217. if (e.keycode == 13) {
  3218. obj.updateToDataset();
  3219. div_srch2.btn_search2.click();
  3220. }
  3221. }
  3222. /**
  3223. * 조회조건 ipt_pidnm 키보드 입력 이벤트
  3224. * @param {[type]} obj: Edit [description]
  3225. * @param {[type]} e: KeyEventInfo [description]
  3226. * @return {[type]} [description]
  3227. */
  3228. function div_srch2_ipt_pidnm_onkeydown(obj: Edit, e: KeyEventInfo) {
  3229. if (e.keycode == 13) {
  3230. obj.updateToDataset();
  3231. div_srch2.btn_search2.click();
  3232. }
  3233. }
  3234. /**
  3235. * cmb_ordept 콤보 아이템 변경 후 이벤트
  3236. * @param {[type]} obj: Combo [description]
  3237. * @param {[type]} e: ItemChangeEventInfo [description]
  3238. * @return {[type]} [description]
  3239. */
  3240. function div_srch2_cmb_ordept_onitemchanged(obj: Combo, e: ItemChangeEventInfo) {
  3241. fQueryRsrvRef(1);
  3242. }
  3243. /**
  3244. * ipt_hopetodd 포커스 상실 이벤트
  3245. * @param {[type]} obj: Calendar [description]
  3246. * @param {[type]} e: KillFocusEventInfo [description]
  3247. * @return {[type]} [description]
  3248. */
  3249. function div_srch2_ipt_hopetodd_onkillfocus(obj: Calendar, e: KillFocusEventInfo) {
  3250. fQueryRsrvRef("1");
  3251. }
  3252. /**
  3253. * bol_ckeckdd1 체크박스 클릭 이벤트
  3254. * @param {[type]} obj: CheckBox [description]
  3255. * @param {[type]} e: ClickEventInfo [description]
  3256. * @return {[type]} [description]
  3257. */
  3258. function div_srch2_bol_ckeckdd1_onclick(obj: CheckBox, e: ClickEventInfo) {
  3259. var value = ds_send_data2.getColumn(0, 'r_checkflag');
  3260. if (value == 'Y') {
  3261. if (ds_send_data2.getColumn(0, "inrsrvcond") == "1") {
  3262. div_srch2.caption4.visible = true;
  3263. div_srch2.ipt_hopedd.visible = true;
  3264. div_srch2.ipt_hopetodd.visible = true;
  3265. ds_send_data2.setColumn(0, "inrsrvtodd", utlf_getCurrentDate());
  3266. }
  3267. if (ds_send_data2.getColumn(0, "inrsrvcond") == "1") {
  3268. div_srch2.caption4.visible = false;
  3269. div_srch2.ipt_hopedd.visible = true;
  3270. div_srch2.ipt_hopetodd.visible = false;
  3271. ds_send_data2.setColumn(0, "inrsrvtodd", "");
  3272. }
  3273. }
  3274. else {
  3275. if (ds_send_data2.getColumn(0, "inrsrvcond") == "1") {
  3276. div_srch2.caption4.visible = true;
  3277. div_srch2.ipt_hopedd.visible = true;
  3278. div_srch2.ipt_hopetodd.visible = true;
  3279. ds_send_data2.setColumn(0, "inrsrvtodd", utlf_getCurrentDate());
  3280. }
  3281. if (ds_send_data2.getColumn(0, "inrsrvcond") == "1") {
  3282. div_srch2.caption4.visible = false;
  3283. div_srch2.ipt_hopedd.visible = true;
  3284. div_srch2.ipt_hopetodd.visible = false;
  3285. ds_send_data2.setColumn(0, "inrsrvtodd", "");
  3286. }
  3287. }
  3288. }
  3289. /**
  3290. * [div_srch2_btn_search2_onclick description]
  3291. * @param {[type]} obj: Button [description]
  3292. * @param {[type]} e: ClickEventInfo [description]
  3293. * @return {[type]} [description]
  3294. */
  3295. function div_srch2_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
  3296. fQueryRsrvRef("1");
  3297. }
  3298. /**
  3299. * 출력 버튼 클릭 이벤트
  3300. * @param {[type]} obj: Button [description]
  3301. * @param {[type]} e: ClickEventInfo [description]
  3302. * @return {[type]} [description]
  3303. */
  3304. function button3_onclick(obj: Button, e: ClickEventInfo) {
  3305. // DOM 객체 설정
  3306. var objDOM = rptf_createDOM();
  3307. rptf_setNodeListToDOM(objDOM, "/root/send/data2", ds_send_data2);
  3308. rptf_setNodeListToDOM(objDOM, "/root/main/adrvlist/grdinrsrvlist", ds_main_adrvlist);
  3309. var objParam = new Object();
  3310. objParam.xml_data_XML1 = objDOM.documentElement.source;
  3311. var option = null;
  3312. rptf_exeReportPreview30(["RPPMI00301"],[objParam], option);
  3313. }
  3314. /**
  3315. * 엑셀저장 버튼 클릭 이벤트
  3316. * @param {[type]} obj: Button [description]
  3317. * @param {[type]} e: ClickEventInfo [description]
  3318. * @return {[type]} [description]
  3319. */
  3320. function button4_onclick(obj: Button, e: ClickEventInfo) {
  3321. grdf_exportExcel(grd_inrsv, 'excel', "공용병상병실배정", true, "" , 'user' , true);
  3322. }
  3323. /**
  3324. * caption17 더블클릭 이벤트
  3325. * @param {[type]} obj: Edit [description]
  3326. * @param {[type]} e: EditClickEventInfo [description]
  3327. * @return {[type]} [description]
  3328. */
  3329. function caption17_oneditdblclick(obj: Edit, e: EditClickEventInfo) {
  3330. grp.visible = !grp.visible;
  3331. }
  3332. /**
  3333. * 공용병상 배정 대기 환자리스트 그리드 셀 더블 클릭 이벤트
  3334. * @param {[type]} obj: Grid [description]
  3335. * @param {[type]} e: GridClickEventInfo [description]
  3336. * @return {[type]} [description]
  3337. */
  3338. function grd_inrsv_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  3339. ds_send_data3.clearData();
  3340. ds_send_data3.addRow();
  3341. var cur_row = grd_inrsv.currentrow;
  3342. var erreglyn = ds_main_adrvlist.getColumn(cur_row, "erreglyn");
  3343. if (erreglyn == 'D') {
  3344. //실제가능하니 메세지창 막음
  3345. return;
  3346. }
  3347. if (cur_row >= 0 && srch_flag == "N") {
  3348. ds_send_data3.setColumn(0, "pid", ds_main_adrvlist.getColumn(cur_row, "pid"));
  3349. ds_send_data3.setColumn(0, "insukind", ds_main_adrvlist.getColumn(cur_row, "insukind"));
  3350. ds_send_data3.setColumn(0, "mode", "4");
  3351. ds_main_adrv.setColumn(0, "insukind", ds_main_adrvlist.getColumn(cur_row, "insukind"));
  3352. //2008.01.10 보조유형이 산정특례(07),인공신장투석(02),복막관류술(03),장기이식(04)인 경우는 입원이 없기때문에 정상으로 셋팅해줌.
  3353. if (ds_main_adrvlist.getColumn(cur_row, "suppkind") == "07" || ds_main_adrvlist.getColumn(cur_row, "suppkind") == "02" ||
  3354. ds_main_adrvlist.getColumn(cur_row, "suppkind") == "03" || ds_main_adrvlist.getColumn(cur_row, "suppkind") == "04") {
  3355. ds_main_adrv.setColumn(0, "suppkind", "00"); //보조유형
  3356. }
  3357. else {
  3358. ds_main_adrv.setColumn(0, "suppkind", ds_main_adrvlist.getColumn(cur_row, "suppkind"));
  3359. }
  3360. ds_main_adrv.setColumn(0, "suppkindresn", ds_main_adrvlist.getColumn(cur_row, "suppkindresn"));
  3361. ds_hidden_original_adrv.copyData(ds_main_adrv, false);
  3362. //2008.01.29 특이환자조회,증증환자여부조회
  3363. ds_send_data11.setColumn(0, "pid", ds_main_adrvlist.getColumn(cur_row, "pid"));
  3364. ds_send_data11.setColumn(0, "indd", utlf_getCurrentDate());
  3365. ds_send_data11.setColumn(0, "mode", "11");
  3366. dsf_createDsRow('ds_TRPMI00107', [
  3367. { col: 'mode', type: 'string', size: 256, val: '' },
  3368. { col: 'pid', type: 'string', size: 256, val: '' },
  3369. { col: 'hngnm', type: 'string', size: 256, val: '' },
  3370. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  3371. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  3372. { col: 'orddd', type: 'string', size: 256, val: '' },
  3373. { col: 'ioflag', type: 'string', size: 256, val: '' },
  3374. { col: 'insukind', type: 'string', size: 256, val: '' },
  3375. { col: 'orddeptcd', type: 'string', size: 256, val: '' }
  3376. ], false);
  3377. ds_TRPMI00107.copyRow(0, ds_send_data11, 0);
  3378. ds_TRPMI00107.setColumn(0, 'orddd', ds_send_data11.getColumn(0, 'indd'));
  3379. ds_hidden_check_ptbs.clearData();
  3380. var oParam = {};
  3381. oParam.id = "TRPMI00107";
  3382. oParam.service = "ipatmngtapp.InRgst";
  3383. oParam.method = "reqGetInRgPatInfo";
  3384. oParam.inds = "req=ds_TRPMI00107";
  3385. oParam.outds = "ds_hidden_check_ptbs=ptbs ds_hidden_check_ptsp=ptsp";//ds_=ptsp ds_=srdg ds_=rooa ds_=adrv ds_=hndc ds_=cnst ds_=grdinrgstinfo ds_=inpt1 ds_=stdy ds_=disc ds_=bind ds_=tempdsch";
  3386. oParam.async = false;
  3387. tranf_submit(oParam);
  3388. dsf_copyDsWithPrefix(ds_hidden_check_ptbs, ds_tmp);
  3389. ds_hidden_check_ptbs.copyData(ds_tmp, false);
  3390. ds_main_ptbs.getColumn(0, "ptbs_pid", ds_main_adrvlist.getColumn(cur_row, "pid"));
  3391. fCheckSpcfPat();
  3392. //환자인적정보+보험정보
  3393. ds_hidden_rcv_ptbs.clearData();
  3394. ds_hidden_rcv_ptin.clearData();
  3395. var oParam = {};
  3396. oParam.id = "TRPMI00304";
  3397. oParam.service = "ipatmngtapp.InRgst";
  3398. oParam.method = "reqGetInRgPatInfo";
  3399. oParam.inds = "req=ds_send_data3";
  3400. oParam.outds = "ds_hidden_rcv_ptbs=ptbs ds_hidden_rcv_ptin=ptin";
  3401. oParam.async = false;
  3402. oParam.callback = "callback";
  3403. tranf_submit(oParam);
  3404. if (arErrorCode.pop("TRPMI00304") > -1) {
  3405. ds_send_data3.clearData();
  3406. ds_send_data3.addRow();
  3407. var ptbs_cnt = ds_hidden_rcv_ptbs.rowcount;
  3408. var ptin_cnt = ds_hidden_rcv_ptin.rowcount;
  3409. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_rcv_ptbs, 'ptbs_');
  3410. ds_hidden_rcv_ptbs.copyData(ds_tmp, false);
  3411. dsf_copyDsWithPrefix(ds_tmp, ds_hidden_rcv_ptin, 'ptin_');
  3412. ds_hidden_rcv_ptin.copyData(ds_tmp, false);
  3413. if (ptbs_cnt > 0) {
  3414. ds_main_ptbs.copyData(ds_hidden_rcv_ptbs, false);
  3415. ds_hidden_original_ptbs.copyData(ds_hidden_rcv_ptbs, false);
  3416. }
  3417. else {
  3418. sysf_messageBox("환자인적이", "I004");
  3419. ds_main_ptbs.clearData();
  3420. ds_main_ptbs.addRow();
  3421. ds_main_ptin.clearData();
  3422. ds_main_ptin.addRow();
  3423. ds_main_otptlist.clearData();
  3424. ds_main_diaglist.clearData();
  3425. return false;
  3426. }
  3427. if (ptin_cnt > 0) {
  3428. ds_main_ptin.copyData(ds_hidden_rcv_ptin, false);
  3429. ds_hidden_original_ptin.copyData(ds_hidden_rcv_ptin, false);
  3430. fSuppkindSet();
  3431. }
  3432. else {
  3433. ds_main_ptin.clearData();
  3434. ds_main_ptin.addRow();
  3435. ds_hidden_original_ptin.copyData(ds_main_ptin, false);
  3436. }
  3437. }
  3438. }
  3439. //희망병실등급from~희망병실등급to사이의 병실내역 조회
  3440. fHopeRoomGrdeRef("2");
  3441. }
  3442. /**
  3443. * 준공용병상 가용현황
  3444. * @param {[type]} obj:Button [description]
  3445. * @param {[type]} e:ClickEventInfo [description]
  3446. * @return {[type]} [description]
  3447. */
  3448. function button2_onclick(obj: Button, e: ClickEventInfo) {
  3449. frmf_modal("SMPMI03910", "SMPMI03910", "", "", "", "", "", "", "", "", "", "", "M");
  3450. }
  3451. /**
  3452. * 저장 버튼 클릭 이벤트
  3453. * @param {[type]} obj: Button [description]
  3454. * @param {[type]} e: ClickEventInfo [description]
  3455. * @return {[type]} [description]
  3456. */
  3457. function btn_update_onclick(obj: Button, e: ClickEventInfo) {
  3458. var xUpdtData = grdf_getGridUpdateData(grd_inrsv, "all");
  3459. grdf_setStatusColumn(xUpdtData, "status");
  3460. dsf_copyColInfo(ds_buffer, ds_main_adrvlist,true);
  3461. ds_buffer.copyData(xUpdtData,true);
  3462. if (ds_buffer.rowcount < 1) {
  3463. sysf_messageBox("저장할 내역이 없습니다!!", "I");
  3464. return;
  3465. }
  3466. else {
  3467. // model.setValue("/root/send/data13/grdinrsrvlist", grd_inrsv.getUpdateData());
  3468. if (utlf_isNull(ds_main_comnbedsmsmsg.getColumn(0, "replytelno"))) {
  3469. sysf_messageBox("병상배정 SMS 회신번호를 입력하십시오.", "E000");
  3470. return;
  3471. }
  3472. dsf_setTypeFormat(ds_buffer, "inrsrvacptseqno:INT");
  3473. dsf_createDsRow('ds_send_comnbedsmsmsg', [
  3474. { col: 'msgfrmtid', type: 'string', size: 256, val: '' },
  3475. { col: 'replytelno', type: 'string', size: 256, val: '' }
  3476. ], false);
  3477. // SMS 발송용 데이터 설정
  3478. ds_send_comnbedsmsmsg.copyRow(0, ds_main_comnbedsmsmsg, 0);
  3479. //ds_buffer.updateColID('inhopedd', 'patinhopedd');
  3480. var adrv_row = ds_main_adrvlist.rowposition;
  3481. // 배정자 ID / 배정일시 설정
  3482. ds_buffer.setColumn(0, "nurcnfid", sysf_getUserId());
  3483. ds_buffer.setColumn(0, "nurcnfdt", utlf_getCurrentDate() + utlf_getCurrentTime().substring(0, 4));
  3484. dsf_createDsRow('ds_send_s_adrv', [
  3485. { col: 'adrv_insukind', type: 'string', size: 256, val: ds_main_adrvlist.getColumn(adrv_row,"insukind") },
  3486. { col: 'adrv_suppkind', type: 'string', size: 256, val: ds_main_adrvlist.getColumn(adrv_row,"suppkind") },
  3487. { col: 'adrv_suppkindresn', type: 'string', size: 256, val: ds_main_adrvlist.getColumn(adrv_row,"suppkindresn") }
  3488. ], false);
  3489. dsf_createDsRow('ds_send_s_ptbs', [
  3490. { col: 'status', type: 'string', size: 256, val: '' },
  3491. { col: 'pid', type: 'string', size: 256, val: '' },
  3492. { col: 'hngnm', type: 'string', size: 256, val: '' },
  3493. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  3494. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  3495. { col: 'sex', type: 'string', size: 256, val: '' },
  3496. { col: 'vipyn', type: 'string', size: 256, val: '' },
  3497. { col: 'brthdd', type: 'string', size: 256, val: '' },
  3498. { col: 'hometel', type: 'string', size: 256, val: '' },
  3499. { col: 'mpphontel', type: 'string', size: 256, val: '' },
  3500. { col: 'zipcd1', type: 'string', size: 256, val: '' },
  3501. { col: 'zipcd2', type: 'string', size: 256, val: '' },
  3502. { col: 'zipcdseq', type: 'string', size: 256, val: '' },
  3503. { col: 'recmyn', type: 'string', size: 256, val: '' },
  3504. { col: 'recmerid', type: 'string', size: 256, val: '' },
  3505. { col: 'recmerrela', type: 'string', size: 256, val: '' },
  3506. { col: 'detladdr', type: 'string', size: 256, val: '' },
  3507. { col: 'remfact', type: 'string', size: 256, val: '' },
  3508. { col: 'lastupdtrid', type: 'string', size: 256, val : '' },
  3509. { col: 'lastupdtdt', type: 'string', size: 256, val: '' }
  3510. ], false);
  3511. dsf_createDsRow('ds_send_s_ptin', [
  3512. { col: 'status', type: 'string', size: 256, val: '' },
  3513. { col: 'pid', type: 'string', size: 256, val: '' },
  3514. { col: 'insukind', type: 'string', size: 256, val: '' },
  3515. { col: 'todd', type: 'string', size: 256, val: '' },
  3516. { col: 'seqno', type: 'string', size: 256, val: '' },
  3517. { col: 'histstat', type: 'string', size: 256, val: '' },
  3518. { col: 'fromdd', type: 'string', size: 256, val: '' },
  3519. { col: 'insucd', type: 'string', size: 256, val: '' },
  3520. { col: 'insuno', type: 'string', size: 256, val: '' },
  3521. { col: 'insdnm', type: 'string', size: 256, val: '' },
  3522. { col: 'insdrrgstno1', type: 'string', size: 256, val: '' },
  3523. { col: 'insdrrgstno2', type: 'string', size: 256, val: '' },
  3524. { col: 'insdrela', type: 'string', size: 256, val: '' },
  3525. { col: 'lastupdtrid', type: 'string', size: 256, val: '' },
  3526. { col: 'lastupdtdt', type: 'string', size: 256, val: '' }
  3527. ], false);
  3528. var oParam = {};
  3529. oParam.id = "TXPMI00301";
  3530. oParam.service = "ipatmngtapp.InRsrv";
  3531. oParam.method = "reqSetInhpRsrvList";
  3532. oParam.inds = "grdinrsrvlist=ds_buffer s_adrv=ds_send_s_adrv "
  3533. + "s_ptbs=ds_send_s_ptbs s_ptin=ds_send_s_ptin comnbedsmsmsg=ds_send_comnbedsmsmsg";
  3534. oParam.outds = "";
  3535. oParam.async = false;
  3536. //oParam.callback = "callback";
  3537. tranf_submit(oParam);
  3538. if (arErrorCode.pop("TXPMI00301") > -1) {
  3539. ds_send_data2.setColumn(0, "sendflag", "A");
  3540. // 병상배정 시 SMS 전송용 기초정보 조회
  3541. dsf_createDsRow('ds_TRPMI00307', [{ col: 'pid', type: 'string', size: 256, val: '' }], false);
  3542. ds_TRPMI00307.copyRow(0, ds_send_data2, 0);
  3543. ds_main_comnbedsmsmsg.clearData();
  3544. var oParam = {};
  3545. oParam.id = "TRPMI00306";
  3546. oParam.service = "ipatmngtapp.InRsrv";
  3547. oParam.method = "reqGetComnBedInRsrvSmsInfo";
  3548. oParam.inds = "req=ds_TRPMI00307";
  3549. oParam.outds = "ds_main_comnbedsmsmsg=comnbedsmsmsg";
  3550. oParam.async = false;
  3551. tranf_submit(oParam);
  3552. ds_main_otptlist.clearData();
  3553. ds_main_otptlist.addRow();
  3554. ds_main_diaglist.clearData();
  3555. ds_main_diaglist.addRow();
  3556. ds_patinfolist.clearData();
  3557. ds_patinfolist.addRow();
  3558. ds_hidden_rcv_ptin.clearData();
  3559. ds_hidden_rcv_ptbs.clearData();
  3560. ds_hidden_check_ptbs.clearData();
  3561. ds_hidden_userpopupinfo.clearData();
  3562. ds_hidden_popup.clearData();
  3563. ds_hidden_popup.addRow();
  3564. // model.resetInstanceNode("/root/hidden/updatalist");
  3565. // model.resetInstanceNode("/root/hidden/popup");
  3566. ds_main_ptbs.clearData();
  3567. ds_main_ptbs.addRow();
  3568. ds_main_ptin.clearData();
  3569. ds_main_ptin.addRow();
  3570. ds_main_adrv.clearData();
  3571. fBaseDataInitPtbs();
  3572. fBaseDataInitPtin();
  3573. sysf_messageBox("저장이 ", "I002");
  3574. fQueryRsrvRef("1");
  3575. }else {
  3576. fQueryRsrvRef("1");
  3577. }
  3578. }
  3579. }
  3580. /**
  3581. * 취소 버튼 클릭 이벤트
  3582. * @param {[type]} obj: Button [description]
  3583. * @param {[type]} e: ClickEventInfo [description]
  3584. * @return {[type]} [description]
  3585. */
  3586. function btn_can_onclick(obj: Button, e: ClickEventInfo) {
  3587. // 배정병동,배정병실,배정등급,배정형태를 원상태로 돌려준다.
  3588. var cur_row = grd_inrsv.currentrow;
  3589. if (cur_row >= 0) {
  3590. //ds_buffer.clearData();
  3591. //ds_buffer.addRow();
  3592. dsf_copyColInfo(ds_buffer, ds_main_adrvlist, true);
  3593. ds_buffer.clearData();
  3594. ds_buffer.addRow();
  3595. ds_buffer.copyRow(0, ds_main_adrvlist, cur_row);
  3596. dsf_makeValue(ds_buffer, "status", "string", "U");
  3597. var oParam = {};
  3598. oParam.id = "TXPMI00304";
  3599. oParam.service = "ipatmngtapp.InRsrv";
  3600. oParam.method = "reqExeInhpRsrvCncl";
  3601. oParam.inds = "req=ds_buffer";
  3602. oParam.outds = "";
  3603. oParam.async = false;
  3604. //oParam.callback = "callback";
  3605. tranf_submit(oParam);
  3606. if (arErrorCode.pop("TXPMI00304") > -1) {
  3607. ds_send_data2.setColumn(0, 'sendflag', 'A');
  3608. //model.setValue("/root/send/data2/prestdd",getCurrentDate());
  3609. // 병상배정 시 SMS 전송용 기초정보 조회
  3610. dsf_createDsRow('ds_TRPMI00307', [{ col: 'pid', type: 'string', size: 256, val: '' }], false);
  3611. ds_TRPMI00307.copyRow(0, ds_send_data2, 0);
  3612. ds_main_comnbedsmsmsg.clearData();
  3613. var oParam = {};
  3614. oParam.id = "TRPMI00306";
  3615. oParam.service = "ipatmngtapp.InRsrv";
  3616. oParam.method = "reqGetComnBedInRsrvSmsInfo";
  3617. oParam.inds = "req=ds_TRPMI00307";
  3618. oParam.outds = "ds_main_comnbedsmsmsg=comnbedsmsmsg";
  3619. oParam.async = false;
  3620. tranf_submit(oParam);
  3621. ds_main_otptlist.clearData();
  3622. ds_main_otptlist.addRow();
  3623. ds_main_diaglist.clearData();
  3624. ds_main_diaglist.addRow();
  3625. ds_patinfolist.clearData();
  3626. ds_patinfolist.addRow();
  3627. ds_hidden_rcv_ptin.clearData();
  3628. ds_hidden_rcv_ptbs.clearData();
  3629. ds_hidden_check_ptbs.clearData();
  3630. ds_hidden_userpopupinfo.clearData();
  3631. ds_hidden_popup.clearData();
  3632. ds_hidden_popup.addRow();
  3633. ds_main_ptbs.clearData();
  3634. ds_main_ptbs.addRow();
  3635. ds_main_ptin.clearData();
  3636. ds_main_ptin.addRow();
  3637. ds_main_adrv.clearData();
  3638. fBaseDataInitPtbs();
  3639. fBaseDataInitPtin();
  3640. fQueryRsrvRef("1");
  3641. }else {
  3642. fQueryRsrvRef("1");
  3643. }
  3644. }
  3645. else {
  3646. sysf_messageBox("취소할 입원예약 환자를", "C002");
  3647. return false;
  3648. }
  3649. ipt_pid1.setFocus();
  3650. }
  3651. /**
  3652. * 초기화 버튼 클릭 이벤트
  3653. * @param {[type]} obj: Button [description]
  3654. * @param {[type]} e: ClickEventInfo [description]
  3655. * @return {[type]} [description]
  3656. */
  3657. function btn_clear_onclick(obj: Button, e: ClickEventInfo) {
  3658. fInitialize();
  3659. fBaseColumn();
  3660. }
  3661. function ds_main_bedlist_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
  3662. {
  3663. // / / HOLD 메세지 수정 시 pam.pmbmbedm.holdmsg 반영
  3664. /*
  3665. if (e.columnid == "holdmsg") {
  3666. var updated = grdf_getGridUpdateData(group6.grd_bedspec);
  3667. grdf_setStatusColumn(updated, "m");
  3668. ds_tmp.copyData(updated, false);
  3669. //dsf_createDs('ds_res');
  3670. var oParam = {};
  3671. oParam.id = "TXPMB00303";
  3672. oParam.service = "pambaseinfomngtapp.WardRoom";
  3673. oParam.method = "reqSetBedRem";
  3674. oParam.inds = "datalist=ds_tmp";
  3675. oParam.outds = "ds_main_bedlist=aaaa";
  3676. oParam.async = false;
  3677. //oParam.callback = "callback";
  3678. tranf_submit(oParam);
  3679. if (arErrorCode.pop("TXPMB00303") > -1) {
  3680. // grd_bedspec.clearStatus();
  3681. alert("저장되었습니다.");
  3682. }
  3683. else {
  3684. alert("저장되었습니다.");
  3685. }
  3686. }
  3687. */
  3688. // HOLD 메세지 수정 시 pam.pmbmbedm.holdmsg 반영
  3689. if (e.columnid == "holdmsg") {
  3690. var updated = grdf_getGridUpdateData(group6.grd_bedspec);
  3691. grdf_setStatusColumn(updated, "m");
  3692. ds_tmp.copyData(updated, false);
  3693. var row = e.row;
  3694. //dsf_createDs('ds_res');
  3695. //hold 메세지 수정 시 저장안되는 부분 수정 by 설승민 20181203
  3696. dsf_createDsRow('ds_res', [
  3697. { col: 'status', type: 'string', size: 256, val: '' },
  3698. { col: 'building', type: 'string', size: 256, val: ds_main_bedlist.getColumn(row,'building') },
  3699. { col: 'wardcd', type: 'string', size: 256, val: ds_main_bedlist.getColumn(row,'wardcd') },
  3700. { col: 'roomcd', type: 'string', size: 256, val: ds_main_bedlist.getColumn(row,'roomcd') },
  3701. { col: 'bedcd', type: 'string', size: 256, val: ds_main_bedlist.getColumn(row,'bedcd') },
  3702. { col: 'bednm', type: 'string', size: 256, val: ds_main_bedlist.getColumn(row,'bednm') },
  3703. { col: 'holdmsg', type: 'string', size: 256, val: ds_main_bedlist.getColumn(row,'holdmsg') }
  3704. ], false);
  3705. var oParam = {};
  3706. oParam.id = "TXPMB00303";
  3707. oParam.service = "pambaseinfomngtapp.WardRoom";
  3708. oParam.method = "reqSetBedRem";
  3709. oParam.inds = "datalist=ds_res";
  3710. oParam.outds = "ds_=aaaa";
  3711. oParam.async = false;
  3712. oParam.callback = "callback";
  3713. tranf_submit(oParam);
  3714. if (arErrorCode.pop("TXPMB00303") > -1) {
  3715. // grd_bedspec.clearStatus();
  3716. alert("저장되었습니다.");
  3717. }
  3718. else {
  3719. alert("저장에 실패했습니다.다시 시도해주세요.");
  3720. }
  3721. }
  3722. }
  3723. ]]></Script>
  3724. </Form>
  3725. </FDL>