SPZMH00100_설명처방.xfdl 184 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZMH00100" classname="SPZMH_00100_설명처방" inheritanceid="" position="absolute 0 0 1074 768" titletext="설명처방" oninit="SPZMH00100_oninit" onload="SPZMH00100_onload" ontimer="SPZMH00100_ontimer" style="background:white;" scrollbars="none" onsize="SPZMH00100_onsize" onclose="SPZMH00100_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="Grid00" taborder="0" binddataset="ds_sender" useinputpanel="false" position="absolute 160 0 439 76" style="border:2 solid #33bbbbff ;bordertype:round 10 10 ;shadow:outer 1,1 3 #808080c8;">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="74"/>
  12. <Column size="70"/>
  13. <Column size="131"/>
  14. </Columns>
  15. <Rows>
  16. <Row size="24"/>
  17. <Row size="24"/>
  18. <Row size="24"/>
  19. </Rows>
  20. <Band id="body">
  21. <Cell rowspan="3" style="selectbackground:lightgrey;linespace:5;" text="설명처방 &#13;&#10;발 신 자" taborder="undefined"/>
  22. <Cell col="1" style="selectbackground:lightgrey;" text="병의원명"/>
  23. <Cell col="2" displaytype="text" style="padding:0 0 0 8;selectbackground:lightgrey;" text="bind:hospnm"/>
  24. <Cell row="1" col="1" style="selectbackground:lightgrey;" text="부 서"/>
  25. <Cell row="1" col="2" displaytype="text" style="padding:0 0 0 8;selectbackground:lightgrey;" text="bind:deptnm"/>
  26. <Cell row="2" col="1" style="selectbackground:lightgrey;" text="이 름"/>
  27. <Cell row="2" col="2" displaytype="text" style="padding:0 0 0 8;selectbackground:lightgrey;" text="bind:sendernm"/>
  28. </Band>
  29. </Format>
  30. </Formats>
  31. </Grid>
  32. <ImageViewer id="ImageViewer00" taborder="1" position="absolute 0 8 146 44" image="URL('IMG::com\defaultlogo.gif')" style="border:0 none #e5e5e5ff ;" stretch="none" resampling="false"/>
  33. <Static id="Static02" text="콘텐츠 내용" class="tit_2" position="absolute 532 92 656 112" anchor="top right"/>
  34. <Static id="Static01" text="설명처방 목록" class="tit_2" position="absolute 0 542 124 562" anchor="left bottom"/>
  35. <Button id="btn_contents_add" taborder="40" text="추가" position="absolute 117 66 158 86" class="btn5" visible="false" onclick="btn_contents_add_onclick"/>
  36. <Shape id="Shape01" class="line_10" position="absolute 0 560 523 564" anchor="left right bottom"/>
  37. <Grid id="grd_sendlist" taborder="4" binddataset="ds_hichartsendlist" useinputpanel="false" position="absolute 0 564 522 766" autofittype="col" onlbuttonup="grd_sendlist_onlbuttonup" style="shadow:outer 1,1 3 #808080c8;" cellsizingtype="col" anchor="left right bottom">
  38. <Formats>
  39. <Format id="default">
  40. <Columns>
  41. <Column size="100"/>
  42. <Column size="330"/>
  43. <Column size="60"/>
  44. <Column size="31"/>
  45. </Columns>
  46. <Rows>
  47. <Row size="24" band="head"/>
  48. <Row size="24"/>
  49. </Rows>
  50. <Band id="head">
  51. <Cell displaytype="normal" text="코드"/>
  52. <Cell col="1" displaytype="normal" text="콘텐츠명"/>
  53. <Cell col="2" displaytype="normal" text="상영시간"/>
  54. <Cell col="3" text="삭제"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:contentscd"/>
  58. <Cell col="1" displaytype="text" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:contentsnm"/>
  59. <Cell col="2" displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:viewingtime" mask="##:##"/>
  60. <Cell col="3" displaytype="button" edittype="button" style="padding:2 0 2 0;line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="삭제"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. <Div id="div_thumbnail" taborder="8" position="absolute 532 111 940 547" style="border:2 solid lightslategray ;bordertype:round 10 10 ;shadow:outer 1,0 3 #808080c8;" scrollbars="none" anchor="top right">
  66. <Layouts>
  67. <Layout>
  68. <Shape id="Shape00" position="absolute -1 386 406 434" anchor="default" type="rectangle" style="fillbrush:solid #b0c4de5c true;"/>
  69. <Static id="stt_title" position="absolute 15 342 387 378" style="linespace:2;color:#f26522ff;font:Dotum,11,bold;" anchor="default" wordwrap="english"/>
  70. <MaskEdit id="medt_time" taborder="19" position="absolute 40 399 92 419" class="edt_transbg" readonly="true" mask="##:##" transparenthittest="true" maskchar="0" type="string" displaynulltext=" " style="align:left middle;"/>
  71. <Button id="btn_play" taborder="2" text="영상보기" onclick="div_thumbnail_btn_play_onclick" class="btn5" position="absolute 91 395 155 423" enable="false" anchor="default"/>
  72. <ImageViewer id="ImageViewer00" taborder="3" position="absolute 12 399 32 419" style="border:0 none #e5e5e5ff ;" image="URL('theme://images\icon_clock.png')" anchor="default"/>
  73. <Static id="stt_title_default" text="왼쪽의 설명처방 콘텐츠에서&#13;&#10;콘텐츠명을 클릭하시면 내용을 보실 수 있습니다." position="absolute 15 342 387 378" style="linespace:3;color:red;font:Dotum,11,bold;" anchor="default"/>
  74. <Div id="div_video" taborder="7" visible="false" position="absolute 0 6 404 349" anchor="default">
  75. <Layouts>
  76. <Layout>
  77. <WebBrowser id="wb_contentsplay" position="absolute 8 4 392 337" anchor="default" taborder="0" onloadcompleted="div_video_wb_contentsplay_onloadcompleted" useautobitmapcache="0"/>
  78. </Layout>
  79. </Layouts>
  80. </Div>
  81. <Button id="btn_play_popup" taborder="9" text="팝업보기" position="absolute 162 395 227 423" class="btn5" onclick="div_thumbnail_btn_play_popup_onclick" visible="false" anchor="default"/>
  82. <Button id="btn_del_dept" taborder="10" text="과별목록삭제" onclick="div_thumbnail_btn_del_dept_onclick" class="btn5" visible="false" position="absolute 304 395 391 423" anchor="default"/>
  83. <Button id="btn_del_private" taborder="11" text="개인목록삭제" onclick="div_thumbnail_btn_del_private_onclick" class="btn5" visible="false" position="absolute 304 395 391 423" anchor="default"/>
  84. <ImageViewer id="iv_video" taborder="15" imagealign="left top" visible="false" position="absolute 8 10 392 322" style="border:0 none #e5e5e5ff ;showeffect:trans 500 linear flip3d [direction right];hideeffect:trans 500 linear flip3d [direction left];" anchor="default"/>
  85. <ImageViewer id="iv_thumbnail" taborder="16" image="URL('IMG::com\defaultlogo.gif')" position="absolute 77 80 333 274" style="border:0 none #e5e5e5ff ;showeffect:trans 500 linear flip3d [direction left];hideeffect:trans 500 linear flip3d [direction right];" anchor="default"/>
  86. <Button id="btn_add_private" taborder="17" text="개인목록담기" class="btn5" position="absolute 304 395 391 423" onclick="div_thumbnail_btn_add_private_onclick" visible="false" anchor="default"/>
  87. <Button id="btn_add_dept" taborder="18" text="과별목록담기" class="btn5" position="absolute 215 395 302 423" visible="false" onclick="div_thumbnail_btn_add_dept_onclick" anchor="default"/>
  88. </Layout>
  89. </Layouts>
  90. </Div>
  91. <Static id="Static03" text="영상과 함께 전달 할 메시지" class="tit_2" position="absolute 536 654 722 674" anchor="right bottom"/>
  92. <Shape id="Shape02" class="line_10" position="absolute 536 672 939 676" anchor="right bottom"/>
  93. <Edit id="edt_comment" taborder="23" position="absolute 536 676 940 696" style="shadow:outer 1,1 3 #808080c8;" anchor="right bottom"/>
  94. <Tab id="tabMain" taborder="12" scrollbars="autoboth" position="absolute 0 87 525 530" style="buttonpadding:4 16 4 16;" onchanged="tabMain_onchanged" anchor="all">
  95. <Tabpages>
  96. <Tabpage id="tab_private" text="개인목록">
  97. <Layouts>
  98. <Layout>
  99. <Grid id="grd_hichartlist" taborder="0" binddataset="ds_privatelist" useinputpanel="false" autofittype="col" onlbuttonup="grd_hichartlist_onlbuttonup" oncellclick="grd_hichartlist_oncellclick" position="absolute 0 0 522 413" style="shadow:drop 1,1 3 #808080c8;" cellsizingtype="col" anchor="all" ondrag="grd_hichartlist_ondrag" ondrop="grd_hichartlist_ondrop" dropformat="TEXT">
  100. <Formats>
  101. <Format id="default">
  102. <Columns>
  103. <Column size="100"/>
  104. <Column size="330"/>
  105. <Column size="60"/>
  106. <Column size="31"/>
  107. </Columns>
  108. <Rows>
  109. <Row size="24" band="head"/>
  110. <Row size="24"/>
  111. </Rows>
  112. <Band id="head">
  113. <Cell displaytype="normal" text="코드"/>
  114. <Cell col="1" displaytype="normal" text="콘텐츠명"/>
  115. <Cell col="2" displaytype="normal" text="상영시간"/>
  116. <Cell col="3" text="처방"/>
  117. </Band>
  118. <Band id="body">
  119. <Cell displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:contentscd"/>
  120. <Cell col="1" displaytype="text" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent;selectfont:Dotum,9,bold; :mouseover {background:transparent;background2:transparent;color:#f26522ff;color2:#f26522ff;}" text="bind:contentsnm"/>
  121. <Cell col="2" displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:viewingtime" mask="##:##"/>
  122. <Cell col="3" displaytype="button" edittype="button" style="padding:2 2 2 0;line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="처방"/>
  123. </Band>
  124. </Format>
  125. </Formats>
  126. </Grid>
  127. </Layout>
  128. </Layouts>
  129. </Tabpage>
  130. <Tabpage id="tab_dept" text="과별목록">
  131. <Layouts>
  132. <Layout>
  133. <Grid id="grd_hichartlist" taborder="0" binddataset="ds_deptlist" useinputpanel="false" autofittype="col" onlbuttonup="grd_hichartlist_onlbuttonup" oncellclick="grd_hichartlist_oncellclick" position="absolute 0 0 522 413" style="shadow:drop 1,1 3 #808080c8;" cellsizingtype="col" anchor="all" dropformat="TEXT" ondrag="grd_hichartlist_ondrag" ondrop="grd_hichartlist_ondrop">
  134. <Formats>
  135. <Format id="default">
  136. <Columns>
  137. <Column size="100"/>
  138. <Column size="330"/>
  139. <Column size="60"/>
  140. <Column size="31"/>
  141. </Columns>
  142. <Rows>
  143. <Row size="24" band="head"/>
  144. <Row size="24"/>
  145. </Rows>
  146. <Band id="head">
  147. <Cell displaytype="normal" text="코드"/>
  148. <Cell col="1" displaytype="normal" text="콘텐츠명"/>
  149. <Cell col="2" displaytype="normal" text="상영시간"/>
  150. <Cell col="3" text="처방"/>
  151. </Band>
  152. <Band id="body">
  153. <Cell displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:contentscd"/>
  154. <Cell col="1" displaytype="text" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent;selectfont:Dotum,9,bold; :mouseover {background:transparent;background2:transparent;color:#f26522ff;color2:#f26522ff;}" text="bind:contentsnm"/>
  155. <Cell col="2" displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:viewingtime" mask="##:##"/>
  156. <Cell col="3" displaytype="button" edittype="button" style="padding:2 2 2 0;line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="처방"/>
  157. </Band>
  158. </Format>
  159. </Formats>
  160. </Grid>
  161. </Layout>
  162. </Layouts>
  163. </Tabpage>
  164. <Tabpage id="tab_new" text="신규콘텐츠">
  165. <Layouts>
  166. <Layout>
  167. <Grid id="grd_hichartlist" taborder="0" binddataset="ds_hichartnewlist" useinputpanel="false" autofittype="col" position="absolute 0 0 522 413" oncellclick="grd_hichartlist_oncellclick" onlbuttonup="grd_hichartlist_onlbuttonup" style="shadow:drop 1,1 3 #808080c8;" cellsizingtype="col" anchor="all">
  168. <Formats>
  169. <Format id="default">
  170. <Columns>
  171. <Column size="80"/>
  172. <Column size="100"/>
  173. <Column size="250"/>
  174. <Column size="60"/>
  175. <Column size="31"/>
  176. </Columns>
  177. <Rows>
  178. <Row size="24" band="head"/>
  179. <Row size="24"/>
  180. </Rows>
  181. <Band id="head">
  182. <Cell text="등록일"/>
  183. <Cell col="1" displaytype="normal" text="코드"/>
  184. <Cell col="2" displaytype="normal" text="콘텐츠명"/>
  185. <Cell col="3" displaytype="normal" text="상영시간"/>
  186. <Cell col="4" text="처방"/>
  187. </Band>
  188. <Band id="body">
  189. <Cell displaytype="date" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:regdt"/>
  190. <Cell col="1" displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:contentscd"/>
  191. <Cell col="2" displaytype="text" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent;selectfont:Dotum,9,bold; :mouseover {background:transparent;background2:transparent;color:#f26522ff;color2:#f26522ff;}" text="bind:contentsnm"/>
  192. <Cell col="3" displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:viewingtime" mask="##:##"/>
  193. <Cell col="4" displaytype="button" edittype="button" style="padding:2 2 2 0;line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="처방"/>
  194. </Band>
  195. </Format>
  196. </Formats>
  197. </Grid>
  198. </Layout>
  199. </Layouts>
  200. </Tabpage>
  201. <Tabpage id="tab_search" text="검색">
  202. <Layouts>
  203. <Layout>
  204. <Grid id="grd_hichartlist" taborder="4" binddataset="ds_hichartlist" useinputpanel="false" autofittype="col" onlbuttonup="grd_hichartlist_onlbuttonup" oncellclick="grd_hichartlist_oncellclick" position="absolute 0 52 522 413" style="shadow:drop 1,1 3 #808080c8;" cellsizingtype="col" anchor="all">
  205. <Formats>
  206. <Format id="default">
  207. <Columns>
  208. <Column size="100"/>
  209. <Column size="330"/>
  210. <Column size="60"/>
  211. <Column size="31"/>
  212. </Columns>
  213. <Rows>
  214. <Row size="24" band="head"/>
  215. <Row size="24"/>
  216. </Rows>
  217. <Band id="head">
  218. <Cell displaytype="normal" text="코드"/>
  219. <Cell col="1" displaytype="normal" text="콘텐츠명"/>
  220. <Cell col="2" displaytype="normal" text="상영시간"/>
  221. <Cell col="3" text="처방"/>
  222. </Band>
  223. <Band id="body">
  224. <Cell displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:contentscd"/>
  225. <Cell col="1" displaytype="text" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent;selectfont:Dotum,9,bold; :mouseover {background:transparent;background2:transparent;color:#f26522ff;color2:#f26522ff;}" text="bind:contentsnm"/>
  226. <Cell col="2" displaytype="normal" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;color:#505050ff;color2:#505050ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="bind:viewingtime" mask="##:##"/>
  227. <Cell col="3" displaytype="button" edittype="button" style="padding:2 2 2 0;line:1 solid #b0b0b0ff,0 solid #b0b0b0ff;selectbackground:transparent; :mouseover {background:transparent;background2:transparent;}" text="처방"/>
  228. </Band>
  229. </Format>
  230. </Formats>
  231. </Grid>
  232. <Div id="div_search" taborder="7" position="absolute 0 0 523 51" class="div_SA2" anchor="left top right">
  233. <Layouts>
  234. <Layout>
  235. <Edit id="edt_contentscd" taborder="0" useime="none" position="absolute 107 27 219 47" anchor="default" onkeydown="tabMain_tab_search_div_search_edt_contentsnm_onkeydown" autoselect="true"/>
  236. <Edit id="edt_contentsnm" taborder="1" imemode="hangul" position="absolute 221 27 457 47" anchor="left top right" onkeydown="tabMain_tab_search_div_search_edt_contentsnm_onkeydown" autoselect="true"/>
  237. <Button id="btn_search" taborder="2" text="검색" class="btn1" position="absolute 462 27 516 47" anchor="top right" onclick="tabMain_tab_search_div_search_btn_search_onclick"/>
  238. <Static id="Static00" text="분 류" class="search_name" position="absolute 8 5 105 25" anchor="default"/>
  239. <Static id="Static01" text="코드/콘텐츠명" class="search_name" position="absolute 8 27 104 47" anchor="default"/>
  240. <Combo id="cmb_sup" taborder="3" position="absolute 107 4 219 24" anchor="default" index="-1" innerdataset="@ds_M0770" codecolumn="cdid" datacolumn="cdnm" onitemchanged="tabMain_tab_search_div_search_cmb_sup_onitemchanged"/>
  241. <Combo id="cmb_sub" taborder="4" position="absolute 221 4 457 24" anchor="left top right" innerdataset="@ds_M0771" codecolumn="cdid" datacolumn="dispallnm"/>
  242. <CheckBox id="chk_privatehosp" taborder="5" text="전용" position="absolute 462 4 508 24" truevalue="Y" falsevalue="N" tooltiptext="병원 전용 컨텐츠 검색 시 사용" anchor="top right"/>
  243. </Layout>
  244. </Layouts>
  245. </Div>
  246. </Layout>
  247. </Layouts>
  248. </Tabpage>
  249. <Tabpage id="tab_bundle" text="묶음처방">
  250. <Layouts>
  251. <Layout>
  252. <Static id="Static00" text="개발중" position="absolute 200 182 332 259" style="font:Dotum,32;"/>
  253. </Layout>
  254. </Layouts>
  255. </Tabpage>
  256. <Tabpage id="tab_history" text="발송이력">
  257. <Layouts>
  258. <Layout>
  259. <Div id="div_search" taborder="3" text="Div00" position="absolute 0 0 523 51" class="div_SA2" anchor="left top right">
  260. <Layouts>
  261. <Layout>
  262. <Button id="btn_sendsearch" taborder="3" text="검색" onclick="tabMain_tab_history_btn_sendsearch_onclick" class="btn1" position="absolute 462 8 516 43" anchor="top right"/>
  263. <Edit id="edt_contentscd" taborder="1" position="absolute 107 27 219 47" onkeydown="tab_history_search" useime="none" autoselect="true" anchor="default"/>
  264. <Edit id="edt_contentsnm" taborder="2" position="absolute 221 27 457 47" onkeydown="tab_history_search" imemode="hangul" autoselect="true" anchor="left top right"/>
  265. <Static id="Static00" text="코드/콘텐츠명" position="absolute 8 27 102 47" class="search_name" anchor="default"/>
  266. <Edit id="edt_pid" taborder="0" position="absolute 397 5 457 25" autoselect="true" onkeydown="tab_history_search" anchor="left top right"/>
  267. <Static id="Static01" text="환자번호" position="absolute 334 5 396 25" class="search_name" anchor="default"/>
  268. <Radio id="rdo_searchcond" taborder="4" columncount="-1" rowcount="-1" position="absolute 106 4 214 24" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" index="0" value="1" onitemchanged="tabMain_tab_history_div_search_rdo_searchcond_onitemchanged" style="textpadding:0 4 0 3;">
  269. <Dataset id="innerdataset">
  270. <ColumnInfo>
  271. <Column id="codecolumn" size="256"/>
  272. <Column id="datacolumn" size="256"/>
  273. </ColumnInfo>
  274. <Rows>
  275. <Row>
  276. <Col id="codecolumn">1</Col>
  277. <Col id="datacolumn">환자</Col>
  278. </Row>
  279. <Row>
  280. <Col id="codecolumn">2</Col>
  281. <Col id="datacolumn">사용자</Col>
  282. </Row>
  283. </Rows>
  284. </Dataset>
  285. </Radio>
  286. <Static id="Static02" text="검색 기준" position="absolute 8 5 76 25" class="search_name" anchor="default"/>
  287. <cp_monthCal id="cp_monthCal" titletext="monthCalendar" taborder="5" scrollbars="none" position="absolute 255 5 326 25" enable="false"/>
  288. <Static id="Static03" text="월별" class="search_name" position="absolute 217 5 255 25"/>
  289. </Layout>
  290. </Layouts>
  291. </Div>
  292. <Grid id="grd_sendhistory_internal" taborder="4" useinputpanel="false" position="absolute 0 53 523 413" binddataset="ds_result_hichart_sendhistory_internal" visible="false" treeusecheckbox="false" treeuseimage="false" treeuseline="false" scrollpixel="all" cellsizingtype="col" anchor="all" suppresslevel="allcompare" oncellclick="grd_hichartlist_oncellclick">
  293. <Formats>
  294. <Format id="default">
  295. <Columns>
  296. <Column size="40" band="left"/>
  297. <Column size="50" band="left"/>
  298. <Column size="40" band="left"/>
  299. <Column size="86"/>
  300. <Column size="90"/>
  301. <Column size="25"/>
  302. <Column size="40"/>
  303. <Column size="120"/>
  304. <Column size="100"/>
  305. <Column size="36"/>
  306. <Column size="100"/>
  307. <Column size="389"/>
  308. <Column size="0"/>
  309. </Columns>
  310. <Rows>
  311. <Row size="24" band="head"/>
  312. <Row size="24"/>
  313. </Rows>
  314. <Band id="head">
  315. <Cell/>
  316. <Cell col="1" displaytype="normal" text="환자번호"/>
  317. <Cell col="2" displaytype="normal" text="환자명"/>
  318. <Cell col="3" text="휴대번화번호"/>
  319. <Cell col="4" displaytype="normal" text="진료과"/>
  320. <Cell col="5"/>
  321. <Cell col="6" displaytype="normal" text="코드"/>
  322. <Cell col="7" displaytype="normal" text="콘텐츠명/복수코드"/>
  323. <Cell col="8" displaytype="normal" text="발송시간"/>
  324. <Cell col="9" displaytype="normal" text="결과"/>
  325. <Cell col="10" displaytype="normal" text="예약시간"/>
  326. <Cell col="11" text="comment"/>
  327. <Cell col="12"/>
  328. </Band>
  329. <Band id="body">
  330. <Cell celltype="head" displaytype="normal" edittype="none" text="expr:(rnum == -1) ? &quot;&quot; : rnum"/>
  331. <Cell col="1" displaytype="normal" style="padding:5 0 0 0;line:EXPR((pid == &quot;환자번호&quot;) ? &quot;1 solid #b0b0b0ff,0 solid #b0b0b0ff,1 solid #b0b0b0ff,1 solid #b0b0b0ff&quot; : &quot;&quot;);" text="bind:pid" suppress="1" suppressalign="first,over"/>
  332. <Cell col="2" displaytype="text" style="align:EXPR((hngnm == &quot;없음&quot;) ? &quot;center middle&quot; : &quot;left middle&quot;);padding:5 0 0 2;line:EXPR((hngnm == &quot;없음&quot;) ? &quot;1 solid #b0b0b0ff,1 solid #b0b0b0ff,1 solid #b0b0b0ff,0 solid #b0b0b0ff&quot; : &quot;&quot;);" text="bind:hngnm" suppress="1" suppressalign="first,over"/>
  333. <Cell col="3" style="padding:5 0 0 0;" text="bind:receiver" mask="expr:fGetPhoneNumMask(receiver)" suppress="1" suppressalign="first,over"/>
  334. <Cell col="4" displaytype="combo" style="padding:0 0 0 4;" text="bind:orddeptcd" combodataset="ds_orddept" combocodecol="deptcd" combodatacol="depthngnm"/>
  335. <Cell col="5" displaytype="tree" edittype="tree" style="padding:0 0 0 0;" treelevel="bind:lvl"/>
  336. <Cell col="6" displaytype="text" edittype="none" text="bind:contentscd"/>
  337. <Cell col="7" displaytype="text" text="bind:contentsnm" treestartlevel="0" treelevel="bind:lvl"/>
  338. <Cell col="8" displaytype="text" style="padding:5 0 0 2;" text="bind:senddate" suppress="1" suppressalign="first,over"/>
  339. <Cell col="9" displaytype="normal" style="padding:5 0 0 0;" text="bind:result" suppress="1" suppressalign="first,over"/>
  340. <Cell col="10" displaytype="normal" style="padding:5 0 0 0;" text="bind:reservetime" suppress="1" suppressalign="first,over"/>
  341. <Cell col="11" displaytype="text" style="padding:5 0 0 2;" text="bind:scomment" suppress="1" suppressalign="first,over"/>
  342. <Cell col="12" text="bind:fstrgstdt" suppress="1" suppressalign="first,over"/>
  343. </Band>
  344. </Format>
  345. </Formats>
  346. </Grid>
  347. <Grid id="grd_sendhistory" taborder="5" binddataset="ds_result_hichart_sendhistory" useinputpanel="false" selecttype="multirow" position="absolute 0 53 523 413" style="shadow:drop 1,1 3 #808080c8;" cellsizingtype="col" autofittype="col" anchor="all" oncellclick="grd_hichartlist_oncellclick">
  348. <Formats>
  349. <Format id="default">
  350. <Columns>
  351. <Column size="24"/>
  352. <Column size="46"/>
  353. <Column size="90"/>
  354. <Column size="56"/>
  355. <Column size="170"/>
  356. <Column size="120"/>
  357. </Columns>
  358. <Rows>
  359. <Row size="24" band="head"/>
  360. <Row size="24"/>
  361. </Rows>
  362. <Band id="head">
  363. <Cell/>
  364. <Cell col="1" text="사용자"/>
  365. <Cell col="2" text="진료과"/>
  366. <Cell col="3" text="코드"/>
  367. <Cell col="4" text="콘텐츠명"/>
  368. <Cell col="5" text="발송시간"/>
  369. </Band>
  370. <Band id="body">
  371. <Cell celltype="head" text="expr:currow + 1"/>
  372. <Cell col="1" text="bind:hngnm"/>
  373. <Cell col="2" displaytype="combo" style="padding:0 0 0 4;" text="bind:orddeptcd" combodataset="ds_orddept" combocodecol="deptcd" combodatacol="depthngnm"/>
  374. <Cell col="3" displaytype="text" style="padding:0 0 0 4;" text="bind:contentscd"/>
  375. <Cell col="4" displaytype="text" style="padding:0 0 0 4;" text="bind:contentsnm"/>
  376. <Cell col="5" displaytype="text" style="padding:0 0 0 4;" text="bind:senddate"/>
  377. </Band>
  378. </Format>
  379. </Formats>
  380. </Grid>
  381. </Layout>
  382. </Layouts>
  383. </Tabpage>
  384. </Tabpages>
  385. </Tab>
  386. <Static id="Static00" text="설명처방 콘텐츠" class="tit_2" position="absolute 0 68 124 88"/>
  387. <Button id="btn_send" taborder="13" text="처방 발행 (전송)" position="absolute 536 746 662 766" class="btn4" onclick="btn_send_onclick" tooltiptext="수신자리스트에 체크 되어 있는 사람에게 설명처방 목록의 항목들을 문자로 보냅니다" anchor="right bottom"/>
  388. <Button id="btn_cancel" taborder="14" text="취소" class="btn3" position="absolute 674 746 726 766" onclick="btn_cancel_onclick" tooltiptext="설명처방 목록 모두 삭제" anchor="right bottom"/>
  389. <Button id="btn_close" taborder="15" text="종료" class="btn3" position="absolute 738 746 790 766" onclick="btn_close_onclick" tooltiptext="창을 닫습니다" anchor="right bottom"/>
  390. <CheckBox id="chk_autoclose" taborder="16" text="처방 발행 후 자동 창 닫기" position="absolute 799 746 963 766" onclick="chk_autoclose_onclick" truevalue="Y" falsevalue="N" anchor="right bottom"/>
  391. <Grid id="Grid01" taborder="18" binddataset="ds_receiver" useinputpanel="false" position="absolute 448 0 843 76" style="border:2 solid #33bbbbff ;bordertype:round 10 10 ;shadow:outer 1,1 3 #808080c8;">
  392. <Formats>
  393. <Format id="default">
  394. <Columns>
  395. <Column size="80"/>
  396. <Column size="78"/>
  397. <Column size="232"/>
  398. </Columns>
  399. <Rows>
  400. <Row size="24"/>
  401. <Row size="24"/>
  402. <Row size="24"/>
  403. </Rows>
  404. <Band id="body">
  405. <Cell rowspan="3" style="selectbackground:skyblue;linespace:5;" text="상단환자&#13;&#10;정 보&#13;&#10;" taborder="undefined"/>
  406. <Cell col="1" style="selectbackground:skyblue;" text="환자번호"/>
  407. <Cell col="2" displaytype="text" style="padding:0 0 0 8;font:Dotum,10,bold;selectbackground:skyblue;" text="bind:pid"/>
  408. <Cell row="1" col="1" style="selectbackground:skyblue;" text="진 료 과"/>
  409. <Cell row="1" col="2" displaytype="text" style="padding:0 0 0 8;font:Dotum,10,bold;selectbackground:skyblue;" text="bind:orddeptnm"/>
  410. <Cell row="2" col="1" style="selectbackground:skyblue;" text="이 름"/>
  411. <Cell row="2" col="2" displaytype="text" style="padding:0 0 0 8;font:Dotum,10,bold;selectbackground:skyblue;" text="bind:hngnm"/>
  412. </Band>
  413. </Format>
  414. </Formats>
  415. </Grid>
  416. <Button id="btn_pat_clear" taborder="39" text="Clear" position="absolute 462 49 510 69" class="btn5" onclick="btn_pat_clear_onclick"/>
  417. <Div id="Div00" taborder="22" text="Div00" position="absolute 1019 0 1071 76" style="background:beige;border:2 solid peru ;bordertype:round 10 10 ;shadow:drop 1,1 3 #808080c8;" anchor="top right">
  418. <Layouts>
  419. <Layout>
  420. <Button id="btn_hichart" taborder="0" onclick="btn_hichart_onclick" class="btn_hichart" position="absolute 12 9 36 33" anchor="top right" tooltiptext="설명처방"/>
  421. <Static id="Static04" text="HiChart&#13;&#10;구버전" position="absolute 3 40 47 64" style="linespace:2;align:center middle;" anchor="default"/>
  422. </Layout>
  423. </Layouts>
  424. </Div>
  425. <Div id="Div01" taborder="38" style="background:beige;border:2 solid peru ;bordertype:round 10 10 ;shadow:drop 1,1 3 #808080c8;" text="Div00" position="absolute 873 0 1013 76" anchor="top right">
  426. <Layouts>
  427. <Layout>
  428. <Button id="btn_docu_down" taborder="0" text="설명처방 사용방법" onclick="btn_docu_down_onclick" class="btn5" position="absolute 9 11 128 31" tooltiptext="설명처방 사용 설명입니다" style="align:center middle;shadow:drop 1,1 3 #808080c8;" anchor="default"/>
  429. <ImageViewer id="iv_silverlight" taborder="1" image="URL('IMG::com\silverlight_btn.jpg')" onclick="iv_silverlight_onclick" position="absolute 43 41 104 60" tooltiptext="동영상이 재생 안될 때 설치하세요" style="border:0 none #e5e5e5ff ;cursor:hand;shadow:drop 1,1 3 #808080c8;" anchor="default"/>
  430. </Layout>
  431. </Layouts>
  432. </Div>
  433. <CheckBox id="chk_reservation" taborder="24" text="예약전송" position="absolute 536 718 608 738" tooltiptext="체크 하고 날짜/시간 입력되어 있으면 처방 발행 시 예약 됩니다" truevalue="Y" falsevalue="N" anchor="right bottom"/>
  434. <Calendar id="cal_reservedate" taborder="25" position="absolute 611 717 713 737" autoselect="true" anchor="right bottom"/>
  435. <MaskEdit id="mk_time" taborder="26" position="absolute 715 717 759 737" mask="##:##" autoselect="true" ontextchange="mk_time_ontextchange" trimtype="both" type="string" maskchar=" " style="align:center middle;" anchor="right bottom"/>
  436. <Button id="btn_add_private_all" taborder="30" text="개인목록담기(전체)" position="absolute 278 539 399 559" class="btn5" onclick="btn_add_private_all_onclick" tooltiptext="설명처방 목록에 있는 전체를 개인목록에 담는다" anchor="right bottom"/>
  437. <Button id="btn_add_dept_all" taborder="31" text="과별목록담기(전체)" class="btn5" position="absolute 402 539 523 559" enable="false" onclick="btn_add_dept_onclick" tooltiptext="설명처방 목록에 있는 전체를 과별목록에 담는다" anchor="right bottom"/>
  438. <Div id="div_dim" anchor="all" taborder="34" style="background:#00000046;" visible="false" position="absolute 1091 0 2165 768" onclick="div_dim_onclick">
  439. <Layouts>
  440. <Layout width="1024" height="768"/>
  441. </Layouts>
  442. </Div>
  443. <Div id="div_patinfo" taborder="35" position="absolute 1089 81 1960 557" anchor="top right">
  444. <Layouts>
  445. <Layout width="871" height="476">
  446. <Div id="div_patinfo_back" taborder="28" style="shadow:outer -5,5 10 gray;" position="absolute 34 0 857 464" anchor="default"/>
  447. <Button id="btn_patinfo" taborder="29" text="환자리스트 (F1, F2)" onclick="div_patinfo_btn_patinfo_onclick" class="btn_tab" position="absolute 11 167 146 191" tooltiptext="환자리스트 열고 닫기" hotkey="F1" style="glow:10 hotpink;transformation:0,0 [rotate -90];" anchor="default"/>
  448. <Div id="div_patlist" taborder="30" style="background:white;border:1 solid green ;" position="absolute 34 0 857 464" anchor="default">
  449. <Layouts>
  450. <Layout>
  451. <Tab id="tabPatList" taborder="28" onchanged="div_patinfo_div_patlist_tabPatList_onchanged" scrollbars="autoboth" position="absolute 8 8 813 454" style="buttonpadding:4 12 4 12;" anchor="default">
  452. <Tabpages>
  453. <Tabpage id="tab_sendlist" text="수신자리스트">
  454. <Layouts>
  455. <Layout>
  456. <Grid id="grd_sendlist" taborder="10" binddataset="ds_pat_sendlist" autoenter="key" useinputpanel="false" selecttype="multirow" cellclickbound="cell" onenterdown="div_patinfo_div_patlist_tabPatList_tab_sendlist_grd_sendlist_onenterdown" position="absolute 0 0 805 418" anchor="default" cellsizingtype="col">
  457. <Formats>
  458. <Format id="default">
  459. <Columns>
  460. <Column size="67"/>
  461. <Column size="26"/>
  462. <Column size="99"/>
  463. <Column size="66"/>
  464. <Column size="64"/>
  465. <Column size="82"/>
  466. <Column size="66"/>
  467. <Column size="35"/>
  468. </Columns>
  469. <Rows>
  470. <Row size="24" band="head"/>
  471. <Row size="24"/>
  472. </Rows>
  473. <Band id="head">
  474. <Cell/>
  475. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  476. <Cell col="2" displaytype="normal" text="휴대전화번호"/>
  477. <Cell col="3" displaytype="normal" text="구분"/>
  478. <Cell col="4" displaytype="normal" text="관계"/>
  479. <Cell col="5" text="환자명"/>
  480. <Cell col="6" text="환자번호"/>
  481. <Cell col="7" text="전송"/>
  482. </Band>
  483. <Band id="body">
  484. <Cell celltype="head" text="expr:currow + 1"/>
  485. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  486. <Cell col="2" displaytype="normal" edittype="expr:(getRowType(currow) == Dataset.ROWTYPE_INSERT) ? &quot;text&quot; : &quot;none&quot;" style="align:center middle;selectbackground:EXPR(fGetInputTextColor(currow));" text="bind:mpphone" mask="expr:fGetPhoneNumMask(mpphone)"/>
  487. <Cell col="3" displaytype="normal" text="bind:gubun"/>
  488. <Cell col="4" displaytype="normal" text="bind:rel"/>
  489. <Cell col="5" text="bind:hngnm"/>
  490. <Cell col="6" edittype="expr:(getRowType(currow) == Dataset.ROWTYPE_INSERT) ? &quot;text&quot; : &quot;none&quot;" style="align:center middle;selectbackground:EXPR(fGetInputTextColor(currow));" text="bind:pid"/>
  491. <Cell col="7" style="background:EXPR((success == &quot;실패&quot;) ? &quot;red&quot; : &quot;&quot;);background2:EXPR((success == &quot;실패&quot;) ? &quot;red&quot; : &quot;&quot;);selectbackground:EXPR((success == &quot;실패&quot;) ? &quot;red&quot; : &quot;&quot;);" text="bind:success"/>
  492. </Band>
  493. </Format>
  494. </Formats>
  495. </Grid>
  496. <Button id="btn_clear" taborder="11" text="전체삭제" onclick="div_patinfo_div_patlist_tabPatList_tab_sendlist_btn_clear_onclick" class="btn5" position="absolute 2 2 65 22" tooltiptext="전체삭제" anchor="default"/>
  497. </Layout>
  498. </Layouts>
  499. </Tabpage>
  500. <Tabpage id="tab_out" text="외래">
  501. <Layouts>
  502. <Layout>
  503. <Div id="div_search_out" taborder="10" class="div_SA2" position="absolute 0 0 805 66" anchor="default">
  504. <Layouts>
  505. <Layout>
  506. <Static id="Static00" text="진료일자 :" class="search_name" position="absolute 10 10 83 30" anchor="default"/>
  507. <Calendar id="cal_orddd" taborder="31" autoselect="true" position="absolute 87 10 188 30" anchor="default"/>
  508. <Static id="Static01" text="진료과 :" class="search_name" position="absolute 249 10 309 30" anchor="default"/>
  509. <Combo id="cmb_dept" taborder="32" innerdataset="@ds_init_cmb_orddept" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_cmb_dept_onitemchanged" position="absolute 314 10 470 30" anchor="default"/>
  510. <Static id="Static02" text="진료의사 :" class="search_name" position="absolute 10 36 82 56" anchor="default"/>
  511. <Combo id="cmb_orddr" taborder="33" innerdataset="@ds_init_cmb_orddr" codecolumn="userid" datacolumn="userdepthngnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_cmb_orddr_onitemchanged" position="absolute 87 36 283 56" anchor="default"/>
  512. <Radio id="Radio00" taborder="34" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_Radio00_onitemchanged" position="absolute 288 37 537 57" style="textpadding:0 5 0 3;" anchor="default">
  513. <Dataset id="innerdataset">
  514. <ColumnInfo>
  515. <Column id="codecolumn" size="256"/>
  516. <Column id="datacolumn" size="256"/>
  517. </ColumnInfo>
  518. <Rows>
  519. <Row>
  520. <Col id="codecolumn">A</Col>
  521. <Col id="datacolumn">진료일정의사</Col>
  522. </Row>
  523. <Row>
  524. <Col id="codecolumn">Y</Col>
  525. <Col id="datacolumn">진료의전체</Col>
  526. </Row>
  527. <Row>
  528. <Col id="codecolumn">R</Col>
  529. <Col id="datacolumn">퇴직의사</Col>
  530. </Row>
  531. </Rows>
  532. </Dataset>
  533. </Radio>
  534. <Radio id="Radio01" taborder="35" columncount="0" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" direction="vertical" position="absolute 551 37 684 57" style="textpadding:0 2 0 3;" anchor="default">
  535. <Dataset id="innerdataset">
  536. <ColumnInfo>
  537. <Column id="codecolumn" size="256"/>
  538. <Column id="datacolumn" size="256"/>
  539. </ColumnInfo>
  540. <Rows>
  541. <Row>
  542. <Col id="codecolumn">A</Col>
  543. <Col id="datacolumn">오전</Col>
  544. </Row>
  545. <Row>
  546. <Col id="codecolumn">P</Col>
  547. <Col id="datacolumn">오후</Col>
  548. </Row>
  549. <Row>
  550. <Col id="codecolumn">D</Col>
  551. <Col id="datacolumn">전일</Col>
  552. </Row>
  553. </Rows>
  554. </Dataset>
  555. </Radio>
  556. <Button id="btn_search" taborder="36" text="조회" onclick="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_btn_search_onclick" class="btn1" position="absolute 744 22 796 42" anchor="default"/>
  557. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 737 22 743 42" anchor="top right"/>
  558. </Layout>
  559. </Layouts>
  560. </Div>
  561. <Grid id="grd_patlist_out" taborder="11" binddataset="ds_grd_opatmngt" useinputpanel="false" selecttype="multirow" autofittype="col" onlbuttonup="grd_patlist_onlbuttonup" position="absolute 0 67 805 419" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_out_grd_patlist_out_oncelldblclick" cellsizingtype="col">
  562. <Formats>
  563. <Format id="default">
  564. <Columns>
  565. <Column size="30"/>
  566. <Column size="24"/>
  567. <Column size="60"/>
  568. <Column size="60"/>
  569. <Column size="60"/>
  570. <Column size="40"/>
  571. <Column size="40"/>
  572. <Column size="40"/>
  573. <Column size="60"/>
  574. <Column size="200"/>
  575. <Column size="100"/>
  576. </Columns>
  577. <Rows>
  578. <Row size="24" band="head"/>
  579. <Row size="24"/>
  580. </Rows>
  581. <Band id="head">
  582. <Cell/>
  583. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  584. <Cell col="2" text="예약시간"/>
  585. <Cell col="3" text="환자번호"/>
  586. <Cell col="4" text="환자명"/>
  587. <Cell col="5" text="S/A"/>
  588. <Cell col="6" text="초/재"/>
  589. <Cell col="7" text="수납"/>
  590. <Cell col="8" text="예약구분"/>
  591. <Cell col="9" text="Remark"/>
  592. <Cell col="10" text="휴대전화번호"/>
  593. </Band>
  594. <Band id="body">
  595. <Cell celltype="head" text="expr:currow + 1"/>
  596. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  597. <Cell col="2" text="bind:ordtm" mask="##:##"/>
  598. <Cell col="3" text="bind:pid"/>
  599. <Cell col="4" text="bind:hngnm"/>
  600. <Cell col="5" text="bind:sexage"/>
  601. <Cell col="6" text="bind:fsexamflag"/>
  602. <Cell col="7" text="bind:calcyn"/>
  603. <Cell col="8" text="bind:rsrvflag"/>
  604. <Cell col="9" displaytype="text" style="padding:1 2 1 4;" text="bind:remfact"/>
  605. <Cell col="10" text="bind:mpphontel"/>
  606. </Band>
  607. </Format>
  608. </Formats>
  609. </Grid>
  610. </Layout>
  611. </Layouts>
  612. </Tabpage>
  613. <Tabpage id="tab_in" text="입원">
  614. <Layouts>
  615. <Layout>
  616. <Div id="div_search_in" taborder="12" class="div_SA2" position="absolute 0 0 805 66" anchor="default">
  617. <Layouts>
  618. <Layout>
  619. <Calendar id="cal_workdd" taborder="34" autoselect="true" position="absolute 87 10 188 30" anchor="default"/>
  620. <Static id="Static00" text="업무일자 :" class="search_name" position="absolute 10 10 83 30" anchor="default"/>
  621. <Static id="Static01" text="병동 :" class="search_name" position="absolute 254 10 301 30" anchor="default"/>
  622. <Combo id="cmb_ward" taborder="35" innerdataset="@ds_init_ward" codecolumn="wardcd" datacolumn="wardnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_cmb_ward_onitemchanged" position="absolute 317 10 417 30" anchor="default"/>
  623. <Static id="Static02" text="진료과 :" class="search_name" position="absolute 10 36 70 56" anchor="default"/>
  624. <Combo id="cmd_dept" taborder="36" innerdataset="@ds_init_dept" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_cmd_dept_onitemchanged" position="absolute 87 36 235 56" anchor="default"/>
  625. <Static id="Static03" text="전문의 :" class="search_name" position="absolute 254 36 314 56" anchor="default"/>
  626. <Combo id="cmd_orddr" taborder="37" innerdataset="@ds_init_orddr" codecolumn="userid" datacolumn="usernm" position="absolute 317 36 393 56" anchor="default"/>
  627. <Button id="btn_search" taborder="38" text="조회" onclick="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_btn_search_onclick" class="btn1" position="absolute 732 22 784 42" anchor="default"/>
  628. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 716 22 722 42" anchor="top right"/>
  629. <CheckBox id="chk_in_schedule" taborder="39" text="입원예정자조회" value="N" truevalue="Y" falsevalue="N" position="absolute 601 23 709 43" anchor="default" onclick="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_chk_in_schedule_onclick"/>
  630. </Layout>
  631. </Layouts>
  632. </Div>
  633. <Grid id="grd_patlist_in" taborder="13" binddataset="ds_grd_ipatmngt" useinputpanel="false" selecttype="multirow" autofittype="col" cellclickbound="cell" onlbuttonup="grd_patlist_onlbuttonup" position="absolute 0 67 755 419" anchor="default" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_in_oncelldblclick" cellsizingtype="col">
  634. <Formats>
  635. <Format id="default">
  636. <Columns>
  637. <Column size="24"/>
  638. <Column size="24"/>
  639. <Column size="40"/>
  640. <Column size="60"/>
  641. <Column size="80"/>
  642. <Column size="26"/>
  643. <Column size="26"/>
  644. <Column size="92"/>
  645. <Column size="38"/>
  646. <Column size="140"/>
  647. <Column size="58"/>
  648. <Column size="100"/>
  649. </Columns>
  650. <Rows>
  651. <Row size="24" band="head"/>
  652. <Row size="24"/>
  653. </Rows>
  654. <Band id="head">
  655. <Cell/>
  656. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  657. <Cell col="2" text="병실"/>
  658. <Cell col="3" text="등록번호"/>
  659. <Cell col="4" text="입원일자"/>
  660. <Cell col="5" colspan="2" text="재원상태" taborder="undefined"/>
  661. <Cell col="7" text="환자명"/>
  662. <Cell col="8" text="S/A"/>
  663. <Cell col="9" text="진료과"/>
  664. <Cell col="10" text="전문의"/>
  665. <Cell col="11" text="휴대전화번호"/>
  666. </Band>
  667. <Band id="body">
  668. <Cell celltype="head" text="expr:currow + 1"/>
  669. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  670. <Cell col="2" text="bind:roomcd"/>
  671. <Cell col="3" text="bind:pid"/>
  672. <Cell col="4" displaytype="date" text="bind:indd"/>
  673. <Cell col="5" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff,1 solid #b0b0b0ff,1 solid #b0b0b0ff;" text="bind:chngroomstat"/>
  674. <Cell col="6" text="bind:indschstat"/>
  675. <Cell col="7" text="bind:hngnm"/>
  676. <Cell col="8" text="bind:sexage"/>
  677. <Cell col="9" displaytype="text" style="padding:0 0 0 4;" text="bind:orddeptnm"/>
  678. <Cell col="10" displaytype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_init_orddr_all" combocodecol="userid" combodatacol="usernm"/>
  679. <Cell col="11" text="bind:mpphontel" mask="expr:fGetPhoneNumMask(mpphontel)"/>
  680. </Band>
  681. </Format>
  682. </Formats>
  683. </Grid>
  684. <Grid id="grd_patlist_insche" taborder="14" useinputpanel="false" position="absolute 0 67 805 419" binddataset="ds_grd_inreqhistlist" visible="false" onlbuttonup="div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_insche_onlbuttonup" selecttype="multirow" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_insche_oncelldblclick" cellsizingtype="col">
  685. <Formats>
  686. <Format id="default">
  687. <Columns>
  688. <Column size="24" band="left"/>
  689. <Column size="24" band="left"/>
  690. <Column size="40" band="left"/>
  691. <Column size="50" band="left"/>
  692. <Column size="60" band="left"/>
  693. <Column size="50" band="left"/>
  694. <Column size="40"/>
  695. <Column size="100"/>
  696. <Column size="70"/>
  697. <Column size="100"/>
  698. <Column size="50"/>
  699. <Column size="90"/>
  700. <Column size="60"/>
  701. <Column size="110"/>
  702. <Column size="24"/>
  703. <Column size="170"/>
  704. <Column size="70"/>
  705. <Column size="152"/>
  706. <Column size="160"/>
  707. <Column size="70"/>
  708. <Column size="40"/>
  709. <Column size="50"/>
  710. <Column size="160"/>
  711. </Columns>
  712. <Rows>
  713. <Row size="24" band="head"/>
  714. <Row size="24"/>
  715. </Rows>
  716. <Band id="head">
  717. <Cell/>
  718. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  719. <Cell col="2" text="종류"/>
  720. <Cell col="3" text="입원상태"/>
  721. <Cell col="4" text="환자번호"/>
  722. <Cell col="5" text="성명"/>
  723. <Cell col="6" text="S/A"/>
  724. <Cell col="7" text="결정일시"/>
  725. <Cell col="8" text="입원예정일"/>
  726. <Cell col="9" text="진료과"/>
  727. <Cell col="10" text="전문의"/>
  728. <Cell col="11" text="휴대전화번호"/>
  729. <Cell col="12" text="협진팀명"/>
  730. <Cell col="13" text="입원경로"/>
  731. <Cell col="14" text="CP"/>
  732. <Cell col="15" text="진단명"/>
  733. <Cell col="16" text="수술예정일"/>
  734. <Cell col="17" text="수술명"/>
  735. <Cell col="18" text="의료진참고사항"/>
  736. <Cell col="19" text="병동"/>
  737. <Cell col="20" text="병실"/>
  738. <Cell col="21" text="병상"/>
  739. <Cell col="22" text="원무참고사항"/>
  740. </Band>
  741. <Band id="body">
  742. <Cell celltype="head" text="expr:currow + 1"/>
  743. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  744. <Cell col="2" text="bind:inrsrvstat"/>
  745. <Cell col="3" text="bind:inflag"/>
  746. <Cell col="4" text="bind:pid"/>
  747. <Cell col="5" text="bind:dispnm2"/>
  748. <Cell col="6" text="bind:sa"/>
  749. <Cell col="7" text="bind:assgdt" mask="expr:utlf_isNull(assgdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  750. <Cell col="8" displaytype="date" text="bind:inrsrvacptdd"/>
  751. <Cell col="9" text="bind:orddeptcd"/>
  752. <Cell col="10" text="bind:usernm"/>
  753. <Cell col="11" text="bind:mpphontel"/>
  754. <Cell col="12" text="bind:coopteam"/>
  755. <Cell col="13" text="bind:erreglyn"/>
  756. <Cell col="14" text="bind:cpyn"/>
  757. <Cell col="15" displaytype="text" text="bind:termengnm"/>
  758. <Cell col="16" text="bind:scheopdd"/>
  759. <Cell col="17" text="bind:opengnm"/>
  760. <Cell col="18" displaytype="text" text="bind:drrem"/>
  761. <Cell col="19" text="bind:assgwardnm"/>
  762. <Cell col="20" text="bind:assgroom"/>
  763. <Cell col="21" text="bind:assgbednm"/>
  764. <Cell col="22" displaytype="text" text="bind:inrsrvrem"/>
  765. </Band>
  766. </Format>
  767. </Formats>
  768. </Grid>
  769. </Layout>
  770. </Layouts>
  771. </Tabpage>
  772. <Tabpage id="tab_exam" text="건진">
  773. <Layouts>
  774. <Layout>
  775. <Div id="div_search_exam" taborder="0" class="div_SA2" position="absolute 0 0 805 38" onkeydown="div_patinfo_div_patlist_tabPatList_tab_exam_div_search_exam_onkeydown">
  776. <Layouts>
  777. <Layout>
  778. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 716 8 722 28" anchor="top right"/>
  779. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 732 8 784 28" onclick="div_patinfo_div_patlist_tabPatList_tab_exam_div_search_exam_btn_search_onclick"/>
  780. <Static id="stc_rsrvdd" text="예약일자 :" class="search_name" position="absolute 10 10 83 30"/>
  781. <Calendar id="cal_hopedd" taborder="0" autoselect="true" position="absolute 87 10 188 30" onchanged="div_patinfo_div_patlist_tabPatList_tab_exam_div_search_exam_cal_hopedd_onchanged"/>
  782. </Layout>
  783. </Layouts>
  784. </Div>
  785. <Grid id="grd_exam_list" taborder="1" binddataset="ds_examlist" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 39 805 419" onmousemove="div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_onmousemove" onmouseleave="div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_onmouseleave" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_oncelldblclick" onlbuttonup="div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_onlbuttonup" selecttype="multirow">
  786. <Formats>
  787. <Format id="default">
  788. <Columns>
  789. <Column size="24"/>
  790. <Column size="24"/>
  791. <Column size="60"/>
  792. <Column size="60"/>
  793. <Column size="70"/>
  794. <Column size="162"/>
  795. <Column size="95"/>
  796. <Column size="100"/>
  797. <Column size="30"/>
  798. <Column size="30"/>
  799. <Column size="150"/>
  800. </Columns>
  801. <Rows>
  802. <Row size="24" band="head"/>
  803. <Row size="24"/>
  804. </Rows>
  805. <Band id="head">
  806. <Cell/>
  807. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  808. <Cell col="2" text="환자명"/>
  809. <Cell col="3" text="환자번호"/>
  810. <Cell col="4" text="위검사"/>
  811. <Cell col="5" text="패키지명"/>
  812. <Cell col="6" text="연락처"/>
  813. <Cell col="7" text="주민등록번호"/>
  814. <Cell col="8" text="성별" taborder="undefined"/>
  815. <Cell col="9" text="나이" taborder="undefined"/>
  816. <Cell col="10" text="사업체명"/>
  817. </Band>
  818. <Band id="body">
  819. <Cell celltype="head" text="expr:currow + 1"/>
  820. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  821. <Cell col="2" text="bind:hngnm"/>
  822. <Cell col="3" text="bind:pid"/>
  823. <Cell col="4" displaytype="combo" style="align:center;" text="bind:choiflag" combodataset="ds_A0116" combocodecol="cdid" combodatacol="cdnm"/>
  824. <Cell col="5" style="align:left;" text="bind:pkgnm"/>
  825. <Cell col="6" text="expr:utlf_isNull(mpphontel) || utlf_getLengB(mpphontel) &lt; 7 ? telno : mpphontel"/>
  826. <Cell col="7" text="bind:rgstno"/>
  827. <Cell col="8" text="bind:sex"/>
  828. <Cell col="9" text="bind:age"/>
  829. <Cell col="10" style="align:left;" text="bind:cmpynm"/>
  830. </Band>
  831. </Format>
  832. </Formats>
  833. </Grid>
  834. </Layout>
  835. </Layouts>
  836. </Tabpage>
  837. <Tabpage id="tab_search" text="검색">
  838. <Layouts>
  839. <Layout>
  840. <Div id="div_search" taborder="0" position="absolute 0 0 805 38" class="div_SA2">
  841. <Layouts>
  842. <Layout>
  843. <Static id="Static00" text="검색조건" position="absolute 12 9 76 29" class="search_name" anchor="default"/>
  844. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 716 8 722 28" anchor="top right"/>
  845. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 732 8 784 28" anchor="default" onclick="div_patinfo_div_patlist_tabPatList_tab_search_div_search_btn_search_onclick"/>
  846. <Edit id="edt_hngnm" taborder="1" position="absolute 284 8 368 28" visible="false" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_hngnm_onkeydown" imemode="hangul"/>
  847. <Edit id="edt_rrgstno1" taborder="2" position="absolute 372 8 472 28" visible="false" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_rrgstno1_onkeydown" inputtype="number,digit" maxlength="6"/>
  848. <Edit id="edt_rrgstno2" taborder="4" position="absolute 474 8 574 28" visible="false" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_rrgstno2_onkeydown" maxlength="7"/>
  849. <Edit id="edt_pid" taborder="0" position="absolute 284 8 368 28" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_pid_onkeydown"/>
  850. <Radio id="rdo_searchcond" taborder="5" columncount="-1" rowcount="-1" position="absolute 84 9 278 29" codecolumn="codecolumn" datacolumn="datacolumn" style="textpadding:0 8 0 3;" value="1" index="0" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_search_div_search_rdo_searchcond_onitemchanged">
  851. <Dataset id="innerdataset">
  852. <ColumnInfo>
  853. <Column id="codecolumn" size="256"/>
  854. <Column id="datacolumn" size="256"/>
  855. </ColumnInfo>
  856. <Rows>
  857. <Row>
  858. <Col id="codecolumn">1</Col>
  859. <Col id="datacolumn">환자번호</Col>
  860. </Row>
  861. <Row>
  862. <Col id="codecolumn">4</Col>
  863. <Col id="datacolumn">환자명/주민번호</Col>
  864. </Row>
  865. </Rows>
  866. </Dataset>
  867. </Radio>
  868. </Layout>
  869. </Layouts>
  870. </Div>
  871. <Grid id="grd_pat_search" taborder="1" useinputpanel="false" position="absolute 0 39 805 419" binddataset="ds_patinfolist" onlbuttonup="div_patinfo_div_patlist_tabPatList_tab_search_grd_pat_search_onlbuttonup" autofittype="col" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_search_grd_pat_search_oncelldblclick" cellsizingtype="col">
  872. <Formats>
  873. <Format id="default">
  874. <Columns>
  875. <Column size="24"/>
  876. <Column size="24"/>
  877. <Column size="60"/>
  878. <Column size="60"/>
  879. <Column size="30"/>
  880. <Column size="30"/>
  881. <Column size="80"/>
  882. <Column size="90"/>
  883. <Column size="90"/>
  884. <Column size="167"/>
  885. <Column size="100"/>
  886. </Columns>
  887. <Rows>
  888. <Row size="24" band="head"/>
  889. <Row size="24"/>
  890. </Rows>
  891. <Band id="head">
  892. <Cell/>
  893. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  894. <Cell col="2" text="환자번호"/>
  895. <Cell col="3" text="환자명"/>
  896. <Cell col="4" text="성별" taborder="undefined"/>
  897. <Cell col="5" text="나이" taborder="undefined"/>
  898. <Cell col="6" text="생년월일"/>
  899. <Cell col="7" text="휴대전화번호"/>
  900. <Cell col="8" text="연락처"/>
  901. <Cell col="9" text="주소"/>
  902. <Cell col="10" text="상세주소"/>
  903. </Band>
  904. <Band id="body">
  905. <Cell celltype="head" text="expr:currow + 1"/>
  906. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  907. <Cell col="2" text="bind:pid"/>
  908. <Cell col="3" text="bind:hngnm"/>
  909. <Cell col="4" text="bind:sex"/>
  910. <Cell col="5" text="bind:age"/>
  911. <Cell col="6" text="bind:rrgstno1"/>
  912. <Cell col="7" text="bind:mpphontel"/>
  913. <Cell col="8" text="bind:hometel"/>
  914. <Cell col="9" displaytype="text" text="bind:addr"/>
  915. <Cell col="10" displaytype="text" text="bind:detladdr"/>
  916. </Band>
  917. </Format>
  918. </Formats>
  919. </Grid>
  920. </Layout>
  921. </Layouts>
  922. </Tabpage>
  923. </Tabpages>
  924. </Tab>
  925. <Static id="Static00" text="※ 최대 50명까지만 추가 가능합니다." position="absolute 440 10 648 30" style="color:red;" anchor="default"/>
  926. <Button id="btn_addlist" taborder="29" text="수신자리스트 추가" onclick="div_patinfo_div_patlist_btn_addlist_onclick" class="btn5" visible="false" position="absolute 306 10 422 30" tooltiptext="수신자리스트에 체크한 행 모두 추가" anchor="default"/>
  927. <Button id="btn_add" taborder="30" text="행추가" onclick="div_patinfo_div_patlist_btn_add_onclick" class="btn5" position="absolute 359 10 411 30" tooltiptext="행 추가" anchor="default"/>
  928. <Button id="btn_delete" taborder="31" text="행삭제" onclick="div_patinfo_div_patlist_btn_delete_onclick" class="btn5" position="absolute 306 10 358 30" tooltiptext="체크한 행 모두 삭제" anchor="default"/>
  929. <Button id="btn_highlight" taborder="32" visible="false" position="absolute 7 7 105 33" style="background:yellow;border:2 double black black;color:black;bordertype:round 2 2 lefttop righttop;" text="수신자리스트" transparenthittest="true"/>
  930. </Layout>
  931. </Layouts>
  932. </Div>
  933. <Button id="btn_close_light" taborder="31" text="확대보기(F2)" onclick="div_patinfo_btn_close_light_onclick" class="btn2" position="absolute 697 11 784 31" tooltiptext="환자리스트를 반만 닫습니다" hotkey="F2" anchor="default"/>
  934. <Button id="btn_close" taborder="32" text="닫기(F1)" onclick="div_patinfo_btn_close_onclick" class="btn2" position="absolute 786 11 850 31" tooltiptext="환자리스트 닫기" hotkey="F1" anchor="default"/>
  935. </Layout>
  936. </Layouts>
  937. </Div>
  938. </Layout>
  939. </Layouts>
  940. <Objects>
  941. <Dataset id="ds_sender" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  942. <ColumnInfo>
  943. <Column id="hospnm" type="STRING" size="256"/>
  944. <Column id="deptnm" type="STRING" size="256"/>
  945. <Column id="sendernm" type="STRING" size="256"/>
  946. </ColumnInfo>
  947. <Rows>
  948. <Row>
  949. <Col id="hospnm"/>
  950. <Col id="sendernm"/>
  951. <Col id="deptnm"/>
  952. </Row>
  953. </Rows>
  954. </Dataset>
  955. <Dataset id="ds_hichartlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  956. <ColumnInfo>
  957. <Column id="instcd" type="STRING" size="256"/>
  958. <Column id="gubuncd" type="STRING" size="256"/>
  959. <Column id="subgubuncd" type="STRING" size="256"/>
  960. <Column id="contentscd" type="STRING" size="256"/>
  961. <Column id="contentsnm" type="STRING" size="256"/>
  962. <Column id="viewingtime" type="STRING" size="256"/>
  963. <Column id="privatehospcd" type="STRING" size="256"/>
  964. <Column id="regdt" type="STRING" size="256"/>
  965. <Column id="updatedt" type="STRING" size="256"/>
  966. </ColumnInfo>
  967. </Dataset>
  968. <Dataset id="ds_hichartsendlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  969. <ColumnInfo>
  970. <Column id="contentscd" type="STRING" size="256"/>
  971. <Column id="contentsnm" type="STRING" size="256"/>
  972. <Column id="viewingtime" type="STRING" size="256"/>
  973. <Column id="privatehospcd" type="STRING" size="256"/>
  974. </ColumnInfo>
  975. </Dataset>
  976. <Dataset id="ds_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  977. <ColumnInfo>
  978. <Column id="gubuncd" type="STRING" size="256"/>
  979. <Column id="subgubuncd" type="STRING" size="256"/>
  980. <Column id="contentscd" type="STRING" size="256"/>
  981. <Column id="contentsnm" type="STRING" size="256"/>
  982. <Column id="privatehosp" type="STRING" size="256"/>
  983. </ColumnInfo>
  984. <Rows>
  985. <Row/>
  986. </Rows>
  987. </Dataset>
  988. <Dataset id="ds_M0770" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  989. <ColumnInfo>
  990. <Column id="cdid" type="STRING" size="256"/>
  991. <Column id="cdnm" type="STRING" size="256"/>
  992. </ColumnInfo>
  993. </Dataset>
  994. <Dataset id="ds_M0771" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  995. <ColumnInfo>
  996. <Column id="cdid" type="STRING" size="256"/>
  997. <Column id="cdnm" type="STRING" size="256"/>
  998. </ColumnInfo>
  999. </Dataset>
  1000. <Dataset id="ds_pat_sendlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1001. <ColumnInfo>
  1002. <Column id="acptyn" type="STRING" size="256"/>
  1003. <Column id="mpphone" type="STRING" size="256"/>
  1004. <Column id="gubun" type="STRING" size="256"/>
  1005. <Column id="rel" type="STRING" size="256"/>
  1006. <Column id="pid" type="STRING" size="256"/>
  1007. <Column id="hngnm" type="STRING" size="256"/>
  1008. <Column id="success" type="STRING" size="256"/>
  1009. </ColumnInfo>
  1010. </Dataset>
  1011. <Dataset id="ds_receiver" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1012. <ColumnInfo>
  1013. <Column id="pid" type="STRING" size="256"/>
  1014. <Column id="orddeptnm" type="STRING" size="256"/>
  1015. <Column id="hngnm" type="STRING" size="256"/>
  1016. </ColumnInfo>
  1017. <Rows>
  1018. <Row>
  1019. <Col id="pid"/>
  1020. <Col id="hngnm"/>
  1021. <Col id="orddeptnm"/>
  1022. </Row>
  1023. </Rows>
  1024. </Dataset>
  1025. <Dataset id="ds_send_in" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1026. <ColumnInfo>
  1027. <Column id="instcd" type="STRING" size="256"/>
  1028. <Column id="orddd" type="STRING" size="256"/>
  1029. <Column id="wardcd" type="STRING" size="256"/>
  1030. <Column id="orddeptcd" type="STRING" size="256"/>
  1031. <Column id="orddrid" type="STRING" size="256"/>
  1032. <Column id="wardlistopt" type="STRING" size="256"/>
  1033. </ColumnInfo>
  1034. <Rows>
  1035. <Row>
  1036. <Col id="orddd"/>
  1037. <Col id="wardcd"/>
  1038. <Col id="orddeptcd"/>
  1039. <Col id="orddrid"/>
  1040. <Col id="wardlistopt"/>
  1041. </Row>
  1042. </Rows>
  1043. </Dataset>
  1044. <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1045. <ColumnInfo>
  1046. <Column id="wardcd" type="STRING" size="256"/>
  1047. <Column id="wardnm" type="STRING" size="256"/>
  1048. </ColumnInfo>
  1049. </Dataset>
  1050. <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1051. <ColumnInfo>
  1052. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  1053. <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
  1054. </ColumnInfo>
  1055. </Dataset>
  1056. <Dataset id="ds_grd_ipatmngt" enableevent="true" updatecontrol="true">
  1057. <ColumnInfo>
  1058. <Column id="acptyn" type="STRING" size="0"/>
  1059. <Column id="pid" type="STRING" size="256"/>
  1060. <Column id="hngnm" type="STRING" size="256"/>
  1061. <Column id="sexage" type="STRING" size="256"/>
  1062. <Column id="indd" type="STRING" size="256"/>
  1063. <Column id="cretno" type="STRING" size="256"/>
  1064. <Column id="smsyn" type="STRING" size="256"/>
  1065. <Column id="mpphontel" type="STRING" size="256"/>
  1066. <Column id="chngroomstat" type="STRING" size="256"/>
  1067. <Column id="indschstat" type="STRING" size="256"/>
  1068. <Column id="usernm" type="STRING" size="256"/>
  1069. <Column id="prcpdt" type="STRING" size="256"/>
  1070. <Column id="wardcd" type="STRING" size="256"/>
  1071. <Column id="roomcd" type="STRING" size="256"/>
  1072. <Column id="cntctel" type="STRING" size="256"/>
  1073. <Column id="orddeptnm" type="STRING" size="256"/>
  1074. <Column id="orddrid" type="STRING" size="256"/>
  1075. </ColumnInfo>
  1076. </Dataset>
  1077. <Dataset id="ds_init_orddr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1078. <ColumnInfo>
  1079. <Column id="usernm" type="STRING" size="256"/>
  1080. <Column id="userid" type="STRING" size="256"/>
  1081. </ColumnInfo>
  1082. <Rows>
  1083. <Row/>
  1084. </Rows>
  1085. </Dataset>
  1086. <Dataset id="ds_grd_opatmngt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1087. <ColumnInfo>
  1088. <Column id="acptyn" type="STRING" size="256" sumtext="접수구분"/>
  1089. <Column id="prcsflag" type="STRING" size="256" sumtext="진행상태구분"/>
  1090. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  1091. <Column id="ordtm" type="STRING" size="256" sumtext="예약일시"/>
  1092. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1093. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  1094. <Column id="sexage" type="STRING" size="256" sumtext="S/A"/>
  1095. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  1096. <Column id="fsexamflag" type="STRING" size="256" sumtext="초/재"/>
  1097. <Column id="calcyn" type="STRING" size="256" sumtext="수납"/>
  1098. <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
  1099. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  1100. <Column id="nryn" type="STRING" size="256" sumtext="보험유형"/>
  1101. <Column id="telrsrvrem" type="STRING" size="256" sumtext="Remark"/>
  1102. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  1103. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사"/>
  1104. <Column id="fstacptdd" type="STRING" size="256" sumtext="최초접수일"/>
  1105. <Column id="nursacptyn" type="STRING" size="256" sumtext="간호사접수여부"/>
  1106. <Column id="dracptyn" type="STRING" size="256" sumtext="의사접수여부"/>
  1107. <Column id="prcpgenryn" type="STRING" size="256" sumtext="처방발행여부"/>
  1108. <Column id="elbulbodstat" type="STRING" size="256" sumtext="전광판상태여부"/>
  1109. <Column id="ordtype" type="STRING" size="256" sumtext="외래/입원구분"/>
  1110. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  1111. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  1112. <Column id="acptseqno" type="STRING" size="256" sumtext="등록일련번호"/>
  1113. <Column id="orgorddd" type="STRING" size="256" sumtext="원진료일자"/>
  1114. <Column id="smsyn" type="STRING" size="256" sumtext="전송여부"/>
  1115. <Column id="cntctel" type="STRING" size="256" sumtext="부서전화번호"/>
  1116. <Column id="remfact" type="STRING" size="256" sumtext="진료예약Remark"/>
  1117. </ColumnInfo>
  1118. </Dataset>
  1119. <Dataset id="ds_send_out" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1120. <ColumnInfo>
  1121. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  1122. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  1123. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사ID"/>
  1124. <Column id="ampmflag" type="STRING" size="256" sumtext="오전오후"/>
  1125. <Column id="ordclsdeptflag" type="STRING" size="256" sumtext="진료과구분"/>
  1126. <Column id="supdeptcd" type="STRING" size="256" sumtext="상위진료과코드"/>
  1127. <Column id="prcpspecflag" type="STRING" size="256" sumtext="진료의구분"/>
  1128. </ColumnInfo>
  1129. <Rows>
  1130. <Row>
  1131. <Col id="ampmflag">D</Col>
  1132. <Col id="prcpspecflag">A</Col>
  1133. </Row>
  1134. </Rows>
  1135. </Dataset>
  1136. <Dataset id="ds_init_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1137. <ColumnInfo>
  1138. <Column id="depthngnm" type="STRING" size="256"/>
  1139. <Column id="deptcd" type="STRING" size="256"/>
  1140. </ColumnInfo>
  1141. </Dataset>
  1142. <Dataset id="ds_init_cmb_orddr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1143. <ColumnInfo>
  1144. <Column id="userdepthngnm" type="STRING"/>
  1145. <Column id="userid" type="STRING"/>
  1146. </ColumnInfo>
  1147. </Dataset>
  1148. <Dataset id="ds_init_orddr_all" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1149. <ColumnInfo>
  1150. <Column id="usernm" type="STRING" size="256"/>
  1151. <Column id="userid" type="STRING" size="256"/>
  1152. </ColumnInfo>
  1153. <Rows>
  1154. <Row/>
  1155. </Rows>
  1156. </Dataset>
  1157. <PropertyAnimation id="pa_patinfo_move" endingmode="to" repeat="1" repeattype="normal" duration="300" starttime="0" targetcomp="div_patinfo" targetprop="position.x" interpolation="Interpolation.curve4InOut"/>
  1158. <Dataset id="ds_result_hichart_sendhistory" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" keystring="S:-senddate+contentsnm">
  1159. <ColumnInfo>
  1160. <Column id="hngnm" type="STRING" size="256"/>
  1161. <Column id="jobkind" type="STRING" size="256"/>
  1162. <Column id="orddeptcd" type="STRING" size="256"/>
  1163. <Column id="userid" type="STRING" size="256"/>
  1164. <Column id="contentscd" type="STRING" size="256"/>
  1165. <Column id="contentsnm" type="STRING" size="256"/>
  1166. <Column id="senddate" type="STRING" size="256"/>
  1167. </ColumnInfo>
  1168. </Dataset>
  1169. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1170. <ColumnInfo>
  1171. <Column id="deptcd" type="STRING" size="256"/>
  1172. <Column id="depthngnm" type="STRING" size="256"/>
  1173. </ColumnInfo>
  1174. </Dataset>
  1175. <Dataset id="ds_hichartnewlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1176. <ColumnInfo>
  1177. <Column id="instcd" type="STRING" size="256"/>
  1178. <Column id="gubuncd" type="STRING" size="256"/>
  1179. <Column id="subgubuncd" type="STRING" size="256"/>
  1180. <Column id="contentscd" type="STRING" size="256"/>
  1181. <Column id="contentsnm" type="STRING" size="256"/>
  1182. <Column id="viewingtime" type="STRING" size="256"/>
  1183. <Column id="privatehospcd" type="STRING" size="256"/>
  1184. <Column id="regdt" type="STRING" size="256"/>
  1185. <Column id="updatedt" type="STRING" size="256"/>
  1186. </ColumnInfo>
  1187. </Dataset>
  1188. <Dataset id="ds_result_hichart_sendhistory_internal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1189. <ColumnInfo>
  1190. <Column id="groupnum" type="STRING" size="256"/>
  1191. <Column id="lvl" type="STRING" size="256"/>
  1192. <Column id="vodlist" type="STRING" size="256"/>
  1193. <Column id="pid" type="STRING" size="256"/>
  1194. <Column id="hngnm" type="STRING" size="256"/>
  1195. <Column id="orddeptcd" type="STRING" size="256"/>
  1196. <Column id="contentscd" type="STRING" size="256"/>
  1197. <Column id="contentsnm" type="STRING" size="256"/>
  1198. <Column id="senddate" type="STRING" size="256"/>
  1199. <Column id="result" type="STRING" size="256"/>
  1200. <Column id="reservetime" type="STRING" size="256"/>
  1201. <Column id="receiver" type="STRING" size="256"/>
  1202. <Column id="scomment" type="STRING" size="256"/>
  1203. <Column id="fstrgstdt" type="STRING" size="256"/>
  1204. <Column id="viewingtime" type="STRING" size="256"/>
  1205. <Column id="rnum" type="STRING" size="256"/>
  1206. </ColumnInfo>
  1207. </Dataset>
  1208. <Dataset id="ds_grd_inreqhistlist" firenextcount="0" firefirstcount="0">
  1209. <ColumnInfo>
  1210. <Column id="acptyn" type="STRING" size="256"/>
  1211. <Column id="inrsrvstat" type="STRING"/>
  1212. <Column id="inflag" type="STRING"/>
  1213. <Column id="pid" type="STRING"/>
  1214. <Column id="dispnm2" type="STRING"/>
  1215. <Column id="sa" type="STRING"/>
  1216. <Column id="assgdt" type="STRING"/>
  1217. <Column id="inrsrvacptdd" type="STRING"/>
  1218. <Column id="inrsrvacpttm" type="STRING"/>
  1219. <Column id="inhopedd" type="STRING"/>
  1220. <Column id="orddeptcd" type="STRING"/>
  1221. <Column id="usernm" type="STRING"/>
  1222. <Column id="orddrid" type="STRING"/>
  1223. <Column id="coopteam" type="STRING"/>
  1224. <Column id="erreglyn" type="STRING"/>
  1225. <Column id="cpyn" type="STRING"/>
  1226. <Column id="termengnm" type="STRING"/>
  1227. <Column id="scheopdd" type="STRING"/>
  1228. <Column id="opengnm" type="STRING"/>
  1229. <Column id="drrem" type="STRING"/>
  1230. <Column id="assgwardnm" type="STRING"/>
  1231. <Column id="assgroom" type="STRING"/>
  1232. <Column id="assgbed" type="STRING" size="0"/>
  1233. <Column id="assgbednm" type="STRING" size="0"/>
  1234. <Column id="inrsrvrem" type="STRING"/>
  1235. <Column id="mpphontel" type="STRING"/>
  1236. <Column id="patgrade" type="STRING"/>
  1237. <Column id="bedkind" type="STRING"/>
  1238. <Column id="inrsrvcnclresnnm" type="STRING"/>
  1239. <Column id="inrsrvcnclresnrem" type="STRING"/>
  1240. <Column id="inddtm" type="STRING" size="256"/>
  1241. </ColumnInfo>
  1242. </Dataset>
  1243. <Dataset id="ds_send_in_schedule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1244. <ColumnInfo>
  1245. <Column id="year" type="STRING" size="256"/>
  1246. <Column id="month" type="STRING" size="256"/>
  1247. <Column id="orddeptcd" type="STRING" size="256"/>
  1248. <Column id="orddrid" type="STRING" size="256"/>
  1249. <Column id="assgward" type="STRING" size="256"/>
  1250. <Column id="pid" type="STRING" size="256"/>
  1251. <Column id="hngnm" type="STRING" size="256"/>
  1252. <Column id="fromdd" type="STRING" size="256"/>
  1253. <Column id="todd" type="STRING" size="256"/>
  1254. <Column id="erreglyn" type="STRING" size="256"/>
  1255. <Column id="inflag" type="STRING" size="256"/>
  1256. <Column id="statflag" type="STRING" size="256"/>
  1257. <Column id="bedkind" type="STRING" size="256"/>
  1258. </ColumnInfo>
  1259. <Rows>
  1260. <Row/>
  1261. </Rows>
  1262. </Dataset>
  1263. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1264. <ColumnInfo>
  1265. <Column id="srchcond" type="STRING" size="256"/>
  1266. <Column id="pid" type="STRING" size="256"/>
  1267. <Column id="hngnm" type="STRING" size="256"/>
  1268. <Column id="rrgstno1" type="STRING" size="256"/>
  1269. <Column id="rrgstno2" type="STRING" size="256"/>
  1270. </ColumnInfo>
  1271. <Rows>
  1272. <Row>
  1273. <Col id="srchcond">1</Col>
  1274. </Row>
  1275. </Rows>
  1276. </Dataset>
  1277. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1278. <ColumnInfo>
  1279. <Column id="acptyn" type="STRING" size="256"/>
  1280. <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
  1281. <Column id="bindyn" type="STRING" size="256" sumtext="환자등록번호"/>
  1282. <Column id="hngnm" type="STRING" size="256" sumtext="한글이름"/>
  1283. <Column id="hngnm2" type="STRING" size="256" sumtext="표시이름"/>
  1284. <Column id="engnm" type="STRING" size="256" sumtext="영문이름"/>
  1285. <Column id="chinm" type="STRING" size="256" sumtext="영문이름"/>
  1286. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞6자리"/>
  1287. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒤7자리"/>
  1288. <Column id="rrgstno3" type="STRING" size="256" sumtext="주민번호뒤4자리와별표3자리"/>
  1289. <Column id="lastinsukind" type="STRING" size="256" sumtext="최근보험유형"/>
  1290. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  1291. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  1292. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  1293. <Column id="bindpid" type="STRING" size="256" sumtext="합본등록번호"/>
  1294. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  1295. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  1296. <Column id="etctel1" type="STRING" size="256" sumtext="기타전화번호1"/>
  1297. <Column id="etctel2" type="STRING" size="256" sumtext="기타전화번호2"/>
  1298. <Column id="smsaprvyn" type="STRING" size="256" sumtext="SMS전송 승인 여부"/>
  1299. <Column id="email" type="STRING" size="256" sumtext="이메일 게정"/>
  1300. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호 앞 3자리"/>
  1301. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호 뒤 3자리"/>
  1302. <Column id="zipcdseq" type="STRING" size="256" sumtext="우편일련번호"/>
  1303. <Column id="addr" type="STRING" size="256" sumtext="기본주소"/>
  1304. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  1305. <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
  1306. <Column id="rh" type="STRING" size="256" sumtext="RH혈액형"/>
  1307. <Column id="forgeryn" type="STRING" size="256" sumtext="외국인여부"/>
  1308. <Column id="nati" type="STRING" size="256" sumtext="국적"/>
  1309. <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
  1310. <Column id="recmyn" type="STRING" size="256" sumtext="추천여부"/>
  1311. <Column id="recmerid" type="STRING" size="256" sumtext="추천인ID"/>
  1312. <Column id="recmernm" type="STRING" size="256" sumtext="추천인명"/>
  1313. <Column id="recmerrela" type="STRING" size="256" sumtext="추천인과의 관계"/>
  1314. <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
  1315. <Column id="viprem" type="STRING" size="256" sumtext="VIP비고"/>
  1316. <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
  1317. <Column id="baptnm" type="STRING" size="256" sumtext="세례명"/>
  1318. <Column id="chchnm" type="STRING" size="256" sumtext="성당명"/>
  1319. <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
  1320. <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
  1321. <Column id="dethdd" type="STRING" size="256" sumtext="사망일자"/>
  1322. <Column id="dethtm" type="STRING" size="256" sumtext="사망시간"/>
  1323. <Column id="chosresn" type="STRING" size="256" sumtext="내원사유"/>
  1324. <Column id="animyn" type="STRING" size="256" sumtext="동물여부"/>
  1325. <Column id="exptresncd" type="STRING" size="256" sumtext="원외예외사유코드"/>
  1326. <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
  1327. <Column id="handicapryn" type="STRING" size="256" sumtext="장애인여부"/>
  1328. <Column id="pidflag" type="STRING" size="256" sumtext="등록번호구분"/>
  1329. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  1330. <Column id="ptunyn" type="STRING" size="256" sumtext="미수안내"/>
  1331. <Column id="lastorddd" type="STRING" size="256" sumtext="최근내원일"/>
  1332. <Column id="lastorddeptcd" type="STRING" size="256" sumtext="최근내원과"/>
  1333. <Column id="outuncoamt" type="STRING" size="256" sumtext="외래미수금"/>
  1334. <Column id="dschuncoamt" type="STRING" size="256" sumtext="입원미수금"/>
  1335. <Column id="kioskrcptnoyn" type="STRING" size="256" sumtext="무인수납불가여부"/>
  1336. <Column id="carnum" type="STRING" size="256" sumtext="차량번호"/>
  1337. <Column id="acptdd" type="STRING" size="256" sumtext="가예약 접수일자"/>
  1338. <Column id="acptno" type="STRING" size="256" sumtext="가예약 접수일련번호"/>
  1339. <Column id="patspcfyn" type="STRING" size="256" sumtext="특이환자여부"/>
  1340. <Column id="tdaydsch" type="STRING" size="256" sumtext="특이환자여부"/>
  1341. <Column id="mig" type="STRING" size="256" sumtext="마이그레이션여부"/>
  1342. <Column id="scanyn" type="STRING" size="256" sumtext="동의서출력여부"/>
  1343. <Column id="spifscanyn" type="STRING" size="256" sumtext="선택진료신청서스캔여부"/>
  1344. <Column id="isolinfo" type="STRING" size="256" sumtext="격리환자정보"/>
  1345. <Column id="builno" type="STRING" size="256" sumtext="도로명주소 코드"/>
  1346. </ColumnInfo>
  1347. </Dataset>
  1348. <Dataset id="ds_privatelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1349. <ColumnInfo>
  1350. <Column id="instcd" type="STRING" size="256"/>
  1351. <Column id="gubuncd" type="STRING" size="256"/>
  1352. <Column id="subgubuncd" type="STRING" size="256"/>
  1353. <Column id="contentscd" type="STRING" size="256"/>
  1354. <Column id="contentsnm" type="STRING" size="256"/>
  1355. <Column id="viewingtime" type="STRING" size="256"/>
  1356. <Column id="privatehospcd" type="STRING" size="256"/>
  1357. <Column id="regdt" type="STRING" size="256"/>
  1358. <Column id="updatedt" type="STRING" size="256"/>
  1359. </ColumnInfo>
  1360. </Dataset>
  1361. <Dataset id="ds_addresult" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1362. <Dataset id="ds_addfaillist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1363. <Dataset id="ds_privatelist_del" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1364. <ColumnInfo>
  1365. <Column id="instcd" type="STRING" size="256"/>
  1366. <Column id="gubuncd" type="STRING" size="256"/>
  1367. <Column id="subgubuncd" type="STRING" size="256"/>
  1368. <Column id="contentscd" type="STRING" size="256"/>
  1369. <Column id="contentsnm" type="STRING" size="256"/>
  1370. <Column id="viewingtime" type="STRING" size="256"/>
  1371. <Column id="privatehospcd" type="STRING" size="256"/>
  1372. <Column id="regdt" type="STRING" size="256"/>
  1373. <Column id="updatedt" type="STRING" size="256"/>
  1374. </ColumnInfo>
  1375. </Dataset>
  1376. <Dataset id="ds_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1377. <ColumnInfo>
  1378. <Column id="instcd" type="STRING" size="256"/>
  1379. <Column id="gubuncd" type="STRING" size="256"/>
  1380. <Column id="subgubuncd" type="STRING" size="256"/>
  1381. <Column id="contentscd" type="STRING" size="256"/>
  1382. <Column id="contentsnm" type="STRING" size="256"/>
  1383. <Column id="viewingtime" type="STRING" size="256"/>
  1384. <Column id="privatehospcd" type="STRING" size="256"/>
  1385. <Column id="regdt" type="STRING" size="256"/>
  1386. <Column id="updatedt" type="STRING" size="256"/>
  1387. </ColumnInfo>
  1388. </Dataset>
  1389. <Dataset id="ds_deptlist_del" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1390. <ColumnInfo>
  1391. <Column id="instcd" type="STRING" size="256"/>
  1392. <Column id="gubuncd" type="STRING" size="256"/>
  1393. <Column id="subgubuncd" type="STRING" size="256"/>
  1394. <Column id="contentscd" type="STRING" size="256"/>
  1395. <Column id="contentsnm" type="STRING" size="256"/>
  1396. <Column id="viewingtime" type="STRING" size="256"/>
  1397. <Column id="privatehospcd" type="STRING" size="256"/>
  1398. <Column id="regdt" type="STRING" size="256"/>
  1399. <Column id="updatedt" type="STRING" size="256"/>
  1400. </ColumnInfo>
  1401. </Dataset>
  1402. <Dataset id="ds_hichartsavelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1403. <ColumnInfo>
  1404. <Column id="contentscd" type="STRING" size="256"/>
  1405. <Column id="contentsnm" type="STRING" size="256"/>
  1406. <Column id="viewingtime" type="STRING" size="256"/>
  1407. <Column id="privatehospcd" type="STRING" size="256"/>
  1408. </ColumnInfo>
  1409. </Dataset>
  1410. <Dataset id="ds_search_single" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1411. <ColumnInfo>
  1412. <Column id="gubuncd" type="STRING" size="256"/>
  1413. <Column id="subgubuncd" type="STRING" size="256"/>
  1414. <Column id="contentscd" type="STRING" size="256"/>
  1415. <Column id="contentsnm" type="STRING" size="256"/>
  1416. <Column id="privatehosp" type="STRING" size="256"/>
  1417. </ColumnInfo>
  1418. <Rows>
  1419. <Row/>
  1420. </Rows>
  1421. </Dataset>
  1422. <Dataset id="ds_hichartlist_single" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1423. <ColumnInfo>
  1424. <Column id="instcd" type="STRING" size="256"/>
  1425. <Column id="gubuncd" type="STRING" size="256"/>
  1426. <Column id="subgubuncd" type="STRING" size="256"/>
  1427. <Column id="contentscd" type="STRING" size="256"/>
  1428. <Column id="contentsnm" type="STRING" size="256"/>
  1429. <Column id="viewingtime" type="STRING" size="256"/>
  1430. <Column id="privatehospcd" type="STRING" size="256"/>
  1431. <Column id="regdt" type="STRING" size="256"/>
  1432. <Column id="updatedt" type="STRING" size="256"/>
  1433. </ColumnInfo>
  1434. </Dataset>
  1435. <Dataset id="ds_sortlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  1436. <Dataset id="ds_examlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1437. <ColumnInfo>
  1438. <Column id="acptyn" type="STRING" size="256" sumtext="선택"/>
  1439. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  1440. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  1441. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
  1442. <Column id="rsrvno" type="STRING" size="256" sumtext="예약번호"/>
  1443. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  1444. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  1445. <Column id="cmpynm" type="STRING" size="256" sumtext="사업체명"/>
  1446. <Column id="hopedd" type="STRING" size="256" sumtext="예약일자(건진)"/>
  1447. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
  1448. <Column id="statflag" type="STRING" size="256" sumtext="예약상태"/>
  1449. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  1450. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세분류"/>
  1451. <Column id="pkgnm" type="STRING" size="256" sumtext="패키지명"/>
  1452. <Column id="pkgcd" type="STRING" size="256" sumtext="패키지코드"/>
  1453. <Column id="telno" type="STRING" size="256" sumtext="전화번호"/>
  1454. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰번호"/>
  1455. <Column id="rgstno" type="STRING" size="256" sumtext="주민번호"/>
  1456. <Column id="choiflag" type="STRING" size="256" sumtext="위검사"/>
  1457. <Column id="testcd" type="STRING" size="256" sumtext="선택추가검사코드"/>
  1458. <Column id="testnm" type="STRING" size="256" sumtext="선택추가검사명"/>
  1459. </ColumnInfo>
  1460. </Dataset>
  1461. <Dataset id="ds_A0116" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1462. <ColumnInfo>
  1463. <Column id="cdid" type="STRING" size="256"/>
  1464. <Column id="cdnm" type="STRING" size="256"/>
  1465. </ColumnInfo>
  1466. </Dataset>
  1467. <Dataset id="ds_send_exam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1468. <ColumnInfo>
  1469. <Column id="hopedd" type="STRING" size="256" sumtext="예약일자"/>
  1470. </ColumnInfo>
  1471. <Rows>
  1472. <Row/>
  1473. </Rows>
  1474. </Dataset>
  1475. </Objects>
  1476. <Bind>
  1477. <BindItem id="item4" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cal_workdd" propid="value" datasetid="ds_send_in" columnid="orddd"/>
  1478. <BindItem id="item5" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmb_ward" propid="value" datasetid="ds_send_in" columnid="wardcd"/>
  1479. <BindItem id="item6" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmd_dept" propid="value" datasetid="ds_send_in" columnid="orddeptcd"/>
  1480. <BindItem id="item7" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmd_orddr" propid="value" datasetid="ds_send_in" columnid="orddrid"/>
  1481. <BindItem id="item8" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cal_orddd" propid="value" datasetid="ds_send_out" columnid="orddd"/>
  1482. <BindItem id="item9" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cmb_dept" propid="value" datasetid="ds_send_out" columnid="orddeptcd"/>
  1483. <BindItem id="item10" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cmb_orddr" propid="value" datasetid="ds_send_out" columnid="orddrid"/>
  1484. <BindItem id="item11" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.Radio00" propid="value" datasetid="ds_send_out" columnid="prcpspecflag"/>
  1485. <BindItem id="item12" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.Radio01" propid="value" datasetid="ds_send_out" columnid="ampmflag"/>
  1486. <BindItem id="item1" compid="tabMain.tab_search.div_search.edt_contentscd" propid="value" datasetid="ds_search" columnid="contentscd"/>
  1487. <BindItem id="item0" compid="tabMain.tab_search.div_search.edt_contentsnm" propid="value" datasetid="ds_search" columnid="contentsnm"/>
  1488. <BindItem id="item2" compid="tabMain.tab_search.div_search.cmb_sup" propid="value" datasetid="ds_search" columnid="gubuncd"/>
  1489. <BindItem id="item3" compid="tabMain.tab_search.div_search.cmb_sub" propid="value" datasetid="ds_search" columnid="subgubuncd"/>
  1490. <BindItem id="item13" compid="tabMain.tab_search.div_search.chk_privatehosp" propid="value" datasetid="ds_search" columnid="privatehosp"/>
  1491. <BindItem id="item14" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_pid" propid="value" datasetid="ds_send_search" columnid="pid"/>
  1492. <BindItem id="item15" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.rdo_searchcond" propid="value" datasetid="ds_send_search" columnid="srchcond"/>
  1493. <BindItem id="item16" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_rrgstno1" propid="value" datasetid="ds_send_search" columnid="rrgstno1"/>
  1494. <BindItem id="item17" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_rrgstno2" propid="value" datasetid="ds_send_search" columnid="rrgstno2"/>
  1495. <BindItem id="item18" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
  1496. <BindItem id="item19" compid="div_patinfo.div_patlist.tabPatList.tab_exam.div_search_exam.cal_hopedd" propid="value" datasetid="ds_send_exam" columnid="hopedd"/>
  1497. </Bind>
  1498. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  1499. include "com_departmentcodexp::ZSD001.xjs";
  1500. include "emr_prcpmngtxp::MMOCommon.xjs";
  1501. var sSelectedContentsCD = "";
  1502. var sSelectedPrivateHospCD = "";
  1503. var CURR_ROW = "";
  1504. function SPZMH00100_oninit(obj:Form, e:InitEventInfo)
  1505. {
  1506. frmf_initForm(obj);
  1507. obj.parent.style.background = "white";
  1508. // 개인목록
  1509. grdf_initGrid(tabMain.tab_private.grd_hichartlist);
  1510. // 과별목록
  1511. grdf_initGrid(tabMain.tab_dept.grd_hichartlist);
  1512. // 검색
  1513. grdf_initGrid(tabMain.tab_search.grd_hichartlist);
  1514. // 발송이력 (환자)
  1515. grdf_initGrid(tabMain.tab_history.grd_sendhistory);
  1516. // 발송이력 (사용자)
  1517. //grdf_initGrid(tabMain.tab_history.grd_sendhistory_internal);
  1518. // 환자리스트 (기본)
  1519. grdf_initGrid(div_patinfo.div_patlist.tabPatList.tab_sendlist.grd_sendlist);
  1520. // 환자리스트 (외래)
  1521. grdf_initGrid(div_patinfo.div_patlist.tabPatList.tab_out.grd_patlist_out);
  1522. // 환자리스트 (입원)
  1523. grdf_initGrid(div_patinfo.div_patlist.tabPatList.tab_in.grd_patlist_in);
  1524. grdf_initGrid(div_patinfo.div_patlist.tabPatList.tab_in.grd_patlist_insche); // 입원예정자 리스트
  1525. // 환자리스트 (검색)
  1526. grdf_initGrid(div_patinfo.div_patlist.tabPatList.tab_search.grd_pat_search);
  1527. // 환자리스트 (건진)
  1528. grdf_initGrid(div_patinfo.div_patlist.tabPatList.tab_exam.grd_exam_list);
  1529. }
  1530. function SPZMH00100_onload(obj:Form, e:LoadEventInfo)
  1531. {
  1532. var curDate = utlf_getCurrentDateTime();
  1533. tabMain.removeTabpage(4); // 묶음 처방 개발 되면 제거
  1534. grdf_setToolTipBind(tabMain.tab_private.grd_hichartlist);
  1535. grdf_setToolTipBind(tabMain.tab_dept.grd_hichartlist);
  1536. grdf_setToolTipBind(tabMain.tab_search.grd_hichartlist);
  1537. grdf_setToolTipBind(tabMain.tab_history.grd_sendhistory);
  1538. grdf_setToolTipBind(tabMain.tab_history.grd_sendhistory_internal);
  1539. grdf_setToolTipBind(div_patinfo.div_patlist.tabPatList.tab_sendlist.grd_sendlist);
  1540. grdf_setToolTipBind(div_patinfo.div_patlist.tabPatList.tab_out.grd_patlist_out);
  1541. grdf_setToolTipBind(div_patinfo.div_patlist.tabPatList.tab_in.grd_patlist_in);
  1542. grdf_setToolTipBind(div_patinfo.div_patlist.tabPatList.tab_in.grd_patlist_insche);
  1543. grdf_setToolTipBind(div_patinfo.div_patlist.tabPatList.tab_search.grd_pat_search);
  1544. // 과별목록 권한별 활성화 설정 (부장, 과장, 팀장, 의사(교수), 수간호사, 의료정보과는 가능)
  1545. var userid = sysf_getUserId();
  1546. var jobkindcd = sysf_getUserInfo("jobkindcd");
  1547. var jobposnm = sysf_getUserInfo("jobposnm");
  1548. var dutplcecd = sysf_getUserInfo("dutplcecd");
  1549. var bEnableAddDept = false;
  1550. if(!utlf_isNull(jobposnm)) {
  1551. if(jobposnm.indexOf("실장") > -1 || jobposnm.indexOf("센터장") > -1
  1552. || jobposnm.indexOf("부장") > -1 || jobposnm.indexOf("과장") > -1 || jobposnm.indexOf("팀장") > -1
  1553. || jobposnm == "교수" || jobposnm == "수간호사") {
  1554. bEnableAddDept = true;
  1555. }
  1556. }
  1557. if(dutplcecd == "4130100000" || dutplcecd == "4130116000"
  1558. || dutplcecd == "3320100000" // 칠곡 의료질관리팀
  1559. || userid == "ENR" || userid == "EMR" || userid == "PAM" || userid == "COM" || userid == "AST" || userid == "LIS") {
  1560. bEnableAddDept = true;
  1561. btn_contents_add.visible = true; // 컨텐츠 추가 화면 팝업
  1562. }
  1563. btn_add_dept_all.enable = bEnableAddDept;
  1564. div_thumbnail.btn_add_dept.enable = bEnableAddDept;
  1565. div_thumbnail.btn_del_dept.enable = bEnableAddDept;
  1566. ds_sender.setColumn(0, "hospnm", sysf_getUserInfo("dutplceinstnm"));
  1567. ds_sender.setColumn(0, "deptnm", sysf_getUserInfo("dutplcenm"));
  1568. ds_sender.setColumn(0, "sendernm", sysf_getUserName());
  1569. // 처방 발행 후 자동 창 닫기 설정
  1570. var hiChartAutoCloseYN = application.getPrivateProfile("gv_HiChartAutoClose");
  1571. if(utlf_isNull(hiChartAutoCloseYN)) {
  1572. application.setPrivateProfile("gv_HiChartAutoClose", "N");
  1573. hiChartAutoCloseYN = "N";
  1574. }
  1575. chk_autoclose.value = hiChartAutoCloseYN;
  1576. // 설명처방 대분류 코드 조회
  1577. appf_getCodeList([{dsNm: "ds_M0770", cdGrpId: "M0770", sortField: "dispseq", sortMehotd: "asc"}]);
  1578. fGetCategoryInfo();
  1579. // 부서코드 조회 (발송이력)
  1580. var oParam = {};
  1581. oParam.id = "TRZMH00000";
  1582. oParam.service = "hichartapp.HiChart";
  1583. oParam.method = "reqGetHiChartDeptInfo";
  1584. oParam.outds = "ds_orddept=deptinfo";
  1585. oParam.async = true;
  1586. tranf_submit(oParam);
  1587. this.setTimer(0, 10);
  1588. // 개인목록 조회
  1589. fGetHiChartPrivateContents();
  1590. // 발송이력 날짜 초기화
  1591. tabMain.tab_history.div_search.cp_monthCal.setIsNull();
  1592. tabMain.tab_history.div_search.cp_monthCal.setData("");
  1593. // 설명처방 전용 모드 일 때는 환자 검색 기능, 상단 환자 정보 표시 기능 제거
  1594. var isSingle = false;
  1595. try {
  1596. isSingle = (gv_isSingleYN == "Y");
  1597. } catch(e) {}
  1598. if(isSingle) {
  1599. div_patinfo.div_patlist.tabPatList.removeTabpage(3);
  1600. div_patinfo.div_patlist.tabPatList.removeTabpage(2);
  1601. div_patinfo.div_patlist.tabPatList.removeTabpage(1);
  1602. Grid01.visible = false;
  1603. btn_pat_clear.visible = false;
  1604. }
  1605. // 위검사 코드 조회
  1606. appf_getCodeList([{dsNm: "ds_A0116", cdGrpId: "A0116", sortField: "dispseq", sortMehotd: "asc"}]);
  1607. }
  1608. function SPZMH00100_ontimer(obj:Form, e:TimerEventInfo)
  1609. {
  1610. if(e.timerid == 0) { // 환자 데이터 조회
  1611. killTimer(e.timerid);
  1612. fInitPatInfo();
  1613. } else if(e.timerid == 1) { // 영상보기 버튼 눌렀을 때 이미지 회전 처리
  1614. killTimer(e.timerid);
  1615. div_thumbnail.btn_play.text = "이미지보기";
  1616. div_thumbnail.btn_play.position.width = 77;
  1617. div_thumbnail.div_video.visible = true;
  1618. var objImg = div_thumbnail.div_video.wb_contentsplay.saveToImageObject();
  1619. div_thumbnail.iv_video.image = "";
  1620. div_thumbnail.iv_video.image = objImg;
  1621. div_thumbnail.iv_thumbnail.visible = false;
  1622. div_thumbnail.iv_video.visible = true;
  1623. div_thumbnail.div_video.visible = false;
  1624. setTimer(3, 500);
  1625. } else if(e.timerid == 2) {
  1626. div_patinfo.div_patlist.btn_highlight.visible = !div_patinfo.div_patlist.btn_highlight.visible;
  1627. } else if(e.timerid == 3) { // 영상보기 버튼 눌렀을 때 마지막 처리
  1628. killTimer(e.timerid);
  1629. div_thumbnail.div_video.visible = true;
  1630. div_thumbnail.iv_video.image = "";
  1631. isSwitching = false;
  1632. } else if(e.timerid == 4) { // 그리드에서 셀 클릭할때 썸네일보기로 전환
  1633. killTimer(e.timerid);
  1634. fViewThumbnail();
  1635. if(sOpenState != "C") {
  1636. sOpenState = "H";
  1637. div_patinfo.btn_close.click();
  1638. }
  1639. }
  1640. }
  1641. function fGetHiChartPrivateContents(isTabClick) {
  1642. var oParam = {};
  1643. oParam.id = "TRZMH00401";
  1644. oParam.service = "hichartapp.HiChart";
  1645. oParam.method = "reqGetPrivateList";
  1646. oParam.outds = "ds_privatelist=result";
  1647. oParam.async = (isTabClick) ? true : false; // 최초 실행시에는 동기, 탭 클릭시에는 비동기
  1648. oParam.callback = (isTabClick) ? "cf_TRZMH00401_1" : "cf_TRZMH00401";
  1649. tranf_submit(oParam);
  1650. }
  1651. function cf_TRZMH00401(sSvcId, nErrorCode, sErrorMsg) {
  1652. if(nErrorCode < 0) return;
  1653. ds_privatelist.rowposition = -1;
  1654. // 최초 실행시 개인목록이 없으면 검색탭이 바로 열리도록 함
  1655. if(ds_privatelist.rowcount < 1) {
  1656. tabMain.tabindex = 3;
  1657. }
  1658. }
  1659. function cf_TRZMH00401_1(sSvcId, nErrorCode, sErrorMsg) {
  1660. if(nErrorCode < 0) return;
  1661. ds_privatelist.rowposition = -1;
  1662. }
  1663. function fGetHiChartDeptContents() {
  1664. var oParam = {};
  1665. oParam.id = "TRZMH00601";
  1666. oParam.service = "hichartapp.HiChart";
  1667. oParam.method = "reqGetDeptList";
  1668. oParam.outds = "ds_deptlist=result";
  1669. oParam.async = true;
  1670. oParam.callback = "cf_TRZMH00601";
  1671. tranf_submit(oParam);
  1672. }
  1673. function cf_TRZMH00601(sSvcId, nErrorCode, sErrorMsg) {
  1674. if(nErrorCode < 0) return;
  1675. ds_deptlist.rowposition = -1;
  1676. }
  1677. function fGetHiChartNewContents() {
  1678. var oParam = {};
  1679. oParam.id = "TRZMH00500";
  1680. oParam.service = "hichartapp.HichartListMngt";
  1681. oParam.method = "reqGetHichartNewList";
  1682. oParam.outds = "ds_hichartnewlist=result";
  1683. oParam.async = true;
  1684. oParam.callback = "cf_TRZMH00500";
  1685. tranf_submit(oParam);
  1686. }
  1687. function cf_TRZMH00500(sSvcId, nErrorCode, sErrorMsg) {
  1688. if(nErrorCode < 0) return;
  1689. ds_hichartnewlist.rowposition = -1;
  1690. }
  1691. function grd_hichartlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  1692. {
  1693. if(isSwitching || e.row < 0 || e.col < 0) return;
  1694. var oDs = this.objects[obj.binddataset];
  1695. var edittype = obj.getCellProperty("body", e.cell, "edittype");
  1696. // 처방 버튼 누를 때는 처리 안함
  1697. if(edittype == "button") return;
  1698. // 트리 버튼 누를 때는 처리 안함
  1699. if(edittype == "tree" && e.clickitem == "treebutton") return;
  1700. // 발송이력 사용자 조회 리스트에선 트리 구조이며 contentscd가 '->' 인건 처리 안함
  1701. if(oDs.name == "ds_result_hichart_sendhistory_internal") {
  1702. if(oDs.getColumn(e.row, "contentscd") == "->") return;
  1703. }
  1704. div_thumbnail.iv_thumbnail.resampling = true;
  1705. div_thumbnail.iv_thumbnail.stretch = "fixaspectratio";
  1706. var contentscd = oDs.getColumn(e.row, "contentscd");
  1707. var thumUrl = "";
  1708. try {
  1709. thumUrl = appf_getHiChartContentsURL(contentscd);
  1710. } catch(e) {
  1711. }
  1712. if(!utlf_isNull(thumUrl)) {
  1713. div_thumbnail.iv_thumbnail.image = thumUrl;
  1714. } else {
  1715. try {
  1716. // 기본적으로 jpg 이미지이나 종종 png 파일이 있음
  1717. var path = "";
  1718. if(oDs.getColumn(e.row, "privatehospcd") == "Y") {
  1719. if(oDs.getColumn(e.row, "instcd") == "032") {
  1720. path = "T00039998";
  1721. } else {
  1722. path = "T00000018";
  1723. }
  1724. } else {
  1725. path = "T00000000";
  1726. }
  1727. var fordernm = contentscd.substr(0, 1);
  1728. if(fordernm == "g" || fordernm == "l") fordernm = "z";
  1729. path = path + "/Thum/" + fordernm + "/";
  1730. var imageUrl = "URL('https://hichart.knuh.kr/Uploads/VODHospital/" + path + contentscd + ".jpg')";
  1731. var imgObj = new Image();
  1732. imgObj.loadImage(imageUrl);
  1733. if(imgObj.height > 0){
  1734. div_thumbnail.iv_thumbnail.image = imageUrl;
  1735. } else {
  1736. imageUrl = "URL('https://hichart.knuh.kr/Uploads/VODHospital/" + path + contentscd + ".png')";
  1737. imgObj.loadImage(imageUrl);
  1738. if(imgObj.height > 0){
  1739. div_thumbnail.iv_thumbnail.image = imageUrl;
  1740. } else {
  1741. imageUrl = "URL('https://hichart.knuh.kr/Uploads/VODThum/" + contentscd + ".jpg')";
  1742. imgObj.loadImage(imageUrl);
  1743. if(imgObj.height > 0){
  1744. div_thumbnail.iv_thumbnail.image = imageUrl;
  1745. }else{
  1746. imageUrl = "URL('https://hichart.knuh.kr/Uploads/VODThum/" + contentscd + ".png')";
  1747. div_thumbnail.iv_thumbnail.image = imageUrl;
  1748. }
  1749. }
  1750. }
  1751. trace("imageUrl : " + imageUrl);
  1752. } catch(e) {
  1753. }
  1754. }
  1755. div_thumbnail.stt_title.text = oDs.getColumn(e.row, "contentsnm");
  1756. div_thumbnail.medt_time.value = oDs.getColumn(e.row, "viewingtime");
  1757. sSelectedContentsCD = contentscd;
  1758. // 발송이력 테이블에는 privatehospcd 정보가 없기 때문에 실시간으로 콘텐츠리스트 테이블에서 정보를 조회하여 사용한다.
  1759. if(utlf_isNull(oDs.getColumnInfo("privatehospcd")) || utlf_isNull(oDs.getColumn(e.row, "privatehospcd"))) {
  1760. oDs.addColumn("privatehospcd", "string");
  1761. ds_search_single.setColumn(0, "contentscd", contentscd);
  1762. var oParam = {};
  1763. oParam.id = "TRZMH00100";
  1764. oParam.service = "hichartapp.HichartListMngt";
  1765. oParam.method = "reqGetHichartList";
  1766. oParam.inds = "req=ds_search_single";
  1767. oParam.outds = "ds_hichartlist_single=result";
  1768. oParam.async = false;
  1769. tranf_submit(oParam);
  1770. oDs.setColumn(e.row, "privatehospcd", ds_hichartlist_single.getColumn(0, "privatehospcd"));
  1771. }
  1772. sSelectedPrivateHospCD = oDs.getColumn(e.row, "privatehospcd");
  1773. div_thumbnail.stt_title_default.visible = false;
  1774. if(oDs.name == "ds_privatelist") {
  1775. div_thumbnail.btn_add_private.visible = false;
  1776. div_thumbnail.btn_del_private.visible = true;
  1777. div_thumbnail.btn_add_dept.visible = false;
  1778. div_thumbnail.btn_del_dept.visible = false;
  1779. } else if(oDs.name == "ds_deptlist") {
  1780. div_thumbnail.btn_add_private.visible = false;
  1781. div_thumbnail.btn_del_private.visible = false;
  1782. div_thumbnail.btn_add_dept.visible = false;
  1783. div_thumbnail.btn_del_dept.visible = true;
  1784. } else {
  1785. div_thumbnail.btn_add_private.visible = true;
  1786. div_thumbnail.btn_del_private.visible = false;
  1787. div_thumbnail.btn_add_dept.visible = true;
  1788. div_thumbnail.btn_del_dept.visible = false;
  1789. }
  1790. setTimer(4, 100); // 썸네일 처리
  1791. }
  1792. function div_video_wb_contentsplay_onloadcompleted(obj:WebBrowser, e:WebLoadCompEventInfo)
  1793. {
  1794. if(utlf_isNull(sSelectedContentsCD) || e.url == "about:blank") {
  1795. isSwitching = false;
  1796. return;
  1797. }
  1798. var objDom = obj.document.body;
  1799. objDom.style.border = 0; //border 안보이게 처리
  1800. objDom.scroll = "auto"; //scrollbar는 필요할 때만 나오도록
  1801. // 전환 애니메이션을 부드럽게 하기 위해 타이머 사용
  1802. setTimer(1, 500);
  1803. }
  1804. function fPlay() {
  1805. if(utlf_isNull(sSelectedContentsCD)) {
  1806. isSwitching = false;
  1807. return;
  1808. }
  1809. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  1810. var ykiho = (dutplceinstcd == "032") ? "37100467" : "37100017";
  1811. var key = (dutplceinstcd == "032") ? "e285dd1eb61d4949b8bde02a936d9cf8" : "1b9bed0d8cd9439d88aa8dc273f30551";
  1812. div_thumbnail.div_video.wb_contentsplay.url = "https://hichart.knuh.kr/controls/mhiView/Popupview3.aspx?"
  1813. + "e=" + ykiho + "&v=" + sSelectedContentsCD + "&mm=384&mi=312&mode=1&loop=OFF&key=" + key;
  1814. }
  1815. function tabMain_tab_search_div_search_edt_contentsnm_onkeydown(obj:Edit, e:KeyEventInfo)
  1816. {
  1817. if(e.keycode == 13) {
  1818. obj.updateToDataset();
  1819. obj.parent.btn_search.click();
  1820. }
  1821. }
  1822. function tabMain_tab_search_div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1823. {
  1824. var oParam = {};
  1825. oParam.id = "TRZMH00100";
  1826. oParam.service = "hichartapp.HichartListMngt";
  1827. oParam.method = "reqGetHichartList";
  1828. oParam.inds = "req=ds_search";
  1829. oParam.outds = "ds_hichartlist=result";
  1830. oParam.async = true;
  1831. oParam.callback = "cf_TRZMH00100";
  1832. tranf_submit(oParam);
  1833. }
  1834. function cf_TRZMH00100(sSvcId, nErrorCode, sErrorMsg) {
  1835. if(nErrorCode < 0) return;
  1836. ds_hichartlist.rowposition = -1;
  1837. }
  1838. var isSwitching = false;
  1839. function div_thumbnail_btn_play_onclick(obj:Button, e:ClickEventInfo)
  1840. {
  1841. if(isSwitching) return;
  1842. isSwitching = true;
  1843. if(obj.text == "영상보기") {
  1844. fPlay();
  1845. } else { // 이미지보기
  1846. fViewThumbnail();
  1847. }
  1848. }
  1849. function div_thumbnail_btn_play_popup_onclick(obj:Button, e:ClickEventInfo)
  1850. {
  1851. }
  1852. function grd_hichartlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1853. {
  1854. if(e.row < 0 || e.col < 0) return;
  1855. var oDs = this.objects[obj.binddataset];
  1856. if((e.col == 3 && oDs.name != "ds_hichartnewlist") || e.col == 4) {
  1857. // 이미 등록되어 있는지 체크
  1858. var oDs = this.objects[obj.binddataset];
  1859. if(ds_hichartsendlist.findRow("contentscd", oDs.getColumn(e.row, "contentscd")) >= 0) {
  1860. sysf_messageBox("이미 설명처방 목록에 등록된 콘텐츠 입니다.", "E");
  1861. return;
  1862. }
  1863. var row = ds_hichartsendlist.addRow();
  1864. ds_hichartsendlist.copyRow(row, oDs, e.row);
  1865. }
  1866. }
  1867. function grd_sendlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  1868. {
  1869. if(e.col == 3) {
  1870. ds_hichartsendlist.deleteRow(e.row);
  1871. }
  1872. }
  1873. function fGetCategoryInfo() {
  1874. var oParam = {};
  1875. oParam.id = "TRZMH00200";
  1876. oParam.service = "hichartapp.HiChart";
  1877. oParam.method = "reqGetHiChartCategoryInfo";
  1878. oParam.outds = "ds_M0771=categoryinfo";
  1879. oParam.async = true;
  1880. oParam.callback = "cf_TRZMH00200";
  1881. tranf_submit(oParam);
  1882. }
  1883. function cf_TRZMH00200(sSvcId, nErrorCode, sErrorMsg) {
  1884. if(nErrorCode < 0) return;
  1885. frmf_addComboItem("tabMain.tab_search.div_search.cmb_sup", "전체", "");
  1886. ds_M0771.insertRow(0);
  1887. ds_M0771.setColumn(0, "cdid", "");
  1888. ds_M0771.setColumn(0, "cdnm", "성격에 맞는 카테고리를 선택해주세요.");
  1889. ds_M0771.setColumn(0, "supcd", "");
  1890. ds_M0771.setColumn(0, "dispallnm", "성격에 맞는 카테고리를 선택해주세요.");
  1891. ds_M0771.applyChange();
  1892. tabMain.tab_search.div_search.cmb_sup.index = 0;
  1893. tabMain.tab_search.div_search.cmb_sub.index = 0;
  1894. }
  1895. function tabMain_tab_search_div_search_cmb_sup_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1896. {
  1897. // 전체 선택시 표시 이름 다르게
  1898. if(e.postindex == 0) {
  1899. tabMain.tab_search.div_search.cmb_sub.datacolumn = "dispallnm";
  1900. ds_M0771.filter("");
  1901. } else {
  1902. tabMain.tab_search.div_search.cmb_sub.datacolumn = "cdnm";
  1903. ds_M0771.filter("cdid == '' || supcd == " + obj.value);
  1904. tabMain.tab_search.div_search.cmb_sub.index = 0;
  1905. }
  1906. }
  1907. function chk_autoclose_onclick(obj:CheckBox, e:ClickEventInfo)
  1908. {
  1909. application.setPrivateProfile("gv_HiChartAutoClose", obj.value);
  1910. }
  1911. function btn_send_onclick(obj:Button, e:ClickEventInfo)
  1912. {
  1913. if(ds_hichartsendlist.rowcount == 0) {
  1914. sysf_messageBox("설명처방 목록이 비어 있습니다.\n\n확인해주세요.", "E");
  1915. return;
  1916. }
  1917. if(ds_pat_sendlist.rowcount == 0 || (ds_pat_sendlist.findRow("acptyn", 1) < 0 && ds_pat_sendlist.findRow("acptyn", true) < 0)) {
  1918. sysf_messageBox("체크된 수신자가 없습니다.\n\n확인해주세요.", "E");
  1919. return;
  1920. }
  1921. var vodlist = "";
  1922. var receiverlist = "";
  1923. // vod 리스트
  1924. for(var i = 0; i < ds_hichartsendlist.rowcount; i++) {
  1925. var vodcd = ds_hichartsendlist.getColumn(i, "contentscd");
  1926. var separator = (i == 0) ? "" : ",";
  1927. vodlist = vodlist + separator + vodcd;
  1928. }
  1929. // 예약시간 셋팅
  1930. var reservetime = "";
  1931. if(chk_reservation.value == "Y") {
  1932. var sDay = cal_reservedate.text;
  1933. var sTime = (mk_time.text).getTrim();
  1934. if(!utlf_isNull(sDay) && (!utlf_isNull(sTime) && sTime != ":")) {
  1935. var day = sDay.split(" ")[0];
  1936. reservetime = day + " " + sTime;
  1937. } else {
  1938. sysf_messageBox("예약 날짜 형식이 맞지 않습니다.\n\n확인해주세요.", "E");
  1939. }
  1940. }
  1941. ds_pat_sendlist.enableevent = false;
  1942. for(var i = 0; i < ds_pat_sendlist.rowcount; i++) {
  1943. var acptyn = ds_pat_sendlist.getColumn(i, "acptyn");
  1944. // 성공여부 초기화
  1945. ds_pat_sendlist.setColumn(i, "success", "");
  1946. if((acptyn == 1) || (acptyn == true)) {
  1947. // 폰번호 숫자만 추출('-' 제거)
  1948. var mpphone = utlf_getNumberFromString(ds_pat_sendlist.getColumn(i, "mpphone"));
  1949. appf_sendHiChartLMS(vodlist, mpphone, ds_pat_sendlist.getColumn(i, "pid"), edt_comment.text, "cf_hichart_API", i, reservetime);
  1950. }
  1951. }
  1952. ds_pat_sendlist.enableevent = true;
  1953. var successCnt = ds_pat_sendlist.getCaseCount("success == '성공'");
  1954. var failCnt = ds_pat_sendlist.getCaseCount("success == '실패'");
  1955. var resrvCnt = ds_pat_sendlist.getCaseCount("success == '예약'");
  1956. sysf_messageBox("설명처방을 전송하였습니다.\n\n성공 : " + successCnt + "건, 실패 : " + failCnt + "건, 예약 : " + resrvCnt + "건", "I999");
  1957. // 처방 발행 후 자동 닫기 체크 되어 있으면 창 종료
  1958. if(chk_autoclose.value == "Y") {
  1959. this.close();
  1960. }
  1961. }
  1962. function cf_hichart_API(sSvcId, nErrorCode, sErrorMsg) {
  1963. if(nErrorCode < 0) return;
  1964. var status = ds_result_hichart.getColumn(0, "status");
  1965. var rowpos = ds_result_hichart.getColumn(0, "rowpos");
  1966. if(rowpos != -1)
  1967. ds_pat_sendlist.setColumn(rowpos, "success", status);
  1968. }
  1969. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  1970. {
  1971. ds_hichartsendlist.clearData();
  1972. }
  1973. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  1974. {
  1975. this.close();
  1976. }
  1977. var sOpenState = "C"; // O : open, H : half open, C : close
  1978. function div_patinfo_btn_patinfo_onclick(obj:Button, e:ClickEventInfo)
  1979. {
  1980. var rightPos = this.position.right - 35;
  1981. if(sOpenState == "C") {
  1982. pa_patinfo_move.stop();
  1983. pa_patinfo_move.fromvalue = div_patinfo.position.x;
  1984. pa_patinfo_move.tovalue = rightPos - 533;
  1985. pa_patinfo_move.run();
  1986. // 확대 보기 버튼 위치 조정
  1987. div_patinfo.btn_close_light.position.x = div_patinfo.position.width - 410;
  1988. this.parent.style.background = "white";
  1989. div_dim.position.x = 1024;
  1990. div_dim.visible = false;
  1991. // 환자리스트 버튼 클릭 시 동영상 재생 중이라면 리스트가 위로 올라오도록 썸네일로 변경해준다.
  1992. fViewThumbnail();
  1993. sOpenState = "H";
  1994. } else if(sOpenState == "O" || sOpenState == "H") {
  1995. pa_patinfo_move.stop();
  1996. pa_patinfo_move.fromvalue = div_patinfo.position.x;
  1997. pa_patinfo_move.tovalue = rightPos - 20;
  1998. pa_patinfo_move.run();
  1999. // 확대 보기 버튼 위치 조정
  2000. div_patinfo.btn_close_light.position.x = div_patinfo.position.width - div_patinfo.btn_close_light.position.width - div_patinfo.btn_close.position.width - 23;
  2001. this.parent.style.background = "white";
  2002. div_dim.position.x = 1024;
  2003. div_dim.visible = false;
  2004. sOpenState = "C";
  2005. }
  2006. }
  2007. function fViewThumbnail() {
  2008. div_thumbnail.stt_title_default.visible = utlf_isNull(div_thumbnail.stt_title.text) ? true : false;
  2009. div_thumbnail.div_video.visible = true;
  2010. var objImg = div_thumbnail.div_video.wb_contentsplay.saveToImageObject();
  2011. div_thumbnail.iv_video.image = objImg;
  2012. div_thumbnail.iv_thumbnail.visible = true;
  2013. div_thumbnail.iv_video.visible = false;
  2014. div_thumbnail.div_video.visible = false;
  2015. if(div_thumbnail.div_video.wb_contentsplay.url != "about:blank")
  2016. div_thumbnail.div_video.wb_contentsplay.url = "about:blank";
  2017. div_thumbnail.btn_play.text = "영상보기";
  2018. div_thumbnail.btn_play.position.width = 65;
  2019. div_thumbnail.btn_play.enable = utlf_isNull(div_thumbnail.stt_title.text) ? false : true;
  2020. }
  2021. function fInitPatInfo(refresh) {
  2022. ds_pat_sendlist.clearData();
  2023. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  2024. if(dutplceinstcd == "033") {
  2025. return;
  2026. }
  2027. var ykiho = (dutplceinstcd == "032") ? "37100467" : "37100017";
  2028. var userid = sysf_getUserId();
  2029. var usernm = sysf_getUserName();
  2030. var orddeptcd = sysf_getUserInfo("dutplcecd");
  2031. var hospitalkey = (dutplceinstcd == "032") ? "e285dd1eb61d4949b8bde02a936d9cf8" : "1b9bed0d8cd9439d88aa8dc273f30551";
  2032. var url = "";
  2033. var usertype = "";
  2034. var jobkindcd = sysf_getUserInfo("jobkindcd");
  2035. if(jobkindcd == "0330") { // 의사
  2036. usertype = "D";
  2037. } else if(jobkindcd == "1220") { // 약사
  2038. usertype = "E";
  2039. } else if(jobkindcd == "1140") { // 간호사
  2040. usertype = "F";
  2041. // } else if(jobkindcd == "9951") { // 간호조무사 (일단 기타로 처리)
  2042. // usertype = "G";
  2043. } else if(jobkindcd == "7020") { // 임상기사
  2044. usertype = "H";
  2045. } else { // 기타
  2046. usertype = "I";
  2047. }
  2048. var pamInfoCvs = sysf_getGlobalVariable("paminfo");
  2049. dsf_setCSVToDs ("ds_hichartinfo", pamInfoCvs); //상단화면 정보 초기화
  2050. // 주소 : hichart.knuh.kr (192.168.101.31, 192.168.101.32) 1호기, 2호기 이중화 되어 있음
  2051. if(ds_hichartinfo.rowcount <= 0) {
  2052. //url = "https://hichart.knuh.kr/Controls/Doctor/OCSEMR/default.aspx?pa=" + ykiho + "&bl=" + orddeptcd + "&kt=" + usertype
  2053. // + "&kw=" + usernm + "&g=" + userid + "&key=" + hospitalkey;
  2054. ds_receiver.setColumn(0, "pid", "");
  2055. ds_receiver.setColumn(0, "orddeptnm", "");
  2056. ds_receiver.setColumn(0, "hngnm", "");
  2057. tabMain.tab_history.div_search.edt_pid.value = "";
  2058. } else {
  2059. var pid = ds_hichartinfo.getColumn(0, "pid");
  2060. var orddeptnm = ds_hichartinfo.getColumn(0, "orddeptnm");
  2061. var mpphontel = ds_hichartinfo.getColumn(0, "mpphontel");
  2062. var ioflag = ds_hichartinfo.getColumn(0, "ioflag");
  2063. var hngnm = ds_hichartinfo.getColumn(0, "hngnm");
  2064. ds_receiver.setColumn(0, "pid", pid);
  2065. ds_receiver.setColumn(0, "orddeptnm", orddeptnm);
  2066. ds_receiver.setColumn(0, "hngnm", hngnm);
  2067. tabMain.tab_history.div_search.edt_pid.value = pid;
  2068. // 외래, 응급은 원무기본정보로 환자 휴대폰번호 셋팅
  2069. if(ioflag != "I") {
  2070. ds_receiver.setColumn(0, "orddeptnm", orddeptnm);
  2071. //url = "https://hichart.knuh.kr/Controls/Doctor/OCSEMR/default.aspx?pa=" + ykiho + "&bl=" + orddeptcd + "&kt=" + usertype
  2072. // + "&kw=" + usernm + "&g=" + userid + "&mi=" + mpphontel + "&c=" + pid + "&key=" + hospitalkey;
  2073. fAddPatList(mpphontel, "휴대폰", "본인", pid, hngnm, 1);
  2074. } else {
  2075. var wardnm = ds_hichartinfo.getColumn(0, "wardnm");
  2076. ds_receiver.setColumn(0, "orddeptnm", wardnm + " (" + orddeptnm + ")");
  2077. // 간호초기평가 기록 조회
  2078. var instcd = ds_hichartinfo.getColumn(0, "instcd");
  2079. var indd = ds_hichartinfo.getColumn(0, "indd");
  2080. appf_getHiChartPatPhoneInfo(instcd, pid, indd); // 조회 후 ds_result_hichart_patphoneinfo 데이터셋이 생성된다.
  2081. if(ds_result_hichart_patphoneinfo.rowcount <= 0) {
  2082. sysf_messageBox("환자정보를 조회 할 수 없어\n\n원무기본정보로 환자 휴대전화번호를 셋팅합니다.", "E");
  2083. //url = "https://hichart.knuh.kr/Controls/Doctor/OCSEMR/default.aspx?pa=" + ykiho + "&bl=" + orddeptcd + "&kt=" + usertype
  2084. // + "&kw=" + usernm + "&g=" + userid + "&mi=" + mpphontel + "&c=" + pid + "&key=" + hospitalkey;
  2085. fAddPatList(mpphontel, "휴대폰", "본인", pid, hngnm, 1);
  2086. } else {
  2087. // 환자의 전화번호
  2088. var patmphone = ds_result_hichart_patphoneinfo.getColumn(0, "patmphone"); // 원무 기준 환자 휴대전화번호
  2089. var pattel = ds_result_hichart_patphoneinfo.getColumn(0, "pattel"); // 원무 기준 환자 연락처
  2090. var patetctel1 = ds_result_hichart_patphoneinfo.getColumn(0, "patetctel1"); // 원무 기준 환자 주보호자
  2091. //var patetcphone1 = ds_result_hichart_patphoneinfo.getColumn(0, "patetcphone1"); // 현재 사용 안함(2018.01.22)
  2092. //var patetcphone2 = ds_result_hichart_patphoneinfo.getColumn(0, "patetcphone2"); // 현재 사용 안함(2018.01.22)
  2093. var telflag = ds_result_hichart_patphoneinfo.getColumn(0, "telflag");
  2094. //telflag = (utlf_isNull(telflag)) ? "" : "[" + telflag + "]"; // 본인, 보호자 입력 되어 있지 않을 경우엔 미표시
  2095. if(utlf_isNull(telflag)) telflag = "";
  2096. // 보호자의 전화번호
  2097. var guardrelanm = ds_result_hichart_patphoneinfo.getColumn(0, "guardrelanm");
  2098. var guardmpphone = ds_result_hichart_patphoneinfo.getColumn(0, "guardmpphone");
  2099. //var guardtel = ds_result_hichart_patphoneinfo.getColumn(0, "guardtel");
  2100. // 가져온 번호에서 숫자만 추출
  2101. patmphone = utlf_getNumberFromString(patmphone);
  2102. pattel = utlf_getNumberFromString(pattel);
  2103. patetctel1 = utlf_getNumberFromString(patetctel1);
  2104. //patetcphone1 = utlf_getNumberFromString(patetcphone1);
  2105. //patetcphone2 = utlf_getNumberFromString(patetcphone2);
  2106. guardmpphone = utlf_getNumberFromString(guardmpphone);
  2107. //guardtel = utlf_getNumberFromString(guardtel);
  2108. var regExp = /^01([0|1|6|7|8|9]?)-?([0-9]{3,4})-?([0-9]{4})$/;
  2109. // 본원은 휴대폰(디폴트체크), 연락처, 주보호자, 간호정보 순으로 정렬
  2110. // 칠곡은 간호정보(디폴트체크), 연락처, 휴대폰, 주보호자 순으로 정렬
  2111. if(dutplceinstcd == "031") {
  2112. // 환자 휴대폰 (원무 정보)
  2113. var patmphone2 = false;
  2114. if(patmphone != "") {
  2115. patmphone2 = true;
  2116. fAddPatList(patmphone, "휴대폰", telflag, pid, hngnm, 1);
  2117. }
  2118. // 환자 연락처 (원무 정보)
  2119. var pattel2 = false;
  2120. if(regExp.test(pattel)){
  2121. var acptyn = (!patmphone2) ? 1 : 0;
  2122. pattel2 = true;
  2123. fAddPatList(pattel, "연락처", telflag, pid, hngnm, acptyn);
  2124. }
  2125. // 환자 주보호자 (원무 정보)
  2126. var pattectel12 = false;
  2127. if(regExp.test(patetctel1)){
  2128. var acptyn = (!patmphone2 && !pattel2) ? 1 : 0;
  2129. pattectel12 = true;
  2130. fAddPatList(patetctel1, "주보호자", telflag, pid, hngnm, acptyn);
  2131. }
  2132. // 주보호자 (간호초기평가)
  2133. var guardmpphone2 = false;
  2134. if(regExp.test(guardmpphone)){
  2135. var acptyn = (!patmphone2 && !pattel2 && !pattectel12) ? 1 : 0;
  2136. guardmpphone2 = true;
  2137. fAddPatList(guardmpphone, "간호정보", guardrelanm, pid, hngnm, acptyn);
  2138. }
  2139. } else {
  2140. // 주보호자 (간호초기평가)
  2141. var guardmpphone2 = false;
  2142. if(regExp.test(guardmpphone)){
  2143. guardmpphone2 = true;
  2144. fAddPatList(guardmpphone, "간호정보", guardrelanm, pid, hngnm, 1);
  2145. }
  2146. // 환자 휴대폰 (원무 정보)
  2147. var patmphone2 = false;
  2148. if(patmphone != "") {
  2149. var acptyn = (!guardmpphone2) ? 1 : 0;
  2150. patmphone2 = true;
  2151. fAddPatList(patmphone, "휴대폰", telflag, pid, hngnm, acptyn);
  2152. }
  2153. // 환자 연락처 (원무 정보)
  2154. var pattel2 = false;
  2155. if(regExp.test(pattel)){
  2156. var acptyn = (!guardmpphone2 && !patmphone2) ? 1 : 0;
  2157. pattel2 = true;
  2158. fAddPatList(pattel, "연락처", telflag, pid, hngnm, acptyn);
  2159. }
  2160. // 환자 주보호자 (원무 정보)
  2161. var pattectel12 = false;
  2162. if(regExp.test(patetctel1)){
  2163. var acptyn = (!guardmpphone2 && !pattel2 && !patmphone2) ? 1 : 0;
  2164. pattectel12 = true;
  2165. fAddPatList(patetctel1, "주보호자", telflag, pid, hngnm, acptyn);
  2166. }
  2167. }
  2168. }
  2169. }
  2170. }
  2171. var instcd = sysf_getUserInfo("dutplceinstcd");
  2172. var curDate = utlf_getCurrentDate();
  2173. var dutplcecd = sysf_getUserInfo("dutplcecd");
  2174. cal_reservedate.value = curDate;
  2175. if(refresh) {
  2176. if(div_patinfo.div_patlist.tabPatList.tabindex == 1) {
  2177. // 환자리스트 외래 초기화
  2178. ds_send_out.setColumn(0,"orddd", curDate);
  2179. zsdfGetCareOutOrderDepartmentList(instcd, "ds_init_cmb_orddept", utlf_getCurrentDate());
  2180. ds_send_out.setColumn(0, "orddeptcd", dutplcecd);
  2181. fDeptChanged();
  2182. } else if(div_patinfo.div_patlist.tabPatList.tabindex == 2) {
  2183. // 환자리스트 입원 초기화
  2184. ds_send_in.setColumn(0, "instcd", instcd);
  2185. ds_send_in.setColumn(0, "orddd", curDate);
  2186. ds_send_in.setColumn(0, "wardcd", dutplcecd);
  2187. fDeptList();
  2188. }
  2189. }
  2190. // 콘텐츠 내용 부분 초기화
  2191. fInitThumbnail();
  2192. // 기본으로 환자리스트 반만 열어놓기
  2193. if(sOpenState != "H") {
  2194. sOpenState = "C";
  2195. div_patinfo.btn_close.click();
  2196. }
  2197. }
  2198. function fAddPatList(mpphone, gubun, rel, pid, hngnm, acptyn) {
  2199. ds_pat_sendlist.enableevent = false;
  2200. var row = ds_pat_sendlist.addRow();
  2201. ds_pat_sendlist.setColumn(row, "acptyn", acptyn);
  2202. ds_pat_sendlist.setColumn(row, "mpphone", mpphone);
  2203. ds_pat_sendlist.setColumn(row, "gubun", gubun);
  2204. ds_pat_sendlist.setColumn(row, "rel", rel);
  2205. ds_pat_sendlist.setColumn(row, "pid", pid);
  2206. ds_pat_sendlist.setColumn(row, "hngnm", hngnm);
  2207. ds_pat_sendlist.applyChange();
  2208. ds_pat_sendlist.enableevent = true;
  2209. }
  2210. function fGetPhoneNumMask(num) {
  2211. var result = "";
  2212. if(!utlf_isNull(num)) {
  2213. if((num.toString()).length == 10)
  2214. result = "###-###-####";
  2215. else
  2216. result = "###-####-####";
  2217. }
  2218. return result;
  2219. }
  2220. function fDeptList(){
  2221. //임승주 추가 19.09.24 입원 예정자 조회시 병동 전체 포함
  2222. if(div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.chk_in_schedule.value=="Y")
  2223. {
  2224. ds_send_in.setColumn(0,"wardlistopt","A");
  2225. }
  2226. else
  2227. {
  2228. ds_send_in.setColumn(0,"wardlistopt","-");
  2229. }
  2230. var oParam = {};
  2231. oParam.id = "TRMNR02501";
  2232. oParam.service = "wardcareapp.WardCareMngt";
  2233. oParam.method = "reqGetWMInitData";
  2234. oParam.inds = "reqcond=ds_send_in";
  2235. oParam.outds = "ds_init_ward=ward ds_init_dept=dept";
  2236. oParam.async = false;
  2237. //oParam.callback = "cf_TRMNR02501";
  2238. tranf_submit(oParam);
  2239. if(!utlf_isNull(ds_init_dept.getColumn(0, "depthngnm"))){
  2240. ds_init_dept.setColumn(0, "depthngnm", "전체");
  2241. }
  2242. div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmd_dept.index = 0;
  2243. //2017.12.01 본원_간호간병서비스 병동(609병동) 추가
  2244. // if(sysf_getUserInfo("dutplceinstcd") == "031") {
  2245. // var vWardcd = "3050159000";
  2246. // ds_init_ward.filter("wardcd=='" + vWardcd + "'");
  2247. // }
  2248. lf_mmbfGetUserComboList(ds_init_orddr_all, "", "0330", "", "", "", "", "", "Y");
  2249. fInitOrddr_In("");
  2250. }
  2251. function div_patinfo_div_patlist_tabPatList_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  2252. {
  2253. if(e.postindex == 0) {
  2254. div_patinfo.div_patlist.btn_delete.visible = true;
  2255. div_patinfo.div_patlist.btn_add.visible = true;
  2256. div_patinfo.div_patlist.btn_addlist.visible = false;
  2257. killTimer(2);
  2258. div_patinfo.div_patlist.btn_highlight.visible = false;
  2259. } else {
  2260. var instcd = sysf_getUserInfo("dutplceinstcd");
  2261. var curDate = utlf_getCurrentDate();
  2262. var dutplcecd = sysf_getUserInfo("dutplcecd");
  2263. if(e.postindex == 1) {
  2264. // 환자리스트 외래 초기화
  2265. if(utlf_isNull(ds_send_out.getColumn(0, "orddd"))) {
  2266. ds_send_out.setColumn(0,"orddd", curDate);
  2267. zsdfGetCareOutOrderDepartmentList(instcd, "ds_init_cmb_orddept", utlf_getCurrentDate());
  2268. ds_send_out.setColumn(0, "orddeptcd", dutplcecd);
  2269. fDeptChanged();
  2270. }
  2271. } else if(e.postindex == 2) {
  2272. // 환자리스트 입원 초기화
  2273. if(utlf_isNull(ds_send_in.getColumn(0, "instcd"))) {
  2274. ds_send_in.setColumn(0, "instcd", instcd);
  2275. ds_send_in.setColumn(0, "orddd", curDate);
  2276. ds_send_in.setColumn(0, "wardcd", dutplcecd);
  2277. fDeptList();
  2278. }
  2279. } else if(e.postindex == 3) {
  2280. // 환자리스트 건진 초기화
  2281. if(utlf_isNull(ds_send_exam.getColumn(0, "hopedd"))) {
  2282. ds_send_exam.setColumn(0, "hopedd", curDate);
  2283. fExamList();
  2284. }
  2285. }
  2286. div_patinfo.div_patlist.btn_delete.visible = false;
  2287. div_patinfo.div_patlist.btn_add.visible = false;
  2288. div_patinfo.div_patlist.btn_addlist.visible = true;
  2289. }
  2290. }
  2291. function div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_cmb_ward_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2292. {
  2293. obj.parent.cmd_dept.index = 0;
  2294. fInitOrddr_In("");
  2295. // obj.parent.btn_search.click();
  2296. }
  2297. function div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_cmd_dept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2298. {
  2299. fInitOrddr_In(e.postvalue);
  2300. // obj.parent.btn_search.click();
  2301. }
  2302. function fInitOrddr_In(orddeptcd) {
  2303. ds_init_orddr.clearData();
  2304. // 전체 선택일 때
  2305. lf_mmbfGetUserComboList(ds_init_orddr, orddeptcd, "0330");
  2306. frmf_addComboItem("div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmd_orddr", "전체", "", "above"); //의사콤보 전체항목 추가
  2307. div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmd_orddr.index = 0;
  2308. div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.btn_search.click();
  2309. }
  2310. function div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_btn_search_onclick(obj:Button, e:ClickEventInfo)
  2311. {
  2312. ds_grd_ipatmngt.clearData();
  2313. if(obj.parent.chk_in_schedule.value == "Y") {
  2314. var curDate = utlf_getCurrentDate();
  2315. var year = curDate.substr(0, 4);
  2316. var month = curDate.substr(4, 2);
  2317. var orddd = ds_send_in.getColumn(0, "orddd");
  2318. var wardcd = ds_send_in.getColumn(0, "wardcd");
  2319. var orddeptcd = ds_send_in.getColumn(0, "orddeptcd");
  2320. var orddrid = ds_send_in.getColumn(0, "orddrid");
  2321. if(utlf_isNull(orddeptcd)) orddeptcd = "-";
  2322. if(utlf_isNull(orddrid)) orddrid = "-";
  2323. ds_send_in_schedule.setColumn(0, "year", year);
  2324. ds_send_in_schedule.setColumn(0, "month", month);
  2325. ds_send_in_schedule.setColumn(0, "orddeptcd", orddeptcd);
  2326. ds_send_in_schedule.setColumn(0, "orddrid", orddrid);
  2327. ds_send_in_schedule.setColumn(0, "assgward", wardcd);
  2328. ds_send_in_schedule.setColumn(0, "pid", "");
  2329. ds_send_in_schedule.setColumn(0, "hngnm", "");
  2330. ds_send_in_schedule.setColumn(0, "fromdd", orddd);
  2331. ds_send_in_schedule.setColumn(0, "todd", orddd);
  2332. ds_send_in_schedule.setColumn(0, "erreglyn", "I");
  2333. ds_send_in_schedule.setColumn(0, "inflag", "G");
  2334. ds_send_in_schedule.setColumn(0, "statflag", "A");
  2335. ds_send_in_schedule.setColumn(0, "bedkind", "-");
  2336. var oParam = {};
  2337. oParam.id = "TRMMO09001";
  2338. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  2339. oParam.method = "reqGetInReqHistInfoList";
  2340. oParam.inds = "req=ds_send_in_schedule";
  2341. oParam.outds = "ds_grd_inreqhistlist=inreqhistlist";
  2342. oParam.async = true;
  2343. oParam.callback = "cf_TRMMO09001";
  2344. tranf_submit(oParam);
  2345. } else {
  2346. var oParam = {};
  2347. oParam.id = "TRZMH00300";
  2348. oParam.service = "hichartapp.HiChart";
  2349. oParam.method = "reqGetPatSmslist";
  2350. oParam.inds = "opatref=ds_send_in";
  2351. oParam.outds = "ds_grd_ipatmngt=opatlist";
  2352. oParam.async = true;
  2353. oParam.callback = "cf_TRZMH00300";
  2354. tranf_submit(oParam);
  2355. }
  2356. }
  2357. function cf_TRMMO09001(sSvcId, nErrorCode, sErrorMsg) {
  2358. if(nErrorCode < 0) return;
  2359. ds_grd_inreqhistlist.addColumn("acptyn", "string");
  2360. }
  2361. function cf_TRZMH00300(sSvcId, nErrorCode, sErrorMsg) {
  2362. if(nErrorCode < 0) return;
  2363. }
  2364. function div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2365. {
  2366. fDeptChanged();
  2367. }
  2368. function div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_btn_search_onclick(obj:Button, e:ClickEventInfo)
  2369. {
  2370. ds_grd_opatmngt.clearData();
  2371. var oParam = {};
  2372. oParam.id = "TRMNO01100";
  2373. oParam.service = "outcareapp.OutCareMngt";
  2374. oParam.method = "reqGetPatSmsList";
  2375. oParam.inds = "opatref=ds_send_out";
  2376. oParam.outds = "ds_grd_opatmngt=opatlist";
  2377. oParam.async = true;
  2378. oParam.callback = "cf_TRMNO01100";
  2379. tranf_submit(oParam);
  2380. }
  2381. function cf_TRMNO01100(sSvcId, nErrorCode, sErrorMsg) {
  2382. if(nErrorCode < 0) return;
  2383. }
  2384. function fDeptChanged() {
  2385. var orddeptcd = ds_send_out.getColumn(0, "orddeptcd");
  2386. var sordclsdeptflag = ds_init_cmb_orddept.lookup("deptcd", orddeptcd,"ordclsdeptflag"); // 센터/대표/분과/서브 구분
  2387. var sorddeptkind = ds_init_cmb_orddept.lookup("deptcd", orddeptcd,"orddeptkind"); // 센터/대표 구분
  2388. var ssupdeptcd = ds_init_cmb_orddept.lookup("deptcd", orddeptcd,"supdeptcd"); // 상위부서코드
  2389. var sorddeptflag = "";
  2390. if (sorddeptkind == "C") { // 센터이면
  2391. sorddeptflag = "C";
  2392. //} else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
  2393. // sorddeptflag = "A";
  2394. } else { // 그외에 기타과
  2395. sorddeptflag = "etc";
  2396. }
  2397. //ds_send.setColumn(0,"ordclsdeptflag",sorddeptflag);
  2398. //ds_send.setColumn(0,"supdeptcd",ssupdeptcd);
  2399. dsf_createDsRow("ds_send_req" , [
  2400. {col: "orddeptcd", val:orddeptcd}
  2401. ,{col: "orddd", val:ds_send_out.getColumn(0,"orddd")}
  2402. ,{col: "ordclsdeptflag", val:sorddeptflag}
  2403. ,{col: "supdeptcd", val:ssupdeptcd}
  2404. ,{col: "prcpspecflag", val:ds_send_out.getColumn(0,"prcpspecflag")}
  2405. ]);
  2406. var oParam = {};
  2407. oParam.id = "TRMNO00104";
  2408. oParam.service = "outcareapp.OutCareMngt";
  2409. oParam.method = "reqGetDrId";
  2410. oParam.inds = "reqdrid=ds_send_req";
  2411. oParam.outds = "ds_init_cmb_orddr=orddr";
  2412. oParam.async = false;
  2413. oParam.callback = "cf_TRMNO00104";
  2414. tranf_submit(oParam);
  2415. }
  2416. function cf_TRMNO00104(sSvcId, nErrorCode, sErrorMsg) {
  2417. if(nErrorCode < 0) return;
  2418. ds_init_cmb_orddr.deleteRow(0);
  2419. ds_init_cmb_orddr.applyChange();
  2420. div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cmb_orddr.innerdataset = "";
  2421. div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cmb_orddr.innerdataset = "ds_init_cmb_orddr";
  2422. if(fCheckIOFlag() == "O") {
  2423. var orddrid = ds_hichartinfo.getColumn(0, "orddrid");
  2424. if(!utlf_isNull(orddrid) && (ds_init_cmb_orddr.findRow("userid", orddrid) > -1)) {
  2425. ds_send_out.setColumn(0, "orddrid", orddrid);
  2426. }
  2427. div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.btn_search.click();
  2428. }
  2429. }
  2430. function div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_cmb_dept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2431. {
  2432. fDeptChanged();
  2433. }
  2434. function div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_cmb_orddr_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2435. {
  2436. obj.parent.btn_search.click();
  2437. }
  2438. function div_patinfo_btn_close_onclick(obj:Button, e:ClickEventInfo)
  2439. {
  2440. div_patinfo.btn_patinfo.click();
  2441. }
  2442. function btn_hichart_onclick(obj:Button, e:ClickEventInfo)
  2443. {
  2444. appf_openHiChart();
  2445. }
  2446. function fCheckIOFlag() {
  2447. if(ds_hichartinfo.rowcount <= 0)
  2448. return "";
  2449. var ioflag = ds_hichartinfo.getColumn(0, "ioflag");
  2450. if(utlf_isNull(ioflag)) return;
  2451. if(ioflag == "I")
  2452. return "I";
  2453. else
  2454. return "O";
  2455. }
  2456. function grd_patlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  2457. {
  2458. if(e.row < 0 || e.col == 1) return;
  2459. fSetGrdMultiSelect(obj, "acptyn");
  2460. }
  2461. function div_patinfo_div_patlist_btn_addlist_onclick(obj:Button, e:ClickEventInfo)
  2462. {
  2463. fAddSendList();
  2464. }
  2465. function fAddSendList(nRow) {
  2466. var isAdded = false;
  2467. var oDs = "";
  2468. var isSelected = false;
  2469. if(div_patinfo.div_patlist.tabPatList.tabindex == 1) {
  2470. oDs = ds_grd_opatmngt;
  2471. } else if(div_patinfo.div_patlist.tabPatList.tabindex == 2) {
  2472. if(div_patinfo.div_patlist.tabPatList.tab_in.grd_patlist_insche.visible) {
  2473. oDs = ds_grd_inreqhistlist;
  2474. } else {
  2475. oDs = ds_grd_ipatmngt;
  2476. }
  2477. } else if(div_patinfo.div_patlist.tabPatList.tabindex == 3) {
  2478. oDs = ds_examlist;
  2479. } else if(div_patinfo.div_patlist.tabPatList.tabindex == 4) {
  2480. oDs = ds_patinfolist;
  2481. }
  2482. if(oDs == "") return;
  2483. var isAlone = utlf_isNull(nRow)? false : true;
  2484. var selectrow = 0;
  2485. var rowcount = 0;
  2486. if(isAlone) {
  2487. selectrow = nRow;
  2488. rowcount = nRow + 1;
  2489. } else {
  2490. selectrow = 0;
  2491. rowcount = oDs.rowcount;
  2492. }
  2493. for(var i = selectrow; i < rowcount; i++) {
  2494. var acptyn = oDs.getColumn(i, "acptyn");
  2495. if(acptyn == 1 || acptyn == true || isAlone) {
  2496. var mpphone = utlf_getNumberFromString(oDs.getColumn(i, "mpphontel"));
  2497. // 등록된 전화 번호가 없다면 처리(동일번호 중복 방지)
  2498. if(ds_pat_sendlist.findRow("mpphone", mpphone) < 0) {
  2499. if(ds_pat_sendlist.rowcount >= 50) {
  2500. sysf_messageBox("최대 50명까지만 추가 할 수 있습니다.", "E");
  2501. break;
  2502. } else {
  2503. //var row = ds_pat_sendlist.addRow();
  2504. //ds_pat_sendlist.setColumn(row, "acptyn", 1);
  2505. //ds_pat_sendlist.setColumn(row, "mpphone", mpphone);
  2506. // 입원탭에서 조회시 간호정보조사에 주보호자가 있으면 그것을 사용, 없으면 원무정보 사용
  2507. var isGuardian = false;
  2508. if(!utlf_isNull(oDs.getColumnInfo("guardrelanm"))) {
  2509. var guardrelanm = oDs.getColumn(i, "guardrelanm");
  2510. if(!utlf_isNull(guardrelanm) && guardrelanm != "본인") {
  2511. isGuardian = true;
  2512. }
  2513. }
  2514. var gubun = "";
  2515. var rel = "";
  2516. var hngnm = oDs.getColumn(i, "hngnm");
  2517. if(isGuardian) {
  2518. gubun = "간호정보";
  2519. rel = guardrelanm;
  2520. //ds_pat_sendlist.setColumn(row, "gubun", "간호정보");
  2521. //ds_pat_sendlist.setColumn(row, "rel", guardrelanm);
  2522. } else {
  2523. gubun = "휴대폰";
  2524. rel = "본인";
  2525. //ds_pat_sendlist.setColumn(row, "gubun", "휴대폰");
  2526. //ds_pat_sendlist.setColumn(row, "rel", "본인 (" + oDs.getColumn(i, "hngnm") + ")");
  2527. }
  2528. //ds_pat_sendlist.setColumn(row, "pid", oDs.getColumn(i, "pid"));
  2529. fAddPatList(mpphone, gubun, rel, oDs.getColumn(i, "pid"), oDs.getColumn(i, "hngnm"), 1);
  2530. }
  2531. isAdded = true;
  2532. }
  2533. isSelected = true;
  2534. }
  2535. }
  2536. if(isAdded) {
  2537. killTimer(2);
  2538. setTimer(2, 500);
  2539. } else if(!isSelected) {
  2540. sysf_messageBox("선택된 환자가 없습니다.", "I");
  2541. } else {
  2542. sysf_messageBox("이미 수신자리스트에 있습니다", "I");
  2543. }
  2544. }
  2545. function div_patinfo_div_patlist_tabPatList_tab_sendlist_btn_clear_onclick(obj:Button, e:ClickEventInfo)
  2546. {
  2547. ds_pat_sendlist.deleteAll();
  2548. }
  2549. function div_patinfo_div_patlist_btn_delete_onclick(obj:Button, e:ClickEventInfo)
  2550. {
  2551. var row = 0;
  2552. for(var i = ds_pat_sendlist.rowcount - 1; i >= 0; i--) {
  2553. var acptyn = ds_pat_sendlist.getColumn(i, "acptyn");
  2554. if(acptyn == 1 || acptyn == true) {
  2555. row = i;
  2556. ds_pat_sendlist.deleteRow(row);
  2557. }
  2558. }
  2559. ds_pat_sendlist.selectRow(row - 1);
  2560. ds_pat_sendlist.rowposition = row - 1;
  2561. div_patinfo.div_patlist.tabPatList.tab_sendlist.grd_sendlist.setCellPos(2);
  2562. }
  2563. function div_patinfo_div_patlist_btn_add_onclick(obj:Button, e:ClickEventInfo)
  2564. {
  2565. if(ds_pat_sendlist.rowcount >= 50) {
  2566. sysf_messageBox("최대 50명까지만 추가 가능합니다.", "I");
  2567. return;
  2568. }
  2569. var row = ds_pat_sendlist.addRow();
  2570. ds_pat_sendlist.setColumn(row, "acptyn", 1);
  2571. div_patinfo.div_patlist.tabPatList.tab_sendlist.grd_sendlist.setCellPos(2);
  2572. div_patinfo.div_patlist.tabPatList.tab_sendlist.grd_sendlist.showEditor(true);
  2573. }
  2574. function div_patinfo_div_patlist_tabPatList_tab_sendlist_grd_sendlist_onenterdown(obj:Grid, e:GridEditEventInfo)
  2575. {
  2576. if(e.col == 2) {
  2577. obj.setCellPos(6);
  2578. obj.showEditor(true);
  2579. }
  2580. }
  2581. function div_patinfo_btn_close_light_onclick(obj:Button, e:ClickEventInfo)
  2582. {
  2583. var rightPos = this.position.right - 35;
  2584. if(sOpenState == "O") {
  2585. // pa_patinfo_move.stop();
  2586. // pa_patinfo_move.fromvalue = div_patinfo.position.x;
  2587. // pa_patinfo_move.tovalue = rightPos - 20;
  2588. // pa_patinfo_move.run();
  2589. //
  2590. // // 확대 보기 버튼 위치 조정
  2591. // div_patinfo.btn_close_light.position.x = div_patinfo.position.width - div_patinfo.btn_close_light.position.width - div_patinfo.btn_close.position.width - 23;
  2592. //
  2593. // this.parent.style.background = "white";
  2594. // div_dim.position.x = 1024;
  2595. // div_dim.visible = false;
  2596. //
  2597. // sOpenState = "C";
  2598. pa_patinfo_move.stop();
  2599. pa_patinfo_move.fromvalue = div_patinfo.position.x;
  2600. pa_patinfo_move.tovalue = rightPos - 533;
  2601. pa_patinfo_move.run();
  2602. // 확대 보기 버튼 위치 조정
  2603. div_patinfo.btn_close_light.position.x = div_patinfo.position.width - 410;
  2604. this.parent.style.background = "white";
  2605. div_dim.position.x = 1024;
  2606. div_dim.visible = false;
  2607. // 환자리스트 버튼 클릭 시 동영상 재생 중이라면 리스트가 위로 올라오도록 썸네일로 변경해준다.
  2608. fViewThumbnail();
  2609. sOpenState = "H";
  2610. } else if(sOpenState == "C"){
  2611. pa_patinfo_move.stop();
  2612. pa_patinfo_move.fromvalue = rightPos;
  2613. pa_patinfo_move.tovalue = rightPos - (div_patinfo.position.width - 20);
  2614. pa_patinfo_move.run();
  2615. // 확대 보기 버튼 위치 조정
  2616. div_patinfo.btn_close_light.position.x = div_patinfo.position.width - div_patinfo.btn_close_light.position.width - div_patinfo.btn_close.position.width - 23;
  2617. this.parent.style.background = div_dim.style.background;
  2618. div_dim.position.x = 0;
  2619. div_dim.visible = true;
  2620. // 환자리스트 버튼 클릭 시 동영상 재생 중이라면 리스트가 위로 올라오도록 썸네일로 변경해준다.
  2621. fViewThumbnail();
  2622. sOpenState = "O";
  2623. } else if(sOpenState == "H") {
  2624. pa_patinfo_move.stop();
  2625. pa_patinfo_move.fromvalue = div_patinfo.position.x;
  2626. pa_patinfo_move.tovalue = rightPos - (div_patinfo.position.width - 20);
  2627. pa_patinfo_move.run();
  2628. // 확대 보기 버튼 위치 조정
  2629. div_patinfo.btn_close_light.position.x = div_patinfo.position.width - div_patinfo.btn_close_light.position.width - div_patinfo.btn_close.position.width - 23;
  2630. this.parent.style.background = div_dim.style.background;
  2631. div_dim.position.x = 0;
  2632. div_dim.visible = true;
  2633. // 환자리스트 버튼 클릭 시 동영상 재생 중이라면 리스트가 위로 올라오도록 썸네일로 변경해준다.
  2634. fViewThumbnail();
  2635. sOpenState = "O";
  2636. }
  2637. }
  2638. function tab_history_search(obj:Edit, e:KeyEventInfo)
  2639. {
  2640. if(e.keycode == 13) {
  2641. obj.updateToDataset();
  2642. obj.parent.btn_sendsearch.click();
  2643. }
  2644. }
  2645. function tabMain_tab_history_btn_sendsearch_onclick(obj:Button, e:ClickEventInfo)
  2646. {
  2647. var pid = tabMain.tab_history.div_search.edt_pid.text;
  2648. var searchcond = obj.parent.rdo_searchcond.value;
  2649. if(searchcond == 1 && utlf_isNull(pid)) {
  2650. sysf_messageBox("환자번호를 입력하여 주십시오", "I");
  2651. tabMain.tab_history.div_search.edt_pid.setFocus();
  2652. return;
  2653. }
  2654. var sResultDs = (searchcond == 1) ? "ds_result_hichart_sendhistory" : "ds_result_hichart_sendhistory_internal";
  2655. var yearmonth = tabMain.tab_history.div_search.cp_monthCal.getData();
  2656. var contentscd = tabMain.tab_history.div_search.edt_contentscd.value;
  2657. var contentsnm = tabMain.tab_history.div_search.edt_contentsnm.value;
  2658. var objColInfo = new Array();
  2659. objColInfo.push({col: "pid", val: pid, type:"STRING"});
  2660. objColInfo.push({col: "cond", val: searchcond, type:"INT"});
  2661. objColInfo.push({col: "yearmonth", val: yearmonth, type:"STRING"});
  2662. objColInfo.push({col: "contentscd", val: contentscd, type:"STRING"});
  2663. objColInfo.push({col: "contentsnm", val: contentsnm, type:"STRING"});
  2664. appf_getHiChartSendHistory(objColInfo, sResultDs, "cf_sendhistory");
  2665. }
  2666. function cf_sendhistory(sSvcId, nErrorCode, sErrorMsg) {
  2667. if(nErrorCode < 0) {
  2668. ds_result_hichart_sendhistory.enableevent = true;
  2669. return;
  2670. }
  2671. var contentscd = tabMain.tab_history.div_search.edt_contentscd.text;
  2672. var contentsnm = tabMain.tab_history.div_search.edt_contentsnm.text;
  2673. var filterstr = "";
  2674. var separator = "";
  2675. if(!utlf_isNull(contentscd)) {
  2676. filterstr = "String(contentscd).indexOf('" + contentscd + "') >= 0";
  2677. }
  2678. if(!utlf_isNull(contentsnm)) {
  2679. if(!utlf_isNull(contentscd)) {
  2680. separator = " && ";
  2681. }
  2682. filterstr = filterstr + separator + "String(contentsnm).indexOf('" + contentsnm + "') >= 0";
  2683. }
  2684. ds_result_hichart_sendhistory.filter(filterstr);
  2685. }
  2686. function mk_time_ontextchange(obj:MaskEdit, e:TextChangeEventInfo)
  2687. {
  2688. utlf_validMaskEditTime(obj, e);
  2689. }
  2690. function tabMain_tab_history_div_search_rdo_searchcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2691. {
  2692. if(e.postvalue == 2) {
  2693. obj.parent.edt_pid.value = "";
  2694. obj.parent.parent.grd_sendhistory_internal.visible = true;
  2695. obj.parent.parent.grd_sendhistory.visible = false;
  2696. obj.parent.cp_monthCal.enable = true;
  2697. } else {
  2698. //obj.parent.edt_pid.value = ds_hichartinfo.getColumn(0, "pid");
  2699. obj.parent.parent.grd_sendhistory_internal.visible = false;
  2700. obj.parent.parent.grd_sendhistory.visible = true;
  2701. obj.parent.cp_monthCal.enable = false;
  2702. }
  2703. //tabMain.tab_history.div_search.btn_sendsearch.click();
  2704. }
  2705. //19.09.24 입원예정자 조회 체크 했을 때 병동 bind 구분 임승주 수정
  2706. function div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_chk_in_schedule_onclick(obj:CheckBox, e:ClickEventInfo)
  2707. {
  2708. if(obj.value == "Y") {
  2709. obj.parent.parent.grd_patlist_in.visible = false;
  2710. obj.parent.parent.grd_patlist_insche.visible = true;
  2711. fDeptList();
  2712. }
  2713. else {
  2714. obj.parent.parent.grd_patlist_in.visible = true;
  2715. obj.parent.parent.grd_patlist_insche.visible = false;
  2716. ds_init_ward.setColumn(0,"wardcd","-");
  2717. fDeptList();
  2718. }
  2719. }
  2720. function div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_insche_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  2721. {
  2722. if(e.row < 0 || e.col == 1) return;
  2723. fSetGrdMultiSelect(obj, "acptyn");
  2724. }
  2725. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_rdo_searchcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2726. {
  2727. if(e.postvalue == "4") { // 환자명/주민번호
  2728. obj.parent.edt_pid.visible = false;
  2729. obj.parent.edt_hngnm.visible = true;
  2730. obj.parent.edt_rrgstno1.visible = true;
  2731. obj.parent.edt_rrgstno2.visible = true;
  2732. obj.parent.edt_hngnm.setFocus();
  2733. } else {
  2734. obj.parent.edt_hngnm.visible = false;
  2735. obj.parent.edt_rrgstno1.visible = false;
  2736. obj.parent.edt_rrgstno2.visible = false;
  2737. obj.parent.edt_pid.visible = true;
  2738. obj.parent.edt_pid.setFocus();
  2739. }
  2740. }
  2741. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  2742. {
  2743. if (fInputValueCheck(obj.parent)) {
  2744. // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
  2745. ds_send_search.addColumn("functionyn", "string");
  2746. ds_send_search.setColumn(0, "functionyn", "N");
  2747. // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
  2748. var oParam = {};
  2749. oParam.id = "TRPMC02500";
  2750. oParam.service = "patinfomngtapp.PatBaseInfo";
  2751. oParam.method = "reqGetPatInfo";
  2752. oParam.inds = "req=ds_send_search";
  2753. oParam.outds = "ds_patinfolist=patinfolist";
  2754. oParam.async = true;
  2755. oParam.callback = "cf_TRPMC02500";
  2756. tranf_submit(oParam);
  2757. }
  2758. }
  2759. function cf_TRPMC02500(sSvcId, nErrorCode, sErrorMsg) {
  2760. if(nErrorCode < 0) return;
  2761. ds_patinfolist.addColumn("acptyn", "string");
  2762. }
  2763. // 입력값의 유효범위 체크
  2764. function fInputValueCheck(oDiv) {
  2765. var cond = ds_send_search.getColumn(0, "srchcond");
  2766. switch(cond) {
  2767. case '1': // 환자번호 체크
  2768. if (utlf_isNull(ds_send_search.getColumn(0, "pid"))) {
  2769. sysf_messageBox("환자번호를 정확히", "C001");
  2770. oDiv.edt_pid.setFocus();
  2771. return false;
  2772. } else {
  2773. return true;
  2774. }
  2775. break;
  2776. case '2':
  2777. //환자이름 체크
  2778. if(utlf_transNull(ds_send_search.getColumn(0, "hngnm"), "").length >= 2) {
  2779. return true;
  2780. } else {
  2781. sysf_messageBox("환자이름을 2자리 이상", "C001");
  2782. oDiv.edt_hngnm.setFocus();
  2783. return false;
  2784. }
  2785. break;
  2786. case '3':
  2787. //환자 주민번호 체크
  2788. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno1"), "").length >= 4 && utlf_transNull(ds_send_search.getColumn(0, "rrgstno2"), "").length >=1) {
  2789. return true;
  2790. } else {
  2791. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno1"), "").length < 4) {
  2792. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  2793. oDiv.edt_rrgstno1.setFocus();
  2794. return false;
  2795. }
  2796. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno2"), "").length < 1) {
  2797. sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
  2798. oDiv.edt_rrgstno2.setFocus();
  2799. return false;
  2800. }
  2801. sysf_messageBox("환자 주민번호를", "C001");
  2802. oDiv.edt_rrgstno1.setFocus();
  2803. return false;
  2804. }
  2805. break;
  2806. case '4': // 환자이름 유효성 체크. 환자 주민번호 체크
  2807. // 환자이름 체크
  2808. if(utlf_transNull(ds_send_search.getColumn(0, "hngnm"), "").length < 2) {
  2809. sysf_messageBox("환자이름을 2자리 이상", "C001");
  2810. oDiv.edt_hngnm.setFocus();
  2811. return false;
  2812. }
  2813. // 환자 주민번호 체크
  2814. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno1"), "").length < 4) {
  2815. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  2816. oDiv.edt_rrgstno1.setFocus();
  2817. return false;
  2818. }
  2819. return true;
  2820. break;
  2821. case '5': // 예약일자 유효성 체크
  2822. if (utlf_isValidDateTime(ds_send_search.getColumn(0, "acptdd"), "YYYYMMDD")) {
  2823. return true;
  2824. } else {
  2825. sysf_messageBox("예약일자를 정확히", "C001");
  2826. return false;
  2827. }
  2828. break;
  2829. default :
  2830. sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  2831. oDiv.rdo_searchcond.setFocus();
  2832. return false;
  2833. break;
  2834. }
  2835. }
  2836. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  2837. {
  2838. if(e.keycode == 13) {
  2839. obj.updateToDataset();
  2840. obj.parent.btn_search.click();
  2841. }
  2842. }
  2843. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  2844. {
  2845. if(e.keycode == 13) {
  2846. obj.updateToDataset();
  2847. obj.parent.edt_rrgstno1.setFocus();
  2848. }
  2849. }
  2850. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_rrgstno1_onkeydown(obj:Edit, e:KeyEventInfo)
  2851. {
  2852. if(e.keycode == 13) {
  2853. obj.updateToDataset();
  2854. obj.parent.btn_search.click();
  2855. }
  2856. }
  2857. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_rrgstno2_onkeydown(obj:Edit, e:KeyEventInfo)
  2858. {
  2859. if(e.keycode == 13) {
  2860. obj.updateToDataset();
  2861. obj.parent.btn_search.click();
  2862. }
  2863. }
  2864. function div_patinfo_div_patlist_tabPatList_tab_search_grd_pat_search_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  2865. {
  2866. if(e.row < 0 || e.col == 1) return;
  2867. fSetGrdMultiSelect(obj, "acptyn");
  2868. }
  2869. function fSetGrdMultiSelect(obj:Grid, colName) {
  2870. var oDs = this.objects[obj.binddataset];
  2871. var selectedRows = grdf_getSelectedRows(obj);
  2872. for(var i = 0; i < selectedRows.length; i++) {
  2873. var acptyn = oDs.getColumn(selectedRows[i], "acptyn");
  2874. if(acptyn == 1 || acptyn == true){
  2875. oDs.setColumn(selectedRows[i], "acptyn", 0);
  2876. } else {
  2877. oDs.setColumn(selectedRows[i], "acptyn", 1);
  2878. }
  2879. }
  2880. }
  2881. function div_patinfo_div_patlist_tabPatList_tab_out_grd_patlist_out_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  2882. {
  2883. fAddSendList(e.row);
  2884. }
  2885. function div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_in_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  2886. {
  2887. fAddSendList(e.row);
  2888. }
  2889. function div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_insche_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  2890. {
  2891. fAddSendList(e.row);
  2892. }
  2893. function div_patinfo_div_patlist_tabPatList_tab_search_grd_pat_search_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  2894. {
  2895. fAddSendList(e.row);
  2896. }
  2897. function btn_add_private_all_onclick(obj:Button, e:ClickEventInfo)
  2898. {
  2899. fAddPrivateList(true);
  2900. }
  2901. function div_thumbnail_btn_add_private_onclick(obj:Button, e:ClickEventInfo)
  2902. {
  2903. fAddPrivateList();
  2904. }
  2905. function fAddPrivateList(isAll) {
  2906. if(isAll) {
  2907. if(ds_hichartsendlist.rowcount < 1) {
  2908. sysf_messageBox("설명처방 목록에 저장할 콘텐츠가 존재하지 않습니다", "E");
  2909. return;
  2910. }
  2911. ds_hichartsavelist.copyData(ds_hichartsendlist);
  2912. } else {
  2913. ds_hichartsavelist.clearData();
  2914. ds_hichartsavelist.addRow();
  2915. ds_hichartsavelist.setColumn(0, "contentscd", sSelectedContentsCD);
  2916. ds_hichartsavelist.setColumn(0, "privatehospcd", sSelectedPrivateHospCD);
  2917. }
  2918. var oParam = {};
  2919. oParam.id = "TRZMH00400";
  2920. oParam.service = "hichartapp.HiChart";
  2921. oParam.method = "reqSetPrivatelist";
  2922. oParam.args = "type=" + wrapQuote("I");
  2923. oParam.inds = "req=ds_hichartsavelist";
  2924. oParam.outds = "ds_addresult=count ds_addfaillist=faillist";
  2925. oParam.async = false;
  2926. oParam.callback = "cf_TRZMH00400";
  2927. tranf_submit(oParam);
  2928. }
  2929. function cf_TRZMH00400(sSvcId, nErrorCode, sErrorMsg) {
  2930. if(nErrorCode < 0) return;
  2931. if(ds_addresult.rowcount <= 0) {
  2932. sysf_messageBox("저장 실패", "E");
  2933. } else {
  2934. var count = ds_addresult.getColumn(0, "cnt");
  2935. if(count != ds_hichartsavelist.rowcount && ds_addfaillist.rowcount > 0) {
  2936. var contentscds = "";
  2937. for(var i = 0; i < ds_addfaillist.rowcount; i++) {
  2938. var contentscd = ds_addfaillist.getColumn(i, "contentscd");
  2939. if(i == 0) {
  2940. contentscds = contentscd;
  2941. } else {
  2942. contentscds += ", " + contentscd;
  2943. }
  2944. }
  2945. if(contentscds != "") {
  2946. if(ds_hichartsavelist.rowcount == ds_addfaillist.rowcount) {
  2947. sysf_messageBox("이미 [개인목록]에 포함되어 있습니다.", "I");
  2948. } else {
  2949. sysf_messageBox("이미 [개인목록]에 포함되어 있는 항목\n\n" +
  2950. "(" + contentscds + ")\n\n" +
  2951. "을 제외하고 모두 저장하였습니다.", "I");
  2952. }
  2953. }
  2954. }
  2955. fGetHiChartPrivateContents();
  2956. }
  2957. }
  2958. function div_thumbnail_btn_del_private_onclick(obj:Button, e:ClickEventInfo)
  2959. {
  2960. if(ds_privatelist.rowposition < 0) return;
  2961. ds_privatelist_del.clearData();
  2962. var row = ds_privatelist_del.addRow();
  2963. ds_privatelist_del.copyRow(row, ds_privatelist, ds_privatelist.rowposition);
  2964. if(ds_privatelist_del.rowcount < 1) return;
  2965. var oParam = {};
  2966. oParam.id = "TRZMH00402";
  2967. oParam.service = "hichartapp.HiChart";
  2968. oParam.method = "reqSetPrivatelist";
  2969. oParam.args = "type=" + wrapQuote("D");
  2970. oParam.inds = "req=ds_privatelist_del";
  2971. oParam.outds = "ds_addresult=count";
  2972. oParam.async = false;
  2973. oParam.callback = "cf_TRZMH00402";
  2974. tranf_submit(oParam);
  2975. }
  2976. function cf_TRZMH00402(sSvcId, nErrorCode, sErrorMsg) {
  2977. if(nErrorCode < 0) return;
  2978. fInitThumbnail();
  2979. if(ds_addresult.rowcount <= 0) {
  2980. sysf_messageBox("삭제 실패", "E");
  2981. } else {
  2982. var count = ds_addresult.getColumn(0, "cnt");
  2983. if(count <= 0) {
  2984. sysf_messageBox("삭제 실패", "E");
  2985. } else {
  2986. sysf_messageBox("콘텐츠가 [개인목록]에서 삭제되었습니다.", "I");
  2987. fGetHiChartPrivateContents();
  2988. }
  2989. }
  2990. }
  2991. function btn_add_dept_onclick(obj:Button, e:ClickEventInfo)
  2992. {
  2993. fAddDeptList(true);
  2994. }
  2995. function div_thumbnail_btn_add_dept_onclick(obj:Button, e:ClickEventInfo)
  2996. {
  2997. fAddDeptList();
  2998. }
  2999. function fAddDeptList(isAll) {
  3000. if(isAll) {
  3001. if(ds_hichartsendlist.rowcount < 1) {
  3002. sysf_messageBox("설명처방 목록에 저장할 콘텐츠가 존재하지 않습니다", "E");
  3003. return;
  3004. }
  3005. ds_hichartsavelist.copyData(ds_hichartsendlist);
  3006. } else {
  3007. ds_hichartsavelist.clearData();
  3008. ds_hichartsavelist.addRow();
  3009. ds_hichartsavelist.setColumn(0, "contentscd", sSelectedContentsCD);
  3010. ds_hichartsavelist.setColumn(0, "privatehospcd", sSelectedPrivateHospCD);
  3011. }
  3012. var oParam = {};
  3013. oParam.id = "TRZMH00600";
  3014. oParam.service = "hichartapp.HiChart";
  3015. oParam.method = "reqSetDeptlist";
  3016. oParam.args = "type=" + wrapQuote("I");
  3017. oParam.inds = "req=ds_hichartsavelist";
  3018. oParam.outds = "ds_addresult=count ds_addfaillist=faillist ds_deptlist=result";
  3019. oParam.async = false;
  3020. oParam.callback = "cf_TRZMH00600";
  3021. tranf_submit(oParam);
  3022. }
  3023. function cf_TRZMH00600(sSvcId, nErrorCode, sErrorMsg) {
  3024. if(nErrorCode < 0) return;
  3025. ds_deptlist.rowposition = -1;
  3026. if(ds_addresult.rowcount <= 0) {
  3027. sysf_messageBox("저장 실패", "E");
  3028. } else {
  3029. var count = ds_addresult.getColumn(0, "cnt");
  3030. if(count != ds_hichartsavelist.rowcount && ds_addfaillist.rowcount > 0) {
  3031. var contentscds = "";
  3032. for(var i = 0; i < ds_addfaillist.rowcount; i++) {
  3033. var contentscd = ds_addfaillist.getColumn(i, "contentscd");
  3034. if(i == 0) {
  3035. contentscds = contentscd;
  3036. } else {
  3037. contentscds += ", " + contentscd;
  3038. }
  3039. }
  3040. if(contentscds != "") {
  3041. if(ds_hichartsavelist.rowcount == ds_addfaillist.rowcount) {
  3042. sysf_messageBox("이미 [과별목록]에 포함되어 있습니다.", "I");
  3043. } else {
  3044. sysf_messageBox("이미 [과별목록]에 포함되어 있는 항목\n\n" +
  3045. "(" + contentscds + ")\n\n" +
  3046. "을 제외하고 모두 저장하였습니다.", "I");
  3047. }
  3048. }
  3049. }
  3050. }
  3051. }
  3052. function div_thumbnail_btn_del_dept_onclick(obj:Button, e:ClickEventInfo)
  3053. {
  3054. if(ds_deptlist.rowposition < 0) return;
  3055. ds_deptlist_del.clearData();
  3056. var row = ds_deptlist_del.addRow();
  3057. ds_deptlist_del.copyRow(row, ds_deptlist, ds_deptlist.rowposition);
  3058. if(ds_deptlist_del.rowcount < 1) return;
  3059. var oParam = {};
  3060. oParam.id = "TRZMH00602";
  3061. oParam.service = "hichartapp.HiChart";
  3062. oParam.method = "reqSetDeptlist";
  3063. oParam.args = "type=" + wrapQuote("D");
  3064. oParam.inds = "req=ds_deptlist_del";
  3065. oParam.outds = "ds_addresult=count ds_deptlist=result";
  3066. oParam.async = false;
  3067. oParam.callback = "cf_TRZMH00602";
  3068. tranf_submit(oParam);
  3069. }
  3070. function cf_TRZMH00602(sSvcId, nErrorCode, sErrorMsg) {
  3071. if(nErrorCode < 0) return;
  3072. ds_deptlist.rowposition = -1;
  3073. fInitThumbnail();
  3074. if(ds_addresult.rowcount <= 0) {
  3075. sysf_messageBox("삭제 실패", "E");
  3076. } else {
  3077. var count = ds_addresult.getColumn(0, "cnt");
  3078. if(count <= 0) {
  3079. sysf_messageBox("삭제 실패", "E");
  3080. } else {
  3081. sysf_messageBox("콘텐츠가 [과별목록]에서 삭제되었습니다.", "I");
  3082. }
  3083. }
  3084. }
  3085. function fInitThumbnail() {
  3086. div_thumbnail.iv_thumbnail.resampling = false;
  3087. div_thumbnail.iv_thumbnail.stretch = "none";
  3088. div_thumbnail.iv_thumbnail.image = "IMG::com\\defaultlogo.gif";
  3089. div_thumbnail.stt_title.text = "";
  3090. div_thumbnail.medt_time.value = "";
  3091. sSelectedContentsCD = "";
  3092. sSelectedPrivateHospCD = "";
  3093. div_thumbnail.btn_add_private.visible = false;
  3094. div_thumbnail.btn_del_private.visible = false;
  3095. div_thumbnail.btn_add_dept.visible = false;
  3096. div_thumbnail.btn_del_dept.visible = false;
  3097. fViewThumbnail();
  3098. }
  3099. function iv_silverlight_onclick(obj:ImageViewer, e:ClickEventInfo)
  3100. {
  3101. frmf_openHtml("https://hichart.knuh.kr/Uploads/EMRNotice/Silverlight.exe");
  3102. }
  3103. function tabMain_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  3104. {
  3105. switch(e.postindex) {
  3106. case 0 :
  3107. // 개인목록 조회
  3108. fGetHiChartPrivateContents(true);
  3109. break;
  3110. case 1 :
  3111. // 과별목록 조회
  3112. fGetHiChartDeptContents();
  3113. break;
  3114. case 2 :
  3115. // 신규컨텐츠 조회
  3116. fGetHiChartNewContents();
  3117. break;
  3118. }
  3119. fInitThumbnail();
  3120. }
  3121. function div_dim_onclick(obj:Div, e:ClickEventInfo)
  3122. {
  3123. // var rightPos = this.position.right - 35;
  3124. //
  3125. // if(sOpenState == "O") {
  3126. // pa_patinfo_move.stop();
  3127. // pa_patinfo_move.fromvalue = div_patinfo.position.x;
  3128. // pa_patinfo_move.tovalue = rightPos - 20;
  3129. // pa_patinfo_move.run();
  3130. //
  3131. // // 확대 보기 버튼 위치 조정
  3132. // div_patinfo.btn_close_light.position.x = div_patinfo.position.width - div_patinfo.btn_close_light.position.width - div_patinfo.btn_close.position.width - 23;
  3133. //
  3134. // this.parent.style.background = "white";
  3135. // div_dim.position.x = 1024;
  3136. // div_dim.visible = false;
  3137. //
  3138. // sOpenState = "C";
  3139. // }
  3140. }
  3141. function btn_docu_down_onclick(obj:Button, e:ClickEventInfo)
  3142. {
  3143. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  3144. if(dutplceinstcd == "032") {
  3145. frmf_openHtml(gv_sURLprefix + "/xpapps/com/hichartxp/xp/Ku2.0_설명처방_사용방법(칠곡).pdf");
  3146. } else {
  3147. frmf_openHtml(gv_sURLprefix + "/xpapps/com/hichartxp/xp/Ku2.0_설명처방_사용방법(본원).pdf");
  3148. }
  3149. //var objExtCommon = new ExtCommon();
  3150. //objExtCommon.executeProcess(gv_sURLprefix + "/xpapps/com/hichartxp/xp/hichart_document.pdf","","");
  3151. }
  3152. function btn_pat_clear_onclick(obj:Button, e:ClickEventInfo)
  3153. {
  3154. ds_receiver.setColumn(0, "pid", "");
  3155. ds_receiver.setColumn(0, "orddeptnm", "");
  3156. ds_receiver.setColumn(0, "hngnm", "");
  3157. tabMain.tab_history.div_search.edt_pid.value = "";
  3158. ds_pat_sendlist.clearData();
  3159. }
  3160. var oldColWidth = 120;
  3161. function SPZMH00100_onsize(obj:Form, e:SizeEventInfo)
  3162. {
  3163. var colWidth = e.cx - 924;
  3164. if(oldColWidth == colWidth) return;
  3165. if(colWidth < 120) colWidth = 120;
  3166. else if(colWidth > 400) colWidth = 400;
  3167. tabMain.tab_history.grd_sendhistory_internal.setFormatColProperty(7, "size", colWidth);
  3168. oldColWidth = colWidth;
  3169. }
  3170. function fGetInputTextColor(row) {
  3171. var result = "";
  3172. if(ds_pat_sendlist.getRowType(row) == Dataset.ROWTYPE_INSERT) {
  3173. result = "khaki";
  3174. }
  3175. return result;
  3176. }
  3177. function btn_contents_add_onclick(obj:Button, e:ClickEventInfo)
  3178. {
  3179. frmf_open("SPZMH00200", "SPZMH00200", null, null, null, null, null, null, null, null, null, null, "M");
  3180. }
  3181. function SPZMH00100_onclose(obj:Form, e:CloseEventInfo)
  3182. {
  3183. // HiChart 전용으로 Ku를 실행 했을 시에는 설명처방 창 종료시 프로그램도 같이 종료한다
  3184. var isSingle = false;
  3185. try {
  3186. isSingle = (gv_isSingleYN == "Y");
  3187. } catch(e) {}
  3188. if(isSingle) {
  3189. frmf_logout();
  3190. }
  3191. }
  3192. function grd_hichartlist_ondrag(obj:Grid, e:GridDragEventInfo)
  3193. {
  3194. if(e.row < 0 || e.col < 0) return false;
  3195. var oDs = this.objects[obj.binddataset];
  3196. var dragData = e.row + "|" + utlf_transNullToEmpty(oDs.getColumn(e.row, "ordernum"));
  3197. var objDragData = new DragDataObject();
  3198. objDragData.setData( DragDataFormats.TEXT, dragData);
  3199. e.dragdata = objDragData;
  3200. return true;
  3201. }
  3202. function grd_hichartlist_ondrop(obj:Grid, e:GridDragEventInfo)
  3203. {
  3204. fSetOrder(obj, e);
  3205. }
  3206. function fSetOrder(obj:Grid, e:GridDragEventInfo) {
  3207. var oDs = this.objects[obj.binddataset];
  3208. var dragData = e.dragdata.getData(DragDataFormats.TEXT);
  3209. if(utlf_isNull(dragData)) return;
  3210. var datas = dragData.split("|");
  3211. var before_row = parseInt(datas[0]);
  3212. var after_row = e.row;
  3213. var start_row, end_row;
  3214. var before_ordernum = datas[1];
  3215. var reverse = (before_row < after_row) ? false : true;
  3216. // 정렬 순번 시작값과 끝값
  3217. if(utlf_isNull(before_ordernum)) {
  3218. // 처음에 ordernum에 값이 없을 때는 전체 번호를 셋팅
  3219. start_row = oDs.rowcount;
  3220. end_row = 0;
  3221. } else {
  3222. // 처음에 ordernum에 값이 있다면 해당하는 부분만 번호 셋팅
  3223. if(reverse) {
  3224. start_row = parseInt(datas[0]) + 1;
  3225. end_row = e.row;
  3226. } else {
  3227. start_row = e.row + 1;
  3228. end_row = parseInt(datas[0]);
  3229. }
  3230. }
  3231. oDs.enableevent = false;
  3232. oDs.moveRow(before_row, after_row);
  3233. var updateRows = new Array();
  3234. var uIndex = 0;
  3235. var oIndex = oDs.rowcount - start_row - 1; // index가 0부터 시작하므로 -1을 더 빼준다.
  3236. for(var i = start_row; i >= end_row; i--) {
  3237. oDs.setColumn(i, "ordernum", oIndex++);
  3238. updateRows[uIndex++] = i;
  3239. }
  3240. oDs.enableevent = true;
  3241. var oDsUpdate = grdf_getGridUpdateData(obj, "update");
  3242. grdf_setStatusColumn(oDsUpdate, "status"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
  3243. ds_sortlist.copyData(oDsUpdate, true);
  3244. var listType = (oDs.name == "ds_deptlist") ? "D" : " P";
  3245. var oParam = {};
  3246. oParam.id = "TXZMH00500";
  3247. oParam.service = "hichartapp.HiChart";
  3248. oParam.method = "reqSetSortList";
  3249. oParam.args = "type=" + wrapQuote(listType);
  3250. oParam.inds = "req=" + "ds_sortlist";
  3251. oParam.callback = "cf_TXZMH00500";
  3252. oParam.async = false;
  3253. tranf_submit(oParam);
  3254. oDs.enableevent = false;
  3255. oDs.updatecontrol = false;
  3256. for(var i = 0; i < updateRows.length; i++) {
  3257. oDs.setRowType(updateRows[i], Dataset.ROWTYPE_NORMAL);
  3258. }
  3259. oDs.updatecontrol = true;
  3260. oDs.enableevent = true;
  3261. }
  3262. function cf_TXZMH00500(sSvcId, nErrorCode, sErrorMsg) {
  3263. if(nErrorCode < 0) {
  3264. sysf_messageBox("목록 순서 변경 저장을 실패 하였습니다.", "E");
  3265. return;
  3266. }
  3267. }
  3268. // 건진탭 조회 버튼 클릭
  3269. function div_patinfo_div_patlist_tabPatList_tab_exam_div_search_exam_btn_search_onclick(obj:Button, e:ClickEventInfo)
  3270. {
  3271. fExamList();
  3272. }
  3273. function fExamList(){
  3274. var hopedd = ds_send_exam.getColumn(0, "hopedd");
  3275. var oParam = {};
  3276. oParam.id = "TRZMH00700";
  3277. oParam.service = "hichartapp.HiChart";
  3278. oParam.method = "reqGetExamlist";
  3279. oParam.args = "hopedd=" + wrapQuote(hopedd);
  3280. oParam.outds = "ds_examlist=result";
  3281. oParam.async = false;
  3282. oParam.callback = "cf_TRZMH00700";
  3283. tranf_submit(oParam);
  3284. }
  3285. function cf_TRZMH00700(sSvcId, nErrorCode, sErrorMsg) {
  3286. if(nErrorCode < 0) return;
  3287. ds_examlist.addColumn("acptyn", "string");
  3288. }
  3289. // 건진 리스트 onmousemove
  3290. function div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_onmousemove(obj:Grid, e:GridMouseEventInfo)
  3291. {
  3292. var rsrvdd = ds_examlist.getColumn(e.row, "rsrvdd");
  3293. var rsrvno = ds_examlist.getColumn(e.row, "rsrvno");
  3294. var testnm = ds_examlist.getColumn(e.row, "testnm");
  3295. if(CURR_ROW == e.row){
  3296. return;
  3297. }
  3298. if(e.col == 5 || e.col == 10){
  3299. // 실제 Cell Size보다 Text가 더 길경우 처리를 위한 로직
  3300. if(e.col == 5){
  3301. var text = ds_examlist.getColumn(e.row, "pkgnm");
  3302. }else{
  3303. var text = ds_examlist.getColumn(e.row, "cmpynm");
  3304. }
  3305. var ctrlObj = div_patinfo.div_patlist.tabPatList.tab_exam.grd_exam_list;
  3306. var font = ctrlObj.getCellProperty("body", e.col, "font");
  3307. if(utlf_isNull(font)) font = "Dotum,9";
  3308. var fontStyle = font.toString().split(',');
  3309. var bold = false;
  3310. if(fontStyle.length > 2 && fontStyle[2] == "bold") bold = true;
  3311. var objFont = utlf_getObjFont(fontStyle[1], fontStyle[0], bold); // 실제 폰트의 너비
  3312. var objFontSize = utlf_getTextSize(text, objFont);
  3313. var paddingSize = 0;
  3314. var padding = ctrlObj.getCellProperty("body", e.col, "padding");
  3315. if(!utlf_isNull(padding) && padding.length == 4) {
  3316. paddingSize = padding[1] + padding[3];
  3317. }
  3318. var arrCellRect = ctrlObj.getCellRect(0, e.col);
  3319. var width = arrCellRect.width - paddingSize - ctrlObj.vscrollbar.position.width + 12; // 실제 글자가 들어갈 수 있는 영역 너비(width - padding 좌우영역 - 세로 스크롤 넓이 + 10은 보정값)
  3320. }
  3321. if(e.row >= 0){
  3322. if(e.col == 4){
  3323. // 위검사
  3324. if(!utlf_isNull(testnm)){
  3325. obj.tooltiptext = testnm;
  3326. }else{
  3327. obj.tooltiptext = "선택/추가검사 없음";
  3328. }
  3329. }else if(e.col == 5){
  3330. // 패키지명
  3331. if(objFontSize.cx > width) {
  3332. obj.tooltiptext = text;
  3333. }else{
  3334. obj.tooltiptext = "";
  3335. }
  3336. }else if(e.col == 10){
  3337. // 사업체명
  3338. if(!utlf_isNull(text)){
  3339. if(objFontSize.cx > width) {
  3340. obj.tooltiptext = text;
  3341. }else{
  3342. obj.tooltiptext = "";
  3343. }
  3344. } else {
  3345. obj.tooltiptext = "";
  3346. }
  3347. }else{
  3348. obj.tooltiptext = "";
  3349. }
  3350. }
  3351. CURR_ROW = e.row;
  3352. }
  3353. function div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_onmouseleave(obj:Grid, e:MouseEventInfo)
  3354. {
  3355. obj.tooltiptext = "";
  3356. }
  3357. // 건진 그리드 더블클릭
  3358. function div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  3359. {
  3360. fAddSendList(e.row);
  3361. }
  3362. // 건진 그리드 onbuttonup
  3363. function div_patinfo_div_patlist_tabPatList_tab_exam_grd_exam_list_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  3364. {
  3365. if(e.row < 0 || e.col == 1) return;
  3366. fSetGrdMultiSelect(obj, "acptyn");
  3367. }
  3368. // 건진 예약일자 변경 이벤트
  3369. function div_patinfo_div_patlist_tabPatList_tab_exam_div_search_exam_cal_hopedd_onchanged(obj:Calendar, e:ChangeEventInfo)
  3370. {
  3371. fExamList();
  3372. }
  3373. ]]></Script>
  3374. </Form>
  3375. </FDL>