SMMRD01200_챠트분석관리.xfdl 146 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRD01200" position="absolute 0 0 1213 786" titletext="챠트분석관리" oninit="SMMRD01200_oninit" onload="SMMRD01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 49 225 471" id="roundrect1" type="roundrectangle" class="div_SA">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Calendar position="absolute 90 98 206 117" id="ipt_srchfrdd" class="input_s_essential" taborder="1" autoselect="true" autoskip="true"/>
  13. <Static text="챠트분석관리" position="absolute 0 0 116 26" id="caption6" class="tit_1"/>
  14. <Combo position="absolute 17 365 73 384" id="cmb_orddept" class="combo_search" innerdataset="ds_init_orddept_dept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="cmb_orddept_onitemchanged" visible="false"/>
  15. <Calendar position="absolute 90 121 206 140" id="ipt_srchtodd" class="input_s_essential" taborder="2" autoselect="true"/>
  16. <Button position="absolute 163 439 219 461" id="btn_r_chrtmovelist" class="btn1" text="조회" onclick="btn_r_chrtmovelist_onclick"/>
  17. <Shape position="absolute 154 439 160 461" linetype="vertical" id="line13" class="line_4"/>
  18. <Static text="퇴원일자 :" position="absolute 9 98 87 115" id="cap_snm" class="search_name"/>
  19. <Static text="~" position="absolute 81 123 93 140" id="caption4" class="search_no_b"/>
  20. <Static text="구 분 :" position="absolute 9 54 87 71" id="cap_indschflag" class="search_name"/>
  21. <Static text="병 동 :" position="absolute 9 197 87 214" id="cap_ward" class="search_name"/>
  22. <Combo position="absolute 90 196 206 215" id="cbo_ward" class="combo_search" innerdataset="ds_init_ward_dept" datacolumn="depthngnm" codecolumn="deptcd"/>
  23. <Static text="진 료 과 :" position="absolute 9 149 87 166" id="cap_dept" class="search_name"/>
  24. <Radio position="absolute 90 52 180 72" id="rdo_ioflag" columncount="3" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_ioflag_onitemchanged">
  25. <Dataset id="innerdataset">
  26. <ColumnInfo>
  27. <Column id="codecolumn"/>
  28. <Column id="datacolumn"/>
  29. </ColumnInfo>
  30. <Rows>
  31. <Row>
  32. <Col id="codecolumn">D</Col>
  33. <Col id="datacolumn">퇴원</Col>
  34. </Row>
  35. <Row>
  36. <Col id="codecolumn">I</Col>
  37. <Col id="datacolumn">재원</Col>
  38. </Row>
  39. </Rows>
  40. </Dataset>
  41. </Radio>
  42. <Static text="담당교수 :" position="absolute 9 172 89 189" id="cap_medispc" class="search_name"/>
  43. <Combo position="absolute 90 172 206 191" id="cmb_medispc" class="combo_search" innerdataset="ds_init_userlist_drlist" datacolumn="drnm" codecolumn="drid"/>
  44. <CheckBox position="absolute 7 441 94 461" id="chk_longinhosp" text="장기 재원시" truevalue="H" onclick="chk_longinhosp_onclick"/>
  45. <Static text="수거상태 :" position="absolute 9 266 87 283" id="cap_remyn" class="search_name"/>
  46. <Grid position="absolute 0 495 225 770" id="datagrid1" binddataset="ds_main_list_dschcnt" anchor="left top bottom">
  47. <Formats>
  48. <Format id="default">
  49. <Columns>
  50. <Column size="120"/>
  51. <Column size="100"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="22"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell/>
  59. <Cell col="1"/>
  60. </Band>
  61. <Band id="body">
  62. <Cell style="align:left middle;" text="bind:flagnm"/>
  63. <Cell col="1" style="align:left middle;" text="bind:totcnt"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <Static text="조회구분 :" position="absolute 9 321 87 338" id="cap_reqflag" class="search_name"/>
  69. <Radio position="absolute 100 321 205 480" id="rdo_reqflag" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_reqflag_onitemchanged" onitemclick="rdo_reqflag_onitemclick">
  70. <Dataset id="innerdataset">
  71. <ColumnInfo>
  72. <Column id="codecolumn" size="256"/>
  73. <Column id="datacolumn" size="256"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="codecolumn">dsch1</Col>
  78. <Col id="datacolumn">퇴원환자</Col>
  79. </Row>
  80. <Row>
  81. <Col id="codecolumn">anly1</Col>
  82. <Col id="datacolumn">퇴원분석</Col>
  83. </Row>
  84. <Row>
  85. <Col id="codecolumn">anly2</Col>
  86. <Col id="datacolumn">미퇴원분석</Col>
  87. </Row>
  88. <Row>
  89. <Col id="codecolumn">indx1</Col>
  90. <Col id="datacolumn">진코딩</Col>
  91. </Row>
  92. <Row>
  93. <Col id="codecolumn">indx2</Col>
  94. <Col id="datacolumn">가코딩</Col>
  95. </Row>
  96. <Row>
  97. <Col id="codecolumn">indx3</Col>
  98. <Col id="datacolumn">미코딩</Col>
  99. </Row>
  100. <Row>
  101. <Col id="codecolumn">unpr</Col>
  102. <Col id="datacolumn">미비관리</Col>
  103. </Row>
  104. <Row>
  105. <Col id="codecolumn">indx4</Col>
  106. <Col id="datacolumn">재검토</Col>
  107. </Row>
  108. </Rows>
  109. </Dataset>
  110. </Radio>
  111. <Button position="absolute 1091 26 1141 45" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick" anchor="top right"/>
  112. <Static text="등록번호 :" position="absolute 9 77 87 94" id="cap_pid" class="search_name"/>
  113. <Edit position="absolute 90 75 181 94" id="ipt_pid" class="input_default" onkeyup="ipt_pid_onkeyup" autoselect="true"/>
  114. <Button position="absolute 204 74 220 90" id="btn_srchpid" class="icon_search" text="" onclick="btn_srchpid_onclick"/>
  115. <Edit position="absolute 93 441 154 460" id="ipt_inhospdd" enable="false" inputtype="number" inputfilter="dot,comma,sign,symbol,space"/>
  116. <Static text="검색이완료되었습니다(" position="absolute 5 470 132 490" id="cap_text"/>
  117. <Static position="absolute 133 470 168 490" id="cap_srchcnt" style="align:center middle;"/>
  118. <Static text=")건" position="absolute 171 470 192 490" id="cap_text2"/>
  119. <Tab position="absolute 228 37 1202 775" id="switch1" class="tab_Normal" anchor="all">
  120. <Tabpages>
  121. <Tabpage text="수거" position="absolute 0 0 970 733" id="case1" class="tab_Normal">
  122. <Layouts>
  123. <Layout>
  124. <Grid position="absolute 0 2 972 724" id="grd_chrtanaly" class="datagrid2" visible="false" binddataset="ds_main_list_chrtanaly_patlist" oncellclick="switch1_case1_grd_chrtanaly_oncellclick" onrbuttondown="switch1_case1_grd_chrtanaly_onrbuttondown" cellsizingtype="col" selecttype="multirow" anchor="all" taborder="0" cellclickbound="cell">
  125. <Formats>
  126. <Format id="default">
  127. <Columns>
  128. <Column size="25"/>
  129. <Column size="45"/>
  130. <Column size="45"/>
  131. <Column size="45"/>
  132. <Column size="42"/>
  133. <Column size="70"/>
  134. <Column size="59"/>
  135. <Column size="63"/>
  136. <Column size="80"/>
  137. <Column size="80"/>
  138. <Column size="0"/>
  139. <Column size="42"/>
  140. <Column size="105"/>
  141. <Column size="0"/>
  142. <Column size="46"/>
  143. <Column size="53"/>
  144. <Column size="0"/>
  145. <Column size="54"/>
  146. <Column size="71"/>
  147. <Column size="0"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. <Column size="0"/>
  152. <Column size="0"/>
  153. <Column size="0"/>
  154. <Column size="0"/>
  155. <Column size="0"/>
  156. <Column size="0"/>
  157. <Column size="0"/>
  158. <Column size="0"/>
  159. <Column size="0"/>
  160. <Column size="0"/>
  161. <Column size="40"/>
  162. <Column size="40"/>
  163. <Column size="40"/>
  164. <Column size="40"/>
  165. </Columns>
  166. <Rows>
  167. <Row size="26" band="head"/>
  168. <Row size="24"/>
  169. </Rows>
  170. <Band id="head">
  171. <Cell/>
  172. <Cell col="1" text="수거"/>
  173. <Cell col="2" text="삭제"/>
  174. <Cell col="3" text="미반납"/>
  175. <Cell col="4" text="6시간&#13;&#10;미만"/>
  176. <Cell col="5" text="등록번호"/>
  177. <Cell col="6" text="환자명"/>
  178. <Cell col="7" text="성별/나이"/>
  179. <Cell col="8" text="응급실내원일"/>
  180. <Cell col="9" text="입원일자"/>
  181. <Cell col="10" text="입원과명"/>
  182. <Cell col="11" text="입원과"/>
  183. <Cell col="12" text="퇴원일시"/>
  184. <Cell col="13" text="퇴원과명"/>
  185. <Cell col="14" text="퇴원과"/>
  186. <Cell col="15" text="담당교수"/>
  187. <Cell col="16" text="병동"/>
  188. <Cell col="17" text="병실"/>
  189. <Cell col="18" text="수거일자"/>
  190. <Cell col="19" text="출력여부"/>
  191. <Cell col="20" text="주민번호"/>
  192. <Cell col="21" text="주소"/>
  193. <Cell col="22" text="입퇴원요약지인증번호"/>
  194. <Cell col="23" text="입퇴원요약지코드"/>
  195. <Cell col="24" text="수술기록지인증번호"/>
  196. <Cell col="25" text="수술기록지코드"/>
  197. <Cell col="26" text="생성번호"/>
  198. <Cell col="27" text="기관코드"/>
  199. <Cell col="28" text="차트수거자"/>
  200. <Cell col="29" text="수거일시"/>
  201. <Cell col="30" text="차트삭제자"/>
  202. <Cell col="31" text="삭제일시"/>
  203. <Cell col="32" text="원입원일자"/>
  204. <Cell col="33" text="초진"/>
  205. <Cell col="34" text="전과"/>
  206. <Cell col="35" text="수술"/>
  207. <Cell col="36" text="시술"/>
  208. </Band>
  209. <Band id="body">
  210. <Cell celltype="head" text="expr:currow + 1"/>
  211. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:remyn" expr="expr:remyn == 'Y' || remyn == '1' ? 1 : 0"/>
  212. <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:delyn" expr="expr:delyn == 'Y' || delyn == '1' ? 1 : 0"/>
  213. <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:unrtnyn" expr="expr:unrtnyn == 'Y' || unrtnyn == '1' ? 1 : 0"/>
  214. <Cell col="4" text="bind:sixdethflag"/>
  215. <Cell col="5" text="bind:pid"/>
  216. <Cell col="6" text="bind:pnm"/>
  217. <Cell col="7" text="bind:sa"/>
  218. <Cell col="8" style="align:left middle;" text="bind:erindd" mask="expr:utlf_isNull(erindd) || erindd == &quot;-&quot; ? &quot;&quot; : &quot;####-##-##&quot;"/>
  219. <Cell col="9" text="bind:indd" mask="####-##-##"/>
  220. <Cell col="10" displaytype="combo" edittype="combo" text="bind:indeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  221. <Cell col="11" text="bind:indeptengcd" enable="false"/>
  222. <Cell col="12" text="bind:dschdt" mask="####-##-## ##:##"/>
  223. <Cell col="13" displaytype="combo" edittype="combo" text="bind:dschdeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  224. <Cell col="14" text="bind:dschdeptengcd" enable="false"/>
  225. <Cell col="15" text="bind:atdoctnm" enable="false"/>
  226. <Cell col="16" displaytype="combo" edittype="combo" text="bind:ward" combodataset="ds_init_ward_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  227. <Cell col="17" text="bind:room"/>
  228. <Cell col="18" style="align:left middle;" text="bind:removedd" mask="expr:utlf_isNull(removedd) || removedd == &quot;-&quot; ? &quot;&quot; : &quot;####-##-##&quot;"/>
  229. <Cell col="19" text="bind:readprtflag"/>
  230. <Cell col="20" text="bind:rrgstno"/>
  231. <Cell col="21" text="bind:addr"/>
  232. <Cell col="22" text="bind:signno"/>
  233. <Cell col="23" text="bind:formcd"/>
  234. <Cell col="24" text="bind:opsigngno"/>
  235. <Cell col="25" text="bind:opformcd"/>
  236. <Cell col="26" text="bind:cretno"/>
  237. <Cell col="27" text="bind:instcd"/>
  238. <Cell col="28" text="bind:removerid"/>
  239. <Cell col="29" text="bind:removedt"/>
  240. <Cell col="30" text="bind:indeluserid"/>
  241. <Cell col="31" text="bind:indeldt"/>
  242. <Cell col="32" text="bind:orgindd"/>
  243. <Cell col="33" text="bind:fstyn"/>
  244. <Cell col="34" text="bind:transyn"/>
  245. <Cell col="35" text="bind:susulyn"/>
  246. <Cell col="36" text="bind:sisulyn"/>
  247. </Band>
  248. </Format>
  249. </Formats>
  250. </Grid>
  251. </Layout>
  252. </Layouts>
  253. </Tabpage>
  254. <Tabpage text="분석" id="case2" class="tab_Normal">
  255. <Layouts>
  256. <Layout>
  257. <Grid position="absolute 0 0 972 722" id="grd_dschpat" class="datagrid2" visible="true" binddataset="ds_main_list_templist_dschpat" oncellclick="switch1_case2_grd_dschpat_oncellclick" cellsizingtype="col" selecttype="multirow" anchor="all">
  258. <Formats>
  259. <Format id="default">
  260. <Columns>
  261. <Column size="25"/>
  262. <Column size="70"/>
  263. <Column size="64"/>
  264. <Column size="80"/>
  265. <Column size="0"/>
  266. <Column size="100"/>
  267. <Column size="46"/>
  268. <Column size="100"/>
  269. <Column size="0"/>
  270. <Column size="45"/>
  271. <Column size="35"/>
  272. <Column size="35"/>
  273. <Column size="58"/>
  274. <Column size="35"/>
  275. <Column size="35"/>
  276. <Column size="65"/>
  277. <Column size="34"/>
  278. <Column size="0"/>
  279. <Column size="0"/>
  280. <Column size="57"/>
  281. <Column size="40"/>
  282. <Column size="40"/>
  283. <Column size="80"/>
  284. <Column size="0"/>
  285. <Column size="0"/>
  286. <Column size="0"/>
  287. <Column size="0"/>
  288. <Column size="0"/>
  289. <Column size="71"/>
  290. <Column size="78"/>
  291. <Column size="44"/>
  292. <Column size="68"/>
  293. <Column size="81"/>
  294. <Column size="83"/>
  295. </Columns>
  296. <Rows>
  297. <Row size="26" band="head"/>
  298. <Row size="24"/>
  299. </Rows>
  300. <Band id="head">
  301. <Cell/>
  302. <Cell col="1" text="등록번호"/>
  303. <Cell col="2" text="환자명"/>
  304. <Cell col="3" text="입원일자"/>
  305. <Cell col="4" text="입원과명"/>
  306. <Cell col="5" text="병동입실일"/>
  307. <Cell col="6" text="입원과"/>
  308. <Cell col="7" text="퇴원일자"/>
  309. <Cell col="8" text="퇴원과명"/>
  310. <Cell col="9" text="퇴원과"/>
  311. <Cell col="10" text="재원&#10;일수"/>
  312. <Cell col="11" text="전과&#10;여부"/>
  313. <Cell col="12" text="재평가&#10;기록횟수"/>
  314. <Cell col="13" text="마취&#10;방법"/>
  315. <Cell col="14" text="시술&#10;여부"/>
  316. <Cell col="15" text="시술코드"/>
  317. <Cell col="16" text="ER&#10;구분"/>
  318. <Cell col="17" text="수거상태"/>
  319. <Cell col="18" text="수거일자"/>
  320. <Cell col="19" text="퇴원분석&#10;여부"/>
  321. <Cell col="20" text="미비&#10;여부"/>
  322. <Cell col="21" text="코딩&#10;여부"/>
  323. <Cell col="22" text="미비완료일"/>
  324. <Cell col="23" text="생성번호"/>
  325. <Cell col="24" text="기관코드"/>
  326. <Cell col="25" text="수거자"/>
  327. <Cell col="26" text="삭제자"/>
  328. <Cell col="27" text="삭제일시"/>
  329. <Cell col="28" text="주진단코드"/>
  330. <Cell col="29" text="주수술코드"/>
  331. <Cell col="30" text="암등록&#10;여부"/>
  332. <Cell col="31" text="암등록코드&#10;(T코드)"/>
  333. <Cell col="32" text="암등록일시"/>
  334. <Cell col="33" text="담당교수"/>
  335. </Band>
  336. <Band id="body">
  337. <Cell celltype="head" text="expr:currow + 1"/>
  338. <Cell col="1" text="bind:pid"/>
  339. <Cell col="2" text="bind:pnm"/>
  340. <Cell col="3" text="bind:indd" mask="####-##-##"/>
  341. <Cell col="4" displaytype="combo" edittype="combo" text="bind:indeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  342. <Cell col="5" text="bind:inrmdt" mask="####-##-## ##:##"/>
  343. <Cell col="6" text="bind:indeptengcd" enable="false"/>
  344. <Cell col="7" text="bind:dschdt" mask="####-##-## ##:##"/>
  345. <Cell col="8" displaytype="combo" edittype="combo" text="bind:dschdeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  346. <Cell col="9" text="bind:dschdeptengcd" enable="false"/>
  347. <Cell col="10" text="bind:hd"/>
  348. <Cell col="11" text="bind:cdcryn"/>
  349. <Cell col="12" text="bind:revalucnt"/>
  350. <Cell col="13" text="bind:anstmthd"/>
  351. <Cell col="14" text="bind:srgopyn"/>
  352. <Cell col="15" text="bind:doptermcd"/>
  353. <Cell col="16" text="bind:ordtype"/>
  354. <Cell col="17" text="bind:remyn"/>
  355. <Cell col="18" text="bind:removedd" mask="expr:grdf_setCellMask(removedd, &quot;####-##-##&quot;)"/>
  356. <Cell col="19" text="bind:dschflag"/>
  357. <Cell col="20" text="bind:unprepflag"/>
  358. <Cell col="21" edittype="none" text="bind:indxflag"/>
  359. <Cell col="22" text="bind:unprependdd" expr="expr:unprepflag == 'Y' ? '' : utlf_transNullToEmpty(unprependdd)" mask="expr:unprepflag == 'Y' ? '' : grdf_setCellMask(unprependdd, &quot;####-##-##&quot;)"/>
  360. <Cell col="23" text="bind:cretno"/>
  361. <Cell col="24" text="bind:instcd"/>
  362. <Cell col="25" text="bind:removerid"/>
  363. <Cell col="26" text="bind:indeluserid"/>
  364. <Cell col="27" text="bind:indeldt"/>
  365. <Cell col="28" text="bind:dispdiagcd"/>
  366. <Cell col="29" text="bind:disoptermcd"/>
  367. <Cell col="30" text="bind:cncr_regyn"/>
  368. <Cell col="31" text="bind:cncr_tcode"/>
  369. <Cell col="32" text="bind:cncr_regdate" mask="expr:grdf_setCellMask(cncr_regdate, &quot;####-##-##&quot;)"/>
  370. <Cell col="33" text="bind:medispclnm"/>
  371. </Band>
  372. </Format>
  373. </Formats>
  374. </Grid>
  375. </Layout>
  376. </Layouts>
  377. </Tabpage>
  378. <Tabpage text="분석" id="case3" class="tab_Normal">
  379. <Layouts>
  380. <Layout>
  381. <Grid position="absolute 0 0 972 722" id="grd_dschanaly" class="datagrid2" visible="true" binddataset="ds_main_list_templist1_dschanaly" oncellclick="switch1_case3_grd_dschanaly_oncellclick" cellsizingtype="col" selecttype="multirow" anchor="all">
  382. <Formats>
  383. <Format id="default">
  384. <Columns>
  385. <Column size="25"/>
  386. <Column size="70"/>
  387. <Column size="64"/>
  388. <Column size="70"/>
  389. <Column size="0"/>
  390. <Column size="64"/>
  391. <Column size="74"/>
  392. <Column size="0"/>
  393. <Column size="44"/>
  394. <Column size="0"/>
  395. <Column size="71"/>
  396. <Column size="78"/>
  397. <Column size="44"/>
  398. <Column size="68"/>
  399. <Column size="81"/>
  400. <Column size="93"/>
  401. <Column size="58"/>
  402. <Column size="100"/>
  403. <Column size="58"/>
  404. <Column size="0"/>
  405. </Columns>
  406. <Rows>
  407. <Row size="26" band="head"/>
  408. <Row size="24"/>
  409. </Rows>
  410. <Band id="head">
  411. <Cell/>
  412. <Cell col="1" text="등록번호"/>
  413. <Cell col="2" text="환자명"/>
  414. <Cell col="3" text="입원일자"/>
  415. <Cell col="4" text="입원과명"/>
  416. <Cell col="5" text="입원과"/>
  417. <Cell col="6" text="퇴원일자"/>
  418. <Cell col="7" text="퇴원과명"/>
  419. <Cell col="8" text="퇴원과"/>
  420. <Cell col="9" text="수거상태"/>
  421. <Cell col="10" text="주진단코드"/>
  422. <Cell col="11" text="주수술코드"/>
  423. <Cell col="12" text="암등록&#10;여부"/>
  424. <Cell col="13" text="암등록코드&#10;(T코드)"/>
  425. <Cell col="14" text="암등록일시"/>
  426. <Cell col="15" text="최초퇴원분석일"/>
  427. <Cell col="16" text="최초퇴원분석자" wordwrap="char"/>
  428. <Cell col="17" text="최종퇴원분석일"/>
  429. <Cell col="18" text="최종퇴원&#13;&#10;분석자" wordwrap="char"/>
  430. <Cell col="19" text="퇴원분석내용"/>
  431. </Band>
  432. <Band id="body">
  433. <Cell celltype="head" text="expr:currow + 1"/>
  434. <Cell col="1" text="bind:pid"/>
  435. <Cell col="2" text="bind:pnm"/>
  436. <Cell col="3" text="bind:indd" mask="expr:grdf_setCellMask(indd, &quot;####-##-##&quot;)"/>
  437. <Cell col="4" displaytype="combo" edittype="combo" text="bind:indeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  438. <Cell col="5" text="bind:indeptengcd" enable="false"/>
  439. <Cell col="6" text="bind:dschdt" mask="expr:grdf_setCellMask(dschdt, &quot;####-##-##&quot;)" enable="false"/>
  440. <Cell col="7" displaytype="combo" edittype="combo" text="bind:dschdeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm"/>
  441. <Cell col="8" edittype="none" text="bind:dschdeptengcd" enable="false"/>
  442. <Cell col="9" edittype="none" text="bind:remyn" enable="false"/>
  443. <Cell col="10" text="bind:dispdiagcd"/>
  444. <Cell col="11" text="bind:disoptermcd"/>
  445. <Cell col="12" text="bind:cncr_regyn"/>
  446. <Cell col="13" text="bind:cncr_tcode"/>
  447. <Cell col="14" text="bind:cncr_regdate" mask="expr:grdf_setCellMask(cncr_regdate, &quot;####-##-##&quot;)"/>
  448. <Cell col="15" text="bind:fstrgstdt" mask="expr:grdf_setCellMask(fstrgstdt, &quot;####-##-##&quot;)"/>
  449. <Cell col="16" text="bind:fstrgstrnm"/>
  450. <Cell col="17" text="bind:lastupdtdt" mask="expr:grdf_setCellMask(lastupdtdt, &quot;####-##-##&quot;)"/>
  451. <Cell col="18" text="bind:lastrgstrnm"/>
  452. <Cell col="19"/>
  453. </Band>
  454. </Format>
  455. </Formats>
  456. </Grid>
  457. </Layout>
  458. </Layouts>
  459. </Tabpage>
  460. <Tabpage text="분석" id="case4" class="tab_Normal">
  461. <Layouts>
  462. <Layout>
  463. <Grid position="absolute 0 0 972 722" id="grd_indxlist" class="datagrid2" visible="true" binddataset="ds_main_list_templist2_dschindxlist" oncellclick="switch1_case4_grd_indxlist_oncellclick" cellsizingtype="col" selecttype="multirow" anchor="all">
  464. <Formats>
  465. <Format id="default">
  466. <Columns>
  467. <Column size="25"/>
  468. <Column size="55"/>
  469. <Column size="51"/>
  470. <Column size="66"/>
  471. <Column size="0"/>
  472. <Column size="47"/>
  473. <Column size="75"/>
  474. <Column size="0"/>
  475. <Column size="48"/>
  476. <Column size="51"/>
  477. <Column size="123"/>
  478. <Column size="81"/>
  479. <Column size="0"/>
  480. <Column size="60"/>
  481. <Column size="85"/>
  482. <Column size="0"/>
  483. <Column size="58"/>
  484. <Column size="48"/>
  485. <Column size="63"/>
  486. <Column size="0"/>
  487. <Column size="100"/>
  488. <Column size="100"/>
  489. <Column size="100"/>
  490. <Column size="100"/>
  491. <Column size="0"/>
  492. <Column size="0"/>
  493. <Column size="0"/>
  494. <Column size="0"/>
  495. <Column size="0"/>
  496. <Column size="0"/>
  497. </Columns>
  498. <Rows>
  499. <Row size="26" band="head"/>
  500. <Row size="24"/>
  501. </Rows>
  502. <Band id="head">
  503. <Cell/>
  504. <Cell col="1" text="등록번호"/>
  505. <Cell col="2" text="환자명"/>
  506. <Cell col="3" text="입원일자"/>
  507. <Cell col="4" text="입원과명"/>
  508. <Cell col="5" text="입원과"/>
  509. <Cell col="6" text="퇴원일자"/>
  510. <Cell col="7" text="퇴원과명"/>
  511. <Cell col="8" text="퇴원과"/>
  512. <Cell col="9" text="퇴원분석여부" wordwrap="char"/>
  513. <Cell col="10" text="미비현황"/>
  514. <Cell col="11" text="최초코딩날짜"/>
  515. <Cell col="12" text="최초코딩작업자아이디"/>
  516. <Cell col="13" text="최초코딩작업자" wordwrap="char"/>
  517. <Cell col="14" text="최종코딩날짜"/>
  518. <Cell col="15" text="최종코딩작업자아이디"/>
  519. <Cell col="16" text="최종코딩작업자" wordwrap="char"/>
  520. <Cell col="17" text="가코딩여부" wordwrap="char"/>
  521. <Cell col="18" text="가코딩상세내용" wordwrap="char"/>
  522. <Cell col="19" text="가코딩상세정보코드"/>
  523. <Cell col="20" text="진단코드"/>
  524. <Cell col="21" text="수술코드"/>
  525. <Cell col="22" text="사망코드"/>
  526. <Cell col="23" text="코딩내용(옵션)"/>
  527. <Cell col="24" text="생성번호"/>
  528. <Cell col="25" text="기관코드"/>
  529. <Cell col="26" text="수거자"/>
  530. <Cell col="27" text="수거일시"/>
  531. <Cell col="28" text="삭제자"/>
  532. <Cell col="29" text="삭제일시"/>
  533. </Band>
  534. <Band id="body">
  535. <Cell celltype="head" text="expr:currow + 1"/>
  536. <Cell col="1" text="bind:pid"/>
  537. <Cell col="2" text="bind:pnm"/>
  538. <Cell col="3" text="bind:indd" mask="expr:grdf_setCellMask(indd, &quot;####-##-##&quot;)"/>
  539. <Cell col="4" displaytype="combo" edittype="combo" text="bind:indeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  540. <Cell col="5" text="bind:indeptengcd" enable="false"/>
  541. <Cell col="6" text="bind:dschdt" mask="####-##-## ##:##"/>
  542. <Cell col="7" displaytype="combo" edittype="combo" text="bind:dschdeptcd" combodataset="ds_init_orddept_dept" combocodecol="deptcd" combodatacol="depthngnm" enable="false"/>
  543. <Cell col="8" text="bind:dschdeptengcd" enable="false"/>
  544. <Cell col="9" text="bind:dschflag"/>
  545. <Cell col="10" text="bind:unprepflag"/>
  546. <Cell col="11" text="bind:fstrgstdt" mask="####-##-## ##:##"/>
  547. <Cell col="12" text="bind:fstrgstrid"/>
  548. <Cell col="13" text="bind:fstrgstrnm"/>
  549. <Cell col="14" text="bind:lastupdtdt" mask="####-##-## ##:##"/>
  550. <Cell col="15" text="bind:lastrgstrid"/>
  551. <Cell col="16" text="bind:lastupdtrnm"/>
  552. <Cell col="17" text="bind:tmpcodeyn"/>
  553. <Cell col="18" text="bind:tmpcoderesnnm"/>
  554. <Cell col="19" text="bind:tmpcoderesncd"/>
  555. <Cell col="20" text="bind:diagtermcd"/>
  556. <Cell col="21" text="bind:optermcd"/>
  557. <Cell col="22" text="bind:dethcd"/>
  558. <Cell col="23"/>
  559. <Cell col="24" text="bind:cretno"/>
  560. <Cell col="25" text="bind:instcd"/>
  561. <Cell col="26" text="bind:removerid"/>
  562. <Cell col="27" text="bind:removedt"/>
  563. <Cell col="28" text="bind:indeluserid"/>
  564. <Cell col="29" text="bind:indeldt"/>
  565. </Band>
  566. </Format>
  567. </Formats>
  568. </Grid>
  569. </Layout>
  570. </Layouts>
  571. </Tabpage>
  572. <Tabpage text="분석" id="case5" class="tab_Normal">
  573. <Layouts>
  574. <Layout>
  575. <Grid position="absolute 0 0 972 722" id="grd_unprep" class="datagrid2" visible="true" binddataset="ds_main_list_templist3_dschunprep" oncellclick="switch1_case5_grd_unprep_oncellclick" cellsizingtype="col" selecttype="multirow" anchor="all">
  576. <Formats>
  577. <Format id="default">
  578. <Columns>
  579. <Column size="25"/>
  580. <Column size="59"/>
  581. <Column size="60"/>
  582. <Column size="73"/>
  583. <Column size="0"/>
  584. <Column size="58"/>
  585. <Column size="73"/>
  586. <Column size="0"/>
  587. <Column size="59"/>
  588. <Column size="81"/>
  589. <Column size="0"/>
  590. <Column size="73"/>
  591. <Column size="92"/>
  592. <Column size="0"/>
  593. <Column size="58"/>
  594. <Column size="110"/>
  595. </Columns>
  596. <Rows>
  597. <Row size="26" band="head"/>
  598. <Row size="24"/>
  599. </Rows>
  600. <Band id="head">
  601. <Cell/>
  602. <Cell col="1" text="등록번호"/>
  603. <Cell col="2" text="환자명"/>
  604. <Cell col="3" text="입원일자"/>
  605. <Cell col="4" text="입원과코드"/>
  606. <Cell col="5" text="입원과"/>
  607. <Cell col="6" text="퇴원일자"/>
  608. <Cell col="7" text="퇴원과코드"/>
  609. <Cell col="8" text="퇴원과"/>
  610. <Cell col="9" text="미비입력일(작업일자)" wordwrap="char"/>
  611. <Cell col="10" text="미비입력자코드"/>
  612. <Cell col="11" text="미비입력자"/>
  613. <Cell col="12" text="미비완료일"/>
  614. <Cell col="13" text="미비완료작업자코드"/>
  615. <Cell col="14" text="미비완료작업자" wordwrap="char"/>
  616. <Cell col="15" text="미비의사"/>
  617. </Band>
  618. <Band id="body">
  619. <Cell celltype="head" text="expr:currow + 1"/>
  620. <Cell col="1" text="bind:pid"/>
  621. <Cell col="2" text="bind:patnm"/>
  622. <Cell col="3" text="bind:indd" mask="expr:grdf_setCellMask(indd, &quot;####-##-##&quot;)"/>
  623. <Cell col="4" text="bind:indeptcd"/>
  624. <Cell col="5" text="bind:indeptnm" enable="false"/>
  625. <Cell col="6" text="bind:dschdd" mask="expr:grdf_setCellMask(dschdd, &quot;####-##-##&quot;)"/>
  626. <Cell col="7" text="bind:dschdeptcd"/>
  627. <Cell col="8" text="bind:dschdeptnm" enable="false"/>
  628. <Cell col="9" text="bind:fstrgstdt" mask="####-##-## ##:##"/>
  629. <Cell col="10" text="bind:fstrgstrid"/>
  630. <Cell col="11" text="bind:fstrgstrnm"/>
  631. <Cell col="12" text="bind:lastupdtdt" mask="####-##-## ##:##"/>
  632. <Cell col="13" text="bind:lastupdtrid"/>
  633. <Cell col="14" text="bind:lastupdtrnm"/>
  634. <Cell col="15" text="bind:drnm"/>
  635. </Band>
  636. </Format>
  637. </Formats>
  638. </Grid>
  639. </Layout>
  640. </Layouts>
  641. </Tabpage>
  642. <Tabpage text="미반납건수현황" id="deptunrtn" class="tab_Normal">
  643. <Layouts>
  644. <Layout>
  645. <Grid position="absolute 0 0 972 722" id="grd_deptunrtncntlist" class="datagrid2" scrollbars="autoboth" binddataset="ds_main_chrtunrtnlist3_deptunrtncntlist" cellsizingtype="col" selecttype="multirow" anchor="all">
  646. <Formats>
  647. <Format id="default">
  648. <Columns>
  649. <Column size="0"/>
  650. <Column size="125"/>
  651. <Column size="88"/>
  652. <Column size="85"/>
  653. <Column size="206"/>
  654. <Column size="173"/>
  655. </Columns>
  656. <Rows>
  657. <Row size="24" band="head"/>
  658. <Row size="24"/>
  659. </Rows>
  660. <Band id="head">
  661. <Cell text="진료과코드"/>
  662. <Cell col="1" text="진료과"/>
  663. <Cell col="2" text="퇴원환자수"/>
  664. <Cell col="3" text="미반납건수"/>
  665. <Cell col="4" text="진료과별미반납비율(%)"/>
  666. <Cell col="5" text="퇴원환자수대비미반납율(%)"/>
  667. </Band>
  668. <Band id="body">
  669. <Cell text="bind:deptcd"/>
  670. <Cell col="1" text="bind:depthngnm"/>
  671. <Cell col="2" text="bind:dschcnt"/>
  672. <Cell col="3" text="bind:untrncnt"/>
  673. <Cell col="4" text="bind:deptuntrnrate"/>
  674. <Cell col="5" text="bind:dschuntrnrate"/>
  675. </Band>
  676. </Format>
  677. </Formats>
  678. </Grid>
  679. </Layout>
  680. </Layouts>
  681. </Tabpage>
  682. <Tabpage text="" id="deptunrem" class="tab_Normal">
  683. <Layouts>
  684. <Layout>
  685. <Grid position="absolute 0 0 972 722" id="grd_deptunremcntlist" class="datagrid2" scrollbars="autoboth" binddataset="ds_main_chrtunrtnlist2_deptunremcntlist" cellsizingtype="col" selecttype="multirow" anchor="all">
  686. <Formats>
  687. <Format id="default">
  688. <Columns>
  689. <Column size="0"/>
  690. <Column size="156"/>
  691. <Column size="100"/>
  692. <Column size="237"/>
  693. </Columns>
  694. <Rows>
  695. <Row size="24" band="head"/>
  696. <Row size="24"/>
  697. </Rows>
  698. <Band id="head">
  699. <Cell text="진료과코드"/>
  700. <Cell col="1" text="진료과"/>
  701. <Cell col="2" text="미수거건수"/>
  702. <Cell col="3" text="비율(%)"/>
  703. </Band>
  704. <Band id="body">
  705. <Cell text="bind:deptcd"/>
  706. <Cell col="1" text="bind:depthngnm"/>
  707. <Cell col="2" text="bind:unremcnt"/>
  708. <Cell col="3" text="bind:rate"/>
  709. </Band>
  710. </Format>
  711. </Formats>
  712. </Grid>
  713. </Layout>
  714. </Layouts>
  715. </Tabpage>
  716. <Tabpage text="" id="wardunrem" class="tab_Normal">
  717. <Layouts>
  718. <Layout>
  719. <Grid position="absolute 0 0 972 722" id="grd_wardunremcntlist" class="datagrid2" scrollbars="autoboth" binddataset="ds_main_chrtunrtnlist1_wardunremcntlist" cellsizingtype="col" selecttype="multirow" anchor="all">
  720. <Formats>
  721. <Format id="default">
  722. <Columns>
  723. <Column size="0"/>
  724. <Column size="115"/>
  725. <Column size="83"/>
  726. <Column size="661"/>
  727. <Column size="105"/>
  728. </Columns>
  729. <Rows>
  730. <Row size="24" band="head"/>
  731. <Row size="24"/>
  732. </Rows>
  733. <Band id="head">
  734. <Cell text="Floor"/>
  735. <Cell col="1" text="병동"/>
  736. <Cell col="2" text="미수거건수"/>
  737. <Cell col="3" text="과별미수거건수"/>
  738. <Cell col="4" text="비율(%)"/>
  739. </Band>
  740. <Band id="body">
  741. <Cell text="bind:floor"/>
  742. <Cell col="1" text="bind:wardnm"/>
  743. <Cell col="2" text="bind:unremcnt"/>
  744. <Cell col="3" text="bind:deptunremcnt"/>
  745. <Cell col="4" text="bind:rate"/>
  746. </Band>
  747. </Format>
  748. </Formats>
  749. </Grid>
  750. </Layout>
  751. </Layouts>
  752. </Tabpage>
  753. <Tabpage text="" id="wardunrtn" class="tab_Normal">
  754. <Layouts>
  755. <Layout>
  756. <Grid position="absolute 0 0 972 722" id="grd_wardunrtncntlist" class="datagrid2" scrollbars="autoboth" binddataset="ds_main_chrtunrtnlist4_wardunrtncntlist" cellsizingtype="col" selecttype="multirow" anchor="all">
  757. <Formats>
  758. <Format id="default">
  759. <Columns>
  760. <Column size="0"/>
  761. <Column size="0"/>
  762. <Column size="156"/>
  763. <Column size="100"/>
  764. <Column size="100"/>
  765. <Column size="197"/>
  766. <Column size="211"/>
  767. </Columns>
  768. <Rows>
  769. <Row size="24" band="head"/>
  770. <Row size="24"/>
  771. </Rows>
  772. <Band id="head">
  773. <Cell text="Floor"/>
  774. <Cell col="1" text="병동코드"/>
  775. <Cell col="2" text="병동"/>
  776. <Cell col="3" text="퇴원환자수"/>
  777. <Cell col="4" text="미반납건수"/>
  778. <Cell col="5" text="병동별미반납비율(%)"/>
  779. <Cell col="6" text="퇴원환자대비미반납율(%)"/>
  780. </Band>
  781. <Band id="body">
  782. <Cell text="bind:floor"/>
  783. <Cell col="1" text="bind:wardcd"/>
  784. <Cell col="2" text="bind:wardnm"/>
  785. <Cell col="3" text="bind:dschcnt"/>
  786. <Cell col="4" text="bind:untrncnt"/>
  787. <Cell col="5" text="bind:warduntrnrate"/>
  788. <Cell col="6" text="bind:dschuntrnrate"/>
  789. </Band>
  790. </Format>
  791. </Formats>
  792. </Grid>
  793. </Layout>
  794. </Layouts>
  795. </Tabpage>
  796. </Tabpages>
  797. </Tab>
  798. <Button position="absolute 717 26 803 45" id="btn_search" class="btn2" text="통합기록조회" onclick="btn_search_onclick" anchor="top right"/>
  799. <Button position="absolute 871 26 968 45" id="btn_indx" class="btn2" text="질병및수술분류" onclick="btn_indx_onclick" anchor="top right"/>
  800. <Button position="absolute 629 26 715 45" id="btn_patdinfo" class="btn2" visible="false" text="환자상세정보" onclick="btn_patdinfo_onclick" anchor="top right"/>
  801. <Button position="absolute 805 26 869 45" id="btn_dsch" class="btn2" text="퇴원분석" onclick="btn_dsch_onclick" anchor="top right"/>
  802. <Button position="absolute 1143 26 1198 45" id="btn_save" class="btn4" text="저장" onclick="btn_save_onclick" anchor="top right"/>
  803. <Radio position="absolute 100 265 175 345" id="rdo_remyn" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_remyn_onitemchanged">
  804. <Dataset id="innerdataset">
  805. <ColumnInfo>
  806. <Column id="codecolumn"/>
  807. <Column id="datacolumn"/>
  808. </ColumnInfo>
  809. <Rows>
  810. <Row>
  811. <Col id="codecolumn">all</Col>
  812. <Col id="datacolumn">전체</Col>
  813. </Row>
  814. <Row>
  815. <Col id="codecolumn">rem</Col>
  816. <Col id="datacolumn">수거</Col>
  817. </Row>
  818. <Row>
  819. <Col id="codecolumn">urem</Col>
  820. <Col id="datacolumn">미수거</Col>
  821. </Row>
  822. <Row>
  823. <Col id="codecolumn">indelyn</Col>
  824. <Col id="datacolumn">입원삭제</Col>
  825. </Row>
  826. <Row>
  827. <Col id="codecolumn">rtnyn</Col>
  828. <Col id="datacolumn">미반납</Col>
  829. </Row>
  830. </Rows>
  831. </Dataset>
  832. </Radio>
  833. <Edit position="absolute 15 285 85 304" id="ipt_unprepdrid" visible="false" onkeydown="ipt_unprepdrid_onkeydown"/>
  834. <Edit position="absolute 90 220 205 239" id="ipt_unprepdrnm" onkeydown="ipt_unprepdrnm_onkeydown"/>
  835. <Static text="사 용 자 :" position="absolute 9 220 85 237" id="cap_user" class="search_name"/>
  836. <CheckBox position="absolute 179 52 223 72" id="chk_rflag" text="수거" truevalue="R" onclick="chk_rflag_onclick"/>
  837. <Static text="조회구분 :" position="absolute 9 177 85 194" id="cap_unrtnflag" class="search_name" visible="false"/>
  838. <Radio position="absolute 90 174 220 254" id="rdo_unrtnflag" visible="false" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_unrtnflag_onitemchanged">
  839. <Dataset id="innerdataset">
  840. <ColumnInfo>
  841. <Column id="codecolumn"/>
  842. <Column id="datacolumn"/>
  843. </ColumnInfo>
  844. <Rows>
  845. <Row>
  846. <Col id="codecolumn">wardunremcnt</Col>
  847. <Col id="datacolumn">병동별(미수거)</Col>
  848. </Row>
  849. <Row>
  850. <Col id="codecolumn">deptunremcnt</Col>
  851. <Col id="datacolumn">진료과별(미수거)</Col>
  852. </Row>
  853. <Row>
  854. <Col id="codecolumn">deptuntrncnt</Col>
  855. <Col id="datacolumn">진료과별미반납건수</Col>
  856. </Row>
  857. <Row>
  858. <Col id="codecolumn">warduntrncnt</Col>
  859. <Col id="datacolumn">병동별미반납건수</Col>
  860. </Row>
  861. </Rows>
  862. </Dataset>
  863. </Radio>
  864. <Button position="absolute 163 415 219 437" id="btn_chrtuncntprescond" class="btn1" visible="false" text="조회" onclick="btn_chrtuncntprescond_onclick"/>
  865. <Button position="absolute 970 26 1034 45" id="btn_unprep" class="btn2" text="미비관리" onclick="btn_unprep_onclick" anchor="top right"/>
  866. <Button position="absolute 1036 26 1089 45" id="btn_cncr" class="btn2" text="암등록" onclick="btn_cncr_onclick" anchor="top right"/>
  867. <CheckBox position="absolute 184 75 201 95" id="chb_value"/>
  868. <CheckBox position="absolute 11 115 80 135" id="chk_userflag" text="작업기준" truevalue="dsch" style="textpadding:0 0 0 0;" onclick="chk_userflag_onclick"/>
  869. <Button id="btn_stat" text="수거" position="absolute 0 30 65 50" class="btn_tab" onclick="btn_stat_onclick"/>
  870. <Button id="btn_flag" text="분석" class="btn_tab" position="absolute 66 30 131 50" onclick="btn_flag_onclick"/>
  871. <Button id="button2" text="미반납건수현황" class="btn_tab" position="absolute 132 30 222 50" visible="false" onclick="button2_onclick"/>
  872. <PopupMenu id="popupmenu" innerdataset="@ds_hidden_menu_chrtanaly" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="popupmenu_onmenuclick" position="absolute 1203 0 1325 43"/>
  873. <Div id="Div00" taborder="6" position="absolute 229 26 575 48" anchor="left top right"/>
  874. <Static id="cap_exam" text="검토일자 :" class="search_name" position="absolute 233 28 311 45"/>
  875. <Calendar id="ipt_examfromdd" taborder="7" autoselect="true" autoskip="true" position="absolute 306 27 398 46" dateformat="yyyy-MM-dd" value="null"/>
  876. <Calendar id="ipt_examtodd" taborder="8" autoselect="true" position="absolute 418 27 510 46" dateformat="yyyy-MM-dd"/>
  877. <Static id="cap_examfromto" text="~" class="search_no_b" position="absolute 403 28 415 45"/>
  878. <Grid id="grd_multidept" taborder="9" useinputpanel="false" position="absolute 1213 48 1396 652" scrollbars="autovert" visible="false" oncellclick="grd_multidept_oncellclick" onkillfocus="grd_multidept_onkillfocus">
  879. <Formats>
  880. <Format id="default">
  881. <Columns>
  882. <Column size="29"/>
  883. <Column size="154"/>
  884. <Column size="99"/>
  885. <Column size="40"/>
  886. </Columns>
  887. <Rows>
  888. <Row size="24"/>
  889. </Rows>
  890. <Band id="body">
  891. <Cell celltype="none" displaytype="checkbox" edittype="checkbox" text="bind:checkflag" displayexpdec="-1"/>
  892. <Cell col="1" style="align:left;" text="bind:depthngnm"/>
  893. <Cell col="2" text="bind:deptcd"/>
  894. <Cell col="3" text="bind:deptengabbr"/>
  895. </Band>
  896. </Format>
  897. </Formats>
  898. </Grid>
  899. <Edit id="opt_multidept" taborder="39" readonly="true" position="absolute 90 146 186 167"/>
  900. <Button id="btn_multidept" taborder="40" onclick="btn_multidept_onclick" class="icon_bottom" position="absolute 186 146 206 167">
  901. <Layouts>
  902. <Layout width="20" height="21"/>
  903. </Layouts>
  904. </Button>
  905. <Button id="btn_syncsetting" taborder="41" position="absolute 693 26 712 45" style="imagealign:center middle;backgroundimagemode:single;background:@gradation URL('theme://images\icon_shuttleBottom_N.png') stretch;margin:0 0 0 0;padding:0 0 0 0;bordertype:round 2 2 ;align:center middle;" onclick="btn_syncsetting_onclick" anchor="top right"/>
  906. <Grid id="grd_syncform" taborder="0" useinputpanel="false" position="absolute 1400 49 1539 195" visible="false" binddataset="ds_init_syncform" onheadclick="grd_syncform_onheadclick" cellclickbound="cell">
  907. <Formats>
  908. <Format id="default">
  909. <Columns>
  910. <Column size="27"/>
  911. <Column size="112"/>
  912. </Columns>
  913. <Rows>
  914. <Row size="24" band="head"/>
  915. <Row size="24"/>
  916. </Rows>
  917. <Band id="head">
  918. <Cell displaytype="checkbox" edittype="checkbox" editacceptsenter="false" editacceptsdirectionkey="false"/>
  919. <Cell col="1" text="동기화 화면"/>
  920. </Band>
  921. <Band id="body">
  922. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  923. <Cell col="1" style="align:left;" text="bind:formnm"/>
  924. </Band>
  925. </Format>
  926. </Formats>
  927. </Grid>
  928. </Layout>
  929. </Layouts>
  930. <Objects>
  931. <Dataset id="ds_init_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  932. <ColumnInfo>
  933. <Column id="depthngnm" type="STRING"/>
  934. <Column id="deptcd" type="STRING"/>
  935. </ColumnInfo>
  936. </Dataset>
  937. <Dataset id="ds_init_ward_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  938. <ColumnInfo>
  939. <Column id="depthngnm" type="STRING"/>
  940. <Column id="deptcd" type="STRING"/>
  941. </ColumnInfo>
  942. </Dataset>
  943. <Dataset id="ds_init_userlist_drlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  944. <ColumnInfo>
  945. <Column id="drnm" type="STRING"/>
  946. <Column id="drid" type="STRING"/>
  947. </ColumnInfo>
  948. </Dataset>
  949. <Dataset id="ds_main_list_dschcnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  950. <ColumnInfo>
  951. <Column id="flagnm" type="STRING"/>
  952. <Column id="totcnt" type="STRING"/>
  953. </ColumnInfo>
  954. </Dataset>
  955. <Dataset id="ds_main_list_chrtanaly_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_chrtanaly_patlist_oncolumnchanged">
  956. <ColumnInfo>
  957. <Column id="remyn" type="STRING"/>
  958. <Column id="delyn" type="STRING"/>
  959. <Column id="unrtnyn" type="STRING"/>
  960. <Column id="sixdethflag" type="STRING"/>
  961. <Column id="pid" type="STRING"/>
  962. <Column id="pnm" type="STRING"/>
  963. <Column id="sa" type="STRING"/>
  964. <Column id="erindd" type="STRING"/>
  965. <Column id="indd" type="STRING"/>
  966. <Column id="indeptcd" type="STRING"/>
  967. <Column id="indeptengcd" type="STRING"/>
  968. <Column id="dschdt" type="STRING"/>
  969. <Column id="dschdeptcd" type="STRING"/>
  970. <Column id="dschdeptengcd" type="STRING"/>
  971. <Column id="atdoctnm" type="STRING"/>
  972. <Column id="ward" type="STRING"/>
  973. <Column id="room" type="STRING"/>
  974. <Column id="removedd" type="STRING"/>
  975. <Column id="readprtflag" type="STRING"/>
  976. <Column id="rrgstno" type="STRING"/>
  977. <Column id="addr" type="STRING"/>
  978. <Column id="signno" type="STRING"/>
  979. <Column id="formcd" type="STRING"/>
  980. <Column id="opsigngno" type="STRING"/>
  981. <Column id="opformcd" type="STRING"/>
  982. <Column id="cretno" type="STRING"/>
  983. <Column id="instcd" type="STRING"/>
  984. <Column id="removerid" type="STRING"/>
  985. <Column id="removedt" type="STRING"/>
  986. <Column id="indeluserid" type="STRING"/>
  987. <Column id="indeldt" type="STRING"/>
  988. <Column id="orgindd" type="STRING"/>
  989. </ColumnInfo>
  990. </Dataset>
  991. <Dataset id="ds_main_list_templist_dschpat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  992. <ColumnInfo>
  993. <Column id="pid" type="STRING"/>
  994. <Column id="pnm" type="STRING"/>
  995. <Column id="indd" type="STRING"/>
  996. <Column id="indeptcd" type="STRING"/>
  997. <Column id="indeptengcd" type="STRING"/>
  998. <Column id="dschdt" type="STRING"/>
  999. <Column id="dschdeptcd" type="STRING"/>
  1000. <Column id="dschdeptengcd" type="STRING"/>
  1001. <Column id="hd" type="STRING"/>
  1002. <Column id="cdcryn" type="STRING"/>
  1003. <Column id="revalucnt" type="STRING"/>
  1004. <Column id="anstmthd" type="STRING"/>
  1005. <Column id="srgopyn" type="STRING"/>
  1006. <Column id="doptermcd" type="STRING"/>
  1007. <Column id="ordtype" type="STRING"/>
  1008. <Column id="remyn" type="STRING"/>
  1009. <Column id="removedd" type="STRING"/>
  1010. <Column id="dschflag" type="STRING"/>
  1011. <Column id="unprepflag" type="STRING"/>
  1012. <Column id="indxflag" type="STRING"/>
  1013. <Column id="unprependdd" type="STRING"/>
  1014. <Column id="cretno" type="STRING"/>
  1015. <Column id="instcd" type="STRING"/>
  1016. <Column id="removerid" type="STRING"/>
  1017. <Column id="indeluserid" type="STRING"/>
  1018. <Column id="indeldt" type="STRING"/>
  1019. <Column id="dispdiagcd" type="STRING"/>
  1020. <Column id="disoptermcd" type="STRING"/>
  1021. <Column id="cncr_regyn" type="STRING"/>
  1022. <Column id="cncr_tcode" type="STRING"/>
  1023. <Column id="cncr_regdate" type="STRING"/>
  1024. <Column id="medispclnm" type="STRING"/>
  1025. <Column id="inrmdt" type="STRING" size="256"/>
  1026. </ColumnInfo>
  1027. </Dataset>
  1028. <Dataset id="ds_main_list_templist1_dschanaly" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1029. <ColumnInfo>
  1030. <Column id="pid" type="STRING"/>
  1031. <Column id="pnm" type="STRING"/>
  1032. <Column id="indd" type="STRING"/>
  1033. <Column id="indeptcd" type="STRING"/>
  1034. <Column id="indeptengcd" type="STRING"/>
  1035. <Column id="dschdt" type="STRING"/>
  1036. <Column id="dschdeptcd" type="STRING"/>
  1037. <Column id="dschdeptengcd" type="STRING"/>
  1038. <Column id="remyn" type="STRING"/>
  1039. <Column id="dispdiagcd" type="STRING"/>
  1040. <Column id="disoptermcd" type="STRING"/>
  1041. <Column id="cncr_regyn" type="STRING"/>
  1042. <Column id="cncr_tcode" type="STRING"/>
  1043. <Column id="cncr_regdate" type="STRING"/>
  1044. <Column id="fstrgstdt" type="STRING"/>
  1045. <Column id="fstrgstrnm" type="STRING"/>
  1046. <Column id="lastupdtdt" type="STRING"/>
  1047. <Column id="lastrgstrnm" type="STRING"/>
  1048. <Column id="inrmdt" type="STRING" size="256"/>
  1049. </ColumnInfo>
  1050. </Dataset>
  1051. <Dataset id="ds_main_list_templist2_dschindxlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1052. <ColumnInfo>
  1053. <Column id="pid" type="STRING"/>
  1054. <Column id="pnm" type="STRING"/>
  1055. <Column id="indd" type="STRING"/>
  1056. <Column id="indeptcd" type="STRING"/>
  1057. <Column id="indeptengcd" type="STRING"/>
  1058. <Column id="dschdt" type="STRING"/>
  1059. <Column id="dschdeptcd" type="STRING"/>
  1060. <Column id="dschdeptengcd" type="STRING"/>
  1061. <Column id="dschflag" type="STRING"/>
  1062. <Column id="unprepflag" type="STRING"/>
  1063. <Column id="fstrgstdt" type="STRING"/>
  1064. <Column id="fstrgstrid" type="STRING"/>
  1065. <Column id="fstrgstrnm" type="STRING"/>
  1066. <Column id="lastupdtdt" type="STRING"/>
  1067. <Column id="lastrgstrid" type="STRING"/>
  1068. <Column id="lastupdtrnm" type="STRING"/>
  1069. <Column id="tmpcodeyn" type="STRING"/>
  1070. <Column id="tmpcoderesnnm" type="STRING"/>
  1071. <Column id="tmpcoderesncd" type="STRING"/>
  1072. <Column id="diagtermcd" type="STRING"/>
  1073. <Column id="optermcd" type="STRING"/>
  1074. <Column id="dethcd" type="STRING"/>
  1075. <Column id="cretno" type="STRING"/>
  1076. <Column id="instcd" type="STRING"/>
  1077. <Column id="removerid" type="STRING"/>
  1078. <Column id="removedt" type="STRING"/>
  1079. <Column id="indeluserid" type="STRING"/>
  1080. <Column id="indeldt" type="STRING"/>
  1081. </ColumnInfo>
  1082. </Dataset>
  1083. <Dataset id="ds_main_list_templist3_dschunprep" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1084. <ColumnInfo>
  1085. <Column id="pid" type="STRING"/>
  1086. <Column id="patnm" type="STRING"/>
  1087. <Column id="indd" type="STRING"/>
  1088. <Column id="indeptcd" type="STRING"/>
  1089. <Column id="indeptnm" type="STRING"/>
  1090. <Column id="dschdd" type="STRING"/>
  1091. <Column id="dschdeptcd" type="STRING"/>
  1092. <Column id="dschdeptnm" type="STRING"/>
  1093. <Column id="fstrgstdt" type="STRING"/>
  1094. <Column id="fstrgstrid" type="STRING"/>
  1095. <Column id="fstrgstrnm" type="STRING"/>
  1096. <Column id="lastupdtdt" type="STRING"/>
  1097. <Column id="lastupdtrid" type="STRING"/>
  1098. <Column id="lastupdtrnm" type="STRING"/>
  1099. <Column id="drnm" type="STRING"/>
  1100. </ColumnInfo>
  1101. </Dataset>
  1102. <Dataset id="ds_main_chrtunrtnlist3_deptunrtncntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1103. <ColumnInfo>
  1104. <Column id="deptcd" type="STRING"/>
  1105. <Column id="depthngnm" type="STRING"/>
  1106. <Column id="dschcnt" type="STRING"/>
  1107. <Column id="untrncnt" type="STRING"/>
  1108. <Column id="deptuntrnrate" type="STRING"/>
  1109. <Column id="dschuntrnrate" type="STRING"/>
  1110. </ColumnInfo>
  1111. </Dataset>
  1112. <Dataset id="ds_main_chrtunrtnlist2_deptunremcntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1113. <ColumnInfo>
  1114. <Column id="deptcd" type="STRING"/>
  1115. <Column id="depthngnm" type="STRING"/>
  1116. <Column id="unremcnt" type="STRING"/>
  1117. <Column id="rate" type="STRING"/>
  1118. </ColumnInfo>
  1119. </Dataset>
  1120. <Dataset id="ds_main_chrtunrtnlist1_wardunremcntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1121. <ColumnInfo>
  1122. <Column id="floor" type="STRING"/>
  1123. <Column id="wardnm" type="STRING"/>
  1124. <Column id="unremcnt" type="STRING"/>
  1125. <Column id="deptunremcnt" type="STRING"/>
  1126. <Column id="rate" type="STRING"/>
  1127. </ColumnInfo>
  1128. </Dataset>
  1129. <Dataset id="ds_main_chrtunrtnlist4_wardunrtncntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  1130. <ColumnInfo>
  1131. <Column id="floor" type="STRING"/>
  1132. <Column id="wardcd" type="STRING"/>
  1133. <Column id="wardnm" type="STRING"/>
  1134. <Column id="dschcnt" type="STRING"/>
  1135. <Column id="untrncnt" type="STRING"/>
  1136. <Column id="warduntrnrate" type="STRING"/>
  1137. <Column id="dschuntrnrate" type="STRING"/>
  1138. </ColumnInfo>
  1139. </Dataset>
  1140. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1141. <ColumnInfo>
  1142. <Column id="idflag" type="STRING" size="256"/>
  1143. <Column id="rflag" type="STRING" size="256"/>
  1144. <Column id="userflag" type="STRING" size="256"/>
  1145. <Column id="pid" type="STRING" size="256"/>
  1146. <Column id="srchfrdd" type="STRING" size="256"/>
  1147. <Column id="srchtodd" type="STRING" size="256"/>
  1148. <Column id="orddeptcd" type="STRING" size="256"/>
  1149. <Column id="atdoctid" type="STRING" size="256"/>
  1150. <Column id="ward" type="STRING" size="256"/>
  1151. <Column id="srchflag" type="STRING" size="256"/>
  1152. <Column id="longinhosp" type="STRING" size="256"/>
  1153. <Column id="chrtanaly" type="STRING" size="256"/>
  1154. <Column id="remyn" type="STRING" size="256"/>
  1155. <Column id="indelyn" type="STRING" size="256"/>
  1156. <Column id="rtnyn" type="STRING" size="256"/>
  1157. <Column id="inhospdd" type="STRING" size="256"/>
  1158. <Column id="remanalyflag" type="STRING" size="256"/>
  1159. <Column id="usernm" type="STRING" size="256"/>
  1160. <Column id="userid" type="STRING" size="256"/>
  1161. <Column id="unrtnflag" type="STRING" size="256"/>
  1162. <Column id="clsdeptflag" type="STRING" size="256"/>
  1163. <Column id="value" type="STRING" size="256"/>
  1164. <Column id="reqflag" type="STRING" size="256" sumtext="makevalue"/>
  1165. <Column id="cntflag" type="STRING" size="256" sumtext="makevalue"/>
  1166. <Column id="examfrdd" type="STRING" size="256"/>
  1167. <Column id="examtodd" type="STRING" size="256"/>
  1168. </ColumnInfo>
  1169. <Rows>
  1170. <Row>
  1171. <Col id="idflag">D</Col>
  1172. <Col id="rflag"/>
  1173. <Col id="userflag"/>
  1174. <Col id="pid"/>
  1175. <Col id="srchfrdd"/>
  1176. <Col id="srchtodd"/>
  1177. <Col id="orddeptcd"/>
  1178. <Col id="atdoctid"/>
  1179. <Col id="ward"/>
  1180. <Col id="srchflag"/>
  1181. <Col id="longinhosp"/>
  1182. <Col id="chrtanaly"/>
  1183. <Col id="remyn">all</Col>
  1184. <Col id="indelyn"/>
  1185. <Col id="rtnyn"/>
  1186. <Col id="inhospdd"/>
  1187. <Col id="remanalyflag">rem</Col>
  1188. <Col id="usernm"/>
  1189. <Col id="userid"/>
  1190. <Col id="unrtnflag">deptuntrncnt</Col>
  1191. <Col id="clsdeptflag"/>
  1192. <Col id="value">true</Col>
  1193. </Row>
  1194. </Rows>
  1195. </Dataset>
  1196. <Dataset id="ds_temp_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1197. <ColumnInfo>
  1198. <Column id="excelflag" type="STRING" size="256"/>
  1199. </ColumnInfo>
  1200. <Rows>
  1201. <Row>
  1202. <Col id="excelflag"/>
  1203. </Row>
  1204. </Rows>
  1205. </Dataset>
  1206. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1207. <ColumnInfo>
  1208. <Column id="reqflag" type="STRING" size="256"/>
  1209. <Column id="rem" type="STRING" size="256"/>
  1210. <Column id="urem" type="STRING" size="256"/>
  1211. </ColumnInfo>
  1212. <Rows>
  1213. <Row>
  1214. <Col id="reqflag">dsch1</Col>
  1215. </Row>
  1216. </Rows>
  1217. </Dataset>
  1218. <Dataset id="ds_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1219. <ColumnInfo>
  1220. <Column id="srchcnt" type="STRING" size="256"/>
  1221. </ColumnInfo>
  1222. <Rows>
  1223. <Row>
  1224. <Col id="srchcnt"/>
  1225. </Row>
  1226. </Rows>
  1227. </Dataset>
  1228. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1229. <ColumnInfo>
  1230. <Column id="clsdeptcd" type="STRING" size="256"/>
  1231. <Column id="mflag" type="STRING" size="256"/>
  1232. </ColumnInfo>
  1233. <Rows>
  1234. <Row>
  1235. <Col id="clsdeptcd"/>
  1236. <Col id="mflag"/>
  1237. </Row>
  1238. </Rows>
  1239. </Dataset>
  1240. <Dataset id="ds_init_remanalyflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1241. <ColumnInfo>
  1242. <Column id="cntflag" type="STRING" size="256"/>
  1243. </ColumnInfo>
  1244. <Rows>
  1245. <Row>
  1246. <Col id="cntflag"/>
  1247. </Row>
  1248. </Rows>
  1249. </Dataset>
  1250. <Dataset id="ds_init_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1251. <ColumnInfo>
  1252. <Column id="pid" type="STRING" size="256"/>
  1253. <Column id="indd" type="STRING" size="256"/>
  1254. <Column id="cretno" type="STRING" size="256"/>
  1255. <Column id="dschdd" type="STRING" size="256"/>
  1256. </ColumnInfo>
  1257. </Dataset>
  1258. <Dataset id="ds_hidden_menu_chrtanaly" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  1259. <ColumnInfo>
  1260. <Column id="label" type="STRING" size="256"/>
  1261. <Column id="func" type="STRING" size="256"/>
  1262. <Column id="level" type="STRING" size="256"/>
  1263. </ColumnInfo>
  1264. <Rows>
  1265. <Row>
  1266. <Col id="label">입퇴원요약지</Col>
  1267. <Col id="func">fPrint_Chrt</Col>
  1268. <Col id="level">0</Col>
  1269. </Row>
  1270. <Row>
  1271. <Col id="label">수술기록지</Col>
  1272. <Col id="func">fPrint_OpChrt</Col>
  1273. <Col id="level">0</Col>
  1274. </Row>
  1275. </Rows>
  1276. </Dataset>
  1277. <Dataset id="ds_init_syncform" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" cancolumnchange="ds_init_syncform_cancolumnchange">
  1278. <ColumnInfo>
  1279. <Column id="chk" type="STRING" size="256"/>
  1280. <Column id="formid" type="STRING" size="256"/>
  1281. <Column id="formnm" type="STRING" size="256"/>
  1282. </ColumnInfo>
  1283. <Rows>
  1284. <Row>
  1285. <Col id="formid">SMMRI00400</Col>
  1286. <Col id="formnm">통합기록조회</Col>
  1287. </Row>
  1288. <Row>
  1289. <Col id="formid">SMMRD00400</Col>
  1290. <Col id="formnm">퇴원분석</Col>
  1291. </Row>
  1292. <Row>
  1293. <Col id="formid">SMMRD00700</Col>
  1294. <Col id="formnm">질병및수술분류</Col>
  1295. </Row>
  1296. <Row>
  1297. <Col id="formid">SMMRI01700</Col>
  1298. <Col id="formnm">미비관리</Col>
  1299. </Row>
  1300. <Row>
  1301. <Col id="formid">SMMRD00100</Col>
  1302. <Col id="formnm">암등록</Col>
  1303. </Row>
  1304. </Rows>
  1305. </Dataset>
  1306. </Objects>
  1307. <Bind>
  1308. <BindItem id="item0" compid="rdo_reqflag" propid="value" datasetid="ds_init" columnid="reqflag"/>
  1309. <BindItem id="item1" compid="ipt_srchfrdd" propid="value" datasetid="ds_cond" columnid="srchfrdd"/>
  1310. <BindItem id="item2" compid="cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  1311. <BindItem id="item3" compid="ipt_srchtodd" propid="value" datasetid="ds_cond" columnid="srchtodd"/>
  1312. <BindItem id="item4" compid="cbo_ward" propid="value" datasetid="ds_cond" columnid="ward"/>
  1313. <BindItem id="item5" compid="rdo_ioflag" propid="value" datasetid="ds_cond" columnid="idflag"/>
  1314. <BindItem id="item6" compid="cmb_medispc" propid="value" datasetid="ds_cond" columnid="atdoctid"/>
  1315. <BindItem id="item7" compid="chk_longinhosp" propid="value" datasetid="ds_cond" columnid="longinhosp"/>
  1316. <BindItem id="item8" compid="ipt_pid" propid="value" datasetid="ds_cond" columnid="pid"/>
  1317. <BindItem id="item9" compid="ipt_inhospdd" propid="value" datasetid="ds_cond" columnid="inhospdd"/>
  1318. <BindItem id="item10" compid="cap_srchcnt" propid="text" datasetid="ds_search" columnid="srchcnt"/>
  1319. <BindItem id="item11" compid="rdo_remyn" propid="value" datasetid="ds_cond" columnid="remyn"/>
  1320. <BindItem id="item12" compid="ipt_unprepdrid" propid="value" datasetid="ds_cond" columnid="userid"/>
  1321. <BindItem id="item13" compid="ipt_unprepdrnm" propid="value" datasetid="ds_cond" columnid="usernm"/>
  1322. <BindItem id="item14" compid="chk_rflag" propid="value" datasetid="ds_cond" columnid="rflag"/>
  1323. <BindItem id="item15" compid="rdo_unrtnflag" propid="value" datasetid="ds_cond" columnid="unrtnflag"/>
  1324. <BindItem id="item16" compid="chb_value" propid="value" datasetid="ds_cond" columnid="value"/>
  1325. <BindItem id="item17" compid="chk_userflag" propid="value" datasetid="ds_cond" columnid="userflag"/>
  1326. <BindItem id="item18" compid="ipt_examfromdd" propid="value" datasetid="ds_cond" columnid="examfrdd"/>
  1327. <BindItem id="item19" compid="ipt_examtodd" propid="value" datasetid="ds_cond" columnid="examtodd"/>
  1328. </Bind>
  1329. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  1330. * System Name :
  1331. * Job Name :
  1332. * Creator :
  1333. * Make Date : 2016-04-15
  1334. * Description :
  1335. *---------------------------------------------------------------------------------------
  1336. * Modify Date Modifier Modify Description
  1337. *---------------------------------------------------------------------------------------
  1338. * 2016-04-15 Live Converter TF->XP
  1339. *
  1340. *---------------------------------------------------------------------------------------
  1341. ****************************************************************************************/
  1342. //=======================================================================================
  1343. // Lib Include
  1344. //---------------------------------------------------------------------------------------
  1345. include "com_commonxp::comm_main.xjs";
  1346. include "emr_prcpmngtxp::MMO001.xjs";
  1347. include "emr_commonxp::EMRCommon.xjs";
  1348. //include "emr_dschanalyxp::SMMRD01200.xjs":
  1349. include "com_batchinfoxp::ZSB001.xjs";
  1350. //=======================================================================================
  1351. // Global Form Variable
  1352. //---------------------------------------------------------------------------------------
  1353. var lgv_deptgrd_openflag = false;
  1354. //=======================================================================================
  1355. // Function
  1356. //---------------------------------------------------------------------------------------
  1357. /****************************************************************************************
  1358. * Function : lf_grdInit
  1359. * Description : 그리드 초기화
  1360. * Argument :
  1361. * retrun type :
  1362. * Creator :
  1363. ****************************************************************************************/
  1364. function lf_grdInit(){
  1365. ds_main_list_chrtanaly_patlist.clearData();
  1366. ds_main_list_templist_dschpat.clearData();
  1367. ds_main_list_templist1_dschanaly.clearData();
  1368. ds_main_list_templist2_dschindxlist.clearData();
  1369. ds_main_list_templist3_dschunprep.clearData();
  1370. grdf_setGridSort(switch1.case1.grd_chrtanaly);
  1371. grdf_setGridSort(switch1.case2.grd_dschpat);
  1372. grdf_setGridSort(switch1.case3.grd_dschanaly);
  1373. grdf_setGridSort(switch1.case4.grd_indxlist);
  1374. grdf_setGridSort(switch1.case5.grd_unprep);
  1375. grdf_setGridSort(switch1.deptunrtn.grd_deptunrtncntlist);
  1376. grdf_setGridSort(switch1.deptunrem.grd_deptunremcntlist);
  1377. grdf_setGridSort(switch1.wardunrem.grd_wardunremcntlist);
  1378. grdf_setGridSort(switch1.wardunrtn.grd_wardunrtncntlist);
  1379. }
  1380. /****************************************************************************************
  1381. * Function : fInitialize
  1382. * Description : 화면초기화
  1383. * Argument :
  1384. * retrun type :
  1385. * Creator :
  1386. ****************************************************************************************/
  1387. function fInitialize()
  1388. {
  1389. var todd = utlf_getCurrentDate();
  1390. var today = new Date();
  1391. var frday = new Date();
  1392. var diffdt = -1;
  1393. //그리드 초기화
  1394. lf_grdInit();
  1395. fDisabled("dsch");
  1396. frday = today.getAddDate(diffdt , "D");
  1397. frdd = frday.getDateFormat();
  1398. ds_cond.setColumn(0, "srchfrdd", frdd);
  1399. ds_cond.setColumn(0, "srchtodd", todd);
  1400. ds_cond.setColumn(0, "examfrdd", frdd);
  1401. ds_cond.setColumn(0, "examtodd", todd);
  1402. appf_getInOrdDeptList(sysf_getUserInfo("dutplceinstcd"), "depthngnm", "asc", utlf_getCurrentDate(), "", "ds_init_orddept_dept");//입원과
  1403. frmf_addComboItem("cmb_orddept" , "전체", "-"); //부서콤보 전체항목 추가
  1404. // 진료과/퇴원과 디폴트 세팅 (20191127 금정화 수정 -> 멀티선택)
  1405. dsf_createDs("ds_multidept");
  1406. ds_multidept.copyData(ds_init_orddept_dept, false);
  1407. ds_multidept.addColumn("checkflag", "string");
  1408. grd_multidept.binddataset = ds_multidept;
  1409. opt_multidept.value = ds_multidept.getColumn(0, "depthngnm");
  1410. ds_cond.setColumn(0, "orddeptcd", "-");
  1411. for(var i = 0; i < ds_multidept.rowcount; i++){
  1412. ds_multidept.setColumn(i, "checkflag", "1");
  1413. }
  1414. // 병동 디폴트 세팅
  1415. lf_mmbfGetDeptCodeComboList(ds_init_ward_dept, "W"); //병동코드 콤보
  1416. frmf_addComboItem("cbo_ward" , "전체", "-"); //병동콤보 전체항목 추가
  1417. ds_cond.setColumn(0, "ward", "-");
  1418. // 주치의 디폴트 세팅
  1419. frmf_addComboItem("cmb_medispc", "전체", "-"); //주치의 전체 추가
  1420. cmb_medispc.value = "-";
  1421. ds_temp_flag.setColumn(0, "excelflag","2"); //각 그리드별 엑셀저장시 flag값 1:수거,2:분석,3:미반납건수현황
  1422. btn_flag.click();
  1423. }
  1424. /****************************************************************************************
  1425. * Function : lf_btn_Selected
  1426. * Description : 버튼 선택상태 설정
  1427. * Argument : 01.btnId : 활성화 버튼 ID
  1428. * retrun type :
  1429. * Creator :
  1430. ****************************************************************************************/
  1431. function lf_btn_Selected(btnId){
  1432. var arrBtnId = ["btn_stat", "btn_flag", "button2"];
  1433. for( var i = 0; i < arrBtnId.length; i++ ){
  1434. if( arrBtnId[i] == btnId ){
  1435. var btnObj = eval(arrBtnId[i]);
  1436. btnObj.setSelectStatus(true);
  1437. btnObj.class = "btn_tab_S";
  1438. }else{
  1439. var btnObj = eval(arrBtnId[i]);
  1440. btnObj.setSelectStatus(false);
  1441. btnObj.class = "btn_tab";
  1442. }
  1443. }
  1444. }
  1445. /****************************************************************************************
  1446. * Function : fGetDrList
  1447. * Description : 진료과 선택시 주치의 명단 가져오기
  1448. * Argument :
  1449. * retrun type :
  1450. * Creator :
  1451. ****************************************************************************************/
  1452. function fGetDrList(rsltRef, orddeptcd, queryflag, stflag)
  1453. {
  1454. dsf_createDsRow("ds_send_reqdata", [
  1455. {col:"orddeptcd", type:"STRING", size:256, val:orddeptcd}
  1456. , {col:"queryflag", type:"STRING", size:256, val:queryflag}
  1457. , {col:"stflag", type:"STRING", size:256, val:stflag} //스태프구분
  1458. , {col:"multiflag", type:"STRING", size:256, val:"Y"}
  1459. ]);
  1460. var oParam = {};
  1461. oParam.id = "TRMRF02303";
  1462. oParam.service = "formmngtapp.OcrPrntMngt";
  1463. oParam.method = "reqGetOrdDrID";
  1464. oParam.inds = "req=ds_send_reqdata";
  1465. oParam.outds = rsltRef + "=drlist";
  1466. oParam.async = false;
  1467. //oParam.callback = "cf_TRMRF02303";
  1468. tranf_submit(oParam);
  1469. dsf_deleteDs("ds_send_reqdata");
  1470. }
  1471. /****************************************************************************************
  1472. * Function : fChgUserListClsDept
  1473. * Description : 진료과 선택시 분과정보 및 주치의조회(Staff만)
  1474. * Argument :
  1475. * retrun type :
  1476. * Creator :
  1477. ****************************************************************************************/
  1478. function fChgUserListClsDept()
  1479. {
  1480. var orddept = ds_cond.getColumn(0, "orddeptcd");
  1481. ds_init_userlist_drlist.clearData();
  1482. if(orddept != ""){
  1483. if(ds_temp_flag.getColumn(0, "excelflag") == "2"){
  1484. //zsdfGetInClsDeptList(getUserInfo("dutplceinstcd"), cmb_orddept.value, "/root/init/clsdeptlist", "depthngnm", "asc");//분과
  1485. dsf_createDs("ds_init_clsdeptlist");
  1486. //appf_getInClsDeptList(sysf_getUserInfo("dutplceinstcd"), cmb_orddept.value, "depthngnm", "asc", utlf_getCurrentDate(), "ds_init_clsdeptlist");
  1487. if( ds_init_clsdeptlist.rowcount > 0){
  1488. ds_cond.setColumn(0, "clsdeptflag", "Y");
  1489. }else{
  1490. ds_cond.setColumn(0, "clsdeptflag");
  1491. }
  1492. //fGetDrList("ds_init_userlist_drlist", cmb_orddept.value, "total", "staff");//주치의 staff만 조회
  1493. fGetDrList("ds_init_userlist_drlist", orddept, "total", "staff");//주치의 staff만 조회
  1494. if(ds_init_userlist_drlist.rowcount > 0){
  1495. ds_cond.setColumn(0, "atdoctid", ds_init_userlist_drlist.getColumn(0, "drid"));
  1496. }
  1497. }else if(ds_temp_flag.getColumn(0, "excelflag") == "1"){
  1498. ds_cond.setColumn(0, "clsdeptflag", "");
  1499. fGetDrList("ds_init_userlist_drlist", orddept, "total", "staff");//주치의 staff만 조회
  1500. if(ds_init_userlist_drlist.rowcount > 0){
  1501. ds_cond.setColumn(0, "atdoctid", ds_init_userlist_drlist.getColumn(0, "drid"));
  1502. //cmb_medispc.refresh();
  1503. }
  1504. }
  1505. }
  1506. }
  1507. /****************************************************************************************
  1508. * Function : fGetPatList
  1509. * Description : 환자리스트 가져오기(수거,분석)
  1510. * Argument :
  1511. * retrun type :
  1512. * Creator :
  1513. ****************************************************************************************/
  1514. function fGetPatList()
  1515. {
  1516. var rem = ds_init.getColumn(0, "rem"); //수거
  1517. var urem = ds_init.getColumn(0, "urem"); //미수거
  1518. var indelyn = ds_cond.getColumn(0, "indelyn"); //입원 삭제
  1519. var orddeptcd = ds_cond.getColumn(0, "orddeptcd");//진료과
  1520. var clsdeptcd = ds_hidden.getColumn(0, "clsdeptcd");//분과
  1521. var remyn = "";
  1522. var sRemFlag = ds_cond.getColumn(0, "remanalyflag"); //수거,분석 구분
  1523. if(orddeptcd == ""){
  1524. sysf_messageBox("진료과(퇴원과)를 선택하십시오.", "E");
  1525. return;
  1526. }
  1527. if(sRemFlag == "rem"){ // 수거
  1528. ds_main_list_chrtanaly_patlist.clearData();
  1529. ds_main_list_dschcnt.clearData();
  1530. var oParam = {};
  1531. oParam.id = "TRMRD01201";
  1532. oParam.service = "dschanalyapp.DschAnaly";
  1533. oParam.method = "reqGetChrtAnalyPtList";
  1534. oParam.inds = "cond=ds_cond";
  1535. oParam.outds = "ds_main_list_chrtanaly_patlist=patlist ds_main_list_dschcnt=dschcnt";
  1536. oParam.async = false;
  1537. oParam.callback = "cf_TRMRD01201";
  1538. tranf_submit(oParam);
  1539. }else{ // 분석
  1540. var idflag = ds_cond.getColumn(0, "idflag");
  1541. var orddeptcd = ds_cond.getColumn(0, "orddeptcd");
  1542. var srchfrdd = ds_cond.getColumn(0, "srchfrdd");
  1543. var srchtodd = ds_cond.getColumn(0, "srchtodd");
  1544. var reqflag = utlf_transNullToEmpty(ds_init.getColumn(0, "reqflag"));
  1545. ds_cond.setColumn(0, "reqflag", reqflag);
  1546. // 분석 탭 + 퇴원 구분자 + 전체과 + 2주 기간 초과 조회 시 -> 엑셀파일로 다운함 (요청번호: 20200312028)
  1547. if(idflag == "D" && orddeptcd == "-" && utlf_diffDate(srchfrdd, srchtodd) > 14){
  1548. var rslt = sysf_messageBox("엑셀 다운로드를 원하시면 [예]를 선택하십시오."
  1549. + "\n[아니요]를 선택하시면 화면에서 조회됩니다." , "S") // (예: 6, 아니오: 7, 취소: 2)
  1550. if(rslt == "6"){ // 예
  1551. /*
  1552. var fd = new FileDialog;
  1553. var path = fd.open("저장 경로 선택", FileDialog.SELFOLDER, "%MYDOCUMENT%"); // SELFOLDER: 폴더선택
  1554. trace("path : " + path);
  1555. if(path == "") return;
  1556. // 저장할 경로 지정 및 Dataset에 설정(dsf_setDefaultVal 함수는 ':'로 split 해서 사용 못 함)
  1557. if(!ds_cond.getColumnInfo("path")) ds_cond.addColumn("path", "string");
  1558. ds_cond.setColumn(0, "path", path);
  1559. */
  1560. // 조회 구분 및 구분명(파일명에 사용) Dataset에 설정
  1561. ds_cond.setColumn(0, "cntflag", ds_init_remanalyflag.getColumn(0, "cntflag"));
  1562. if(!ds_cond.getColumnInfo("reqnm")) ds_cond.addColumn("reqnm", "string");
  1563. ds_cond.setColumn(0, "reqnm", rdo_reqflag.text);
  1564. var oParam = {};
  1565. oParam.id = "MakeDschAnalyFile";
  1566. oParam.service = "dschanalyapp.DschAnaly";
  1567. oParam.method = "reqExeMakeDschAnalyFileBatch";
  1568. oParam.inds = "req=ds_cond";
  1569. oParam.async = false;
  1570. oParam.callback = "cf_MakeDschAnalyFile";
  1571. tranf_submit(oParam);
  1572. return;
  1573. }else if(rslt == 2){ // 취소
  1574. return;
  1575. }
  1576. }
  1577. reqflag = reqflag.substr(0,4);
  1578. if( "dsch" == reqflag){
  1579. ds_main_list_templist_dschpat.clearData();
  1580. }else if( "anly" == reqflag){
  1581. ds_main_list_templist1_dschanaly.clearData();
  1582. }else if( "indx" == reqflag){
  1583. ds_main_list_templist2_dschindxlist.clearData();
  1584. }else if( "unpr" == reqflag){
  1585. ds_main_list_templist3_dschunprep.clearData();
  1586. }
  1587. ds_cond.setColumn(0, "cntflag", ds_init_remanalyflag.getColumn(0, "cntflag"));
  1588. ds_main_list_dschcnt.clearData();
  1589. var oParam = {};
  1590. oParam.id = "TRMRD01202";
  1591. oParam.service = "dschanalyapp.DschAnaly";
  1592. oParam.method = "reqGetDschAnalyList";
  1593. oParam.inds = "cond=ds_cond";
  1594. oParam.outds = "ds_main_list_templist_dschpat=dschpat ds_main_list_templist1_dschanaly=dschanaly ds_main_list_templist2_dschindxlist=dschindxlist ds_main_list_templist3_dschunprep=dschunprep ds_main_list_dschcnt=dschcnt";
  1595. oParam.async = false;
  1596. oParam.callback = "cf_TRMRD01202";
  1597. tranf_submit(oParam);
  1598. }
  1599. }
  1600. function cf_MakeDschAnalyFile(sSvcId, nErrorCode, sErrorMsg){
  1601. if(nErrorCode < 0){
  1602. return;
  1603. }
  1604. // com_batchinfoxp
  1605. var todd = utlf_getCurrentDate();
  1606. todd = todd.toDate().getAddDate(+1, 'D');
  1607. zsbfOpenBatchLogPopup("dschanalymgr.DschAnalyFileBatch",utlf_getCurrentDate(),todd.getDateFormat());
  1608. }
  1609. /****************************************************************************************
  1610. * Argument : 01.sSvcId : 서비스 ID
  1611. * : 02.nErrorCode : 에러코드
  1612. * : 03.sErrorMsg : 에러메시지
  1613. * Description : cf_TRMRD01201의 콜백함수
  1614. ****************************************************************************************/
  1615. function cf_TRMRD01201(sSvcId, nErrorCode, sErrorMsg) {
  1616. if(nErrorCode < 0) return;
  1617. grdf_initGridStyle(switch1.case1.grd_chrtanaly);
  1618. grdf_setRowStyle(switch1.case1.grd_chrtanaly, "4", "Y", "readprtflag", "equal"); // 출력/미출력구분 RowStyle변경
  1619. switch1.case1.grd_chrtanaly.visible = true;
  1620. var Mflag = ds_hidden.getColumn(0, "mflag");
  1621. if(Mflag=="1"){
  1622. }else{
  1623. sysf_messageBox("검색이","I002");
  1624. }
  1625. ds_main_list_chrtanaly_patlist
  1626. ds_search.setColumn(0, "srchcnt", ds_main_list_chrtanaly_patlist.rowcount);//해당그리드의 건수 보여주기
  1627. ds_hidden.setColumn(0, "mflag", "");
  1628. }
  1629. /****************************************************************************************
  1630. * Argument : 01.sSvcId : 서비스 ID
  1631. * : 02.nErrorCode : 에러코드
  1632. * : 03.sErrorMsg : 에러메시지
  1633. * Description : cf_TRMRD01202의 콜백함수
  1634. ****************************************************************************************/
  1635. function cf_TRMRD01202(sSvcId, nErrorCode, sErrorMsg) {
  1636. if(nErrorCode < 0) return;
  1637. var reqflag = utlf_transNullToEmpty(ds_init.getColumn(0, "reqflag")).substr(0, 4);
  1638. if(reqflag=="dsch"){
  1639. sysf_messageBox("검색이","I002");
  1640. ds_search.setColumn(0, "srchcnt", ds_main_list_templist_dschpat.rowcount);
  1641. }else if(reqflag=="anly"){
  1642. sysf_messageBox("검색이","I002");
  1643. ds_search.setColumn(0, "srchcnt", ds_main_list_templist1_dschanaly.rowcount);
  1644. }else if(reqflag=="indx"){
  1645. sysf_messageBox("검색이","I002");
  1646. ds_search.setColumn(0, "srchcnt", ds_main_list_templist2_dschindxlist.rowcount);
  1647. }else if(reqflag == "unpr"){
  1648. sysf_messageBox("검색이","I002");
  1649. ds_search.setColumn(0, "srchcnt", ds_main_list_templist3_dschunprep.rowcount);
  1650. }
  1651. }
  1652. /****************************************************************************************
  1653. * Function : fSave
  1654. * Description : 저장
  1655. * Argument :
  1656. * retrun type :
  1657. * Creator :
  1658. ****************************************************************************************/
  1659. function fSave()
  1660. {
  1661. var sPid = ds_main_list_chrtanaly_patlist.getColumn(ds_main_list_chrtanaly_patlist.rowposition, "pid");
  1662. if(utlf_isNull(sPid)){
  1663. sysf_messageBox("환자를 선택","I008");
  1664. return;
  1665. }
  1666. var oDsUpdate = grdf_getGridUpdateData(switch1.case1.grd_chrtanaly);
  1667. grdf_setStatusColumn(oDsUpdate, "status");
  1668. dsf_createDs("ds_send_reqdata_chrtanaly");
  1669. ds_send_reqdata_chrtanaly.copyData(oDsUpdate, true);
  1670. ds_hidden.setColumn(0, "mrflag", "1");
  1671. dsf_createDsRow("ds_send_reqdata", [
  1672. {col:"idflag", type:"STRING", size:256, val:ds_cond.getColumn(0, "idflag")}
  1673. , {col:"pid", type:"STRING", size:256, val:ds_cond.getColumn(0, "pid")}
  1674. , {col:"srchfrdd", type:"STRING", size:256, val:ds_cond.getColumn(0, "srchfrdd")}
  1675. , {col:"srchtodd", type:"STRING", size:256, val:ds_cond.getColumn(0, "srchtodd")}
  1676. , {col:"orddeptcd", type:"STRING", size:256, val:ds_cond.getColumn(0, "orddeptcd")}
  1677. , {col:"atdoctid", type:"STRING", size:256, val:ds_cond.getColumn(0, "atdoctid")}
  1678. , {col:"ward", type:"STRING", size:256, val:ds_cond.getColumn(0, "ward")}
  1679. , {col:"srchflag", type:"STRING", size:256, val:""}
  1680. , {col:"longinhosp", type:"STRING", size:256, val:ds_cond.getColumn(0, "longinhosp")}
  1681. , {col:"remyn", type:"STRING", size:256, val:ds_cond.getColumn(0, "remyn")}
  1682. , {col:"indelyn", type:"STRING", size:256, val:""}
  1683. , {col:"inhospdd", type:"STRING", size:256, val:ds_cond.getColumn(0, "inhospdd")}
  1684. , {col:"rtnyn", type:"STRING", size:256, val:""}
  1685. ]);
  1686. var oParam = {};
  1687. oParam.id = "TXMRD01201";
  1688. oParam.service = "dschanalyapp.DschAnaly";
  1689. oParam.method = "reqExeChrtAnalyPtList";
  1690. oParam.inds = "req=ds_send_reqdata chrtanaly=ds_send_reqdata_chrtanaly";
  1691. oParam.outds = "ds_main_list_chrtanaly_patlist=patlist";
  1692. oParam.async = false;
  1693. oParam.callback = "cf_TXMRD01201";
  1694. tranf_submit(oParam);
  1695. //저장한 후 다시 조회 하기 (이창록)수정
  1696. //model.removeNodeset("/root/temp/tmp/autoprtlist");
  1697. ds_cond.setColumn(0, "remanalyflag", "dsch"); //수거,분석 구분
  1698. fGetPatList();
  1699. }
  1700. /****************************************************************************************
  1701. * Argument : 01.sSvcId : 서비스 ID
  1702. * : 02.nErrorCode : 에러코드
  1703. * : 03.sErrorMsg : 에러메시지
  1704. * Description : cf_TXMRD01201의 콜백함수
  1705. ****************************************************************************************/
  1706. function cf_TXMRD01201(sSvcId, nErrorCode, sErrorMsg) {
  1707. if(nErrorCode < 0) return;
  1708. var Mflag = ds_hidden.getColumn(0, "mflag");
  1709. if(Mflag == "1"){
  1710. sysf_messageBox("저장이","I002");
  1711. }
  1712. }
  1713. /****************************************************************************************
  1714. * Function : fSaveDisable
  1715. * Description : 퇴원 재원 조건에따른 저장버튼 disable 및 caption text 상태 변화
  1716. * : 퇴원시->퇴원일자 .입원시-> 입원환자,수거시 ->수거일자
  1717. * Argument :
  1718. * retrun type :
  1719. * Creator :
  1720. ****************************************************************************************/
  1721. function fSaveDisable()
  1722. {
  1723. var idflag = ds_cond.getColumn(0, "idflag");
  1724. if ( idflag== "I")
  1725. {
  1726. btn_save.enable = false;
  1727. cap_snm.text = "재원기간";
  1728. chk_rflag.enable = false;
  1729. chk_rflag.value = "";
  1730. switch1.case1.grd_chrtanaly.setRealColSize(switch1.case1.grd_chrtanaly.getBindCellIndex("body", "sixdethflag"), 0);
  1731. }
  1732. else if(idflag=="D")
  1733. {
  1734. btn_save.enable = true;
  1735. cap_snm.text="퇴원일자 :";
  1736. chk_rflag.enable = true;
  1737. switch1.case1.grd_chrtanaly.setRealColSize(switch1.case1.grd_chrtanaly.getBindCellIndex("body", "sixdethflag"), 42);
  1738. }
  1739. }
  1740. /****************************************************************************************
  1741. * Function : fRflagChg
  1742. * Description : 수거체크시 저장버튼 disable 및 caption text 상태 변화
  1743. * Argument :
  1744. * retrun type :
  1745. * Creator :
  1746. ****************************************************************************************/
  1747. function fRflagChg()
  1748. {
  1749. var rflag = ds_cond.getColumn(0, "rflag");
  1750. var userflag = ds_cond.getColumn(0, "userflag");
  1751. var Todd = utlf_getCurrentDate();
  1752. if(rflag =="R"){
  1753. ds_cond.setColumn(0, "srchfrdd", Todd);
  1754. ds_cond.setColumn(0, "srchtodd", Todd);
  1755. cap_snm.text = "수거일자 :";
  1756. }else if(utlf_isNull(rflag)){
  1757. var todd = utlf_getCurrentDate();
  1758. var today = new Date();
  1759. var frday = new Date();
  1760. var diffdt = -1;
  1761. frday = today.getAddDate(diffdt , "D");
  1762. frdd = frday.getDateFormat();
  1763. ds_cond.setColumn(0, "srchfrdd", frdd);
  1764. ds_cond.setColumn(0, "srchtodd", todd);
  1765. fSaveDisable();
  1766. }
  1767. if(userflag=="dsch"){
  1768. ds_cond.setColumn(0, "srchfrdd", Todd);
  1769. ds_cond.setColumn(0, "srchtodd", Todd);
  1770. cap_snm.text = "작업일자 :";
  1771. }else if(utlf_isNull(userflag)){
  1772. var todd = utlf_getCurrentDate();
  1773. var today = new Date();
  1774. var frday = new Date();
  1775. var diffdt = -1;
  1776. frday = today.getAddDate(diffdt , "D");
  1777. frdd = frday.getDateFormat();
  1778. ds_cond.setColumn(0, "srchfrdd", frdd);
  1779. ds_cond.setColumn(0, "srchtodd", todd);
  1780. fSaveDisable();
  1781. }
  1782. }
  1783. /****************************************************************************************
  1784. * Function : fChrtanalySaveExcel
  1785. * Description : 차트분석 조회한 것을 엑셀에 저장
  1786. * Argument :
  1787. * retrun type :
  1788. * Creator :
  1789. ****************************************************************************************/
  1790. function fChrtanalySaveExcel(){
  1791. var excelflag = ds_temp_flag.getColumn(0, "excelflag");
  1792. var reqflag = ds_init.getColumn(0, "reqflag");
  1793. if(excelflag == "1"){
  1794. grdf_exportExcel(switch1.case1.grd_chrtanaly, "excel", "SheetName");
  1795. }else if(excelflag == "2"){
  1796. if(reqflag == "dsch1"){
  1797. grdf_exportExcel(switch1.case2.grd_dschpat, "퇴원환자", "SheetName");
  1798. }else if(reqflag == "anly1"){
  1799. grdf_exportExcel(switch1.case3.grd_dschanaly, "퇴원분석", "SheetName");
  1800. }else if(reqflag == "anly2"){
  1801. grdf_exportExcel(switch1.case3.grd_dschanaly, "미퇴원분석", "SheetName");
  1802. }else if(reqflag == "indx1"){
  1803. grdf_exportExcel(switch1.case4.grd_indxlist, "코딩", "SheetName");
  1804. }else if(reqflag == "indx2"){
  1805. grdf_exportExcel(switch1.case4.grd_indxlist, "가코딩", "SheetName");
  1806. }else if(reqflag=="indx3"){
  1807. grdf_exportExcel(switch1.case4.grd_indxlist, "미코딩", "SheetName");
  1808. }else if(reqflag=="unpr"){
  1809. grdf_exportExcel(switch1.case5.grd_unprep, "미비관리", "SheetName");
  1810. }else if(reqflag=="indx4"){
  1811. grdf_exportExcel(switch1.case4.grd_indxlist, "재검토", "SheetName");
  1812. }
  1813. }else if(excelflag == "3"){
  1814. var UnrtnFlag = ds_cond.getColumn(0, "unrtnflag");
  1815. if(UnrtnFlag == "wardunremcnt"){
  1816. grdf_exportExcel(switch1.wardunrem.grd_wardunremcntlist, "병동별(미수거)", "SheetName");
  1817. }else if(UnrtnFlag=="deptunremcnt"){
  1818. grdf_exportExcel(switch1.deptunrem.grd_deptunremcntlist, "진료과별(미수거)", "SheetName");
  1819. }else if(UnrtnFlag=="deptuntrncnt"){
  1820. grdf_exportExcel(switch1.deptunrtn.grd_deptunrtncntlist, "진료과별미반납건수현황", "SheetName");
  1821. }else if(UnrtnFlag == "warduntrncnt"){
  1822. grdf_exportExcel(switch1.wardunrtn.grd_wardunrtncntlist, "병동별미반납건수현황", "SheetName");
  1823. }
  1824. }
  1825. }
  1826. /****************************************************************************************
  1827. * Function : fPidKeyPress
  1828. * Description : 등록번호로 차트분석을 조회(등록번호 앞에 0이 붙어도 앞에 0을 없애고 조회)
  1829. * : 예)00000098077755 - > 98077755 (getRemoveLeftChar)함수 사용
  1830. * Argument :
  1831. * retrun type :
  1832. * Creator :
  1833. ****************************************************************************************/
  1834. function fPidKeyPress()
  1835. {
  1836. var Pid = ds_cond.getColumn(0, "pid");
  1837. var str_pid = Pid;
  1838. if ( sysf_getUserInfo("dutplceinstcd") != "017" ) //20091031, hkjoo 추가
  1839. str_pid = getRemoveLeftChar(Pid, '0');
  1840. if(ds_cond.getColumn(0, "value") == "true"){
  1841. str_pid = getCretCheckNo(str_pid, sysf_getUserInfo("dutplceinstcd"));
  1842. } else {
  1843. str_pid = ds_cond.getColumn(0, "pid");
  1844. }
  1845. ds_cond.setColumn(0, "pid", str_pid);
  1846. fGetPatList();
  1847. }
  1848. /****************************************************************************************
  1849. * Function : fChgInhospdd
  1850. * Description : 장기재원일수 선택시 input disable 및 값 없애기
  1851. * Argument :
  1852. * retrun type :
  1853. * Creator :
  1854. ****************************************************************************************/
  1855. function fChgInhospdd()
  1856. {
  1857. var longinhosp = ds_cond.getColumn(0, "longinhosp");
  1858. if(longinhosp == "H"){
  1859. ipt_inhospdd.enable = true;
  1860. }else if(longinhosp == false){
  1861. ipt_inhospdd.enable = false;
  1862. ipt_inhospdd.value = "";
  1863. }
  1864. }
  1865. /****************************************************************************************
  1866. * Function : fChgUnrtnyn
  1867. * Description : 삭제시 수거랑 같이 체크 ,미반납시 수거 상태 풀기
  1868. * Argument : 01.
  1869. * retrun type :
  1870. * Creator :
  1871. ****************************************************************************************/
  1872. function fChgUnrtnyn(obj:Dataset, e:DSColChangeEventInfo)
  1873. {
  1874. var iRow = e.row;
  1875. var remyn = obj.getColumn(iRow, "remyn"); //수거
  1876. var delyn = obj.getColumn(iRow, "delyn"); //삭제
  1877. var unrtnyn = obj.getColumn(iRow, "unrtnyn"); //미반납
  1878. if(unrtnyn == "N")
  1879. {
  1880. if(delyn=="N")
  1881. {
  1882. //alert(remyn);
  1883. if((remyn == "Y") && (delyn == "N"))
  1884. {
  1885. obj.setColumn(iRow, "remyn", "Y");
  1886. } else {
  1887. obj.setColumn(iRow, "remyn", "N");
  1888. return;
  1889. }
  1890. } else if(delyn == "Y"){
  1891. obj.setColumn(iRow, "remyn", "Y");
  1892. return;
  1893. }
  1894. }
  1895. }
  1896. /****************************************************************************************
  1897. * Function : fGetUserInfo
  1898. * Description : 사용자 정보 얻기(사용자 팝업 연계)
  1899. * Argument : 01.userid - 사용자ID
  1900. * : 02.usernm - 사용자명
  1901. * : 03.deptcd - 부서코드
  1902. * : 04.instcd - 기관코드
  1903. * retrun type :
  1904. * Creator :
  1905. ****************************************************************************************/
  1906. function fGetUserInfo(userid,usernm,deptcd ,instcd){
  1907. if( isValidObject("ds_temp_userinfo") == false ) {
  1908. dsf_createDsRow("ds_temp_userinfo", [{col:"userid", type:"string", size:256, val:""}
  1909. , {col:"usernm", type:"string", size:256, val:""}
  1910. , {col:"deptcd", type:"string", size:256, val:""}
  1911. , {col:"instcd", type:"string", size:256, val:""}]);
  1912. }
  1913. ds_temp_userinfo.setColumn(0, "userid", userid);
  1914. ds_temp_userinfo.setColumn(0, "usernm", utlf_transNullToEmpty(usernm).getTrim());
  1915. ds_temp_userinfo.setColumn(0, "deptcd", deptcd);
  1916. ds_temp_userinfo.setColumn(0, "instcd", instcd);
  1917. }
  1918. /****************************************************************************************
  1919. * Function : fMouseRightchrt
  1920. * Description : 수거시 입퇴원요약지,수술기록지 출력
  1921. * : E->EMR차트 ,I->영상차트
  1922. * Argument : 01.
  1923. * retrun type :
  1924. * Creator :
  1925. ****************************************************************************************/
  1926. function fMouseRightchrt(obj, e){
  1927. popupmenu.trackPopup(e.screenX,e.screenY);
  1928. return;
  1929. }
  1930. /****************************************************************************************
  1931. * Function : fPrint_Chrt
  1932. * Description : 입퇴원요약지
  1933. * Argument :
  1934. * retrun type :
  1935. * Creator :
  1936. ****************************************************************************************/
  1937. function fPrint_Chrt()
  1938. {
  1939. var iRow = ds_main_list_chrtanaly_patlist.rowposition;
  1940. var removedd = ds_main_list_chrtanaly_patlist.getColumn(iRow, "removedd");
  1941. var remyn = ds_main_list_chrtanaly_patlist.getColumn(iRow, "remyn");
  1942. if(iRow < 0){
  1943. return;
  1944. }
  1945. if((remyn == "N") && (removedd == '-')){
  1946. sysf_messageBox("차트수거된 환자만 출력이","I006");
  1947. return;
  1948. }
  1949. var msg = "";
  1950. var Pid = ds_init_tmp.getColumn(0, "pid");
  1951. var indd = ds_init_tmp.getColumn(0, "indd");
  1952. var cretno = ds_init_tmp.getColumn(0, "cretno");
  1953. frmf_clearParameter("SPMRI02400_prtrecinfo");
  1954. dsf_createDsRow("ds_send_reqdata", [
  1955. {col:"pid", type:"STRING", size:256, val:Pid}
  1956. , {col:"indd", type:"STRING", size:256, val:indd}
  1957. , {col:"cretno", type:"INT", size:256, val:cretno}
  1958. , {col:"formflag", type:"STRING", size:256, val:"S"}
  1959. ]);
  1960. dsf_createDs("ds_temp_keyinfo", [
  1961. {col:"signno", type:"STRING", size:256}
  1962. , {col:"chrtflag", type:"STRING", size:256}
  1963. , {col:"opflag", type:"STRING", size:256}
  1964. , {col:"opsignno", type:"STRING", size:256}
  1965. , {col:"pid", type:"STRING", size:256}
  1966. , {col:"formcd", type:"STRING", size:256}
  1967. , {col:"formflag", type:"STRING", size:256}
  1968. ]);
  1969. var oParam = {};
  1970. oParam.id = "TRMRD01203";
  1971. oParam.service = "dschanalyapp.DschAnaly";
  1972. oParam.method = "reqGetChrtAnalyPtKeyList";
  1973. oParam.inds = "req=ds_send_reqdata";
  1974. oParam.outds = "ds_temp_keyinfo=keylist";
  1975. oParam.async = false;
  1976. //oParam.callback = "cf_TRMRD01203";
  1977. tranf_submit(oParam);
  1978. var Chrtflag = ds_temp_keyinfo.getColumn(0, "chrtflag");
  1979. var sFormcd = ds_temp_keyinfo.getColumn(0, "formcd");
  1980. if(Chrtflag == "E"){
  1981. msg = Chrtflag + "▦" + ds_temp_keyinfo.getColumn(0, "signno") + "▦"+sFormcd+"▩";
  1982. frmf_setParameter("SPMRI02400_prtrecinfo", msg); //oldflag▦signno▦formcd▩//통합기록출력창 파라미터
  1983. frmf_modal("SPMRI02400", "SPMRI02400", null, null, null, null, null, null, null, null, null, null, "M");
  1984. }else{
  1985. sysf_messageBox("입퇴원요약기록이","I004");
  1986. return;
  1987. }
  1988. dsf_deleteDs("ds_send_reqdata");
  1989. dsf_deleteDs("ds_temp_keyinfo");
  1990. }
  1991. /****************************************************************************************
  1992. * Function : fPrint_OpChrt
  1993. * Description : 수술기록지
  1994. * Argument :
  1995. * retrun type :
  1996. * Creator :
  1997. ****************************************************************************************/
  1998. function fPrint_OpChrt()
  1999. {
  2000. var iRow = ds_main_list_chrtanaly_patlist.rowposition;
  2001. var Pid = ds_init_tmp.getColumn(0, "pid");
  2002. var indd = ds_init_tmp.getColumn(0, "indd");
  2003. var cretno = ds_init_tmp.getColumn(0, "cretno");
  2004. var remyn = ds_main_list_chrtanaly_patlist.getColumn(iRow, "remyn");
  2005. var removedd = ds_main_list_chrtanaly_patlist.getColumn(iRow, "removedd");
  2006. var msg = "";
  2007. if(iRow < 0){
  2008. return;
  2009. }
  2010. if((remyn == "N") && (removedd == '-')){
  2011. sysf_messageBox("차트수거된 환자만 출력이","I006");
  2012. return;
  2013. }
  2014. frmf_clearParameter("SPMRI02400_prtrecinfo");
  2015. dsf_createDsRow("ds_send_reqdata", [
  2016. {col:"pid", type:"STRING", size:256, val:Pid}
  2017. , {col:"indd", type:"STRING", size:256, val:indd}
  2018. , {col:"cretno", type:"INT", size:256, val:cretno}
  2019. , {col:"formflag", type:"STRING", size:256, val:"P"}
  2020. ]);
  2021. dsf_createDs("ds_temp_keyinfo", [
  2022. {col:"signno", type:"STRING", size:256}
  2023. , {col:"chrtflag", type:"STRING", size:256}
  2024. , {col:"opflag", type:"STRING", size:256}
  2025. , {col:"opsignno", type:"STRING", size:256}
  2026. , {col:"pid", type:"STRING", size:256}
  2027. , {col:"formcd", type:"STRING", size:256}
  2028. , {col:"formflag", type:"STRING", size:256}
  2029. ]);
  2030. var oParam = {};
  2031. oParam.id = "TRMRD01203";
  2032. oParam.service = "dschanalyapp.DschAnaly";
  2033. oParam.method = "reqGetChrtAnalyPtKeyList";
  2034. oParam.inds = "req=ds_send_reqdata";
  2035. oParam.outds = "ds_temp_keyinfo=keylist";
  2036. oParam.async = false;
  2037. //oParam.callback = "cf_TRMRD01203";
  2038. tranf_submit(oParam);
  2039. var opflag = ds_temp_keyinfo.getColumn(0, "opflag");
  2040. var opFormcd = ds_temp_keyinfo.getColumn(0, "formcd");
  2041. if(opflag == "E"){
  2042. msg = opflag + "▦" + ds_temp_keyinfo.getColumn(0, "opsignno") +"▦"+opFormcd+"▩";
  2043. frmf_setParameter("SPMRI02400_prtrecinfo", msg); //oldflag▦opsignno▦formcd▩//통합기록출력창 파라미터
  2044. frmf_modal("SPMRI02400", "SPMRI02400", null, null, null, null, null, null, null, null, null, null, "M");
  2045. }else if(opflag ==""){
  2046. sysf_messageBox("수술기록이","I004");
  2047. return;
  2048. }
  2049. dsf_deleteDs("ds_send_reqdata");
  2050. dsf_deleteDs("ds_temp_keyinfo");
  2051. }
  2052. /****************************************************************************************
  2053. * Function : fSelectPatInfo
  2054. * Description : 그리드에서 선택한 환자정보 가져오기
  2055. * Argument : 01.flag
  2056. * retrun type :
  2057. * Creator :
  2058. ****************************************************************************************/
  2059. function fSelectPatInfo(flag, obj:Grid, e:GridClickEventInfo)
  2060. {
  2061. ds_init_tmp.clearData();
  2062. var nRow = ds_init_tmp.addRow();
  2063. var bindDs = eval(obj.binddataset);
  2064. if(flag=="rem"){
  2065. ds_init_tmp.setColumn(nRow, "pid", bindDs.getColumn(e.row, "pid"));
  2066. ds_init_tmp.setColumn(nRow, "indd", bindDs.getColumn(e.row, "orgindd"));
  2067. ds_init_tmp.setColumn(nRow, "cretno", bindDs.getColumn(e.row, "cretno"));
  2068. ds_init_tmp.setColumn(nRow, "dschdd", utlf_transNullToEmpty(bindDs.getColumn(e.row, "dschdt")).substring(0, 8));
  2069. }else if(flag=="dsch1" || flag=="analy" || flag=="indx"){
  2070. ds_init_tmp.setColumn(nRow, "pid", bindDs.getColumn(e.row, "pid"));
  2071. ds_init_tmp.setColumn(nRow, "indd", bindDs.getColumn(e.row, "indd"));
  2072. ds_init_tmp.setColumn(nRow, "cretno", "");
  2073. ds_init_tmp.setColumn(nRow, "dschdd", utlf_transNullToEmpty(bindDs.getColumn(e.row, "dschdt")).substring(0, 8));
  2074. }else if(flag=="unpr"){
  2075. ds_init_tmp.setColumn(nRow, "pid", bindDs.getColumn(e.row, "pid"));
  2076. ds_init_tmp.setColumn(nRow, "indd", bindDs.getColumn(e.row, "indd"));
  2077. ds_init_tmp.setColumn(nRow, "cretno", "");
  2078. ds_init_tmp.setColumn(nRow, "dschdd", utlf_transNullToEmpty(bindDs.getColumn(e.row, "dschdt")));
  2079. }
  2080. // 현재 열린창 환자정보 동기화
  2081. fSyncForms();
  2082. }
  2083. /****************************************************************************************
  2084. * Function : fChrtUnrtnRemCntPresCondList
  2085. * Description : 미반납건수현황조회(통계)
  2086. * Argument :
  2087. * retrun type :
  2088. * Creator : (사용안함)
  2089. ****************************************************************************************/
  2090. function fChrtUnrtnRemCntPresCondList()
  2091. {
  2092. var UnrtnFlag = ds_cond.getColumn(0, "unrtnflag");
  2093. if(UnrtnFlag == "wardunremcnt"){
  2094. ds_main_chrtunrtnlist1_wardunremcntlist.clearData();
  2095. }else if(UnrtnFlag == "deptunremcnt"){
  2096. ds_main_chrtunrtnlist2_deptunremcntlist.clearData();
  2097. }else if(UnrtnFlag == "deptuntrncnt"){
  2098. ds_main_chrtunrtnlist3_deptunrtncntlist.clearData();
  2099. }else if(UnrtnFlag == "warduntrncnt"){
  2100. ds_main_chrtunrtnlist4_wardunrtncntlist.clearData();
  2101. }
  2102. dsf_createDsRow("ds_send_reqdata", [
  2103. {col:"unrtnflag", type:"STRING", size:256, val:ds_cond.getcolumn(0, "unrtnflag")}
  2104. , {col:"srchfrdd", type:"STRING", size:256, val:ds_cond.getcolumn(0, "srchfrdd")}
  2105. , {col:"srchtodd", type:"STRING", size:256, val:ds_cond.getcolumn(0, "srchtodd")}
  2106. ]);
  2107. var oParam = {};
  2108. oParam.id = "TRMRD01204";
  2109. oParam.service = "dschanalyapp.DschAnaly";
  2110. oParam.method = "reqGetChrtUnrtnRemCntPresCondList";
  2111. oParam.inds = "cond=ds_send_reqdata";
  2112. oParam.outds = "ds_main_chrtunrtnlist1_wardunremcntlist=wardunremcntlistds_main_chrtunrtnlist2_deptunremcntlist=deptunremcntlist ds_main_chrtunrtnlist3_deptunrtncntlist=deptunrtncntlist ds_main_chrtunrtnlist4_wardunrtncntlist=wardunrtncntlist";
  2113. oParam.async = false;
  2114. oParam.callback = "cf_TRMRD01204";
  2115. tranf_submit(oParam);
  2116. }
  2117. /****************************************************************************************
  2118. * Argument : 01.sSvcId : 서비스 ID
  2119. * : 02.nErrorCode : 에러코드
  2120. * : 03.sErrorMsg : 에러메시지
  2121. * Description : cf_TRMRD01204의 콜백함수
  2122. ****************************************************************************************/
  2123. function cf_TRMRD01204(sSvcId, nErrorCode, sErrorMsg) {
  2124. if(nErrorCode < 0) return;
  2125. var UnrtnFlag = ds_cond.getColumn(0, "unrtnflag");
  2126. if(UnrtnFlag == "wardunremcnt"){
  2127. var wumRow = ds_main_chrtunrtnlist1_wardunremcntlist.rowcount;
  2128. sysf_messageBox("검색이","I002");
  2129. ds_search.setColumn(0, "srchcnt", wumRow);
  2130. }else if(UnrtnFlag=="deptunremcnt"){
  2131. var durRow = ds_main_chrtunrtnlist2_deptunremcntlist.rowcount;
  2132. sysf_messageBox("검색이","I002");
  2133. ds_search.setColumn(0, "srchcnt", durRow);
  2134. }else if(UnrtnFlag=="deptuntrncnt"){
  2135. var dutRow = ds_main_chrtunrtnlist3_deptunrtncntlist.rowcount;
  2136. sysf_messageBox("검색이","I002");
  2137. ds_search.setColumn(0, "srchcnt", dutRow);
  2138. }else if(UnrtnFlag == "warduntrncnt"){
  2139. var wutRow = ds_main_chrtunrtnlist4_wardunrtncntlist.rowcount;
  2140. sysf_messageBox("검색이","I002");
  2141. ds_search.setColumn(0, "srchcnt", wutRow);
  2142. }
  2143. dsf_deleteDs("ds_send_reqdata");
  2144. }
  2145. /****************************************************************************************
  2146. * Function : fDisabled
  2147. * Description : 탭별조회조건 visible flag 값
  2148. * Argument : 01.flag - rem->수거, dsch->분석, unrtn->미반납 건수
  2149. * retrun type :
  2150. * Creator :
  2151. ****************************************************************************************/
  2152. function fDisabled(flag){
  2153. if(flag=="rem"){
  2154. btn_save.enable = false;
  2155. cap_indschflag.visible = true;
  2156. rdo_ioflag.visible = true;
  2157. chk_rflag.visible = true;
  2158. chk_userflag.visible = false;
  2159. cap_pid.visible = true;
  2160. ipt_pid.visible = true;
  2161. chb_value.visible = true;
  2162. btn_srchpid.visible = true;
  2163. cap_dept.visible = true;
  2164. cap_dept.text = "진 료 과 :";
  2165. //cmb_orddept.visible = true;
  2166. opt_multidept.visible = true;
  2167. btn_multidept.visible = true;
  2168. cap_medispc.visible = true;
  2169. cmb_medispc.visible = true;
  2170. cap_ward.visible = true;
  2171. cbo_ward.visible = true;
  2172. cap_user.visible = false;
  2173. ipt_unprepdrnm.visible = false;
  2174. cap_remyn.visible = true;
  2175. cap_remyn.position.y = 220;
  2176. rdo_remyn.visible = true;
  2177. rdo_remyn.position.y = 220;
  2178. cap_reqflag.visible = false;
  2179. rdo_reqflag.visible = false;
  2180. chk_longinhosp.visible = true;
  2181. ipt_inhospdd.visible = true;
  2182. btn_r_chrtmovelist.visible = true;
  2183. cap_unrtnflag.visible = false;
  2184. rdo_unrtnflag.visible = false;
  2185. btn_chrtuncntprescond.visible = false;
  2186. btn_patdinfo.enable = true;
  2187. btn_search.enable = true;
  2188. btn_dsch.enable = true;
  2189. btn_indx.enable = true;
  2190. btn_unprep.enable = true;
  2191. btn_cncr.enable = true;
  2192. btn_save.visible = true;
  2193. /*
  2194. btn_excel.position.x = 1091;
  2195. btn_cncr.position.x = 1036;
  2196. btn_unprep.position.x = 970;
  2197. btn_indx.position.x = 871;
  2198. btn_dsch.position.x = 805;
  2199. btn_search.position.x = 717;
  2200. btn_syncsetting.position.x = 695;
  2201. */
  2202. cap_exam.visible = true;
  2203. cap_examfromto.visible = true;
  2204. ipt_examfromdd.visible = true;
  2205. ipt_examtodd.visible = true;
  2206. }else if(flag=="dsch"){
  2207. cap_indschflag.visible = true;
  2208. rdo_ioflag.visible = true;
  2209. chk_rflag.visible = false;
  2210. chk_userflag.visible = true;
  2211. cap_pid.visible = true;
  2212. ipt_pid.visible = true;
  2213. chb_value.visible = true;
  2214. btn_srchpid.visible = true;
  2215. cap_dept.visible = true;
  2216. cap_dept.text = "퇴 원 과 :";
  2217. //cmb_orddept.visible = true;
  2218. opt_multidept.visible = true;
  2219. btn_multidept.visible = true;
  2220. cap_medispc.visible = true;
  2221. cmb_medispc.visible = true;
  2222. cap_ward.visible = true;
  2223. cbo_ward.visible = true;
  2224. cap_user.visible = true;
  2225. ipt_unprepdrnm.visible = true;
  2226. cap_remyn.visible = false;
  2227. rdo_remyn.visible = false;
  2228. cap_reqflag.visible = true;
  2229. cap_reqflag.position.y = 255;
  2230. rdo_reqflag.visible = true;
  2231. rdo_reqflag.position.y = 255;
  2232. chk_longinhosp.visible = true;
  2233. ipt_inhospdd.visible = true;
  2234. btn_r_chrtmovelist.visible = true;
  2235. cap_unrtnflag.visible = false;
  2236. rdo_unrtnflag.visible = false;
  2237. btn_chrtuncntprescond.visible = false;
  2238. btn_patdinfo.enable = true;
  2239. btn_search.enable = true;
  2240. btn_dsch.enable = true;
  2241. btn_indx.enable = true;
  2242. btn_unprep.enable = true;
  2243. btn_cncr.enable = true;
  2244. btn_save.visible = false;
  2245. /*
  2246. btn_excel.position.x = 1147;
  2247. btn_cncr.position.x = 1092;
  2248. btn_unprep.position.x = 1026;
  2249. btn_indx.position.x = 927;
  2250. btn_dsch.position.x = 861;
  2251. btn_search.position.x = 773;
  2252. btn_syncsetting.position.x = 751;
  2253. */
  2254. cap_exam.visible = false;
  2255. cap_examfromto.visible = false;
  2256. ipt_examfromdd.visible = false;
  2257. ipt_examtodd.visible = false;
  2258. }else if(flag=="unrtn"){
  2259. cap_indschflag.visible = false;
  2260. rdo_ioflag.visible = false;
  2261. chk_rflag.visible = false;
  2262. chk_userflag.visible = false;
  2263. cap_pid.visible = false;
  2264. ipt_pid.visible = false;
  2265. chb_value.visible = false;
  2266. btn_srchpid.visible = false;
  2267. cap_dept.visible = false;
  2268. //cmb_orddept.visible = false;
  2269. opt_multidept.visible = false;
  2270. btn_multidept.visible = false;
  2271. cap_medispc.visible = false;
  2272. cmb_medispc.visible = false;
  2273. cap_ward.visible = false;
  2274. cbo_ward.visible = false;
  2275. cap_user.visible = false;
  2276. cap_remyn.visible = false;
  2277. ipt_unprepdrnm.visible = false;
  2278. rdo_remyn.visible = false;
  2279. cap_reqflag.visible = false;
  2280. rdo_reqflag.visible = false;
  2281. chk_longinhosp.visible = false;
  2282. ipt_inhospdd.visible = false;
  2283. btn_r_chrtmovelist.visible = false;
  2284. cap_unrtnflag.visible = true;
  2285. rdo_unrtnflag.visible = true;
  2286. btn_chrtuncntprescond.visible = true;
  2287. btn_chrtuncntprescond.visible = true;
  2288. btn_chrtuncntprescond.position.y = 439;
  2289. btn_patdinfo.enable = false;
  2290. btn_search.enable = false;
  2291. btn_dsch.enable = false;
  2292. btn_indx.enable = false;
  2293. btn_unprep.enable = false;
  2294. btn_cncr.enable = false;
  2295. btn_save.visible = false;
  2296. /*
  2297. btn_excel.position.x = 1147;
  2298. btn_cncr.position.x = 1092;
  2299. btn_unprep.position.x = 1026;
  2300. btn_indx.position.x = 927;
  2301. btn_dsch.position.x = 861;
  2302. btn_search.position.x = 773;
  2303. btn_syncsetting.position.x = 751;
  2304. */
  2305. cap_exam.visible = false;
  2306. cap_examfromto.visible = false;
  2307. ipt_examfromdd.visible = false;
  2308. ipt_examtodd.visible = false;
  2309. }
  2310. }
  2311. /****************************************************************************************
  2312. * Argument : 01.sSvcId : 서비스 ID
  2313. * : 02.nErrorCode : 에러코드
  2314. * : 03.sErrorMsg : 에러메시지
  2315. * Description : cf_의 콜백함수
  2316. ****************************************************************************************/
  2317. function cf_(sSvcId, nErrorCode, sErrorMsg) {
  2318. if(nErrorCode < 0) return;
  2319. }
  2320. //=======================================================================================
  2321. // Event
  2322. //---------------------------------------------------------------------------------------
  2323. /****************************************************************************************
  2324. * Components : Form
  2325. * Components ID : SMMRD01200
  2326. * Event : oninit
  2327. * Argument : 01.obj : Object Event has occurred
  2328. * : 02.e : Event Object
  2329. * Description : 화면 초기화
  2330. ****************************************************************************************/
  2331. function SMMRD01200_oninit(obj:Form, e:InitEventInfo)
  2332. {
  2333. frmf_initForm(obj);
  2334. }
  2335. /****************************************************************************************
  2336. * Components : Form
  2337. * Components ID : SMMRD01200
  2338. * Event : onload
  2339. * Argument : 01.obj : Object Event has occurred
  2340. * : 02.e : Event Object
  2341. * Description : 화면 초기화
  2342. ****************************************************************************************/
  2343. function SMMRD01200_onload(obj:Form, e:LoadEventInfo)
  2344. {
  2345. fInitialize();
  2346. }
  2347. /****************************************************************************************
  2348. * Components : Combo
  2349. * Components ID : cmb_orddept
  2350. * Event : onitemchanged
  2351. * Argument : 01.obj : Object Event has occurred
  2352. * : 02.e : Event Object
  2353. * Description : 진료과
  2354. ****************************************************************************************/
  2355. function cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  2356. {
  2357. fChgUserListClsDept();
  2358. }
  2359. /****************************************************************************************
  2360. * Components : Button
  2361. * Components ID : btn_r_chrtmovelist
  2362. * Event : onclick
  2363. * Argument : 01.obj : Object Event has occurred
  2364. * : 02.e : Event Object
  2365. * Description : 조회 버튼 클릭
  2366. ****************************************************************************************/
  2367. function btn_r_chrtmovelist_onclick(obj:Button, e:ClickEventInfo)
  2368. {
  2369. fGetPatList();
  2370. }
  2371. /****************************************************************************************
  2372. * Components : Radio
  2373. * Components ID : rdo_ioflag
  2374. * Event : onitemchanged
  2375. * Argument : 01.obj : Object Event has occurred
  2376. * : 02.e : Event Object
  2377. * Description : 구분 클릭 이벤트
  2378. ****************************************************************************************/
  2379. function rdo_ioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2380. {
  2381. fSaveDisable();
  2382. }
  2383. /****************************************************************************************
  2384. * Components : CheckBox
  2385. * Components ID : chk_longinhosp
  2386. * Event : onclick
  2387. * Argument : 01.obj : Object Event has occurred
  2388. * : 02.e : Event Object
  2389. * Description : 장기 재원시 체크박스 클릭 이벤트
  2390. ****************************************************************************************/
  2391. function chk_longinhosp_onclick(obj:CheckBox, e:ClickEventInfo)
  2392. {
  2393. if(obj.value != "H")
  2394. ds_cond.setColumn(0, "longinhosp", "");
  2395. fChgInhospdd();
  2396. }
  2397. /****************************************************************************************
  2398. * Components : Radio
  2399. * Components ID : rdo_reqflag
  2400. * Event : onitemchanged
  2401. * Argument : 01.obj : Object Event has occurred
  2402. * : 02.e : Event Object
  2403. * Description : 조회구분 Radio item 선택 이벤트
  2404. ****************************************************************************************/
  2405. function rdo_reqflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2406. {
  2407. ds_init_remanalyflag.setColumn(0, "cntflag", "DA");
  2408. ds_temp_flag.setColumn(0, "excelflag", "2");
  2409. ipt_unprepdrnm.enable = true;
  2410. btn_save.enable = false;
  2411. var reqflag = utlf_transNullToEmpty(ds_init.getColumn(0, "reqflag"));
  2412. reqflag = reqflag.substr(0,4);
  2413. if( "dsch" == reqflag){
  2414. switch1.tabindex = 1;
  2415. lf_btn_Selected("btn_flag");
  2416. }else if( "anly" == reqflag){
  2417. switch1.tabindex = 2;
  2418. lf_btn_Selected("btn_flag");
  2419. }else if( "indx" == reqflag){
  2420. switch1.tabindex = 3;
  2421. lf_btn_Selected("btn_flag");
  2422. }else if( "unpr" == reqflag){
  2423. switch1.tabindex = 4;
  2424. lf_btn_Selected("btn_flag");
  2425. }
  2426. ds_cond.setColumn(0, "remanalyflag", reqflag);
  2427. }
  2428. /****************************************************************************************
  2429. * Components : Button
  2430. * Components ID : btn_excel
  2431. * Event : onclick
  2432. * Argument : 01.obj : Object Event has occurred
  2433. * : 02.e : Event Object
  2434. * Description : 엑셀버튼 이벤트
  2435. ****************************************************************************************/
  2436. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  2437. {
  2438. fChrtanalySaveExcel();
  2439. }
  2440. /****************************************************************************************
  2441. * Components : Edit
  2442. * Components ID : ipt_pid
  2443. * Event : onkeyup
  2444. * Argument : 01.obj : Object Event has occurred
  2445. * : 02.e : Event Object
  2446. * Description : 등록번호 EnterKey 이벤트
  2447. ****************************************************************************************/
  2448. function ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  2449. {
  2450. if( e.keycode == 13 ){
  2451. obj.updateToDataset();
  2452. btn_srchpid.click();
  2453. }
  2454. }
  2455. /****************************************************************************************
  2456. * Components : Button
  2457. * Components ID : btn_srchpid
  2458. * Event : onkeyup
  2459. * Argument : 01.obj : Object Event has occurred
  2460. * : 02.e : Event Object
  2461. * Description : 등록번호 EnterKey 이벤트
  2462. ****************************************************************************************/
  2463. function btn_srchpid_onclick(obj:Button, e:ClickEventInfo)
  2464. {
  2465. fPidKeyPress();
  2466. }
  2467. /****************************************************************************************
  2468. * Components : Grid
  2469. * Components ID : switch1.case1.grd_chrtanaly
  2470. * Event : oncellclick
  2471. * Argument : 01.obj : Object Event has occurred
  2472. * : 02.e : Event Object
  2473. * Description : 행클릭
  2474. ****************************************************************************************/
  2475. function switch1_case1_grd_chrtanaly_oncellclick(obj:Grid, e:GridClickEventInfo)
  2476. {
  2477. if( e.row < 0 && e.col < 0 ) return;
  2478. fSelectPatInfo("rem", obj, e);
  2479. }
  2480. /****************************************************************************************
  2481. * Components : Grid
  2482. * Components ID : switch1.case1.grd_chrtanaly
  2483. * Event : onrbuttondown
  2484. * Argument : 01.obj : Object Event has occurred
  2485. * : 02.e : Event Object
  2486. * Description : 그리드 우클릭 메뉴
  2487. ****************************************************************************************/
  2488. function switch1_case1_grd_chrtanaly_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  2489. {
  2490. if( e.col < 0 && e.row < 0 ) return;
  2491. grdf_setSelectedCell(obj, e);
  2492. fMouseRightchrt(obj, e);
  2493. }
  2494. /****************************************************************************************
  2495. * Components : Dataset
  2496. * Components ID : ds_main_list_chrtanaly_patlist
  2497. * Event : oncolumnchanged
  2498. * Argument : 01.obj : Object Event has occurred
  2499. * : 02.e : Event Object
  2500. * Description :
  2501. ****************************************************************************************/
  2502. function ds_main_list_chrtanaly_patlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  2503. {
  2504. if( e.columnid == "remyn" || e.columnid == "delyn" || e.columnid == "unrtnyn" ){
  2505. obj.setColumn(e.row, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  2506. }
  2507. fChgUnrtnyn(obj, e);
  2508. }
  2509. /****************************************************************************************
  2510. * Components : Grid
  2511. * Components ID : switch1.case2.grd_dschpat
  2512. * Event : oncellclick
  2513. * Argument : 01.obj : Object Event has occurred
  2514. * : 02.e : Event Object
  2515. * Description : 행클릭
  2516. ****************************************************************************************/
  2517. function switch1_case2_grd_dschpat_oncellclick(obj:Grid, e:GridClickEventInfo)
  2518. {
  2519. if( e.row < 0 && e.col < 0 ) return;
  2520. fSelectPatInfo("dsch1", obj, e);
  2521. }
  2522. /****************************************************************************************
  2523. * Components : Grid
  2524. * Components ID : switch1.case3.grd_dschanaly
  2525. * Event : oncellclick
  2526. * Argument : 01.obj : Object Event has occurred
  2527. * : 02.e : Event Object
  2528. * Description : 행클릭
  2529. ****************************************************************************************/
  2530. function switch1_case3_grd_dschanaly_oncellclick(obj:Grid, e:GridClickEventInfo)
  2531. {
  2532. if( e.row < 0 && e.col < 0 ) return;
  2533. fSelectPatInfo("analy", obj, e);
  2534. }
  2535. /****************************************************************************************
  2536. * Components : Grid
  2537. * Components ID : switch1.case4.grd_indxlist
  2538. * Event : oncellclick
  2539. * Argument : 01.obj : Object Event has occurred
  2540. * : 02.e : Event Object
  2541. * Description : 행클릭
  2542. ****************************************************************************************/
  2543. function switch1_case4_grd_indxlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  2544. {
  2545. if( e.row < 0 && e.col < 0 ) return;
  2546. fSelectPatInfo("indx", obj, e);
  2547. }
  2548. /****************************************************************************************
  2549. * Components : Grid
  2550. * Components ID : switch1.case5.grd_unprep
  2551. * Event : oncellclick
  2552. * Argument : 01.obj : Object Event has occurred
  2553. * : 02.e : Event Object
  2554. * Description : 행클릭
  2555. ****************************************************************************************/
  2556. function switch1_case5_grd_unprep_oncellclick(obj:Grid, e:GridClickEventInfo)
  2557. {
  2558. if( e.row < 0 && e.col < 0 ) return;
  2559. fSelectPatInfo("unpr", obj, e);
  2560. }
  2561. /****************************************************************************************
  2562. * Components : Button
  2563. * Components ID : btn_search
  2564. * Event : onclick
  2565. * Argument : 01.obj : Object Event has occurred
  2566. * : 02.e : Event Object
  2567. * Description : 통합기록조회 버튼 클릭
  2568. ****************************************************************************************/
  2569. function btn_search_onclick(obj:Button, e:ClickEventInfo)
  2570. {
  2571. var sPid = ds_init_tmp.getColumn(0, "pid");
  2572. if(utlf_isNull(sPid)){
  2573. return;
  2574. }
  2575. frmf_setParameter("SMMRI00400_param_pid", sPid);
  2576. // 통합기록조회가 뜨는 위치를 지정.
  2577. frmf_open("SMMRI00400", "SMMRI00400", null, false, 1, 0, 0, null, null, null, null, null, "M");
  2578. }
  2579. /****************************************************************************************
  2580. * Components : Button
  2581. * Components ID : btn_indx
  2582. * Event : onclick
  2583. * Argument : 01.obj : Object Event has occurred
  2584. * : 02.e : Event Object
  2585. * Description : 질병및수술분류 버튼 클릭
  2586. ****************************************************************************************/
  2587. function btn_indx_onclick(obj:Button, e:ClickEventInfo)
  2588. {
  2589. var sPid = ds_init_tmp.getColumn(0, "pid");
  2590. if(utlf_isNull(sPid)){
  2591. return;
  2592. }
  2593. frmf_setParameter("SMMRD00400_pid", sPid);
  2594. frmf_open("SMMRD00700", "SMMRD00700", null, false, 1, 0, 0, null, null, null, null, null, "M");
  2595. }
  2596. /****************************************************************************************
  2597. * Components : Button
  2598. * Components ID : btn_patdinfo
  2599. * Event : onclick
  2600. * Argument : 01.obj : Object Event has occurred
  2601. * : 02.e : Event Object
  2602. * Description : 환자상세정보 버튼 클릭
  2603. ****************************************************************************************/
  2604. function btn_patdinfo_onclick(obj:Button, e:ClickEventInfo)
  2605. {
  2606. var sPid = ds_init_tmp.getColumn(0, "pid");
  2607. if(utlf_isNull(sPid)){
  2608. return;
  2609. }
  2610. dsf_createDsRow("ds_source", [{col:"srchcond", type:"string", size:256, val:"1"}
  2611. , {col:"pid", type:"string", size:256, val:sPid}]);
  2612. var objArgs = new Object();
  2613. objArgs.arg_ds_source = ds_source;
  2614. frmf_open("SMPMC01900", "SMPMC01900", null, false, 1, 100, 100, null, null, null, null, null, "M");
  2615. }
  2616. /****************************************************************************************
  2617. * Components : Button
  2618. * Components ID : btn_dsch
  2619. * Event : onclick
  2620. * Argument : 01.obj : Object Event has occurred
  2621. * : 02.e : Event Object
  2622. * Description : 퇴원분석 버튼 클릭
  2623. ****************************************************************************************/
  2624. function btn_dsch_onclick(obj:Button, e:ClickEventInfo)
  2625. {
  2626. var sPid = ds_init_tmp.getColumn(0, "pid");
  2627. if(utlf_isNull(sPid)){
  2628. return;
  2629. }
  2630. frmf_setParameter("SMMRD00400_param_pid", sPid);
  2631. frmf_open("SMMRD00400", "SMMRD00400", null, false, 1, 0, 0, null, null, null, null, null, "M");
  2632. }
  2633. /****************************************************************************************
  2634. * Components : Button
  2635. * Components ID : btn_save
  2636. * Event : onclick
  2637. * Argument : 01.obj : Object Event has occurred
  2638. * : 02.e : Event Object
  2639. * Description : 저장 버튼 클릭
  2640. ****************************************************************************************/
  2641. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  2642. {
  2643. fSave();
  2644. }
  2645. /****************************************************************************************
  2646. * Components : Button
  2647. * Components ID : btn_stat
  2648. * Event : onclick
  2649. * Argument : 01.obj : Object Event has occurred
  2650. * : 02.e : Event Object
  2651. * Description : 수거버튼 클릭
  2652. ****************************************************************************************/
  2653. function btn_stat_onclick(obj:Button, e:ClickEventInfo)
  2654. {
  2655. lf_btn_Selected("btn_stat");
  2656. switch1.tabindex = 0;
  2657. ds_cond.setColumn(0, "clsdeptflag", "");
  2658. fDisabled("rem");
  2659. ds_cond.setColumn(0, "remanalyflag", "rem");
  2660. ds_temp_flag.setColumn(0, "excelflag", "1");
  2661. }
  2662. /****************************************************************************************
  2663. * Components : Button
  2664. * Components ID : btn_flag
  2665. * Event : onclick
  2666. * Argument : 01.obj : Object Event has occurred
  2667. * : 02.e : Event Object
  2668. * Description : 분석버튼 클릭
  2669. ****************************************************************************************/
  2670. function btn_flag_onclick(obj:Button, e:ClickEventInfo)
  2671. {
  2672. lf_btn_Selected("btn_flag");
  2673. dsf_createDs("ds_init_clsdeptlist");
  2674. //zsdfGetInClsDeptList(sysf_getUserInfo("dutplceinstcd"), cmb_orddept.value, "/root/init/clsdeptlist", "depthngnm", "asc");//분과
  2675. appf_getInClsDeptList(sysf_getUserInfo("dutplceinstcd"), cmb_orddept.value, "depthngnm", "asc", utlf_getCurrentDate(), "ds_init_clsdeptlist");
  2676. if(ds_init_clsdeptlist.rowcount > 0){
  2677. ds_cond.setColumn(0, "clsdeptflag", "Y");
  2678. }
  2679. fDisabled("dsch");
  2680. dsf_createDsRow("ds_init_remanalyflag", [{col:"cntflag", type:"string", size:256, val:"DA"}]); // 건수 구분
  2681. ds_temp_flag.setColumn(0, "excelflag", "2"); //엑셀구분
  2682. var reqflag = utlf_transNullToEmpty(ds_init.getColumn(0, "reqflag"));
  2683. reqflag = reqflag.substr(0,4);
  2684. if( "dsch" == reqflag){
  2685. switch1.tabindex = 1;
  2686. }else if( "anly" == reqflag){
  2687. switch1.tabindex = 2;
  2688. }else if( "indx" == reqflag || "review" == reqflag){
  2689. switch1.tabindex = 3;
  2690. }else if( "unpr" == reqflag){
  2691. switch1.tabindex = 4;
  2692. }
  2693. ds_cond.setColumn(0, "remanalyflag", reqflag);
  2694. }
  2695. /****************************************************************************************
  2696. * Components : Radio
  2697. * Components ID : rdo_remyn
  2698. * Event : onitemchanged
  2699. * Argument : 01.obj : Object Event has occurred
  2700. * : 02.e : Event Object
  2701. * Description : 수거상태 클릭 이벤트
  2702. ****************************************************************************************/
  2703. function rdo_remyn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2704. {
  2705. lf_btn_Selected("btn_stat");
  2706. btn_save.enable = true;
  2707. switch1.tabindex = 0;
  2708. ds_cond.setColumn(0, "remanalyflag", "rem");
  2709. }
  2710. /****************************************************************************************
  2711. * Components : Edit
  2712. * Components ID : ipt_unprepdrid
  2713. * Event : onkeydown
  2714. * Argument : 01.obj : Object Event has occurred
  2715. * : 02.e : Event Object
  2716. * Description : 수거상태 Enter Keydown 이벤트 ( 사용안함 )
  2717. ****************************************************************************************/
  2718. function ipt_unprepdrid_onkeydown(obj:Edit, e:KeyEventInfo)
  2719. {
  2720. if(e.keycode == 13 ){
  2721. frmf_setParameter("reqflag", "userid");
  2722. frmf_setParameter("userid", ipt_unprepdrid.text);
  2723. frmf_setParameter("autortnyn","Y");
  2724. dsf_createDsRow("ds_temp_userinfo", [{col:"userid", type:"string", size:256, val:""}
  2725. , {col:"usernm", type:"string", size:256, val:""}
  2726. , {col:"deptcd", type:"string", size:256, val:""}
  2727. , {col:"instcd", type:"string", size:256, val:""}]);
  2728. frmf_modal("SPMRF03200", "SPMRF03200", null, null, null, null, null, null, null, null, null, null, "M");
  2729. ds_cond.setColumn(0, "userid", ds_temp_userinfo.getColumn(0, "userid"));
  2730. ds_cond.setColumn(0, "usernm", ds_temp_userinfo.getColumn(0, "usernm"));
  2731. }
  2732. }
  2733. /****************************************************************************************
  2734. * Components : Edit
  2735. * Components ID : ipt_unprepdrnm
  2736. * Event : onkeydown
  2737. * Argument : 01.obj : Object Event has occurred
  2738. * : 02.e : Event Object
  2739. * Description : 사용자 Enter Keydown 이벤트
  2740. ****************************************************************************************/
  2741. function ipt_unprepdrnm_onkeydown(obj:Edit, e:KeyEventInfo)
  2742. {
  2743. if(e.keycode == 13){
  2744. trace(ipt_unprepdrnm.getCaretPos());
  2745. if(ipt_unprepdrnm.getCaretPos() <= 5){
  2746. frmf_setParameter("reqflag", "usernm");
  2747. frmf_setParameter("usernm", ipt_unprepdrnm.text);
  2748. frmf_setParameter("autortnyn","Y");
  2749. dsf_createDsRow("ds_temp_userinfo", [{col:"userid", type:"string", size:256, val:""}
  2750. , {col:"usernm", type:"string", size:256, val:""}
  2751. , {col:"deptcd", type:"string", size:256, val:""}
  2752. , {col:"instcd", type:"string", size:256, val:""}]);
  2753. frmf_modal("SPMRF03200", "SPMRF03200", null, null, null, null, null, null, null, null, null, null, "M");
  2754. ds_cond.setColumn(0, "userid", ds_temp_userinfo.getColumn(0, "userid"));
  2755. ds_cond.setColumn(0, "usernm", ds_temp_userinfo.getColumn(0, "usernm"));
  2756. }else if(ipt_unprepdrnm.getCaretPos() >5){
  2757. frmf_setParameter("reqflag", "userid");
  2758. frmf_setParameter("userid", ipt_unprepdrnm.text);
  2759. frmf_setParameter("autortnyn","Y");
  2760. dsf_createDsRow("ds_temp_userinfo", [{col:"userid", type:"string", size:256, val:""}
  2761. , {col:"usernm", type:"string", size:256, val:""}
  2762. , {col:"deptcd", type:"string", size:256, val:""}
  2763. , {col:"instcd", type:"string", size:256, val:""}]);
  2764. frmf_modal("SPMRF03200", "SPMRF03200", null, null, null, null, null, null, null, null, null, null, "M");
  2765. ds_cond.setColumn(0, "userid", ds_temp_userinfo.getColumn(0, "userid"));
  2766. ds_cond.setColumn(0, "usernm", ds_temp_userinfo.getColumn(0, "usernm"));
  2767. }
  2768. }
  2769. }
  2770. /****************************************************************************************
  2771. * Components : Checkbox
  2772. * Components ID : chk_rflag
  2773. * Event : onclick
  2774. * Argument : 01.obj : Object Event has occurred
  2775. * : 02.e : Event Object
  2776. * Description : 수거 처크박스 클릭
  2777. ****************************************************************************************/
  2778. function chk_rflag_onclick(obj:CheckBox, e:ClickEventInfo)
  2779. {
  2780. if(obj.value != "R")
  2781. ds_cond.setColumn(0, "rflag", "");
  2782. fRflagChg();
  2783. }
  2784. /****************************************************************************************
  2785. * Components : Button
  2786. * Components ID : button2
  2787. * Event : onclick
  2788. * Argument : 01.obj : Object Event has occurred
  2789. * : 02.e : Event Object
  2790. * Description : 미반납건수현황 버튼 클릭 (사용안함)
  2791. ****************************************************************************************/
  2792. function button2_onclick(obj:Button, e:ClickEventInfo)
  2793. {
  2794. lf_btn_Selected("button2");
  2795. switch1.tabindex = 5;
  2796. fDisabled("unrtn");
  2797. ds_temp_flag.setColumn(0, "excelflag", "3");
  2798. }
  2799. /****************************************************************************************
  2800. * Components : Radio
  2801. * Components ID : rdo_unrtnflag
  2802. * Event : onitemchanged
  2803. * Argument : 01.obj : Object Event has occurred
  2804. * : 02.e : Event Object
  2805. * Description : 미반납건수현황 조회구분 클릭 (사용안함)
  2806. ****************************************************************************************/
  2807. function rdo_unrtnflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  2808. {
  2809. var UnrtnFlag = ds_cond.getColumn(0, "unrtnflag");
  2810. if(UnrtnFlag == "wardunremcnt"){
  2811. switch1.tabindex = 7;
  2812. } else if(UnrtnFlag=="deptunremcnt"){
  2813. switch1.tabindex = 6;
  2814. } else if(UnrtnFlag=="deptuntrncnt"){
  2815. switch1.tabindex = 5;
  2816. }else if(UnrtnFlag=="warduntrncnt"){
  2817. switch1.tabindex = 8;
  2818. }
  2819. fChrtUnrtnRemCntPresCondList();
  2820. }
  2821. /****************************************************************************************
  2822. * Components : Button
  2823. * Components ID : btn_chrtuncntprescond
  2824. * Event : onclick
  2825. * Argument : 01.obj : Object Event has occurred
  2826. * : 02.e : Event Object
  2827. * Description : 미반납건수현황 조회 버튼클릭 (사용안함)
  2828. ****************************************************************************************/
  2829. function btn_chrtuncntprescond_onclick(obj:Button, e:ClickEventInfo)
  2830. {
  2831. fChrtUnrtnRemCntPresCondList();
  2832. }
  2833. /****************************************************************************************
  2834. * Components : Button
  2835. * Components ID : btn_unprep
  2836. * Event : onclick
  2837. * Argument : 01.obj : Object Event has occurred
  2838. * : 02.e : Event Object
  2839. * Description : 미비관리 버튼클릭
  2840. ****************************************************************************************/
  2841. function btn_unprep_onclick(obj:Button, e:ClickEventInfo)
  2842. {
  2843. var sPid = ds_init_tmp.getColumn(0, "pid");
  2844. if(utlf_isNull(sPid)){
  2845. return;
  2846. }
  2847. frmf_setParameter("SMMRI01700_Param", "");
  2848. var sPid = ds_init_tmp.getColumn(0, "pid");
  2849. var sInDD = ds_init_tmp.getColumn(0, "indd");
  2850. var sDschDD = ds_init_tmp.getColumn(0, "dschdd");
  2851. sParamMsg = "pid▦orddd▦dschdd▦orddeptcd▦ordtype▩"+
  2852. sPid +"▦"+sInDD+"▦"+sDschDD+"▦"+"▦"+"i"+"▩";
  2853. frmf_setParameter("SMMRI01700_Param", sParamMsg);
  2854. frmf_open("SMMRI01700", "SMMRI01700", null, null, null, null, null, null, null, null, null, null, "M");
  2855. }
  2856. /****************************************************************************************
  2857. * Components : Button
  2858. * Components ID : btn_cncr
  2859. * Event : onclick
  2860. * Argument : 01.obj : Object Event has occurred
  2861. * : 02.e : Event Object
  2862. * Description : 암등록 버튼클릭
  2863. ****************************************************************************************/
  2864. function btn_cncr_onclick(obj:Button, e:ClickEventInfo)
  2865. {
  2866. var sPid = ds_init_tmp.getColumn(0, "pid");
  2867. if(utlf_isNull(sPid)){
  2868. return;
  2869. }
  2870. var sDschDD = ds_init_tmp.getColumn(0, "dschdd");
  2871. frmf_setParameter("SMMRD00100_pid", sPid);
  2872. frmf_setParameter("SMMRD00100_dschdd", sDschDD);
  2873. frmf_open("SMMRD00100", "SMMRD00100", null, false, 1, 0, 0, null, null, null, null, null, "M");
  2874. }
  2875. /****************************************************************************************
  2876. * Components : CheckBox
  2877. * Components ID : chk_userflag
  2878. * Event : onclick
  2879. * Argument : 01.obj : Object Event has occurred
  2880. * : 02.e : Event Object
  2881. * Description : 작업기준 체크박스 클릭
  2882. ****************************************************************************************/
  2883. function chk_userflag_onclick(obj:CheckBox, e:ClickEventInfo)
  2884. {
  2885. if(obj.value != "dsch")
  2886. ds_cond.setColumn(0, "userflag", "");
  2887. fRflagChg();
  2888. }
  2889. /****************************************************************************************
  2890. * Components : PopupMenu
  2891. * Components ID : popupmenu
  2892. * Event : onmenuclick
  2893. * Argument : 01.obj : Object Event has occurred
  2894. * : 02.e : Event Object
  2895. * Description : (사용안함)
  2896. ****************************************************************************************/
  2897. function popupmenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  2898. {
  2899. eval(e.id + "()");
  2900. }
  2901. function btn_multidept_onclick(obj:Button, e:ClickEventInfo)
  2902. {
  2903. lf_ControlDeptGrd();
  2904. }
  2905. function lf_ControlDeptGrd()
  2906. {
  2907. if(lgv_deptgrd_openflag == false){ // open
  2908. grd_multidept.position.left = 90;
  2909. grd_multidept.position.top = 168;
  2910. grd_multidept.position.width = 183;
  2911. grd_multidept.position.height = 604;
  2912. grd_multidept.visible = true;
  2913. lgv_deptgrd_openflag = true;
  2914. }else{ // close (선택 완료)
  2915. grd_multidept.visible = false;
  2916. lgv_deptgrd_openflag = false;
  2917. var deptcdstr = "";
  2918. var deptnmstr = "";
  2919. if(ds_multidept.getColumn(0, "checkflag") == "1"){ // 전체 선택 시
  2920. deptcdstr = ds_multidept.getColumn(0, "deptcd");
  2921. deptnmstr = ds_multidept.getColumn(0, "depthngnm");
  2922. }else{
  2923. for(var i = 0; i < ds_multidept.rowcount; i++){
  2924. if(ds_multidept.getColumn(i, "checkflag") == "1"){
  2925. deptcdstr += ",'" + ds_multidept.getColumn(i, "deptcd") + "'";
  2926. deptnmstr += "," + ds_multidept.getColumn(i, "depthngnm");
  2927. }
  2928. }
  2929. if(deptcdstr != ""){
  2930. deptcdstr = deptcdstr.substring(1, deptcdstr.length);
  2931. deptnmstr = deptnmstr.substring(1, deptnmstr.length);
  2932. }
  2933. }
  2934. opt_multidept.value = deptnmstr;
  2935. opt_multidept.tooltiptext = deptnmstr;
  2936. ds_cond.setColumn(0, "orddeptcd", deptcdstr);
  2937. fChgUserListClsDept();
  2938. }
  2939. }
  2940. function grd_multidept_oncellclick(obj:Grid, e:GridClickEventInfo)
  2941. {
  2942. if(obj.currentcol == 1){
  2943. if(ds_multidept.getColumn(obj.currentrow, "checkflag") != "1"){
  2944. ds_multidept.setColumn(obj.currentrow, "checkflag", "1");
  2945. }else{
  2946. ds_multidept.setColumn(obj.currentrow, "checkflag", "");
  2947. }
  2948. }
  2949. // 전체 선택/해제 시 처리
  2950. if(obj.currentrow == 0){
  2951. if(ds_multidept.getColumn(obj.currentrow, "checkflag") != "1"){ // 전체 선택해제
  2952. for(var i = 0; i < ds_multidept.rowcount; i++){
  2953. ds_multidept.setColumn(i, "checkflag", "");
  2954. }
  2955. }else{ // 전체 선택
  2956. for(var i = 0; i < ds_multidept.rowcount; i++){
  2957. ds_multidept.setColumn(i, "checkflag", "1");
  2958. }
  2959. }
  2960. }else{
  2961. if(ds_multidept.getColumn(obj.currentrow, "checkflag") != "1"){
  2962. ds_multidept.setColumn(0, "checkflag", "");
  2963. }
  2964. }
  2965. }
  2966. function grd_multidept_onkillfocus(obj:Grid, e:KillFocusEventInfo)
  2967. {
  2968. //lf_ControlDeptGrd();
  2969. }
  2970. /****************************************************************************************
  2971. * Function : fSyncForms
  2972. * Description : 환자 선택 시 띄어져있는 아래 화면의 환자정보를 동기화함.
  2973. (각 화면별 동기화 옵션 설정 가능)
  2974. 1.통합기록조회, 2. 퇴원분석 , 3. 질병및수술분류,
  2975. 4. 미비관리, 5. 암등록 화면
  2976. * Argument :
  2977. * retrun type :
  2978. * Creator :
  2979. ****************************************************************************************/
  2980. function fSyncForms()
  2981. {
  2982. var sPid = ds_init_tmp.getColumn(0, "pid");
  2983. var sInDD = ds_init_tmp.getColumn(0, "indd");
  2984. var sDschDD = ds_init_tmp.getColumn(0, "dschdd");
  2985. if(utlf_isNull(sPid)){
  2986. return;
  2987. }
  2988. // 1. 통합기록조회
  2989. var obj1 = frmf_findPopup("SMMRI00400");
  2990. if(!utlf_isNull(obj1) && ds_init_syncform.lookup("formid","SMMRI00400", "chk") == 1)
  2991. {
  2992. frmf_setParameter("SMMRI00400_param_pid", sPid);
  2993. frmf_setParameter("SMMRI00400_param_openerid", "SMMRD01200");
  2994. obj1.fInitalize();
  2995. }
  2996. // 2. 퇴원분석
  2997. var obj2 = frmf_findPopup("SMMRD00400");
  2998. if(!utlf_isNull(obj2) && ds_init_syncform.lookup("formid","SMMRD00400", "chk") == 1)
  2999. {
  3000. frmf_setParameter("SMMRD00400_param_pid", sPid);
  3001. obj2.fInitialize();
  3002. }
  3003. // 3. 질병및수술분류,
  3004. var obj3 = frmf_findPopup("SMMRD00700");
  3005. if(!utlf_isNull(obj3) && ds_init_syncform.lookup("formid","SMMRD00700", "chk") == 1)
  3006. {
  3007. frmf_setParameter("SMMRD00400_pid", sPid);
  3008. obj3.fInitialize();
  3009. }
  3010. // 4. 미비관리
  3011. var obj4 = frmf_findPopup("SMMRI01700");
  3012. if(!utlf_isNull(obj4) && ds_init_syncform.lookup("formid","SMMRI01700", "chk") == 1)
  3013. {
  3014. frmf_setParameter("SMMRI01700_Param", "");
  3015. sParamMsg = "pid▦orddd▦dschdd▦orddeptcd▦ordtype▩"+
  3016. sPid +"▦"+sInDD+"▦"+sDschDD+"▦"+"▦"+"i"+"▩";
  3017. frmf_setParameter("SMMRI01700_Param", sParamMsg);
  3018. obj4.fInitialize();
  3019. }
  3020. // 5. 암등록 화면
  3021. var obj5 = frmf_findPopup("SMMRD00100");
  3022. if(!utlf_isNull(obj5) && ds_init_syncform.lookup("formid","SMMRD00100", "chk") == 1)
  3023. {
  3024. frmf_setParameter("SMMRD00100_pid", sPid);
  3025. frmf_setParameter("SMMRD00100_dschdd", sDschDD);
  3026. obj5.fInitialize();
  3027. }
  3028. }
  3029. /****************************************************************************************
  3030. * Components : Button
  3031. * Components ID : btn_syncsetting
  3032. * Event : onclick
  3033. * Argument : 01.obj : Object Event has occurred
  3034. * : 02.e : Event Object
  3035. * Description : 버튼 클릭 시 챠트분석관리 화면과 환자정보 동기화할 화면 옵션
  3036. 설정하는 그리드 보임/숨김
  3037. ****************************************************************************************/
  3038. function btn_syncsetting_onclick(obj:Button, e:ClickEventInfo)
  3039. {
  3040. if(grd_syncform.visible == false){
  3041. grd_syncform.position.x = obj.position.x;
  3042. grd_syncform.position.y = obj.position.y + obj.position.height + 2;
  3043. grd_syncform.visible = true;
  3044. }else{
  3045. grd_syncform.visible = false;
  3046. }
  3047. }
  3048. /****************************************************************************************
  3049. * Components : Grid
  3050. * Components ID : grd_syncform
  3051. * Event : onheadclick
  3052. * Argument : 01.obj : Object Event has occurred
  3053. * : 02.e : Event Object
  3054. * Description : 챠트분석관리 화면과 환자정보 동기화할 화면 옵션 설정 그리드에서
  3055. 전체선택/해제
  3056. ****************************************************************************************/
  3057. var gv_IsGridCheckAll = 0;
  3058. function grd_syncform_onheadclick(obj:Grid, e:GridClickEventInfo)
  3059. {
  3060. if(e.row == -1 && e.col == 0){
  3061. var dsObj = eval(obj.binddataset);
  3062. var v_colId = obj.getCellProperty("body", e.cell, "text").replace("bind:", "");
  3063. gv_IsGridCheckAll = (gv_IsGridCheckAll ? 0 : 1);
  3064. dsObj.enableevent = false;
  3065. for(var i = 0; i < dsObj.rowcount; i++){
  3066. dsObj.setColumn(i, v_colId, gv_IsGridCheckAll);
  3067. }
  3068. obj.setCellProperty("Head", 0, "expr", gv_IsGridCheckAll);
  3069. dsObj.enableevent = true;
  3070. }
  3071. }
  3072. ]]></Script>
  3073. </Form>
  3074. </FDL>