SMASB00600_항생제내성균환자조회.xfdl 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMASB00600" position="absolute 0 0 1201 751" titletext="항생제내성균환자조회" oninit="SMASB00600_oninit" onload="SMASB00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="항생제내성균 환자조회" class="tit_1" position="absolute 0 0 163 27" anchor="left top"/>
  8. <Div id="group1" taborder="1" position="absolute -2 30 1196 130" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Shape id="roundrect1" type="roundrectangle" class="roundrect_search" position="absolute 3 0 1195 83" anchor="left top right"/>
  12. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1107 10 1113 78" anchor="top right"/>
  13. <Static id="caption7" text="기간선택 :" class="search_name" position="absolute 14 9 110 26" anchor="default"/>
  14. <Static id="caption8" text="내성균구분 :" class="search_name" position="absolute 637 10 736 27" anchor="default"/>
  15. <Static id="caption12" text="등록번호 :" class="search_name" position="absolute 14 35 115 52" anchor="default"/>
  16. <Static id="caption17" text="병 동 :" class="search_name" position="absolute 252 61 316 78" anchor="default"/>
  17. <Static id="caption18" text="진 료 과 :" class="search_name" position="absolute 14 60 112 77" anchor="default"/>
  18. <Static id="caption19" text="~" class="search_no_b" position="absolute 311 10 323 27" anchor="default"/>
  19. <Static id="importcaption1" text="환자명 :" class="search_name" position="absolute 252 35 314 52" anchor="default"/>
  20. <Edit id="ipt_pid" taborder="5" class="input_search" position="absolute 96 34 189 53" anchor="default"/>
  21. <Combo id="cmb_termchoi" taborder="0" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 96 9 189 28" onitemchanged="group1_cmb_termchoi_onitemchanged" anchor="default">
  22. <Dataset id="innerdataset">
  23. <ColumnInfo>
  24. <Column id="codecolumn"/>
  25. <Column id="datacolumn"/>
  26. </ColumnInfo>
  27. <Rows>
  28. <Row>
  29. <Col id="codecolumn">P</Col>
  30. <Col id="datacolumn">처방일</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">S</Col>
  34. <Col id="datacolumn">접수일</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">R</Col>
  38. <Col id="datacolumn">보고일</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. <Calendar id="ipt_fromdd" taborder="1" class="input_default" position="absolute 202 9 308 28" anchor="default"/>
  44. <Calendar id="ipt_todd" taborder="2" class="input_default" position="absolute 325 9 431 28" onkeydown="group1_ipt_todd_onkeydown" onkeyup="group1_ipt_todd_onkeyup" anchor="default"/>
  45. <Combo id="cmb_wardcd" taborder="10" innerdataset="@ds_init_warddeptlist" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 327 60 462 79" onitemchanged="group1_cmb_wardcd_onitemchanged" anchor="default"/>
  46. <Edit id="ipt_patnm" taborder="6" class="input_search" position="absolute 327 35 417 54" onkeydown="group1_ipt_patnm_onkeydown" anchor="default"/>
  47. <Combo id="cmb_orddept" taborder="9" innerdataset="@ds_init_deptlist" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 96 60 224 79" anchor="default"/>
  48. <Button id="btn_search" taborder="11" text="조회" class="btn1" position="absolute 1126 31 1182 53" onclick="group1_btn_search_onclick" anchor="top right"/>
  49. <Edit id="ipt_bac" taborder="3" class="input_search" position="absolute 510 10 620 29" anchor="default"/>
  50. <Static id="caption2" text="균 :" class="search_name" position="absolute 472 10 522 27" anchor="default"/>
  51. <Radio id="rdo_bac" taborder="8" columncount="1" rowcount="3" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 510 31 640 79" anchor="default">
  52. <Dataset id="innerdataset">
  53. <ColumnInfo>
  54. <Column id="codecolumn"/>
  55. <Column id="datacolumn"/>
  56. </ColumnInfo>
  57. <Rows>
  58. <Row>
  59. <Col id="codecolumn">A</Col>
  60. <Col id="datacolumn">ALL Dates</Col>
  61. </Row>
  62. <Row>
  63. <Col id="codecolumn"/>
  64. <Col id="datacolumn">First isolate only</Col>
  65. </Row>
  66. <Row>
  67. <Col id="codecolumn"/>
  68. <Col id="datacolumn">First isolate only 2</Col>
  69. </Row>
  70. </Rows>
  71. </Dataset>
  72. </Radio>
  73. <Button id="btn_patInfo" taborder="7" class="icon_search" position="absolute 422 37 438 53" onclick="group1_btn_patInfo_onclick" anchor="default"/>
  74. <cp_checkboxList id="cp_checkboxList00" titletext="CheckBox List" taborder="4" text="cp_checkboxList00" scrollbars="none" position="absolute 733 6 1062 74" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="top right"/>
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. <Button id="btn_sort" taborder="2" text="정렬" class="btn2_letter2" position="absolute 1105 123 1147 142" onclick="btn_sort_onclick" anchor="top right"/>
  79. <Grid id="grd_anitbiorstbtrpatlist" taborder="3" useinputpanel="false" position="absolute 0 144 1194 720" binddataset="ds_grd_antibiorstbtrpatlist" oncelldblclick="grd_anitbiorstbtrpatlist_oncelldblclick" onrbuttondown="grd_anitbiorstbtrpatlist_onrbuttondown" onrbuttonup="grd_anitbiorstbtrpatlist_onrbuttonup" anchor="all" cellsizebandtype="allband" cellsizingtype="col">
  80. <Formats>
  81. <Format id="default">
  82. <Columns>
  83. <Column size="27"/>
  84. <Column size="42"/>
  85. <Column size="80"/>
  86. <Column size="80"/>
  87. <Column size="60"/>
  88. <Column size="40"/>
  89. <Column size="80"/>
  90. <Column size="80"/>
  91. <Column size="80"/>
  92. <Column size="40"/>
  93. <Column size="80"/>
  94. <Column size="80"/>
  95. <Column size="80"/>
  96. <Column size="80"/>
  97. <Column size="80"/>
  98. <Column size="80"/>
  99. <Column size="80"/>
  100. <Column size="80"/>
  101. <Column size="60"/>
  102. <Column size="80"/>
  103. <Column size="80"/>
  104. <Column size="80"/>
  105. </Columns>
  106. <Rows>
  107. <Row size="24" band="head"/>
  108. <Row size="24"/>
  109. </Rows>
  110. <Band id="head">
  111. <Cell/>
  112. <Cell col="1" displaytype="normal" edittype="checkbox" text="선택"/>
  113. <Cell col="2" displaytype="normal" text="내성균구분"/>
  114. <Cell col="3" displaytype="normal" text="등록번호"/>
  115. <Cell col="4" displaytype="normal" text="이름"/>
  116. <Cell col="5" displaytype="normal" text="성별"/>
  117. <Cell col="6" text="연령구분"/>
  118. <Cell col="7" text="검체구분"/>
  119. <Cell col="8" text="GAP"/>
  120. <Cell col="9" displaytype="normal" text="나이"/>
  121. <Cell col="10" displaytype="normal" text="처방병동"/>
  122. <Cell col="11" displaytype="normal" text="처방병실"/>
  123. <Cell col="12" displaytype="normal" text="현재원병동"/>
  124. <Cell col="13" displaytype="normal" text="현재원병실"/>
  125. <Cell col="14" displaytype="normal" text="진료과"/>
  126. <Cell col="15" displaytype="normal" text="주치의"/>
  127. <Cell col="16" displaytype="normal" text="입원일"/>
  128. <Cell col="17" displaytype="normal" text="퇴원일"/>
  129. <Cell col="18" displaytype="normal" text="재원기간"/>
  130. <Cell col="19" displaytype="normal" text="보고일"/>
  131. <Cell col="20" displaytype="normal" text="검체"/>
  132. <Cell col="21" displaytype="normal" text="균"/>
  133. </Band>
  134. <Band id="body">
  135. <Cell text="expr:currow+1"/>
  136. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:select"/>
  137. <Cell col="2" displaytype="normal" text="bind:nsgbrcd"/>
  138. <Cell col="3" displaytype="normal" text="bind:pid"/>
  139. <Cell col="4" displaytype="normal" text="bind:patnm"/>
  140. <Cell col="5" displaytype="normal" text="bind:sexflag"/>
  141. <Cell col="6" text="bind:agegbn"/>
  142. <Cell col="7" text="bind:spcgbn"/>
  143. <Cell col="8" text="bind:gap"/>
  144. <Cell col="9" displaytype="normal" text="bind:age"/>
  145. <Cell col="10" displaytype="normal" text="bind:befwardcd"/>
  146. <Cell col="11" displaytype="normal" text="bind:befroomcd"/>
  147. <Cell col="12" displaytype="normal" text="bind:prestwardcd"/>
  148. <Cell col="13" displaytype="normal" text="bind:prestroomcd"/>
  149. <Cell col="14" displaytype="normal" style="align:left middle;" text="bind:orddept"/>
  150. <Cell col="15" displaytype="normal" text="bind:atdoct"/>
  151. <Cell col="16" displaytype="normal" text="bind:indd" mask="expr:utlf_isNull(indd) ? '' : '####-##-##'"/>
  152. <Cell col="17" displaytype="normal" text="bind:dschdd" mask="expr:utlf_isNull(dschdd) ? '' : '####-##-##'"/>
  153. <Cell col="18" displaytype="normal" text="bind:inhospterm"/>
  154. <Cell col="19" displaytype="normal" text="bind:reptdd" mask="expr:utlf_isNull(reptdd) ? '' : '####-##-##'"/>
  155. <Cell col="20" displaytype="normal" text="bind:spcnm"/>
  156. <Cell col="21" displaytype="normal" text="bind:bacnm"/>
  157. </Band>
  158. </Format>
  159. <Format id="format_copy"/>
  160. </Formats>
  161. </Grid>
  162. <Button id="btn_excel" taborder="4" text="엑셀" class="btn2_letter2" position="absolute 1150 123 1192 142" anchor="top right" onclick="btn_excel_onclick"/>
  163. <Button id="btn_prntchoi" taborder="5" text="전체선택" class="btn2" position="absolute 971 123 1035 142" onclick="btn_prntchoi_onclick" anchor="top right"/>
  164. <Button id="btn_choicncl" taborder="6" text="전체취소" class="btn2" position="absolute 1038 123 1102 142" onclick="btn_choicncl_onclick" anchor="top right"/>
  165. <Static id="caption1" text="항생제내성균 환자리스트" class="tit_2" position="absolute -1 126 187 139" anchor="left top"/>
  166. <Button id="btn_init" taborder="7" text="초기화" onclick="btn_init_onclick" class="btn4" position="absolute 1122 725 1190 747" anchor="top right"/>
  167. <Button id="btn_save" taborder="8" text="저장" onclick="btn_save_onclick" class="btn4" position="absolute 1063 725 1119 747" anchor="top right"/>
  168. <Button id="btn_print" taborder="9" text="출력" onclick="grp_btn_btn_print_onclick" class="btn6" position="absolute 4 725 60 747" anchor="left top"/>
  169. <Shape id="line23" class="line_10" position="absolute 0 26 1193 32"/>
  170. <Button id="btn_tsrch" taborder="10" text="전체건수" class="btn2" position="absolute 771 123 835 142" anchor="top right" onclick="btn_tsrch_onclick"/>
  171. </Layout>
  172. </Layouts>
  173. <Objects>
  174. <Dataset id="ds_init_cmb_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="depthngnm" type="STRING"/>
  177. <Column id="deptcd" type="STRING"/>
  178. </ColumnInfo>
  179. </Dataset>
  180. <Dataset id="ds_init_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  181. <ColumnInfo>
  182. <Column id="depthngnm" type="STRING"/>
  183. <Column id="deptcd" type="STRING"/>
  184. </ColumnInfo>
  185. </Dataset>
  186. <Dataset id="ds_grd_antibiorstbtrpatlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="select" type="STRING"/>
  189. <Column id="nsgbrcd" type="STRING"/>
  190. <Column id="pid" type="STRING"/>
  191. <Column id="patnm" type="STRING"/>
  192. <Column id="sexflag" type="STRING"/>
  193. <Column id="age" type="STRING"/>
  194. <Column id="befwardcd" type="STRING"/>
  195. <Column id="befroomcd" type="STRING"/>
  196. <Column id="prestwardcd" type="STRING"/>
  197. <Column id="prestroomcd" type="STRING"/>
  198. <Column id="orddept" type="STRING"/>
  199. <Column id="atdoct" type="STRING"/>
  200. <Column id="indd" type="STRING"/>
  201. <Column id="dschdd" type="STRING"/>
  202. <Column id="inhospterm" type="STRING"/>
  203. <Column id="reptdd" type="STRING"/>
  204. <Column id="spcnm" type="STRING"/>
  205. <Column id="bacnm" type="STRING"/>
  206. <Column id="ibcno" type="STRING"/>
  207. <Column id="itclscd" type="STRING"/>
  208. <Column id="itestcd" type="STRING"/>
  209. <Column id="ispccd" type="STRING"/>
  210. <Column id="irsltseq" type="STRING"/>
  211. <Column id="ibaccd" type="STRING"/>
  212. <Column id="ibacseqno" type="STRING"/>
  213. <Column id="irsltflag" type="STRING"/>
  214. <Column id="itestkindcd" type="STRING"/>
  215. <Column id="iantibiorslt" type="STRING"/>
  216. <Column id="iprcpdd" type="STRING"/>
  217. <Column id="ibcolldt" type="STRING"/>
  218. <Column id="isbgdwardcd" type="STRING"/>
  219. <Column id="iatdrid" type="STRING"/>
  220. <Column id="nsgbrcode" type="STRING"/>
  221. <Column id="cretno" type="STRING"/>
  222. <Column id="seqno" type="STRING"/>
  223. <Column id="prcpdd" type="STRING" size="256"/>
  224. <Column id="execprcpuniqno" type="STRING" size="256"/>
  225. <Column id="instcd" type="STRING" size="256"/>
  226. <Column id="agegbn" type="STRING" size="256"/>
  227. <Column id="spcgbn" type="STRING" size="256"/>
  228. <Column id="gap" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. </Dataset>
  231. <Dataset id="ds_cmb_termchoi" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  232. <ColumnInfo>
  233. <Column id="label" type="STRING" size="256"/>
  234. <Column id="value" type="STRING" size="256"/>
  235. </ColumnInfo>
  236. <Rows>
  237. <Row>
  238. <Col id="label">처방일</Col>
  239. <Col id="value">P</Col>
  240. </Row>
  241. <Row>
  242. <Col id="label">접수일</Col>
  243. <Col id="value">S</Col>
  244. </Row>
  245. <Row>
  246. <Col id="value">R</Col>
  247. <Col id="label">보고일</Col>
  248. </Row>
  249. </Rows>
  250. </Dataset>
  251. <Dataset id="ds_init_warddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  252. <ColumnInfo>
  253. <Column id="depthngnm" type="STRING" size="256"/>
  254. <Column id="deptcd" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. </Dataset>
  257. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  258. <ColumnInfo>
  259. <Column id="termchoi" type="STRING" size="256"/>
  260. <Column id="fromdd" type="STRING" size="256"/>
  261. <Column id="todd" type="STRING" size="256"/>
  262. <Column id="pid" type="STRING" size="256"/>
  263. <Column id="orddept" type="STRING" size="256"/>
  264. <Column id="patnm" type="STRING" size="256"/>
  265. <Column id="wardcd" type="STRING" size="256"/>
  266. <Column id="nsgbrcd" type="STRING" size="256"/>
  267. <Column id="bac" type="STRING" size="256"/>
  268. <Column id="bac2" type="STRING" size="256"/>
  269. <Column id="groupflag" type="STRING" size="256"/>
  270. </ColumnInfo>
  271. <Rows>
  272. <Row>
  273. <Col id="termchoi">P</Col>
  274. <Col id="bac2">A</Col>
  275. </Row>
  276. </Rows>
  277. </Dataset>
  278. <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  279. <ColumnInfo>
  280. <Column id="depthngnm" type="STRING" size="256"/>
  281. <Column id="deptcd" type="STRING" size="256"/>
  282. </ColumnInfo>
  283. </Dataset>
  284. <Dataset id="ds_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  285. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  286. <Dataset id="ds_init_rstbtr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  287. <ColumnInfo>
  288. <Column id="cdnm" type="STRING" size="256"/>
  289. <Column id="cdid" type="STRING" size="256"/>
  290. </ColumnInfo>
  291. </Dataset>
  292. <Dataset id="ds_sortcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  293. <ColumnInfo>
  294. <Column id="sort1" type="STRING" size="256"/>
  295. <Column id="cond1" type="STRING" size="256"/>
  296. <Column id="cond2" type="STRING" size="256"/>
  297. <Column id="sort2" type="STRING" size="256"/>
  298. <Column id="cond3" type="STRING" size="256"/>
  299. <Column id="cond4" type="STRING" size="256"/>
  300. <Column id="sort3" type="STRING" size="256"/>
  301. <Column id="cond5" type="STRING" size="256"/>
  302. <Column id="cond6" type="STRING" size="256"/>
  303. <Column id="sort4" type="STRING" size="256"/>
  304. <Column id="cond7" type="STRING" size="256"/>
  305. <Column id="cond8" type="STRING" size="256"/>
  306. <Column id="sort5" type="STRING" size="256"/>
  307. <Column id="cond9" type="STRING" size="256"/>
  308. <Column id="cond10" type="STRING" size="256"/>
  309. </ColumnInfo>
  310. <Rows>
  311. <Row>
  312. <Col id="sort1">1</Col>
  313. <Col id="cond1">0</Col>
  314. <Col id="cond2">-</Col>
  315. <Col id="sort2">2</Col>
  316. <Col id="cond10">-</Col>
  317. <Col id="cond9">0</Col>
  318. <Col id="sort5">5</Col>
  319. <Col id="cond8">-</Col>
  320. <Col id="cond7">0</Col>
  321. <Col id="sort4">4</Col>
  322. <Col id="cond6">-</Col>
  323. <Col id="cond5">0</Col>
  324. <Col id="sort3">3</Col>
  325. <Col id="cond4">-</Col>
  326. <Col id="cond3">0</Col>
  327. </Row>
  328. </Rows>
  329. </Dataset>
  330. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  331. <ColumnInfo>
  332. <Column id="srchcond" type="STRING" size="256"/>
  333. <Column id="pid" type="STRING" size="256"/>
  334. <Column id="hngnm" type="STRING" size="256"/>
  335. <Column id="rrgstno1" type="STRING" size="256"/>
  336. <Column id="rrgstno2" type="STRING" size="256"/>
  337. <Column id="acptdd" type="STRING" size="256"/>
  338. <Column id="inhospyn" type="STRING" size="256"/>
  339. </ColumnInfo>
  340. <Rows>
  341. <Row/>
  342. </Rows>
  343. </Dataset>
  344. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  345. <ColumnInfo>
  346. <Column id="pid" type="STRING" size="256"/>
  347. <Column id="hngnm" type="STRING" size="256"/>
  348. </ColumnInfo>
  349. <Rows>
  350. <Row/>
  351. </Rows>
  352. </Dataset>
  353. <Dataset id="ds_hidden_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  354. <ColumnInfo>
  355. <Column id="pid" type="STRING" size="256"/>
  356. <Column id="name" type="STRING" size="256"/>
  357. <Column id="sexflag" type="STRING" size="256"/>
  358. <Column id="sexflag2" type="STRING" size="256"/>
  359. <Column id="age" type="STRING" size="256"/>
  360. <Column id="nsgbrcd" type="STRING" size="256"/>
  361. <Column id="nsgbrcd2" type="STRING" size="256"/>
  362. </ColumnInfo>
  363. <Rows>
  364. <Row/>
  365. </Rows>
  366. </Dataset>
  367. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  368. <ColumnInfo>
  369. <Column id="data" type="STRING" size="256"/>
  370. </ColumnInfo>
  371. <Rows>
  372. <Row/>
  373. </Rows>
  374. </Dataset>
  375. </Objects>
  376. <Bind>
  377. <BindItem id="item1" compid="group1.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
  378. <BindItem id="item2" compid="group1.cmb_orddept" propid="value" datasetid="ds_main_cond" columnid="orddept"/>
  379. </Bind>
  380. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  381. * System Name :
  382. * Job Name :
  383. * Creator :
  384. * Make Date : 2015-11-13
  385. * Description :
  386. *---------------------------------------------------------------------------------------
  387. * Modify Date Modifier Modify Description
  388. *---------------------------------------------------------------------------------------
  389. * 2015-11-13 Live Converter TF->XP
  390. *
  391. *---------------------------------------------------------------------------------------
  392. ****************************************************************************************/
  393. include "com_commonxp::comm_main.xjs";
  394. include "emr_prcpmngtxp::MMO001.xjs";
  395. include "lis_commonxp::LLZ001.xjs";
  396. include "lis_commonxp::LPZ001.xjs";
  397. include "lis_commonxp::LZZ002.xjs";
  398. include "com_basiccodexp::ZBC001.xjs";
  399. include "com_departmentcodexp::ZSD001.xjs";
  400. function SMASB00600_oninit(obj:Form, e:InitEventInfo)
  401. {
  402. //폼 초기화 함수
  403. frmf_initForm(obj);
  404. }
  405. function SMASB00600_onload(obj:Form, e:LoadEventInfo)
  406. {
  407. fInitialize();
  408. grdf_initGrid(grd_anitbiorstbtrpatlist);
  409. group1.cmb_termchoi.value = 'P';
  410. group1.ipt_fromdd.value = utlf_addDate(utlf_getCurrentDate(), -1);
  411. group1.ipt_todd.value = utlf_getCurrentDate();
  412. group1.rdo_bac.value = 'A';
  413. ds_main_cond.setColumn(0, "orddept", "");
  414. ds_main_cond.setColumn(0, "wardcd", "");
  415. frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick");
  416. }
  417. function fInitialize()
  418. {
  419. //진료과
  420. var instcd = sysf_getUserInfo("dutplceinstcd");
  421. var standard_yn = "orduseyn";
  422. var ord_deptflag = "D";
  423. var rslt_ref = "ds_init_deptlist"; //"/root/init/deptlist";
  424. var sort_field = "depthngnm";
  425. var sort_method = "asc";
  426. appf_getInOrdDeptList(instcd, sort_field, sort_method, "", "", rslt_ref, false, "");
  427. //fGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  428. frmf_addComboItem( "group1.cmb_orddept", "전체", "", "above" );
  429. //병동
  430. standard_yn = "orduseyn";
  431. ord_deptflag = "W";
  432. rslt_ref = "ds_init_warddeptlist";
  433. sort_field = "deptcd";
  434. sort_method = "asc";
  435. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, "", "", "", rslt_ref, false, "");
  436. frmf_addComboItem( "group1.cmb_wardcd", "전체", "", "above" );
  437. var oParam = {};
  438. oParam.id = "TRASB00602";
  439. oParam.service = "infcbaseapp.AntibioRstBtrMngt";
  440. oParam.method = "reqGetAntibioRstBtrFlagList";
  441. oParam.inds = "req=ds_req";
  442. oParam.outds = "ds_init_rstbtr=rstbtr";
  443. oParam.async = false;
  444. //oParam.callback = "cf_TRASB00602";
  445. tranf_submit(oParam);
  446. //체크박스
  447. var sProp1="col=5,row=3,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow=''";
  448. group1.cp_checkboxList00.setInitComp(sProp1, ds_init_rstbtr, "cdid", "cdnm", "fn_deptlist");
  449. fn_getdeptlist();
  450. }
  451. // /******************************************************************
  452. // * Argument :
  453. // * Description : 처방구분 - 재원/퇴원
  454. // ******************************************************************/
  455. function fn_deptlist()
  456. {
  457. var getData = String(group1.cp_checkboxList00.getData()).replace(","," ");
  458. ds_main_cond.setColumn(0, "nsgbrcd",getData);
  459. }
  460. // /******************************************************************
  461. // * Argument :
  462. // * Description : 처방구분 - 재원/퇴원
  463. // ******************************************************************/
  464. function fn_getdeptlist()
  465. {
  466. var getData = utlf_transNullToEmpty(ds_main_cond.getColumn(0, "nsgbrcd")).split(" ");
  467. if(!utlf_isNull(getData))
  468. {
  469. group1.cp_checkboxList00.setData(getData);
  470. }
  471. }
  472. //기간선택
  473. function group1_cmb_termchoi_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  474. {
  475. var term = group1.cmb_termchoi.value;
  476. if(term == "I")
  477. {
  478. group1.ipt_fromdd.enable = false;
  479. group1.ipt_todd.enable = false;
  480. ds_main_cond.setColumn(0, "fromdd", "");
  481. ds_main_cond.setColumn(0, "todd", "");
  482. }
  483. else
  484. {
  485. group1.ipt_fromdd.enable = true;
  486. group1.ipt_fromdd.enable = true;
  487. }
  488. }
  489. //조회
  490. function search()
  491. {
  492. ds_main_cond.setColumn(0, "fromdd", group1.ipt_fromdd.value);
  493. ds_main_cond.setColumn(0, "todd", group1.ipt_todd.value);
  494. ds_main_cond.setColumn(0, "termchoi", group1.cmb_termchoi.value);
  495. ds_main_cond.setColumn(0, "orddept", group1.cmb_orddept.value);
  496. ds_main_cond.setColumn(0, "wardcd", group1.cmb_wardcd.value);
  497. if( utlf_isNull(group1.cmb_termchoi.value))
  498. {
  499. sysf_messageBox("조회기준을", "C002");
  500. return;
  501. }
  502. if(group1.cmb_termchoi.value != "I" && ( utlf_isNull(group1.ipt_todd.value)|| utlf_isNull(group1.ipt_todd.value)))
  503. {
  504. sysf_messageBox("기간을", "C002");
  505. return;
  506. }
  507. var bac = ds_main_cond.getColumn(0, "bac");
  508. if( !utlf_isNull(bac))
  509. {
  510. bac=bac.toUpperCase();
  511. ds_main_cond.setColumn(0, "bac", bac);
  512. }
  513. var oParam = {};
  514. oParam.id = "TRASB00601";
  515. oParam.service = "infcbaseapp.AntibioRstBtrMngt";
  516. oParam.method = "reqGetAntibioRstBtrPatList";
  517. oParam.inds = "req=ds_main_cond";
  518. oParam.outds = "ds_grd_antibiorstbtrpatlist=antibiorstbtrpatlist";
  519. oParam.async = false;
  520. //oParam.callback = "cf_TRASB00601";
  521. tranf_submit(oParam);
  522. }
  523. //조회
  524. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  525. {
  526. search();
  527. }
  528. //전체선택
  529. function btn_prntchoi_onclick(obj:Button, e:ClickEventInfo)
  530. {
  531. for(var i = 0; i < grd_anitbiorstbtrpatlist.rowcount; i++)
  532. {
  533. ds_grd_antibiorstbtrpatlist.setColumn(i, "select", 1);
  534. }
  535. }
  536. //전체취소
  537. function btn_choicncl_onclick(obj:Button, e:ClickEventInfo)
  538. {
  539. for(var i = 0; i <grd_anitbiorstbtrpatlist.rowcount; i++)
  540. {
  541. ds_grd_antibiorstbtrpatlist.setColumn(i, "select", 0);
  542. }
  543. }
  544. //정렬
  545. function btn_sort_onclick(obj:Button, e:ClickEventInfo)
  546. {
  547. var tmpCol = ds_sortcond.getColumn(0, "cond1");
  548. var tmpsort = ds_sortcond.getColCount(0, "cond2");
  549. if (tmpsort == "asc" && tmpCol > 0 )
  550. {
  551. ds_grd_antibiorstbtrpatlist.keystring = "S:+"+tmpCol;
  552. }
  553. else
  554. {
  555. ds_grd_antibiorstbtrpatlist.keystring = "S:-"+tmpCol;
  556. }
  557. var tmpCol = ds_sortcond.getColumn(0, "cond3");
  558. var tmpcort = ds_sortcond.getColumn(0, "cond4");
  559. if(tmpsort == "asc" && tmpCol > 0)
  560. {
  561. ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
  562. }
  563. else
  564. {
  565. ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
  566. }
  567. var tmpCol = ds_sortcond.getColumn(0, "cond5");
  568. var tmpsort = ds_sortcond.getColumn(0, "cond6");
  569. if(tmpsort == "asc" && tmpCol > 0)
  570. {
  571. ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
  572. }
  573. else
  574. {
  575. ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
  576. }
  577. var tmpCol = ds_sortcond.getColumn(0, "cond7");
  578. var tmpsort = ds_sortcond.getColumn(0, "cond8");
  579. if(tmpsort == "asc" && tmpCol > 0)
  580. {
  581. ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
  582. }
  583. else
  584. {
  585. ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
  586. }
  587. var tmpCol = ds_sortcond.getColumn(0, "cond9");
  588. var tmpsort = ds_sortcond.getColumn(0, "cond10");
  589. if(tmpsort == "asc" && tmpCol > 0)
  590. {
  591. ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
  592. }
  593. else
  594. {
  595. ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
  596. }
  597. }
  598. //환자명조회
  599. function patinfo()
  600. {
  601. if( !utlf_isNull(group1.ipt_pid.value))
  602. {
  603. ds_send_reqdata.setColumn(0, "pid", group1.ipt_pid.value);
  604. ds_send_reqdata.setColumn(0, "srchcond", "1");
  605. }
  606. if( !utlf_isNull(group1.ipt_patnm))
  607. {
  608. ds_send_reqdata.setColumn(0, "hngnm", group1.ipt_patnm.value);
  609. ds_send_reqdata.setColumn(0, "srchcond", "2");
  610. }
  611. var objArg = new Object();
  612. objArg.arg_ds_send = ds_send_reqdata;
  613. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, null, null, null, null, null, null, null, null, "M");
  614. if(!utlf_isNull(this.objects["ds_patinfolist"]))
  615. {
  616. var sPid = ds_patinfolist.getColumn(0, "pid");
  617. var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
  618. group1.ipt_pid.value = sPid;
  619. group1.ipt_patnm.value = sHngnm;
  620. }
  621. }
  622. //환자명조회
  623. function group1_btn_patInfo_onclick(obj:Button, e:ClickEventInfo)
  624. {
  625. patinfo();
  626. }
  627. //상단정보조회
  628. function fReqOpPatPamInfo()
  629. {
  630. var iRow = ds_grd_antibiorstbtrpatlist.rowposition;
  631. var ioflag = "I";
  632. var pid = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "pid");
  633. var indd = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "indd");
  634. var cretno = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "cretno");
  635. var seqno = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "seqno");
  636. var instcd = sysf_getUserInfo("dutplceinstcd");
  637. var srchdd = utlf_getCurrentDate();
  638. var param= ioflag + "▦" //입원환자
  639. + pid + "▦"
  640. + indd + "▦"
  641. + cretno + "▦"
  642. + instcd + "▦";
  643. appf_initPatientInfo(param);
  644. }
  645. function grd_anitbiorstbtrpatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  646. {
  647. fReqOpPatPamInfo();
  648. }
  649. //우클릭조회
  650. function grd_anitbiorstbtrpatlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  651. {
  652. frmf_setPopupMenuDs( "pmn_popupMenu", [{id: "fAntibioDetlListPopup", level: "0", title: "항생제내성균상세내역조회", }
  653. , {id: "fHospInfcReptPopup", level: "0", title: "병원감염보고서등록"}
  654. ]);
  655. pmn_popupMenu.trackPopup(e.screenX,e.screenY);
  656. }
  657. //우클릭조회
  658. function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  659. {
  660. if(e.id == "fAntibioDetlListPopup")
  661. {
  662. fAntibioDetlListPopup();
  663. }
  664. else
  665. {
  666. fHospInfcReptPopup();
  667. }
  668. }
  669. //항생제내성균상세내역조회
  670. function fAntibioDetlListPopup()
  671. {
  672. var row = grd_anitbiorstbtrpatlist.currentrow;
  673. ds_hidden_cond.setColumn(0, "pid", ds_grd_antibiorstbtrpatlist.getColumn(row, "pid"));
  674. ds_hidden_cond.setColumn(0, "name", ds_grd_antibiorstbtrpatlist.getColumn(row, "patnm"));
  675. ds_hidden_cond.setColumn(0, "sexflag", ds_grd_antibiorstbtrpatlist.getColumn(row, "sexflag"));
  676. ds_hidden_cond.setColumn(0, "age", ds_grd_antibiorstbtrpatlist.getColumn(row, "age"));
  677. ds_hidden_cond.setColumn(0, "nsgbrcd", ds_grd_antibiorstbtrpatlist.getColumn(row, "nsgbrcd"));
  678. var objArg = new Object();
  679. objArg.arg_ds_send = ds_hidden_cond;
  680. frmf_modal("SPASB00700", "SPASB00700", objArg, null, null, null, null, null, null, null, null, null, "M");
  681. }
  682. //병원감염보고서등록
  683. function fHospInfcReptPopup()
  684. {
  685. var sessionPID = appf_getPatientId();
  686. var iRow = ds_grd_antibiorstbtrpatlist.rowposition;
  687. if(sessionPID != ds_grd_antibiorstbtrpatlist.getColumn(iRow, "pid"))
  688. {
  689. fReqOpPatPamInfo();
  690. }
  691. var rtnmsg_header = "reptdd▦ispccd▦spcnm▦ibaccd▦bacnm▦nsgbrcode▦nsgbrcd▦iprcpdd▦ibcolldt▦itclscd▦itestcd▦ibcno▦spcacptdt▩";
  692. var rtnmsg_data="";
  693. rtnmsg_data += utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "reptdd")) + "▦"
  694. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ispccd")) + "▦"
  695. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "spcnm")) + "▦"
  696. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibaccd")) + "▦"
  697. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "bacnm")) + "▦"
  698. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "nsgbrcode")) + "▦"
  699. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "nsgbrcd")) + "▦"
  700. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "iprcpdd")) + "▦"
  701. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibcolldt")) + "▦"
  702. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "itclscd")) + "▦"
  703. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "itestcd")) + "▦"
  704. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibcno")) + "▦"
  705. + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibcolldt")) + "▦"
  706. frmf_setParameter("setVal12", rtnmsg_header + rtnmsg_data);
  707. frmf_open("SMASI00100", "SMASI00100", null, null, null, null, null, null, null, null, null, null, "M");
  708. }
  709. //환자명조회
  710. function group1_ipt_patnm_onkeydown(obj:Edit, e:KeyEventInfo)
  711. {
  712. if(e.keycode == 13)
  713. {
  714. patinfo();
  715. }
  716. }
  717. //조회
  718. function group1_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
  719. {
  720. if(e.keycode == 13)
  721. {
  722. search();
  723. }
  724. }
  725. //초기화
  726. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  727. {
  728. this.reload();
  729. }
  730. //저장
  731. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  732. {
  733. if( utlf_isNull(ds_grd_antibiorstbtrpatlist.getColumn(0, "pid")))
  734. {
  735. sysf_messageBox("저장할 데이터가", "I004");
  736. return;
  737. }
  738. else
  739. {
  740. var selstatus;
  741. var nChksave;
  742. //데이터셋 구조 복사
  743. ds_send_savedata.copyData(ds_grd_antibiorstbtrpatlist);
  744. ds_send_savedata.clearData();
  745. for(var i = 0; i < ds_grd_antibiorstbtrpatlist.rowcount; i++)
  746. {
  747. selstatus = ds_grd_antibiorstbtrpatlist.getColumn(i, "select");
  748. //alert(ds_grd_antibiorstbtrpatlist.getColumn(i, "select"));
  749. if(selstatus == 1)
  750. {
  751. nChksave = "Y";
  752. //
  753. var nRow= ds_send_savedata.addRow();
  754. ds_send_savedata.copyRow(nRow,ds_grd_antibiorstbtrpatlist,i);
  755. ds_send_savedata.setColumn(nRow,"select","true");
  756. ds_send_savedata.addColumn("m","string",256);
  757. ds_send_savedata.setColumn(nRow,"m","i");
  758. //
  759. var oParam = {};
  760. oParam.id = "TXASB00601";
  761. oParam.service = "infcbaseapp.AntibioRstBtrMngt";
  762. oParam.method = "reqExeSaveAntibioRstBtrPatCdList";
  763. oParam.inds = "req=ds_send_savedata";
  764. oParam.outds = "ds_grd_antibiorstbtrpatlist=anitbiorstbtrpatdetllist";
  765. oParam.async = false;
  766. //oParam.callback = "cf_TXASB00601";
  767. tranf_submit(oParam);
  768. //alert("저장");
  769. }
  770. }
  771. if(utlf_isNull(nChksave))
  772. {
  773. sysf_messageBox("저장할 데이터를", "C002");
  774. }
  775. }
  776. //데이터셋 구조 삭제
  777. //ds_send_savedata.clear();
  778. //
  779. nChksave="";
  780. }
  781. function grp_btn_btn_print_onclick(obj:Button, e:ClickEventInfo)
  782. {
  783. }
  784. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  785. {
  786. grdf_exportExcel(grd_anitbiorstbtrpatlist, "항생제내성균환자_", "SheetName", false, "", "user", false);
  787. }
  788. function btn_tsrch_onclick(obj:Button, e:ClickEventInfo)
  789. {
  790. frmf_open("SMASB00601", "SMASB00601", null, null, null, null, null, null, null, null, null, null, "M"); ///open("SMMNR00900");
  791. }
  792. ]]></Script>
  793. </Form>
  794. </FDL>