SMAIM00100_AI메인.xfdl 92 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAIM00100_AI메인" classname="SMAIM00100_AI메인" inheritanceid="" position="absolute 0 0 1214 834" titletext="AI메인" oninit="SMAIM00100_AI메인_oninit" onload="SMAIM00100_AI메인_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div id="div_detl" taborder="0" position="absolute 496 28 1190 832" scrollbars="none" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption01" text="인공지능 분석대상" class="tit_2" position="absolute 0 1 183 18" anchor="left top"/>
  11. <Shape id="line02" class="line_10" position="absolute 0 17 688 23" anchor="left top right"/>
  12. <Static id="caption02" text="등록번호" class="cell_1" position="absolute 0 22 82 45" anchor="left top" style="padding:0 0 0 5;align:left middle;"/>
  13. <Edit id="opt_pid" taborder="8" readonly="true" autoselect="true" position="absolute 84 22 184 45" style="align:center middle;"/>
  14. <Static id="caption04" text="성명" class="cell_1" position="absolute 190 22 260 45" anchor="left top" style="padding:0 0 0 5;align:left middle;"/>
  15. <Edit id="opt_hngnm" taborder="9" readonly="true" autoselect="true" position="absolute 262 22 330 45" style="align:center middle;"/>
  16. <Static id="caption00" text="인공지능 분석파일" class="tit_2" position="absolute 0 81 183 98" anchor="left top"/>
  17. <Shape id="line00" class="line_10" position="absolute 0 97 688 103" anchor="left top right"/>
  18. <Grid id="grd_files" taborder="12" binddataset="ds_file" scrollpixel="all" useinputpanel="false" selecttype="multirow" autofittype="col" onmousewheel="grd_files_onmousewheel" position="absolute 72 103 688 177" anchor="left top right" oncellclick="div_detl_grd_files_oncellclick">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="30"/>
  23. <Column size="531"/>
  24. <Column size="100"/>
  25. <Column size="30"/>
  26. <Column size="60"/>
  27. <Column size="60"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="body">
  33. <Cell celltype="head" text="expr:currow + 1"/>
  34. <Cell col="1" displaytype="text" style="padding:0 8 0 8;" text="bind:filename"/>
  35. <Cell col="2" colspan="2" taborder="undefined">
  36. <Cell displaytype="number" style="align:right middle;padding:0 0 0 0;" text="bind:filesize" expr="expr:Math.ceil(filesize / 1024)"/>
  37. <Cell col="1" displaytype="text" style="align:left middle;padding:0 0 0 0;" text="KB"/>
  38. </Cell>
  39. <Cell col="4" displaytype="expr:utlf_isNull(filekey) ? &quot;normal&quot; : &quot;button&quot;" edittype="expr:utlf_isNull(filekey) ? &quot;none&quot; : &quot;button&quot;" text="expr:utlf_isNull(filekey) ? &quot;&quot; : &quot;미리보기&quot;"/>
  40. <Cell col="5" displaytype="expr:utlf_isNull(filekey) ? &quot;normal&quot; : &quot;button&quot;" edittype="expr:utlf_isNull(filekey) ? &quot;none&quot; : &quot;button&quot;" text="expr:utlf_isNull(filekey) ? &quot;&quot; : &quot;파일받기&quot;"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Static id="Static05" text="첨부파일" class="cell_1" position="absolute 0 102 69 177" style="padding:5 0 0 8;align:left top;" anchor="default"/>
  46. <Button id="btn_file_add" taborder="13" text="추가" class="btn5" position="absolute 10 127 59 147" anchor="default" onclick="div_detl_btn_file_add_onclick"/>
  47. <Button id="btn_file_del" taborder="14" text="삭제" onclick="btn_file_del_onclick" class="btn5" visible="true" position="absolute 10 151 59 171" anchor="default"/>
  48. <Static id="caption03" text="인공지능 분석결과" class="tit_2" position="absolute 0 182 183 199" anchor="left top"/>
  49. <Shape id="line01" class="line_10" position="absolute 0 198 689 204" anchor="left top right"/>
  50. <Static id="caption05" text="분석종류" class="cell_1" position="absolute 190 47 272 70" anchor="left top" style="padding:0 0 0 5;align:left middle;"/>
  51. <Combo id="cmb_formcd" taborder="16" innerdataset="@ds_init_gubun_AI002_na" codecolumn="cdid" datacolumn="cdnm" onitemchanged="Tab00_tabpage_trans_group1_cmb_orddeptcd_onitemchanged" class="combo_search" position="absolute 276 47 432 70" anchor="default"/>
  52. <Shape id="line04" class="line_1" position="absolute 0 70 688 76" anchor="left top right"/>
  53. <Static id="caption06" text="요청일자" class="cell_1" position="absolute 0 47 82 70" anchor="left top" style="padding:0 0 0 5;align:left middle;"/>
  54. <Calendar id="Calendar01" taborder="17" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 84 47 184 70" anchor="default" style="align:center middle;"/>
  55. <Edit id="opt_age" taborder="18" readonly="true" autoselect="true" position="absolute 484 22 531 45" anchor="left top" style="align:center middle; :disabled {align:center middle;}"/>
  56. <Edit id="output1" taborder="19" readonly="true" autoselect="true" position="absolute 434 22 482 45" anchor="left top" style="align:center middle; :disabled {align:center middle;}"/>
  57. <Static id="caption08" text="성별/나이" class="cell_1" position="absolute 353 22 432 45" anchor="left top" style="padding:0 0 0 5;align:left middle;"/>
  58. <WebBrowser id="web_tableau" position="absolute 0 203 690 801" anchor="all" taborder="20" url="about:blank" useautobitmapcache="1"/>
  59. <Radio id="Radio00" taborder="21" columncount="-1" rowcount="-1" position="absolute 166 180 464 200" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="div_detl_Radio00_onitemchanged" style="itempadding:0 5 0 0;">
  60. <Dataset id="innerdataset">
  61. <ColumnInfo>
  62. <Column id="codecolumn" size="256"/>
  63. <Column id="datacolumn" size="256"/>
  64. </ColumnInfo>
  65. <Rows>
  66. <Row>
  67. <Col id="codecolumn">LIST</Col>
  68. <Col id="datacolumn">리스트형</Col>
  69. </Row>
  70. <Row>
  71. <Col id="codecolumn">GRAPH</Col>
  72. <Col id="datacolumn">그래프(통합)</Col>
  73. </Row>
  74. <Row>
  75. <Col id="codecolumn">GRAPHBYFEAT</Col>
  76. <Col id="datacolumn">그래프(개별)</Col>
  77. </Row>
  78. </Rows>
  79. </Dataset>
  80. </Radio>
  81. </Layout>
  82. </Layouts>
  83. </Div>
  84. <Button id="btn_save" taborder="2" text="저장" class="btn3" position="absolute 1150 4 1207 26" onclick="btn_save_onclick" anchor="top right"/>
  85. <Static id="caption01" text="분석이력" class="tit_2" position="absolute 0 138 183 155" anchor="left top"/>
  86. <Shape id="line02" class="line_10" position="absolute 0 154 488 160"/>
  87. <Div id="group1" taborder="3" class="div_SA2" position="absolute 0 26 488 130" onkeydown="group1_onkeydown">
  88. <Layouts>
  89. <Layout>
  90. <Calendar id="Calendar00" taborder="22" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" position="absolute 166 7 266 27" anchor="default"/>
  91. <Static id="Static00" text="~" position="absolute 272 7 286 27" anchor="default"/>
  92. <Calendar id="Calendar01" taborder="23" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 288 7 388 27" anchor="default"/>
  93. <Radio id="Radio00" taborder="24" codecolumn="codecolumn" datacolumn="datacolumn" direction="vertical" onitemchanged="Tab00_tabpage_trans_group1_Radio00_onitemchanged" position="absolute 195 74 398 94" anchor="top right" style="buttonsize:15;textpadding:0 5 0 3;itempadding:0 0 0 0;margin:0 0 0 0;padding:1 0 0 0;" onitemclick="group1_Radio00_onitemclick" columncount="-1" rowcount="-1">
  94. <Dataset id="innerdataset">
  95. <ColumnInfo>
  96. <Column id="codecolumn" size="256"/>
  97. <Column id="datacolumn" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row>
  101. <Col id="codecolumn"/>
  102. <Col id="datacolumn">전체</Col>
  103. </Row>
  104. <Row>
  105. <Col id="codecolumn">R</Col>
  106. <Col id="datacolumn">요청</Col>
  107. </Row>
  108. <Row>
  109. <Col id="codecolumn">P</Col>
  110. <Col id="datacolumn">진행중</Col>
  111. </Row>
  112. <Row>
  113. <Col id="codecolumn">E</Col>
  114. <Col id="datacolumn">완료</Col>
  115. </Row>
  116. </Rows>
  117. </Dataset>
  118. </Radio>
  119. <Button id="btn_search" taborder="25" text="조회" class="btn1" position="absolute 422 30 482 66" anchor="top right" onclick="group1_btn_search_onclick"/>
  120. <Static id="caption3" text="조회일자 :" class="search_name" position="absolute 5 8 92 28" anchor="default"/>
  121. <Combo id="combo5" taborder="26" codecolumn="codecolumn" datacolumn="datacolumn" index="0" onitemchanged="grp_sea_cmb_trgtmankind_onitemchanged" class="combo_search" position="absolute 84 7 164 27" style="align:center middle;" anchor="default" text="요청일" value="A">
  122. <Dataset id="innerdataset">
  123. <ColumnInfo>
  124. <Column id="codecolumn" size="256"/>
  125. <Column id="datacolumn" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row>
  129. <Col id="codecolumn">A</Col>
  130. <Col id="datacolumn">요청일</Col>
  131. </Row>
  132. </Rows>
  133. </Dataset>
  134. </Combo>
  135. <Static id="caption5" text="등록번호 :" class="search_name" position="absolute 6 30 82 50" anchor="default"/>
  136. <Edit id="ipt_pid" taborder="27" autoselect="true" position="absolute 84 29 171 49" anchor="default"/>
  137. <Button id="btn_pat" taborder="28" class="icon_search" position="absolute 169 29 194 49" anchor="default" onclick="group1_btn_pat_onclick"/>
  138. <Static id="caption2" text="환자명 : " class="search_name" position="absolute 239 30 310 50" anchor="default"/>
  139. <Edit id="ipt_hngnm" taborder="29" autoselect="true" position="absolute 300 29 387 49" anchor="default"/>
  140. <Static id="caption06" text="진료과 :" class="search_name" position="absolute 7 52 72 72" anchor="default"/>
  141. <Combo id="cmb_orddeptcd" taborder="30" innerdataset="@ds_init_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 84 51 219 71" anchor="default" onitemchanged="group1_cmb_orddeptcd_onitemchanged"/>
  142. <Static id="caption9" text="진료의 : " class="search_name" position="absolute 239 52 312 72" anchor="default"/>
  143. <Combo id="cmb_orddrid" taborder="31" innerdataset="@ds_init_doct" codecolumn="doctid" datacolumn="doctnm" class="combo_search" position="absolute 300 51 387 71" anchor="default"/>
  144. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 413 12 419 99" anchor="top right"/>
  145. <Static id="caption00" text="구분 : " class="search_name" position="absolute 7 74 76 94" anchor="default"/>
  146. <Combo id="cmb_formcd" taborder="32" innerdataset="@ds_init_gubun_AI002" codecolumn="cdid" datacolumn="cdnm" onitemchanged="Tab00_tabpage_trans_group1_cmb_orddeptcd_onitemchanged" class="combo_search" position="absolute 84 73 188 93" anchor="default"/>
  147. </Layout>
  148. </Layouts>
  149. </Div>
  150. <Static id="cap_title" text="AI" class="tit_1" position="absolute 0 0 144 25"/>
  151. <Grid id="grd_list" taborder="4" useinputpanel="false" position="absolute 0 159 489 828" binddataset="ds_list" autofittype="col" oncellclick="grd_list_oncellclick" anchor="left top bottom">
  152. <Formats>
  153. <Format id="default">
  154. <Columns>
  155. <Column size="139"/>
  156. <Column size="80"/>
  157. <Column size="68"/>
  158. <Column size="80"/>
  159. <Column size="55"/>
  160. <Column size="65"/>
  161. </Columns>
  162. <Rows>
  163. <Row size="24" band="head"/>
  164. <Row size="24"/>
  165. </Rows>
  166. <Band id="head">
  167. <Cell text="구분"/>
  168. <Cell col="1" displaytype="normal" text="환자번호"/>
  169. <Cell col="2" displaytype="normal" text="환자명"/>
  170. <Cell col="3" displaytype="normal" text="요청일자"/>
  171. <Cell col="4" displaytype="normal" text="파일수"/>
  172. <Cell col="5" displaytype="normal" text="상태"/>
  173. </Band>
  174. <Band id="body">
  175. <Cell displaytype="combo" style="align:center;background:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);background2:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);" text="bind:gubun" combodataset="ds_init_gubun_AI002" combocodecol="cdid" combodatacol="cdnm"/>
  176. <Cell col="1" displaytype="normal" style="align:center;background:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);background2:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);" text="bind:pid"/>
  177. <Cell col="2" displaytype="normal" style="align:center;background:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);background2:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);" text="bind:pnm"/>
  178. <Cell col="3" displaytype="date" style="align:center;background:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);background2:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);" text="bind:reqdd"/>
  179. <Cell col="4" displaytype="normal" style="align:center;background:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);background2:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);" text="bind:filecnt"/>
  180. <Cell col="5" displaytype="combo" style="align:center;background:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);background2:EXPR(status == &quot;P&quot; ? &quot;gold&quot; : &quot;&quot;);color:EXPR(status == &quot;E&quot; ? &quot;blue&quot; : status == &quot;P&quot; ? &quot;red&quot; : &quot;&quot;);color2:EXPR(status == &quot;E&quot; ? &quot;blue&quot; : status == &quot;P&quot; ? &quot;red&quot; : &quot;&quot;);" text="bind:status" combodataset="ds_init_status_AI001" combocodecol="cdid" combodatacol="cdnm"/>
  181. </Band>
  182. </Format>
  183. </Formats>
  184. </Grid>
  185. <Button id="btn_new" taborder="6" text="새요청" class="btn3" position="absolute 1082 4 1147 26" onclick="btn_new_onclick" anchor="top right"/>
  186. <Div id="div_patinfo" anchor="top right" taborder="7" visible="false" position="absolute 1181 17 2002 493">
  187. <Layouts>
  188. <Layout>
  189. <Div id="div_patinfo_back" taborder="60" style="shadow:outer -5,5 10 gray;" position="absolute 34 0 807 464"/>
  190. <Button id="btn_close_light" taborder="61" text="확대보기(F2)" onclick="div_patinfo_btn_close_light_onclick" class="btn2" position="absolute 646 11 733 31" tooltiptext="환자리스트를 반만 닫습니다" hotkey="F2"/>
  191. <Button id="btn_close" taborder="62" text="닫기(F1)" onclick="div_patinfo_btn_close_onclick" class="btn2" position="absolute 735 11 799 31" tooltiptext="환자리스트 닫기" hotkey="F1"/>
  192. <Button id="btn_patinfo" taborder="63" text="환자입력 (F1, F2)" onclick="div_patinfo_btn_patinfo_onclick" class="btn_tab" position="absolute 11 151 146 175" tooltiptext="환자리스트 열고 닫기" hotkey="F1" style="glow:10 hotpink;transformation:0,0 [rotate -90];"/>
  193. <Div id="div_patlist" taborder="64" style="background:white;border:1 solid green ;" position="absolute 34 0 807 464">
  194. <Layouts>
  195. <Layout>
  196. <Tab id="tabPatList" taborder="0" onchanged="div_patinfo_div_patlist_tabPatList_onchanged" tabindex="0" scrollbars="autoboth" position="absolute 8 8 763 454" style="buttonpadding:4 12 4 12;background:URL('theme://images/bg_tab_BodyTop.png') stretch 10,26;">
  197. <Tabpages>
  198. <Tabpage id="tab_out" text="외래">
  199. <Layouts>
  200. <Layout>
  201. <Div id="div_search_out" taborder="26" class="div_SA2" position="absolute 0 0 755 66">
  202. <Layouts>
  203. <Layout>
  204. <Static id="Static00" text="진료일자 :" class="search_name" position="absolute 10 10 83 30"/>
  205. <Calendar id="cal_orddd" taborder="79" autoselect="true" position="absolute 87 10 188 30"/>
  206. <Static id="Static01" text="진료과 :" class="search_name" position="absolute 249 10 309 30"/>
  207. <Combo id="cmb_dept" taborder="80" innerdataset="@ds_init_dept" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_cmb_dept_onitemchanged" position="absolute 314 10 470 30"/>
  208. <Static id="Static02" text="진료의사 :" class="search_name" position="absolute 10 36 82 56"/>
  209. <Combo id="cmb_orddr" taborder="81" innerdataset="ds_init_cmb_orddr" codecolumn="userid" datacolumn="userdepthngnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_cmb_orddr_onitemchanged" position="absolute 87 36 267 56"/>
  210. <Radio id="Radio00" taborder="82" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_Radio00_onitemchanged" position="absolute 288 37 545 57" style="textpadding:0 5 0 3;">
  211. <Dataset id="innerdataset">
  212. <ColumnInfo>
  213. <Column id="codecolumn" size="256"/>
  214. <Column id="datacolumn" size="256"/>
  215. </ColumnInfo>
  216. <Rows>
  217. <Row>
  218. <Col id="codecolumn">A</Col>
  219. <Col id="datacolumn">진료일정의사</Col>
  220. </Row>
  221. <Row>
  222. <Col id="codecolumn">Y</Col>
  223. <Col id="datacolumn">진료의전체</Col>
  224. </Row>
  225. <Row>
  226. <Col id="codecolumn">R</Col>
  227. <Col id="datacolumn">퇴직의사</Col>
  228. </Row>
  229. </Rows>
  230. </Dataset>
  231. </Radio>
  232. <Radio id="Radio01" taborder="83" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" direction="vertical" position="absolute 551 37 684 57" style="textpadding:0 2 0 3;">
  233. <Dataset id="innerdataset">
  234. <ColumnInfo>
  235. <Column id="codecolumn" size="256"/>
  236. <Column id="datacolumn" size="256"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row>
  240. <Col id="codecolumn">A</Col>
  241. <Col id="datacolumn">오전</Col>
  242. </Row>
  243. <Row>
  244. <Col id="codecolumn">P</Col>
  245. <Col id="datacolumn">오후</Col>
  246. </Row>
  247. <Row>
  248. <Col id="codecolumn">D</Col>
  249. <Col id="datacolumn">전일</Col>
  250. </Row>
  251. </Rows>
  252. </Dataset>
  253. </Radio>
  254. <Button id="btn_search" taborder="84" text="조회" onclick="div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_btn_search_onclick" class="btn1" position="absolute 694 22 746 42"/>
  255. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 687 22 693 42" anchor="top right"/>
  256. </Layout>
  257. </Layouts>
  258. </Div>
  259. <Grid id="grd_patlist_out" taborder="27" binddataset="ds_grd_opatmngt" useinputpanel="false" selecttype="multirow" cellsizingtype="col" autofittype="col" onlbuttonup="grd_patlist_onlbuttonup" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_out_grd_patlist_out_oncelldblclick" position="absolute 0 67 755 419">
  260. <Formats>
  261. <Format id="default">
  262. <Columns>
  263. <Column size="30"/>
  264. <Column size="60"/>
  265. <Column size="60"/>
  266. <Column size="60"/>
  267. <Column size="40"/>
  268. <Column size="40"/>
  269. <Column size="40"/>
  270. <Column size="60"/>
  271. <Column size="200"/>
  272. <Column size="100"/>
  273. </Columns>
  274. <Rows>
  275. <Row size="24" band="head"/>
  276. <Row size="24"/>
  277. </Rows>
  278. <Band id="head">
  279. <Cell/>
  280. <Cell col="1" text="예약시간"/>
  281. <Cell col="2" text="환자번호"/>
  282. <Cell col="3" text="환자명"/>
  283. <Cell col="4" text="S/A"/>
  284. <Cell col="5" text="초/재"/>
  285. <Cell col="6" text="수납"/>
  286. <Cell col="7" text="예약구분"/>
  287. <Cell col="8" text="Remark"/>
  288. <Cell col="9" text="휴대전화번호"/>
  289. </Band>
  290. <Band id="body">
  291. <Cell celltype="head" text="expr:currow + 1"/>
  292. <Cell col="1" text="bind:ordtm" mask="##:##"/>
  293. <Cell col="2" text="bind:pid"/>
  294. <Cell col="3" text="bind:hngnm"/>
  295. <Cell col="4" text="bind:sexage"/>
  296. <Cell col="5" text="bind:fsexamflag"/>
  297. <Cell col="6" text="bind:calcyn"/>
  298. <Cell col="7" text="bind:rsrvflag"/>
  299. <Cell col="8" displaytype="text" style="padding:1 2 1 4;" text="bind:remfact"/>
  300. <Cell col="9" text="bind:mpphontel"/>
  301. </Band>
  302. </Format>
  303. </Formats>
  304. </Grid>
  305. </Layout>
  306. </Layouts>
  307. </Tabpage>
  308. <Tabpage id="tab_in" text="입원">
  309. <Layouts>
  310. <Layout>
  311. <Div id="div_search_in" taborder="36" class="div_SA2" position="absolute 0 0 755 66">
  312. <Layouts>
  313. <Layout>
  314. <Calendar id="cal_workdd" taborder="82" autoselect="true" position="absolute 87 10 188 30"/>
  315. <Static id="Static00" text="업무일자 :" class="search_name" position="absolute 10 10 83 30"/>
  316. <Static id="Static01" text="병동 :" class="search_name" position="absolute 254 10 301 30"/>
  317. <Combo id="cmb_ward" taborder="83" innerdataset="ds_init_ward" codecolumn="wardcd" datacolumn="wardnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_cmb_ward_onitemchanged" position="absolute 317 10 417 30"/>
  318. <Static id="Static02" text="진료과 :" class="search_name" position="absolute 10 36 70 56"/>
  319. <Combo id="cmd_dept" taborder="84" innerdataset="ds_init_dept" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_cmd_dept_onitemchanged" position="absolute 87 36 235 56"/>
  320. <Static id="Static03" text="전문의 :" class="search_name" position="absolute 254 36 314 56"/>
  321. <Combo id="cmd_orddr" taborder="85" innerdataset="ds_init_orddr" codecolumn="userid" datacolumn="usernm" position="absolute 317 36 393 56"/>
  322. <Button id="btn_search" taborder="86" text="조회" onclick="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_btn_search_onclick" class="btn1" position="absolute 682 22 734 42"/>
  323. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 666 22 672 42" anchor="top right"/>
  324. <CheckBox id="chk_in_schedule" taborder="87" text="입원예정자조회" value="N" truevalue="Y" falsevalue="N" onclick="div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_chk_in_schedule_onclick" position="absolute 551 23 659 43"/>
  325. </Layout>
  326. </Layouts>
  327. </Div>
  328. <Grid id="grd_patlist_in" taborder="37" binddataset="ds_grd_ipatmngt" useinputpanel="false" selecttype="multirow" cellsizingtype="col" autofittype="col" cellclickbound="cell" onlbuttonup="grd_patlist_onlbuttonup" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_in_oncelldblclick" position="absolute 0 67 755 419">
  329. <Formats>
  330. <Format id="default">
  331. <Columns>
  332. <Column size="24"/>
  333. <Column size="24"/>
  334. <Column size="40"/>
  335. <Column size="60"/>
  336. <Column size="80"/>
  337. <Column size="26"/>
  338. <Column size="26"/>
  339. <Column size="92"/>
  340. <Column size="38"/>
  341. <Column size="140"/>
  342. <Column size="58"/>
  343. <Column size="100"/>
  344. </Columns>
  345. <Rows>
  346. <Row size="24" band="head"/>
  347. <Row size="24"/>
  348. </Rows>
  349. <Band id="head">
  350. <Cell/>
  351. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  352. <Cell col="2" text="병실"/>
  353. <Cell col="3" text="등록번호"/>
  354. <Cell col="4" text="입원일자"/>
  355. <Cell col="5" colspan="2" text="재원상태" taborder="undefined"/>
  356. <Cell col="7" text="환자명"/>
  357. <Cell col="8" text="S/A"/>
  358. <Cell col="9" text="진료과"/>
  359. <Cell col="10" text="전문의"/>
  360. <Cell col="11" text="휴대전화번호"/>
  361. </Band>
  362. <Band id="body">
  363. <Cell celltype="head" text="expr:currow + 1"/>
  364. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  365. <Cell col="2" text="bind:roomcd"/>
  366. <Cell col="3" text="bind:pid"/>
  367. <Cell col="4" displaytype="date" text="bind:indd"/>
  368. <Cell col="5" style="line:1 solid #b0b0b0ff,0 solid #b0b0b0ff,1 solid #b0b0b0ff,1 solid #b0b0b0ff;" text="bind:chngroomstat"/>
  369. <Cell col="6" text="bind:indschstat"/>
  370. <Cell col="7" text="bind:hngnm"/>
  371. <Cell col="8" text="bind:sexage"/>
  372. <Cell col="9" displaytype="text" style="padding:0 0 0 4;" text="bind:orddeptnm"/>
  373. <Cell col="10" displaytype="combo" style="align:center middle;" text="bind:orddrid" combodataset="ds_init_orddr_all" combocodecol="userid" combodatacol="usernm"/>
  374. <Cell col="11" text="bind:mpphontel" mask="expr:fGetPhoneNumMask(mpphontel)"/>
  375. </Band>
  376. </Format>
  377. </Formats>
  378. </Grid>
  379. <Grid id="grd_patlist_insche" taborder="38" binddataset="ds_grd_inreqhistlist" useinputpanel="false" selecttype="multirow" cellsizingtype="col" onlbuttonup="div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_insche_onlbuttonup" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_insche_oncelldblclick" visible="false" position="absolute 0 67 755 419">
  380. <Formats>
  381. <Format id="default">
  382. <Columns>
  383. <Column size="24" band="left"/>
  384. <Column size="40" band="left"/>
  385. <Column size="50" band="left"/>
  386. <Column size="60" band="left"/>
  387. <Column size="50" band="left"/>
  388. <Column size="40"/>
  389. <Column size="100"/>
  390. <Column size="70"/>
  391. <Column size="100"/>
  392. <Column size="50"/>
  393. <Column size="90"/>
  394. <Column size="60"/>
  395. <Column size="110"/>
  396. <Column size="24"/>
  397. <Column size="170"/>
  398. <Column size="70"/>
  399. <Column size="152"/>
  400. <Column size="160"/>
  401. <Column size="70"/>
  402. <Column size="40"/>
  403. <Column size="50"/>
  404. <Column size="160"/>
  405. </Columns>
  406. <Rows>
  407. <Row size="24" 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="S/A"/>
  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="입원경로"/>
  424. <Cell col="13" text="CP"/>
  425. <Cell col="14" text="진단명"/>
  426. <Cell col="15" text="수술예정일"/>
  427. <Cell col="16" text="수술명"/>
  428. <Cell col="17" text="의료진참고사항"/>
  429. <Cell col="18" text="병동"/>
  430. <Cell col="19" text="병실"/>
  431. <Cell col="20" text="병상"/>
  432. <Cell col="21" text="원무참고사항"/>
  433. </Band>
  434. <Band id="body">
  435. <Cell celltype="head" text="expr:currow + 1"/>
  436. <Cell col="1" text="bind:inrsrvstat"/>
  437. <Cell col="2" text="bind:inflag"/>
  438. <Cell col="3" text="bind:pid"/>
  439. <Cell col="4" text="bind:dispnm2"/>
  440. <Cell col="5" text="bind:sa"/>
  441. <Cell col="6" text="bind:assgdt" mask="expr:utlf_isNull(assgdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  442. <Cell col="7" displaytype="date" text="bind:inrsrvacptdd"/>
  443. <Cell col="8" text="bind:orddeptcd"/>
  444. <Cell col="9" text="bind:usernm"/>
  445. <Cell col="10" text="bind:mpphontel"/>
  446. <Cell col="11" text="bind:coopteam"/>
  447. <Cell col="12" text="bind:erreglyn"/>
  448. <Cell col="13" text="bind:cpyn"/>
  449. <Cell col="14" displaytype="text" text="bind:termengnm"/>
  450. <Cell col="15" text="bind:scheopdd"/>
  451. <Cell col="16" text="bind:opengnm"/>
  452. <Cell col="17" displaytype="text" text="bind:drrem"/>
  453. <Cell col="18" text="bind:assgwardnm"/>
  454. <Cell col="19" text="bind:assgroom"/>
  455. <Cell col="20" text="bind:assgbednm"/>
  456. <Cell col="21" displaytype="text" text="bind:inrsrvrem"/>
  457. </Band>
  458. </Format>
  459. </Formats>
  460. </Grid>
  461. </Layout>
  462. </Layouts>
  463. </Tabpage>
  464. <Tabpage id="tab_search" text="검색">
  465. <Layouts>
  466. <Layout>
  467. <Div id="div_search" taborder="16" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_onkeydown" class="div_SA2" position="absolute 0 0 755 38">
  468. <Layouts>
  469. <Layout>
  470. <Static id="Static00" text="검색조건" class="search_name" position="absolute 12 9 76 29"/>
  471. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 666 8 672 28" anchor="top right"/>
  472. <Button id="btn_search" taborder="48" text="조회" onclick="div_patinfo_div_patlist_tabPatList_tab_search_div_search_btn_search_onclick" class="btn1" position="absolute 682 8 734 28"/>
  473. <Edit id="edt_hngnm" taborder="49" imemode="hangul" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_hngnm_onkeydown" visible="false" position="absolute 292 8 376 28"/>
  474. <Edit id="edt_rrgstno1" taborder="50" inputtype="number,digit" maxlength="6" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_rrgstno1_onkeydown" visible="false" position="absolute 380 8 480 28"/>
  475. <Edit id="edt_rrgstno2" taborder="51" maxlength="7" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_rrgstno2_onkeydown" visible="false" position="absolute 482 8 582 28"/>
  476. <Edit id="edt_pid" taborder="52" autoselect="true" onkeydown="div_patinfo_div_patlist_tabPatList_tab_search_div_search_edt_pid_onkeydown" position="absolute 292 8 376 28"/>
  477. <Radio id="rdo_searchcond" taborder="53" columncount="-1" rowcount="-1" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="1" onitemchanged="div_patinfo_div_patlist_tabPatList_tab_search_div_search_rdo_searchcond_onitemchanged" position="absolute 84 9 278 29" style="textpadding:0 8 0 3;itempadding:0 0 0 0;margin:0 0 0 0;">
  478. <Dataset id="innerdataset">
  479. <ColumnInfo>
  480. <Column id="codecolumn" size="256"/>
  481. <Column id="datacolumn" size="256"/>
  482. </ColumnInfo>
  483. <Rows>
  484. <Row>
  485. <Col id="codecolumn">1</Col>
  486. <Col id="datacolumn">환자번호</Col>
  487. </Row>
  488. <Row>
  489. <Col id="codecolumn">4</Col>
  490. <Col id="datacolumn">환자명/주민번호</Col>
  491. </Row>
  492. </Rows>
  493. </Dataset>
  494. </Radio>
  495. </Layout>
  496. </Layouts>
  497. </Div>
  498. <Grid id="grd_pat_search" taborder="17" binddataset="ds_patinfolist" useinputpanel="false" cellsizingtype="col" autofittype="col" onlbuttonup="div_patinfo_div_patlist_tabPatList_tab_search_grd_pat_search_onlbuttonup" oncelldblclick="div_patinfo_div_patlist_tabPatList_tab_search_grd_pat_search_oncelldblclick" position="absolute 0 39 755 419">
  499. <Formats>
  500. <Format id="default">
  501. <Columns>
  502. <Column size="24"/>
  503. <Column size="24"/>
  504. <Column size="60"/>
  505. <Column size="60"/>
  506. <Column size="30"/>
  507. <Column size="30"/>
  508. <Column size="80"/>
  509. <Column size="90"/>
  510. <Column size="90"/>
  511. <Column size="167"/>
  512. <Column size="100"/>
  513. </Columns>
  514. <Rows>
  515. <Row size="24" band="head"/>
  516. <Row size="24"/>
  517. </Rows>
  518. <Band id="head">
  519. <Cell/>
  520. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  521. <Cell col="2" text="환자번호"/>
  522. <Cell col="3" text="환자명"/>
  523. <Cell col="4" text="성별" taborder="undefined"/>
  524. <Cell col="5" text="나이" taborder="undefined"/>
  525. <Cell col="6" text="생년월일"/>
  526. <Cell col="7" text="휴대전화번호"/>
  527. <Cell col="8" text="연락처"/>
  528. <Cell col="9" text="주소"/>
  529. <Cell col="10" text="상세주소"/>
  530. </Band>
  531. <Band id="body">
  532. <Cell celltype="head" text="expr:currow + 1"/>
  533. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:acptyn"/>
  534. <Cell col="2" text="bind:pid"/>
  535. <Cell col="3" text="bind:hngnm"/>
  536. <Cell col="4" text="bind:sex"/>
  537. <Cell col="5" text="bind:age"/>
  538. <Cell col="6" text="bind:rrgstno1"/>
  539. <Cell col="7" text="bind:mpphontel"/>
  540. <Cell col="8" text="bind:hometel"/>
  541. <Cell col="9" displaytype="text" text="bind:addr"/>
  542. <Cell col="10" displaytype="text" text="bind:detladdr"/>
  543. </Band>
  544. </Format>
  545. </Formats>
  546. </Grid>
  547. </Layout>
  548. </Layouts>
  549. </Tabpage>
  550. </Tabpages>
  551. </Tab>
  552. </Layout>
  553. </Layouts>
  554. </Div>
  555. </Layout>
  556. </Layouts>
  557. </Div>
  558. </Layout>
  559. </Layouts>
  560. <Objects>
  561. <Dataset id="ds_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  562. <ColumnInfo>
  563. <Column id="gubun" type="STRING" size="256"/>
  564. <Column id="pid" type="STRING" size="256"/>
  565. <Column id="hngnm" type="STRING" size="256"/>
  566. <Column id="seqno" type="STRING" size="256"/>
  567. <Column id="reqdd" type="STRING" size="256"/>
  568. <Column id="filecnt" type="STRING" size="256"/>
  569. <Column id="status" type="STRING" size="256"/>
  570. </ColumnInfo>
  571. </Dataset>
  572. <Dataset id="ds_send_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  573. <ColumnInfo>
  574. <Column id="fromdd" type="STRING" size="256"/>
  575. <Column id="todd" type="STRING" size="256"/>
  576. <Column id="pid" type="STRING" size="256"/>
  577. <Column id="hngnm" type="STRING" size="256"/>
  578. <Column id="orddeptcd" type="STRING" size="256"/>
  579. <Column id="orddrid" type="STRING" size="256"/>
  580. <Column id="gubun" type="STRING" size="256"/>
  581. <Column id="status" type="STRING" size="256"/>
  582. </ColumnInfo>
  583. <Rows>
  584. <Row/>
  585. </Rows>
  586. </Dataset>
  587. <PropertyAnimation id="pa_patinfo_move" endingmode="to" repeat="1" repeattype="normal" duration="300" starttime="0" targetcomp="div_patinfo" targetprop="position.x" interpolation="Interpolation.curve4InOut"/>
  588. <Dataset id="ds_grd_opatmngt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  589. <ColumnInfo>
  590. <Column id="acptyn" type="STRING" size="256" sumtext="접수구분"/>
  591. <Column id="prcsflag" type="STRING" size="256" sumtext="진행상태구분"/>
  592. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  593. <Column id="ordtm" type="STRING" size="256" sumtext="예약일시"/>
  594. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  595. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  596. <Column id="sexage" type="STRING" size="256" sumtext="S/A"/>
  597. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  598. <Column id="fsexamflag" type="STRING" size="256" sumtext="초/재"/>
  599. <Column id="calcyn" type="STRING" size="256" sumtext="수납"/>
  600. <Column id="rsrvflag" type="STRING" size="256" sumtext="예약구분"/>
  601. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  602. <Column id="nryn" type="STRING" size="256" sumtext="보험유형"/>
  603. <Column id="telrsrvrem" type="STRING" size="256" sumtext="Remark"/>
  604. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  605. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사"/>
  606. <Column id="fstacptdd" type="STRING" size="256" sumtext="최초접수일"/>
  607. <Column id="nursacptyn" type="STRING" size="256" sumtext="간호사접수여부"/>
  608. <Column id="dracptyn" type="STRING" size="256" sumtext="의사접수여부"/>
  609. <Column id="prcpgenryn" type="STRING" size="256" sumtext="처방발행여부"/>
  610. <Column id="elbulbodstat" type="STRING" size="256" sumtext="전광판상태여부"/>
  611. <Column id="ordtype" type="STRING" size="256" sumtext="외래/입원구분"/>
  612. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  613. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  614. <Column id="acptseqno" type="STRING" size="256" sumtext="등록일련번호"/>
  615. <Column id="orgorddd" type="STRING" size="256" sumtext="원진료일자"/>
  616. <Column id="smsyn" type="STRING" size="256" sumtext="전송여부"/>
  617. <Column id="cntctel" type="STRING" size="256" sumtext="부서전화번호"/>
  618. <Column id="remfact" type="STRING" size="256" sumtext="진료예약Remark"/>
  619. </ColumnInfo>
  620. </Dataset>
  621. <Dataset id="ds_send_out" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  622. <ColumnInfo>
  623. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  624. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  625. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사ID"/>
  626. <Column id="ampmflag" type="STRING" size="256" sumtext="오전오후"/>
  627. <Column id="ordclsdeptflag" type="STRING" size="256" sumtext="진료과구분"/>
  628. <Column id="supdeptcd" type="STRING" size="256" sumtext="상위진료과코드"/>
  629. <Column id="prcpspecflag" type="STRING" size="256" sumtext="진료의구분"/>
  630. </ColumnInfo>
  631. <Rows>
  632. <Row>
  633. <Col id="ampmflag">D</Col>
  634. <Col id="prcpspecflag">A</Col>
  635. </Row>
  636. </Rows>
  637. </Dataset>
  638. <Dataset id="ds_send_in" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  639. <ColumnInfo>
  640. <Column id="instcd" type="STRING" size="256"/>
  641. <Column id="orddd" type="STRING" size="256"/>
  642. <Column id="wardcd" type="STRING" size="256"/>
  643. <Column id="orddeptcd" type="STRING" size="256"/>
  644. <Column id="orddrid" type="STRING" size="256"/>
  645. </ColumnInfo>
  646. <Rows>
  647. <Row>
  648. <Col id="orddd"/>
  649. <Col id="wardcd"/>
  650. <Col id="orddeptcd"/>
  651. <Col id="orddrid"/>
  652. </Row>
  653. </Rows>
  654. </Dataset>
  655. <Dataset id="ds_grd_ipatmngt" enableevent="true" updatecontrol="true">
  656. <ColumnInfo>
  657. <Column id="acptyn" type="STRING" size="0"/>
  658. <Column id="pid" type="STRING" size="256"/>
  659. <Column id="hngnm" type="STRING" size="256"/>
  660. <Column id="sexage" type="STRING" size="256"/>
  661. <Column id="indd" type="STRING" size="256"/>
  662. <Column id="cretno" type="STRING" size="256"/>
  663. <Column id="smsyn" type="STRING" size="256"/>
  664. <Column id="mpphontel" type="STRING" size="256"/>
  665. <Column id="chngroomstat" type="STRING" size="256"/>
  666. <Column id="indschstat" type="STRING" size="256"/>
  667. <Column id="usernm" type="STRING" size="256"/>
  668. <Column id="prcpdt" type="STRING" size="256"/>
  669. <Column id="wardcd" type="STRING" size="256"/>
  670. <Column id="roomcd" type="STRING" size="256"/>
  671. <Column id="cntctel" type="STRING" size="256"/>
  672. <Column id="orddeptnm" type="STRING" size="256"/>
  673. <Column id="orddrid" type="STRING" size="256"/>
  674. </ColumnInfo>
  675. </Dataset>
  676. <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  677. <Dataset id="ds_init_status_AI001" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  678. <Dataset id="ds_init_gubun_AI002" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  679. <Dataset id="ds_detl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  680. <ColumnInfo>
  681. <Column id="m" type="STRING" size="256"/>
  682. <Column id="gubun" type="STRING" size="256"/>
  683. <Column id="pid" type="STRING" size="256"/>
  684. <Column id="pnm" type="STRING" size="256"/>
  685. <Column id="sex" type="STRING" size="256"/>
  686. <Column id="age" type="STRING" size="256"/>
  687. <Column id="seqno" type="STRING" size="256"/>
  688. <Column id="reqdd" type="STRING" size="256"/>
  689. <Column id="status" type="STRING" size="256"/>
  690. </ColumnInfo>
  691. </Dataset>
  692. <Dataset id="ds_temp_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  693. <ColumnInfo>
  694. <Column id="filekey" type="STRING" size="256"/>
  695. <Column id="fileseq" type="STRING" size="256"/>
  696. <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
  697. <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
  698. <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
  699. <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
  700. <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
  701. </ColumnInfo>
  702. <Rows>
  703. <Row/>
  704. </Rows>
  705. </Dataset>
  706. <Dataset id="ds_file" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  707. <ColumnInfo>
  708. <Column id="filekey" type="STRING" size="256"/>
  709. <Column id="fileseq" type="STRING" size="256"/>
  710. <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
  711. <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
  712. <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
  713. <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
  714. <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
  715. </ColumnInfo>
  716. </Dataset>
  717. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  718. <ColumnInfo>
  719. <Column id="srchcond" type="STRING" size="256"/>
  720. <Column id="pid" type="STRING" size="256"/>
  721. <Column id="hngnm" type="STRING" size="256"/>
  722. <Column id="rrgstno1" type="STRING" size="256"/>
  723. <Column id="rrgstno2" type="STRING" size="256"/>
  724. </ColumnInfo>
  725. <Rows>
  726. <Row>
  727. <Col id="srchcond">1</Col>
  728. </Row>
  729. </Rows>
  730. </Dataset>
  731. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  732. <ColumnInfo>
  733. <Column id="acptyn" type="STRING" size="256"/>
  734. <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
  735. <Column id="bindyn" type="STRING" size="256" sumtext="환자등록번호"/>
  736. <Column id="hngnm" type="STRING" size="256" sumtext="한글이름"/>
  737. <Column id="hngnm2" type="STRING" size="256" sumtext="표시이름"/>
  738. <Column id="engnm" type="STRING" size="256" sumtext="영문이름"/>
  739. <Column id="chinm" type="STRING" size="256" sumtext="영문이름"/>
  740. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞6자리"/>
  741. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒤7자리"/>
  742. <Column id="rrgstno3" type="STRING" size="256" sumtext="주민번호뒤4자리와별표3자리"/>
  743. <Column id="lastinsukind" type="STRING" size="256" sumtext="최근보험유형"/>
  744. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  745. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  746. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  747. <Column id="bindpid" type="STRING" size="256" sumtext="합본등록번호"/>
  748. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  749. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  750. <Column id="etctel1" type="STRING" size="256" sumtext="기타전화번호1"/>
  751. <Column id="etctel2" type="STRING" size="256" sumtext="기타전화번호2"/>
  752. <Column id="smsaprvyn" type="STRING" size="256" sumtext="SMS전송 승인 여부"/>
  753. <Column id="email" type="STRING" size="256" sumtext="이메일 게정"/>
  754. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호 앞 3자리"/>
  755. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호 뒤 3자리"/>
  756. <Column id="zipcdseq" type="STRING" size="256" sumtext="우편일련번호"/>
  757. <Column id="addr" type="STRING" size="256" sumtext="기본주소"/>
  758. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  759. <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
  760. <Column id="rh" type="STRING" size="256" sumtext="RH혈액형"/>
  761. <Column id="forgeryn" type="STRING" size="256" sumtext="외국인여부"/>
  762. <Column id="nati" type="STRING" size="256" sumtext="국적"/>
  763. <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
  764. <Column id="recmyn" type="STRING" size="256" sumtext="추천여부"/>
  765. <Column id="recmerid" type="STRING" size="256" sumtext="추천인ID"/>
  766. <Column id="recmernm" type="STRING" size="256" sumtext="추천인명"/>
  767. <Column id="recmerrela" type="STRING" size="256" sumtext="추천인과의 관계"/>
  768. <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
  769. <Column id="viprem" type="STRING" size="256" sumtext="VIP비고"/>
  770. <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
  771. <Column id="baptnm" type="STRING" size="256" sumtext="세례명"/>
  772. <Column id="chchnm" type="STRING" size="256" sumtext="성당명"/>
  773. <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
  774. <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
  775. <Column id="dethdd" type="STRING" size="256" sumtext="사망일자"/>
  776. <Column id="dethtm" type="STRING" size="256" sumtext="사망시간"/>
  777. <Column id="chosresn" type="STRING" size="256" sumtext="내원사유"/>
  778. <Column id="animyn" type="STRING" size="256" sumtext="동물여부"/>
  779. <Column id="exptresncd" type="STRING" size="256" sumtext="원외예외사유코드"/>
  780. <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
  781. <Column id="handicapryn" type="STRING" size="256" sumtext="장애인여부"/>
  782. <Column id="pidflag" type="STRING" size="256" sumtext="등록번호구분"/>
  783. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  784. <Column id="ptunyn" type="STRING" size="256" sumtext="미수안내"/>
  785. <Column id="lastorddd" type="STRING" size="256" sumtext="최근내원일"/>
  786. <Column id="lastorddeptcd" type="STRING" size="256" sumtext="최근내원과"/>
  787. <Column id="outuncoamt" type="STRING" size="256" sumtext="외래미수금"/>
  788. <Column id="dschuncoamt" type="STRING" size="256" sumtext="입원미수금"/>
  789. <Column id="kioskrcptnoyn" type="STRING" size="256" sumtext="무인수납불가여부"/>
  790. <Column id="carnum" type="STRING" size="256" sumtext="차량번호"/>
  791. <Column id="acptdd" type="STRING" size="256" sumtext="가예약 접수일자"/>
  792. <Column id="acptno" type="STRING" size="256" sumtext="가예약 접수일련번호"/>
  793. <Column id="patspcfyn" type="STRING" size="256" sumtext="특이환자여부"/>
  794. <Column id="tdaydsch" type="STRING" size="256" sumtext="특이환자여부"/>
  795. <Column id="mig" type="STRING" size="256" sumtext="마이그레이션여부"/>
  796. <Column id="scanyn" type="STRING" size="256" sumtext="동의서출력여부"/>
  797. <Column id="spifscanyn" type="STRING" size="256" sumtext="선택진료신청서스캔여부"/>
  798. <Column id="isolinfo" type="STRING" size="256" sumtext="격리환자정보"/>
  799. <Column id="builno" type="STRING" size="256" sumtext="도로명주소 코드"/>
  800. </ColumnInfo>
  801. </Dataset>
  802. <Dataset id="ds_save_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  803. <ColumnInfo>
  804. <Column id="filekey" type="STRING" size="256"/>
  805. <Column id="fileseq" type="STRING" size="256"/>
  806. <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
  807. <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
  808. <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
  809. <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
  810. <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
  811. </ColumnInfo>
  812. </Dataset>
  813. <Dataset id="ds_delete_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  814. <ColumnInfo>
  815. <Column id="filekey" type="STRING" size="256"/>
  816. <Column id="fileseq" type="STRING" size="256"/>
  817. <Column id="filename" type="STRING" size="256" sumtext="파일명"/>
  818. <Column id="filepath" type="STRING" size="256" sumtext="파일서버경로"/>
  819. <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
  820. <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
  821. <Column id="filedata" type="BLOB" size="256" sumtext="파일데이터"/>
  822. </ColumnInfo>
  823. </Dataset>
  824. <Dataset id="ds_send_detl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  825. <ColumnInfo>
  826. <Column id="gubun" type="STRING" size="256"/>
  827. <Column id="pid" type="STRING" size="256"/>
  828. <Column id="seqno" type="STRING" size="256"/>
  829. <Column id="filekey" type="STRING" size="256"/>
  830. </ColumnInfo>
  831. <Rows>
  832. <Row/>
  833. </Rows>
  834. </Dataset>
  835. <Dataset id="ds_tableauinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  836. <ColumnInfo>
  837. <Column id="tableauURL" type="STRING" size="256"/>
  838. </ColumnInfo>
  839. </Dataset>
  840. <Dataset id="ds_send_tableau" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  841. <ColumnInfo>
  842. <Column id="scrncd" type="STRING" size="256"/>
  843. <Column id="userid" type="STRING" size="256"/>
  844. <Column id="targetid" type="STRING" size="256"/>
  845. </ColumnInfo>
  846. <Rows>
  847. <Row/>
  848. </Rows>
  849. </Dataset>
  850. <Dataset id="ds_etc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  851. <ColumnInfo>
  852. <Column id="viewflag" type="STRING" size="256"/>
  853. </ColumnInfo>
  854. <Rows>
  855. <Row>
  856. <Col id="viewflag">LIST</Col>
  857. </Row>
  858. </Rows>
  859. </Dataset>
  860. <Dataset id="ds_init_doct" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  861. <Dataset id="ds_send_doctor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  862. <Dataset id="ds_init_doctlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  863. <ColumnInfo/>
  864. </Dataset>
  865. <Dataset id="ds_init_doctlist_medispcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  866. <ColumnInfo>
  867. <Column id="doctid" type="STRING" size="256"/>
  868. <Column id="doctnm" type="STRING" size="256"/>
  869. </ColumnInfo>
  870. <Rows>
  871. <Row>
  872. <Col id="doctid"/>
  873. <Col id="doctnm"/>
  874. </Row>
  875. </Rows>
  876. </Dataset>
  877. <Dataset id="ds_temp_pidinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  878. <ColumnInfo>
  879. <Column id="pid" type="STRING" size="256"/>
  880. <Column id="srchcond" type="STRING" size="256"/>
  881. </ColumnInfo>
  882. <Rows>
  883. <Row/>
  884. </Rows>
  885. </Dataset>
  886. <Dataset id="ds_attfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  887. <ColumnInfo>
  888. <Column id="filepath" type="STRING" size="256"/>
  889. <Column id="fullpath" type="STRING" size="256"/>
  890. </ColumnInfo>
  891. <Rows>
  892. <Row/>
  893. </Rows>
  894. </Dataset>
  895. <Dataset id="ds_filelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  896. <ColumnInfo>
  897. <Column id="attfilecnts" type="STRING" size="256" sumtext="첨부파일내용"/>
  898. <Column id="fullpath" type="STRING" size="256"/>
  899. </ColumnInfo>
  900. </Dataset>
  901. <Dataset id="ds_init_gubun_AI002_na" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  902. </Objects>
  903. <Bind>
  904. <BindItem id="item9" compid="div_detl.output1" propid="value" datasetid="ds_detl" columnid="sex"/>
  905. <BindItem id="item10" compid="div_detl.opt_age" propid="value" datasetid="ds_detl" columnid="age"/>
  906. <BindItem id="item7" compid="div_detl.opt_pid" propid="value" datasetid="ds_detl" columnid="pid"/>
  907. <BindItem id="item8" compid="div_detl.opt_hngnm" propid="value" datasetid="ds_detl" columnid="pnm"/>
  908. <BindItem id="item3" compid="div_detl.cmb_formcd" propid="value" datasetid="ds_detl" columnid="gubun"/>
  909. <BindItem id="item18" compid="div_detl.Calendar01" propid="value" datasetid="ds_detl" columnid="reqdd"/>
  910. <BindItem id="item19" compid="div_detl.Radio00" propid="value" datasetid="ds_etc" columnid="viewflag"/>
  911. <BindItem id="item0" compid="group1.Calendar01" propid="value" datasetid="ds_send_list" columnid="todd"/>
  912. <BindItem id="item1" compid="group1.Calendar00" propid="value" datasetid="ds_send_list" columnid="fromdd"/>
  913. <BindItem id="item2" compid="group1.ipt_pid" propid="value" datasetid="ds_send_list" columnid="pid"/>
  914. <BindItem id="item4" compid="group1.ipt_hngnm" propid="value" datasetid="ds_send_list" columnid="hngnm"/>
  915. <BindItem id="item5" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_send_list" columnid="orddeptcd"/>
  916. <BindItem id="item6" compid="group1.cmb_orddrid" propid="value" datasetid="ds_send_list" columnid="orddrid"/>
  917. <BindItem id="item11" compid="group1.cmb_formcd" propid="value" datasetid="ds_send_list" columnid="gubun"/>
  918. <BindItem id="item12" compid="group1.Radio00" propid="value" datasetid="ds_send_list" columnid="status"/>
  919. <BindItem id="item13" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cal_orddd" propid="value" datasetid="ds_send_out" columnid="orddd"/>
  920. <BindItem id="item14" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cmb_dept" propid="value" datasetid="ds_send_out" columnid="orddeptcd"/>
  921. <BindItem id="item15" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.cmb_orddr" propid="value" datasetid="ds_send_out" columnid="orddrid"/>
  922. <BindItem id="item16" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.Radio00" propid="value" datasetid="ds_send_out" columnid="prcpspecflag"/>
  923. <BindItem id="item17" compid="div_patinfo.div_patlist.tabPatList.tab_out.div_search_out.Radio01" propid="value" datasetid="ds_send_out" columnid="ampmflag"/>
  924. <BindItem id="item20" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cal_workdd" propid="value" datasetid="ds_send_in" columnid="orddd"/>
  925. <BindItem id="item21" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmb_ward" propid="value" datasetid="ds_send_in" columnid="wardcd"/>
  926. <BindItem id="item22" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmd_dept" propid="value" datasetid="ds_send_in" columnid="orddeptcd"/>
  927. <BindItem id="item23" compid="div_patinfo.div_patlist.tabPatList.tab_in.div_search_in.cmd_orddr" propid="value" datasetid="ds_send_in" columnid="orddrid"/>
  928. <BindItem id="item24" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_pid" propid="value" datasetid="ds_send_search" columnid="pid"/>
  929. <BindItem id="item25" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_rrgstno1" propid="value" datasetid="ds_send_search" columnid="rrgstno1"/>
  930. <BindItem id="item26" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_rrgstno2" propid="value" datasetid="ds_send_search" columnid="rrgstno2"/>
  931. <BindItem id="item27" compid="div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
  932. </Bind>
  933. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  934. include "emr_prcpmngtxp::MMO001.xjs";
  935. include "emr_medirecxp::MMRCommon.xjs";
  936. var gMaxSize = 10485760;
  937. function SMAIM00100_AI메인_oninit(obj:Form, e:InitEventInfo)
  938. {
  939. frmf_initForm(obj);
  940. // Grid Initialization
  941. grdf_initGrid(grd_list);
  942. //grdf_initGrid(div_detl.grd_rsltlist);
  943. }
  944. function SMAIM00100_AI메인_onload(obj:Form, e:LoadEventInfo)
  945. {
  946. fInit();
  947. }
  948. function fInit()
  949. {
  950. div_patinfo.div_patlist.tabPatList.tabindex = 2;
  951. lf_mmbfGetDeptCodeComboList(ds_init_dept, "A");
  952. grdf_sortNodeList(ds_init_dept, "depthngnm", "asc"); // 가나다 순으로 정리되도록 수정.
  953. var arrParam = [
  954. { dsNm: "ds_init_status_AI001", cdGrpId: "AI001" },
  955. { dsNm: "ds_init_gubun_AI002", cdGrpId: "AI002" }
  956. //{dsNm: "ds_init_rsrvflag_P0341", cdGrpId: "P0341", sortField: "dispseq", sortMehotd: "asc", showValue:false} //rsrvflag
  957. ];
  958. appf_getCodeList(arrParam, false);
  959. dsf_copyDs(ds_init_gubun_AI002_na, ds_init_gubun_AI002);
  960. dsf_addDsItem(ds_init_dept, "deptcd", "depthngnm", "- 전 체 -", "", "above");
  961. dsf_addDsItem(ds_init_status_AI001, "cdid", "cdnm", "- 전 체 -", "", "above");
  962. dsf_addDsItem(ds_init_gubun_AI002, "cdid", "cdnm", "- 전 체 -", "", "above");
  963. // 오늘 날짜로 세팅
  964. var CurrentDate = utlf_getCurrentDate();
  965. var fromdd = CurrentDate.toDate().getAddDate(-12,"M").getDateFormat();
  966. ds_send_list.setColumn(0, "fromdd", fromdd);
  967. ds_send_list.setColumn(0, "todd", CurrentDate);
  968. ds_send_list.setColumn(0, "orddeptcd", "");
  969. ds_send_list.setColumn(0, "gubun", "");
  970. ds_send_list.setColumn(0, "status", "");
  971. div_patinfo.visible = true;
  972. }
  973. function fNew_detl()
  974. {
  975. div_patinfo.div_patlist.tabPatList.tabindex = 2;
  976. div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_pid.setFocus();
  977. //fInit_outpat();
  978. ds_detl.clearData();
  979. ds_detl.addRow();
  980. ds_file.clearData();
  981. ds_detl.setColumn(0, "m", "i");
  982. fClearTableau();
  983. }
  984. function fInit_outpat()
  985. {
  986. var curDate = utlf_getCurrentDate();
  987. var dutplcecd = sysf_getUserInfo("dutplcecd");
  988. ds_send_out.setColumn(0, "orddd", curDate);
  989. ds_send_out.setColumn(0, "orddeptcd", dutplcecd);
  990. }
  991. function fInit_inpat()
  992. {
  993. var curDate = utlf_getCurrentDate();
  994. var dutplcecd = sysf_getUserInfo("dutplcecd");
  995. ds_send_in.setColumn(0, "orddd", curDate);
  996. ds_send_in.setColumn(0, "wardcd", dutplcecd);
  997. }
  998. // Search
  999. function fSearch()
  1000. {
  1001. var oParam = {};
  1002. oParam.id = "TRAIM00101";
  1003. oParam.service = "aiapp.AIMngt";
  1004. oParam.method = "reqGetAIReqList";
  1005. oParam.inds = "req=ds_send_list";
  1006. oParam.outds = "ds_list=list";
  1007. oParam.async = true;
  1008. oParam.callback = "cf_TRAIM00101";
  1009. tranf_submit(oParam);
  1010. }
  1011. function cf_TRAIM00101(sSvcId, nErrorCode, sErrorMsg) {
  1012. if(nErrorCode < 0) {
  1013. sysf_messageBox("조회를", "E009");
  1014. return;
  1015. }
  1016. }
  1017. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1018. {
  1019. fSearch();
  1020. }
  1021. function fViewTableau(obj:Form, e:LoadEventInfo)
  1022. {
  1023. var viewflag = ds_etc.getColumn(0, "viewflag");
  1024. if(viewflag == "LIST"){
  1025. ds_send_tableau.setColumn(0, "scrncd", "TBLAI00002");
  1026. }else if(viewflag == "GRAPH"){
  1027. ds_send_tableau.setColumn(0, "scrncd", "TBLAI00001");
  1028. }else if(viewflag == "GRAPHBYFEAT"){
  1029. ds_send_tableau.setColumn(0, "scrncd", "TBLAI00003");
  1030. }
  1031. ds_send_tableau.setColumn(0, "userid", "AI01");
  1032. ds_send_tableau.setColumn(0, "targetid", "AI");
  1033. var oParam = {};
  1034. oParam.id = "getUrl";
  1035. oParam.service = "authinfoapp.TableauInfo";
  1036. oParam.method = "reqGetTableauTicket";
  1037. oParam.inds = "req=ds_send_tableau";
  1038. oParam.outds = "ds_tableauinfo=tableauinfo";
  1039. oParam.async = true;
  1040. oParam.callback = "cf_getUrl";
  1041. tranf_submit(oParam);
  1042. }
  1043. function fClearTableau()
  1044. {
  1045. //div_detl.web_tableau.url = "";
  1046. div_detl.web_tableau.visible = false;
  1047. }
  1048. function cf_getUrl(sSvcId, nErrorCode, sErrorMsg) {
  1049. if(nErrorCode < 0) return;
  1050. var tableauURL = ds_tableauinfo.getColumn(0, "tableauURL");
  1051. var gubun = ds_detl.getColumn(0, "gubun");
  1052. var pid = ds_detl.getColumn(0, "pid");
  1053. tableauURL += "&gubun="+gubun+"&pid="+pid;
  1054. div_detl.web_tableau.visible = true;
  1055. div_detl.web_tableau.url = tableauURL;
  1056. }
  1057. var sOpenState = "C"; // O : open, H : half open, C : close
  1058. function div_patinfo_btn_patinfo_onclick(obj:Button, e:ClickEventInfo)
  1059. {
  1060. var rightPos = this.position.right - 23;
  1061. if(sOpenState == "C") {
  1062. div_patinfo.visible = true;
  1063. pa_patinfo_move.stop();
  1064. pa_patinfo_move.fromvalue = div_patinfo.position.x;
  1065. pa_patinfo_move.tovalue = rightPos - 800;
  1066. pa_patinfo_move.run();
  1067. // 확대 보기 버튼 위치 조정
  1068. div_patinfo.btn_close_light.position.x = div_patinfo.position.width - 410;
  1069. //this.parent.style.background = "white";
  1070. //div_dim.position.x = 1024;
  1071. //div_dim.visible = false;
  1072. // 환자리스트 버튼 클릭 시 동영상 재생 중이라면 리스트가 위로 올라오도록 썸네일로 변경해준다.
  1073. //fViewThumbnail();
  1074. sOpenState = "H";
  1075. div_detl.web_tableau.visible = false;
  1076. } else if(sOpenState == "O" || sOpenState == "H") {
  1077. pa_patinfo_move.stop();
  1078. pa_patinfo_move.fromvalue = div_patinfo.position.x;
  1079. pa_patinfo_move.tovalue = rightPos - 20;
  1080. pa_patinfo_move.run();
  1081. // 확대 보기 버튼 위치 조정
  1082. div_patinfo.btn_close_light.position.x = div_patinfo.position.width - div_patinfo.btn_close_light.position.width - div_patinfo.btn_close.position.width - 23;
  1083. //this.parent.style.background = "white";
  1084. //div_dim.position.x = 1024;
  1085. //div_dim.visible = false;
  1086. //div_patinfo.visible = false;
  1087. sOpenState = "C";
  1088. if(ds_detl.getColumn(0, "m") == "u")
  1089. div_detl.web_tableau.visible = true;
  1090. }
  1091. }
  1092. function div_patinfo_div_patlist_tabPatList_tab_out_div_search_out_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1093. {
  1094. ds_grd_opatmngt.clearData();
  1095. var oParam = {};
  1096. oParam.id = "TRAIM00103";
  1097. oParam.service = "aiapp.AIMngt";
  1098. oParam.method = "reqGetOutPatList";
  1099. oParam.inds = "req=ds_send_out";
  1100. oParam.outds = "ds_grd_opatmngt=list";
  1101. oParam.async = true;
  1102. oParam.callback = "cf_TRAIM00103";
  1103. tranf_submit(oParam);
  1104. }
  1105. function cf_TRAIM00103(sSvcId, nErrorCode, sErrorMsg) {
  1106. if(nErrorCode < 0) return;
  1107. }
  1108. function div_patinfo_div_patlist_tabPatList_tab_in_div_search_in_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1109. {
  1110. ds_grd_ipatmngt.clearData();
  1111. if(obj.parent.chk_in_schedule.value == "Y") {
  1112. var curDate = utlf_getCurrentDate();
  1113. var year = curDate.substr(0, 4);
  1114. var month = curDate.substr(4, 2);
  1115. var orddd = ds_send_in.getColumn(0, "orddd");
  1116. var wardcd = ds_send_in.getColumn(0, "wardcd");
  1117. var orddeptcd = ds_send_in.getColumn(0, "orddeptcd");
  1118. var orddrid = ds_send_in.getColumn(0, "orddrid");
  1119. if(utlf_isNull(orddeptcd)) orddeptcd = "-";
  1120. if(utlf_isNull(orddrid)) orddrid = "-";
  1121. ds_send_in_schedule.setColumn(0, "year", year);
  1122. ds_send_in_schedule.setColumn(0, "month", month);
  1123. ds_send_in_schedule.setColumn(0, "orddeptcd", orddeptcd);
  1124. ds_send_in_schedule.setColumn(0, "orddrid", orddrid);
  1125. ds_send_in_schedule.setColumn(0, "assgward", wardcd);
  1126. ds_send_in_schedule.setColumn(0, "pid", "");
  1127. ds_send_in_schedule.setColumn(0, "hngnm", "");
  1128. ds_send_in_schedule.setColumn(0, "fromdd", orddd);
  1129. ds_send_in_schedule.setColumn(0, "todd", orddd);
  1130. ds_send_in_schedule.setColumn(0, "erreglyn", "I");
  1131. ds_send_in_schedule.setColumn(0, "inflag", "G");
  1132. ds_send_in_schedule.setColumn(0, "statflag", "A");
  1133. ds_send_in_schedule.setColumn(0, "bedkind", "-");
  1134. var oParam = {};
  1135. oParam.id = "TRMMO09001";
  1136. oParam.service = "prcpmngtapp.EtcPrcpMngt";
  1137. oParam.method = "reqGetInReqHistInfoList";
  1138. oParam.inds = "req=ds_send_in_schedule";
  1139. oParam.outds = "ds_grd_inreqhistlist=inreqhistlist";
  1140. oParam.async = true;
  1141. oParam.callback = "cf_TRMMO09001";
  1142. tranf_submit(oParam);
  1143. } else {
  1144. var oParam = {};
  1145. oParam.id = "TRAIM00102";
  1146. oParam.service = "aiapp.AIMngt";
  1147. oParam.method = "reqGetInPatList";
  1148. oParam.inds = "req=ds_send_in";
  1149. oParam.outds = "ds_grd_ipatmngt=list";
  1150. oParam.async = true;
  1151. oParam.callback = "cf_TRAIM00102";
  1152. tranf_submit(oParam);
  1153. }
  1154. }
  1155. function cf_TRMMO09001(sSvcId, nErrorCode, sErrorMsg) {
  1156. if(nErrorCode < 0) return;
  1157. ds_grd_inreqhistlist.addColumn("acptyn", "string");
  1158. }
  1159. function cf_TRAIM00102(sSvcId, nErrorCode, sErrorMsg) {
  1160. if(nErrorCode < 0) return;
  1161. }
  1162. function div_patinfo_div_patlist_tabPatList_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1163. {
  1164. var instcd = sysf_getUserInfo("dutplceinstcd");
  1165. var curDate = utlf_getCurrentDate();
  1166. var dutplcecd = sysf_getUserInfo("dutplcecd");
  1167. if(e.postindex == 0) {
  1168. // 환자리스트 외래 초기화
  1169. if(utlf_isNull(ds_send_out.getColumn(0, "orddd"))) {
  1170. fInit_outpat();
  1171. //fDeptChanged();
  1172. }
  1173. } else if(e.postindex == 1) {
  1174. // 환자리스트 입원 초기화
  1175. if(utlf_isNull(ds_send_in.getColumn(0, "orddd"))) {
  1176. fInit_inpat();
  1177. //fDeptList();
  1178. }
  1179. } else if(e.postindex == 2){
  1180. div_patinfo.div_patlist.tabPatList.tab_search.div_search.edt_pid.setFocus();
  1181. }
  1182. }
  1183. function div_patinfo_div_patlist_tabPatList_tab_out_grd_patlist_out_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1184. {
  1185. var row = ds_grd_opatmngt.rowposition;
  1186. ds_detl.setColumn(0, "pid", ds_grd_opatmngt.getColumn(row, "pid"));
  1187. ds_detl.setColumn(0, "pnm", ds_grd_opatmngt.getColumn(row, "hngnm"));
  1188. div_patinfo.btn_patinfo.click();
  1189. }
  1190. function div_patinfo_div_patlist_tabPatList_tab_in_grd_patlist_insche_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1191. {
  1192. var row = ds_grd_ipatmngt.rowposition;
  1193. ds_detl.setColumn(0, "pid", ds_grd_ipatmngt.getColumn(row, "pid"));
  1194. ds_detl.setColumn(0, "pnm", ds_grd_ipatmngt.getColumn(row, "dispnm2"));
  1195. div_patinfo.btn_patinfo.click();
  1196. }
  1197. function div_patinfo_div_patlist_tabPatList_tab_search_grd_pat_search_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1198. {
  1199. var row = ds_patinfolist.rowposition;
  1200. ds_detl.setColumn(0, "pid", ds_patinfolist.getColumn(row, "pid"));
  1201. ds_detl.setColumn(0, "pnm", ds_patinfolist.getColumn(row, "hngnm"));
  1202. ds_detl.setColumn(0, "age", ds_patinfolist.getColumn(row, "age"));
  1203. ds_detl.setColumn(0, "sex", ds_patinfolist.getColumn(row, "sex"));
  1204. div_patinfo.btn_patinfo.click();
  1205. }
  1206. function div_patinfo_btn_close_onclick(obj:Button, e:ClickEventInfo)
  1207. {
  1208. div_patinfo.btn_patinfo.click();
  1209. }
  1210. function div_detl_btn_file_add_onclick(obj:Button, e:ClickEventInfo)
  1211. {
  1212. fFileAdd();
  1213. }
  1214. function fFileAdd(colName) {
  1215. //******파일을 첨부하기 위해 파일열기가 open 되게 한다.
  1216. var oDsSaveFile = ds_file;
  1217. //파일을 받아오기 위해 파일열기 팝업창을 띄운다.
  1218. var fd = new FileDialog;
  1219. var objVFileList = fd.open("첨부 할 파일을 선택하여 주십시오.", FileDialog.MULTILOAD);
  1220. if(utlf_isNull(objVFileList)) return;
  1221. ds_temp_file.clearData();
  1222. for(var i = 0; i < objVFileList.length; i++) {
  1223. var nRow = ds_temp_file.addRow();
  1224. var objFileinfo = dsf_writeFileToDs(objVFileList[i], ds_temp_file, nRow, "filedata");
  1225. if (!checkFileSize(objFileinfo.filesize)){
  1226. sysf_messageBox(objFileinfo.filename + " 파일의 크기가 최대치(" + gMaxSize + "Byte)를 초과하여 첨부할 수 없습니다", "E");
  1227. ds_temp_file.deleteRow(nRow);
  1228. } else {
  1229. ds_temp_file.setColumn(nRow, "filename", objFileinfo.filename);
  1230. ds_temp_file.setColumn(nRow, "filesize", objFileinfo.filesize);
  1231. ds_temp_file.setColumn(nRow, "filetype", objFileinfo.filetype);
  1232. //ds_temp_file.setColumn(nRow, "filedata", objFileinfo.filedata);
  1233. }
  1234. }
  1235. oDsSaveFile.appendData(ds_temp_file);
  1236. div_detl.grd_files.vscrollbar.pos = div_detl.grd_files.vscrollbar.max;
  1237. oDsSaveFile.rowposition = oDsSaveFile.rowcount - 1;
  1238. }
  1239. function checkFileSize(fileSize)
  1240. {
  1241. if (fileSize <= gMaxSize)
  1242. return true;
  1243. else
  1244. return false;
  1245. }
  1246. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1247. {
  1248. if (fInputValueCheck(obj.parent)) {
  1249. // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
  1250. ds_send_search.addColumn("functionyn", "string");
  1251. ds_send_search.setColumn(0, "functionyn", "N");
  1252. // 2017/09/05 환자 조회시 function 조회 안하도록 수정(속도개선)
  1253. var oParam = {};
  1254. oParam.id = "TRPMC02500";
  1255. oParam.service = "patinfomngtapp.PatBaseInfo";
  1256. oParam.method = "reqGetPatInfo";
  1257. oParam.inds = "req=ds_send_search";
  1258. oParam.outds = "ds_patinfolist=patinfolist";
  1259. oParam.async = true;
  1260. oParam.callback = "cf_TRPMC02500";
  1261. tranf_submit(oParam);
  1262. }
  1263. }
  1264. function cf_TRPMC02500(sSvcId, nErrorCode, sErrorMsg) {
  1265. if(nErrorCode < 0) return;
  1266. ds_patinfolist.addColumn("acptyn", "string");
  1267. }
  1268. // 입력값의 유효범위 체크
  1269. function fInputValueCheck(oDiv) {
  1270. var cond = ds_send_search.getColumn(0, "srchcond");
  1271. switch(cond) {
  1272. case '1': // 환자번호 체크
  1273. if (utlf_isNull(ds_send_search.getColumn(0, "pid"))) {
  1274. sysf_messageBox("환자번호를 정확히", "C001");
  1275. oDiv.edt_pid.setFocus();
  1276. return false;
  1277. } else {
  1278. return true;
  1279. }
  1280. break;
  1281. case '2':
  1282. //환자이름 체크
  1283. if(utlf_transNull(ds_send_search.getColumn(0, "hngnm"), "").length >= 2) {
  1284. return true;
  1285. } else {
  1286. sysf_messageBox("환자이름을 2자리 이상", "C001");
  1287. oDiv.edt_hngnm.setFocus();
  1288. return false;
  1289. }
  1290. break;
  1291. case '3':
  1292. //환자 주민번호 체크
  1293. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno1"), "").length >= 4 && utlf_transNull(ds_send_search.getColumn(0, "rrgstno2"), "").length >=1) {
  1294. return true;
  1295. } else {
  1296. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno1"), "").length < 4) {
  1297. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  1298. oDiv.edt_rrgstno1.setFocus();
  1299. return false;
  1300. }
  1301. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno2"), "").length < 1) {
  1302. sysf_messageBox("환자 주민번호 뒷자리를 1자리 이상", "C001");
  1303. oDiv.edt_rrgstno2.setFocus();
  1304. return false;
  1305. }
  1306. sysf_messageBox("환자 주민번호를", "C001");
  1307. oDiv.edt_rrgstno1.setFocus();
  1308. return false;
  1309. }
  1310. break;
  1311. case '4': // 환자이름 유효성 체크. 환자 주민번호 체크
  1312. // 환자이름 체크
  1313. if(utlf_transNull(ds_send_search.getColumn(0, "hngnm"), "").length < 2) {
  1314. sysf_messageBox("환자이름을 2자리 이상", "C001");
  1315. oDiv.edt_hngnm.setFocus();
  1316. return false;
  1317. }
  1318. // 환자 주민번호 체크
  1319. if(utlf_transNull(ds_send_search.getColumn(0, "rrgstno1"), "").length < 4) {
  1320. sysf_messageBox("환자 주민번호 앞자리를 4자리 이상", "C001");
  1321. oDiv.edt_rrgstno1.setFocus();
  1322. return false;
  1323. }
  1324. return true;
  1325. break;
  1326. case '5': // 예약일자 유효성 체크
  1327. if (utlf_isValidDateTime(ds_send_search.getColumn(0, "acptdd"), "YYYYMMDD")) {
  1328. return true;
  1329. } else {
  1330. sysf_messageBox("예약일자를 정확히", "C001");
  1331. return false;
  1332. }
  1333. break;
  1334. default :
  1335. sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  1336. oDiv.rdo_searchcond.setFocus();
  1337. return false;
  1338. break;
  1339. }
  1340. }
  1341. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  1342. {
  1343. ds_save_file.clearData();
  1344. if(ds_file.rowcount <= 0) {
  1345. ds_detl.setColumn(0, "filekey", "");
  1346. } else {
  1347. ds_file.filter("utlf_isNull(filekey) == true");
  1348. ds_save_file.copyData(ds_file, true);
  1349. ds_file.filter("");
  1350. }
  1351. var oParam = {};
  1352. oParam.id = "TXAIM00101";
  1353. oParam.service = "aiapp.AIMngt";
  1354. oParam.method = "reqExeSaveAIReq";
  1355. oParam.inds = "req=ds_detl savefiles=ds_save_file deletefiles=ds_delete_file";
  1356. oParam.outds = "ds_result=result ds_detl=detl ds_file=files";
  1357. oParam.async = false;
  1358. tranf_submit(oParam);
  1359. }
  1360. function btn_new_onclick(obj:Button, e:ClickEventInfo)
  1361. {
  1362. if(sOpenState=="C"){
  1363. div_patinfo.btn_patinfo.click();
  1364. }
  1365. fNew_detl();
  1366. }
  1367. function div_patinfo_div_patlist_tabPatList_tab_search_div_search_onkeydown(obj:Div, e:KeyEventInfo)
  1368. {
  1369. if (e.keycode == 13) {
  1370. div_patinfo.div_patlist.tabPatList.tab_search.div_search.btn_search.setFocus();
  1371. frmf_inputEnterKey('div_patinfo.div_patlist.tabPatList.tab_search.div_search.btn_search', 'onclick', new ClickEventInfo);
  1372. }
  1373. }
  1374. function div_detl_grd_files_oncellclick(obj:Grid, e:GridClickEventInfo)
  1375. {
  1376. if(e.col == 4) {
  1377. fPreview(ds_file.getColumn(e.row, "filename"), ds_file.getColumn(e.row, "filepath"));
  1378. } else if(e.col == 5) {
  1379. fFileDown(ds_file.getColumn(e.row, "filename"), ds_file.getColumn(e.row, "filepath"));
  1380. }
  1381. }
  1382. function grd_list_oncellclick(obj:Grid, e:GridClickEventInfo)
  1383. {
  1384. var row = ds_list.rowposition;
  1385. ds_send_detl.setColumn(0, "gubun", ds_list.getColumn(row, "gubun"));
  1386. ds_send_detl.setColumn(0, "pid", ds_list.getColumn(row, "pid"));
  1387. ds_send_detl.setColumn(0, "seqno", ds_list.getColumn(row, "seqno"));
  1388. ds_send_detl.setColumn(0, "filekey", ds_list.getColumn(row, "filekey"));
  1389. var oParam = {};
  1390. oParam.id = "TRAIM00104";
  1391. oParam.service = "aiapp.AIMngt";
  1392. oParam.method = "reqGetAIReqDetl";
  1393. oParam.inds = "req=ds_send_detl";
  1394. oParam.outds = "ds_detl=detl ds_file=files";
  1395. oParam.async = true;
  1396. oParam.callback = "cf_TRAIM00104";
  1397. tranf_submit(oParam);
  1398. }
  1399. function cf_TRAIM00104(sSvcId, nErrorCode, sErrorMsg) {
  1400. if(nErrorCode < 0) return;
  1401. fViewTableau();
  1402. }
  1403. function div_detl_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1404. {
  1405. fViewTableau();
  1406. }
  1407. function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1408. {
  1409. var orddd = ds_send_list.getColumn(0, "fromdd");
  1410. var orddeptcd = ds_send_list.getColumn(0, "orddeptcd");
  1411. fDoctSearch(ds_init_doct, orddd, orddeptcd);
  1412. }
  1413. function fDoctSearch(dsObj, orddd, orddeptcd)
  1414. {
  1415. // 진료의사
  1416. //ds_init_doctlist.clearData(); ds_init_doctlist.addRow();
  1417. ds_send_doctor.clearData();
  1418. dsf_makeValue( ds_send_doctor, "orddd", "string", orddd );
  1419. dsf_makeValue( ds_send_doctor, "orddeptcd", "string", orddeptcd);
  1420. var oParam = {};
  1421. oParam.id = "TRARC01302";
  1422. oParam.service = "healcarecoopapp.ReqAgnMngt";
  1423. oParam.method = "reqGetDoctList";
  1424. oParam.inds = "req=ds_send_doctor";
  1425. oParam.outds = "ds_init_doctlist_medispcl=medispcl";
  1426. oParam.async = false;
  1427. //oParam.callback = "cf_TRARC01302";
  1428. tranf_submit(oParam);
  1429. dsf_copyDs(dsObj, ds_init_doctlist_medispcl);
  1430. }
  1431. function group1_btn_pat_onclick(obj:Button, e:ClickEventInfo)
  1432. {
  1433. var pid = ds_send_list.getColumn(0, "pid");
  1434. if(fPatPopUp(pid)){
  1435. ds_send_list.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  1436. ds_send_list.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
  1437. }
  1438. }
  1439. function fPatPopUp(pid)
  1440. {
  1441. if(!utlf_isNull(pid))
  1442. {
  1443. ds_temp_pidinfo.setColumn(0, "pid", pid);
  1444. ds_temp_pidinfo.setColumn(0, "srchcond", "1");
  1445. }
  1446. else
  1447. {
  1448. ds_temp_pidinfo.setColumn(0, "pid", pid);
  1449. ds_temp_pidinfo.setColumn(0, "srchcond", "2");
  1450. }
  1451. var objArg = new Object();
  1452. objArg.arg_ds_send = ds_temp_pidinfo;
  1453. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "", "", "", "", "", "", "", "", "M");
  1454. if (frmf_getParameter("SPPMC02500_popupendflag") == "ok")
  1455. {
  1456. //model.setValue("/root/send/search/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1457. //model.setValue("/root/send/search/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1458. return true;
  1459. }
  1460. return false;
  1461. }
  1462. function group1_onkeydown(obj:Div, e:KeyEventInfo)
  1463. {
  1464. if (e.keycode == 13) {
  1465. group1.btn_search.setFocus();
  1466. frmf_inputEnterKey('group1.btn_search', 'onclick', new ClickEventInfo);
  1467. }
  1468. }
  1469. function fPreview(filenm, filepath) {
  1470. if(utlf_isNull(filepath)) return;
  1471. var temp_path = "C:\\temp2";
  1472. var objActiveX = new ActiveX();
  1473. var FSO = objActiveX.createObject("Scripting.FileSystemObject");
  1474. objActiveX.destroy();
  1475. objActiveX = null;
  1476. // 객체 생성 실패하면 리턴
  1477. if (FSO == null) return;
  1478. // 시스템 드라이브가 없다면..
  1479. if (FSO.DriveExists("C") == false) return;
  1480. // 임시디렉토리가 없으면 생성
  1481. if (FSO.FolderExists(temp_path) == false)
  1482. folder = FSO.CreateFolder(temp_path);
  1483. ds_attfile.setColumn(0, "filepath", filepath);
  1484. ds_attfile.setColumn(0, "fullpath", temp_path + "\\" + filenm);
  1485. //키값을 가지고 DB에 저장된 데이타를 조회하러 간다
  1486. var oParam = {};
  1487. oParam.id = "TRAIM00105";
  1488. oParam.service = "aiapp.AIMngt";
  1489. oParam.method = "reqGetAttachFile";
  1490. oParam.inds = "req=ds_attfile";
  1491. oParam.outds = "ds_filelist=file";
  1492. oParam.async = true;
  1493. oParam.callback = "cf_TRAIM00105";
  1494. tranf_submit(oParam);
  1495. }
  1496. function cf_TRAIM00105(sSvcId, nErrorCode, sErrorMsg)
  1497. {
  1498. if(nErrorCode < 0) return;
  1499. if(ds_filelist.rowcount > 0) {
  1500. var fullpath = ds_filelist.getColumn(0, "fullpath");
  1501. dsf_readFileFromDs(fullpath, ds_filelist, 0, "filecnts"); // 파일저장
  1502. system.execShell("\"" + fullpath + "\"");
  1503. }
  1504. }
  1505. function fFileDown(filenm, filepath) {
  1506. if(utlf_isNull(filepath)) return;
  1507. //파일을 다운로드 하기 위해 저장할 창을 띄움
  1508. var fd = new FileDialog;
  1509. var objVFileList = fd.open("다운 받을 위치를 선택하여 주십시오.", FileDialog.SAVE, "", filenm);
  1510. if (objVFileList != null) {
  1511. ds_attfile.setColumn(0, "filepath", filepath);
  1512. ds_attfile.setColumn(0, "fullpath", objVFileList.fullpath);
  1513. var oParam = {};
  1514. oParam.id = "TRAIM00106";
  1515. oParam.service = "aiapp.AIMngt";
  1516. oParam.method = "reqGetAttachFile";
  1517. oParam.inds = "req=ds_attfile";
  1518. oParam.outds = "ds_filelist=file";
  1519. oParam.async = true;
  1520. oParam.callback = "cf_TRAIM00106";
  1521. tranf_submit(oParam);
  1522. }
  1523. }
  1524. function cf_TRAIM00106(sSvcId, nErrorCode, sErrorMsg)
  1525. {
  1526. if(nErrorCode < 0) return;
  1527. if(ds_filelist.rowcount > 0) {
  1528. var fullpath = ds_filelist.getColumn(0, "fullpath");
  1529. dsf_readFileFromDs(fullpath, ds_filelist, 0, "filecnts"); // 파일저장
  1530. if(sysf_messageBox("파일을", "Q004") == "6")
  1531. system.execShell("\"" + fullpath + "\"");
  1532. }
  1533. }
  1534. ]]></Script>
  1535. </Form>
  1536. </FDL>