SMSTP00700_입원환자일계표.xfdl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSTP00700" position="absolute 0 0 1173 770" titletext="입원환자 일계표" onload="SMSTP00700_onload" oninit="SMSTP00700_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="입원환자 일계표" class="tit_1" position="absolute 0 0 135 25" anchor="left top"/>
  8. <Button id="btn_clear" taborder="1" text="초기화" onclick="group4_btn_clear_onclick" class="btn4" position="absolute 1103 744 1171 766" anchor="right bottom"/>
  9. <Div id="group2" anchor="left top right" taborder="2" style="align: top;" class="div_SA" position="absolute 0 25 1171 65">
  10. <Layouts>
  11. <Layout width="1172" height="35">
  12. <Static id="caption2" text="기준일자 :" class="search_name" position="absolute 16 12 102 29" anchor="left top"/>
  13. <Button id="button1" taborder="0" text="조회" onclick="group2_button1_onclick" class="btn1" position="absolute 1099 10 1155 32" anchor="top right"/>
  14. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1090 10 1093 32" anchor="top right" style="border: solid #ffe4bb #ffe4bb;"/>
  15. <Calendar id="ipt_pid" taborder="1" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 97 11 197 30" anchor="left top" onkeypress="group2_ipt_pid_onkeypress"/>
  16. <Static id="caption1" text="통계구분 :" class="search_name" position="absolute 334 12 420 29" anchor="left top"/>
  17. <Radio id="radio1" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 415 11 823 31" anchor="left top" columncount="-1" rowcount="-1" onitemchanged="group2_radio1_onitemchanged">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">D</Col>
  26. <Col id="datacolumn">입원환자 일계표</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">W</Col>
  30. <Col id="datacolumn">병상별 환자 현황</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">B</Col>
  34. <Col id="datacolumn">병동별 환자 현황</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">S</Col>
  38. <Col id="datacolumn">요일별 통계</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Radio>
  43. <Calendar id="input1" taborder="2" autoselect="true" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 222 11 322 30" anchor="left top" onkeypress="group2_input1_onkeypress"/>
  44. <Static id="caption3" text="~" position="absolute 208 15 217 30" anchor="left top"/>
  45. <Combo id="combo1" taborder="4" innerdataset="ds_hidden_init_insukind" codecolumn="cd" datacolumn="nm" visible="false" position="absolute 969 11 1069 30" anchor="left top" columncount="-1" rowcount="-1"/>
  46. <Static id="caption9" text="보험유형 :" class="search_name" visible="false" position="absolute 884 12 974 29" anchor="left top"/>
  47. <CheckBox id="bool1" taborder="5" value="N" truevalue="Y" falsevalue="N" visible="false" position="absolute 849 12 864 28" anchor="left top"/>
  48. </Layout>
  49. </Layouts>
  50. </Div>
  51. <Tab id="switch1" anchor="all" taborder="3" tabindex="1" position="absolute 0 55 1171 746" style="buttonbackground:stretch 10,10;background:stretch 10,26;border:0 solid #ffffffff #ffffffff;">
  52. <Tabpages>
  53. <Tabpage id="case_d" selected="true">
  54. <Layouts>
  55. <Layout>
  56. <Shape id="line1" class="line_10" position="absolute 0 29 1170 33" anchor="left top right"/>
  57. <Grid id="grd_d" class="datagrid2" taborder="3" binddataset="ds_main_dept_datalist" useinputpanel="false" position="absolute 0 33 1170 673" anchor="all" style="align:center ;" autoenter="select" cellsizingtype="col">
  58. <Formats>
  59. <Format id="default">
  60. <Columns>
  61. <Column size="24"/>
  62. <Column size="120"/>
  63. <Column size="90"/>
  64. <Column size="90"/>
  65. <Column size="90"/>
  66. <Column size="90"/>
  67. <Column size="90"/>
  68. <Column size="90"/>
  69. <Column size="90"/>
  70. <Column size="90"/>
  71. <Column size="90"/>
  72. <Column size="90"/>
  73. <Column size="90"/>
  74. <Column size="90"/>
  75. </Columns>
  76. <Rows>
  77. <Row size="32" band="head"/>
  78. <Row size="23"/>
  79. </Rows>
  80. <Band id="head">
  81. <Cell/>
  82. <Cell col="1" text="진료과"/>
  83. <Cell col="2" text="진료의사"/>
  84. <Cell col="3" text="전일재원수"/>
  85. <Cell col="4" text="입원환자수"/>
  86. <Cell col="5" text="퇴원환자수"/>
  87. <Cell col="6" text="당일입퇴원&#10;환자수"/>
  88. <Cell col="7" text="퇴원연인원"/>
  89. <Cell col="8" text="전과증가"/>
  90. <Cell col="9" text="전과감소"/>
  91. <Cell col="10" text="금일재원수"/>
  92. <Cell col="11" text="평균&#10;재원일수"/>
  93. <Cell col="12" text="선택진료수"/>
  94. <Cell col="13" text="선택진료비율"/>
  95. <Cell col="14" text="최종수정일시"/>
  96. </Band>
  97. <Band id="body">
  98. <Cell celltype="head" expr="currow + 1"/>
  99. <Cell col="1" style="align:center middle;" text="bind:orddeptnm"/>
  100. <Cell col="2" style="align:center middle;" text="bind:medispclnm"/>
  101. <Cell col="3" displaytype="number" style="align:center middle;" text="bind:yesterday_adm_cnt"/>
  102. <Cell col="4" displaytype="number" style="align:center middle;" text="bind:today_in_cnt"/>
  103. <Cell col="5" displaytype="number" style="align:center middle;" text="bind:today_dsch_cnt"/>
  104. <Cell col="6" displaytype="number" style="align:center middle;" text="bind:today_indsch_cnt"/>
  105. <Cell col="7" displaytype="number" style="align:center middle;" text="bind:today_dsch_daycnt"/>
  106. <Cell col="8" displaytype="number" style="align:center middle;" text="bind:change_add"/>
  107. <Cell col="9" displaytype="number" style="align:center middle;" text="bind:change_redu"/>
  108. <Cell col="10" displaytype="number" style="align:center middle;" text="bind:today_adm_cnt"/>
  109. <Cell col="11" displaytype="number" style="align:center middle;" text="bind:avrg_adm_cnt"/>
  110. <Cell col="12" displaytype="number" style="align:center middle;" text="bind:spec_cnt"/>
  111. <Cell col="13" style="align:center middle;" text="bind:spec_ratio"/>
  112. </Band>
  113. </Format>
  114. </Formats>
  115. </Grid>
  116. <Static id="caption7" text="입원환자 일계표" class="tit_2" position="absolute 0 12 140 30" anchor="left top"/>
  117. <CheckBox id="chkDoct" taborder="4" text="진료의사별 조회" value="N" truevalue="Y" falsevalue="N" position="absolute 128 9 243 29" anchor="left top" innerdataset="[object Dataset]" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" titletext="CheckBox List" scrollbars="none" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="100" onclick="switch1_case_d_chkDoct_onclick">
  118. <Dataset id="innerdataset">
  119. <ColumnInfo>
  120. <Column id="codecolumn"/>
  121. <Column id="datacolumn"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row>
  125. <Col id="codecolumn">Y</Col>
  126. <Col id="datacolumn">진료의사별 조회</Col>
  127. </Row>
  128. </Rows>
  129. </Dataset>
  130. </CheckBox>
  131. </Layout>
  132. </Layouts>
  133. </Tabpage>
  134. <Tabpage id="case_w">
  135. <Layouts>
  136. <Layout>
  137. <Grid id="grd_w" class="datagrid2" taborder="0" binddataset="ds_main_ward_datalist" useinputpanel="false" extendsizetype="row" position="absolute 0 32 1170 672" anchor="all" style="align:center ;" autoenter="select" cellsizingtype="col" oncellclick="switch1_case_w_grd_w_oncellclick" autofittype="col">
  138. <Formats>
  139. <Format id="default">
  140. <Columns>
  141. <Column size="24"/>
  142. <Column size="100"/>
  143. <Column size="38"/>
  144. <Column size="38"/>
  145. <Column size="38"/>
  146. <Column size="38"/>
  147. <Column size="38"/>
  148. <Column size="38"/>
  149. <Column size="38"/>
  150. <Column size="38"/>
  151. <Column size="38"/>
  152. <Column size="38"/>
  153. <Column size="38"/>
  154. <Column size="38"/>
  155. <Column size="38"/>
  156. <Column size="38"/>
  157. <Column size="38"/>
  158. <Column size="38"/>
  159. <Column size="38"/>
  160. <Column size="38"/>
  161. <Column size="38"/>
  162. <Column size="38"/>
  163. <Column size="38"/>
  164. <Column size="38"/>
  165. <Column size="110"/>
  166. <Column size="110"/>
  167. </Columns>
  168. <Rows>
  169. <Row size="32" band="head"/>
  170. <Row size="23"/>
  171. </Rows>
  172. <Band id="head">
  173. <Cell/>
  174. <Cell col="1" text="병동"/>
  175. <Cell col="2" colspan="2" text="특실" taborder="undefined"/>
  176. <Cell col="4" colspan="2" text="1인실" taborder="undefined"/>
  177. <Cell col="6" colspan="2" text="2인실" taborder="undefined"/>
  178. <Cell col="8" colspan="2" text="3인실" taborder="undefined"/>
  179. <Cell col="10" colspan="2" text="4인실" taborder="undefined"/>
  180. <Cell col="12" colspan="2" text="5인실" taborder="undefined"/>
  181. <Cell col="14" colspan="2" text="6인실" taborder="undefined"/>
  182. <Cell col="16" colspan="2" text="7인실" taborder="undefined"/>
  183. <Cell col="18" colspan="2" text="8인실" taborder="undefined"/>
  184. <Cell col="20" colspan="2" text="중환자실" taborder="undefined"/>
  185. <Cell col="22" colspan="2" text="합계" taborder="undefined"/>
  186. <Cell col="24" text="병동별 가동율(%)"/>
  187. <Cell col="25" text="평균 가동율(%)"/>
  188. </Band>
  189. <Band id="body">
  190. <Cell celltype="head" expr="currow + 1"/>
  191. <Cell col="1" style="align:center top;padding:5 2 3 2;" text="bind:ward" wordwrap="word"/>
  192. <Cell col="2" text="bind:ward_vip_tot"/>
  193. <Cell col="3" text="bind:ward_vip_cnt"/>
  194. <Cell col="4" text="bind:ward_1_tot"/>
  195. <Cell col="5" text="bind:ward_1_cnt"/>
  196. <Cell col="6" text="bind:ward_2_tot"/>
  197. <Cell col="7" text="bind:ward_2_cnt"/>
  198. <Cell col="8" text="bind:ward_3_tot"/>
  199. <Cell col="9" text="bind:ward_3_cnt"/>
  200. <Cell col="10" text="bind:ward_4_tot"/>
  201. <Cell col="11" text="bind:ward_4_cnt"/>
  202. <Cell col="12" text="bind:ward_5_tot"/>
  203. <Cell col="13" text="bind:ward_5_cnt"/>
  204. <Cell col="14" text="bind:ward_6_tot"/>
  205. <Cell col="15" text="bind:ward_6_cnt"/>
  206. <Cell col="16" text="bind:ward_7_tot"/>
  207. <Cell col="17" text="bind:ward_7_cnt"/>
  208. <Cell col="18" text="bind:ward_8_tot"/>
  209. <Cell col="19" text="bind:ward_8_cnt"/>
  210. <Cell col="20" text="bind:ward_sd_tot"/>
  211. <Cell col="21" text="bind:ward_sd_cnt"/>
  212. <Cell col="22" text="bind:ward_tot"/>
  213. <Cell col="23" text="bind:ward_cnt"/>
  214. <Cell col="24" displaytype="number" style="align:center middle;" text="bind:ward_use"/>
  215. <Cell col="25" displaytype="number" style="align:center middle;" text="bind:avg_use"/>
  216. </Band>
  217. </Format>
  218. </Formats>
  219. </Grid>
  220. <Shape id="line2" class="line_10" position="absolute 0 28 1170 32" anchor="left top right"/>
  221. <Static id="caption4" text="병상별 환자 현황" class="tit_2" position="absolute 0 11 124 28"/>
  222. </Layout>
  223. </Layouts>
  224. </Tabpage>
  225. <Tabpage id="case_b">
  226. <Layouts>
  227. <Layout>
  228. <Grid id="grd_b" class="datagrid2" taborder="1" binddataset="ds_main_wardbed_datalist" useinputpanel="false" position="absolute 0 32 1170 672" anchor="all" style="align:center ;" autoenter="select" cellsizingtype="col">
  229. <Formats>
  230. <Format id="default">
  231. <Columns>
  232. <Column size="24"/>
  233. <Column size="100"/>
  234. <Column size="100"/>
  235. <Column size="100"/>
  236. <Column size="100"/>
  237. <Column size="100"/>
  238. </Columns>
  239. <Rows>
  240. <Row size="23" band="head"/>
  241. <Row size="23"/>
  242. </Rows>
  243. <Band id="head">
  244. <Cell/>
  245. <Cell col="1" text="병동"/>
  246. <Cell col="2" text="입원"/>
  247. <Cell col="3" text="재원"/>
  248. <Cell col="4" text="퇴원"/>
  249. <Cell col="5" text="보험유형"/>
  250. </Band>
  251. <Band id="body">
  252. <Cell celltype="head" expr="currow + 1"/>
  253. <Cell col="1" text="bind:ward"/>
  254. <Cell col="2" displaytype="number" style="align:center middle;" text="bind:incnt"/>
  255. <Cell col="3" displaytype="number" style="align:center middle;" text="bind:admcnt"/>
  256. <Cell col="4" displaytype="number" style="align:center middle;" text="bind:dschcnt"/>
  257. <Cell col="5" text="bind:insukind"/>
  258. </Band>
  259. </Format>
  260. </Formats>
  261. </Grid>
  262. <Shape id="line3" class="line_10" position="absolute 0 28 1170 32" anchor="left top right"/>
  263. <Static id="caption5" text="병동별 환자 현황" class="tit_2" position="absolute 1 11 141 28" anchor="left top"/>
  264. </Layout>
  265. </Layouts>
  266. </Tabpage>
  267. <Tabpage id="case_s">
  268. <Layouts>
  269. <Layout>
  270. <Grid id="grd_s" class="datagrid2" taborder="1" binddataset="ds_main_weekday_datalist" useinputpanel="false" position="absolute 0 32 1170 672" anchor="all" style="align:center ;" autoenter="select" cellsizingtype="col">
  271. <Formats>
  272. <Format id="default">
  273. <Columns>
  274. <Column size="24"/>
  275. <Column size="100"/>
  276. <Column size="100"/>
  277. <Column size="150"/>
  278. <Column size="75"/>
  279. <Column size="75"/>
  280. <Column size="75"/>
  281. <Column size="75"/>
  282. <Column size="75"/>
  283. <Column size="75"/>
  284. <Column size="75"/>
  285. <Column size="75"/>
  286. </Columns>
  287. <Rows>
  288. <Row size="23" band="head"/>
  289. <Row size="23"/>
  290. </Rows>
  291. <Band id="head">
  292. <Cell/>
  293. <Cell col="1" text="시작일"/>
  294. <Cell col="2" text="종료일"/>
  295. <Cell col="3" text="구분"/>
  296. <Cell col="4" text="월요일"/>
  297. <Cell col="5" text="화요일"/>
  298. <Cell col="6" text="수요일"/>
  299. <Cell col="7" text="목요일"/>
  300. <Cell col="8" text="금요일"/>
  301. <Cell col="9" text="토요일"/>
  302. <Cell col="10" text="일요일"/>
  303. <Cell col="11" text="합계"/>
  304. </Band>
  305. <Band id="body">
  306. <Cell celltype="head" expr="currow + 1"/>
  307. <Cell col="1" displaytype="date" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  308. <Cell col="2" displaytype="date" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  309. <Cell col="3" style="align:left middle;" text="bind:gubn"/>
  310. <Cell col="4" displaytype="number" style="align:center middle;" text="bind:mon"/>
  311. <Cell col="5" displaytype="number" style="align:center middle;" text="bind:tue"/>
  312. <Cell col="6" displaytype="number" style="align:center middle;" text="bind:wed"/>
  313. <Cell col="7" displaytype="number" style="align:center middle;" text="bind:thu"/>
  314. <Cell col="8" displaytype="number" style="align:center middle;" text="bind:fri"/>
  315. <Cell col="9" displaytype="number" style="align:center middle;" text="bind:sat"/>
  316. <Cell col="10" displaytype="number" style="align:center middle;" text="bind:sun"/>
  317. <Cell col="11" displaytype="number" style="align:center middle;" text="bind:tot"/>
  318. </Band>
  319. </Format>
  320. </Formats>
  321. </Grid>
  322. <Shape id="line4" class="line_10" position="absolute 0 28 1170 32" anchor="left top right"/>
  323. <Static id="caption8" text="요일별 통계" class="tit_2" position="absolute 0 11 92 28" anchor="left top"/>
  324. </Layout>
  325. </Layouts>
  326. </Tabpage>
  327. </Tabpages>
  328. </Tab>
  329. <Button id="btn_updtexcel" taborder="4" text="엑셀저장" onclick="group1_btn_updtexcel_onclick" class="btn7" position="absolute 1095 76 1170 95" anchor="top right"/>
  330. </Layout>
  331. </Layouts>
  332. <Objects>
  333. <Dataset id="ds_init_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  334. <ColumnInfo>
  335. <Column id="statisticflag" type="STRING" size="256"/>
  336. <Column id="fromdd" type="STRING" size="256"/>
  337. <Column id="todd" type="STRING" size="256"/>
  338. <Column id="srchflag" type="STRING" size="256"/>
  339. <Column id="insukind" type="STRING" size="256"/>
  340. <Column id="insukindyn" type="STRING" size="256"/>
  341. </ColumnInfo>
  342. <Rows>
  343. <Row>
  344. <Col id="statisticflag"/>
  345. <Col id="fromdd"/>
  346. <Col id="todd"/>
  347. <Col id="srchflag"/>
  348. <Col id="insukind"/>
  349. <Col id="insukindyn"/>
  350. </Row>
  351. </Rows>
  352. </Dataset>
  353. <Dataset id="ds_main_dept_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  354. <ColumnInfo>
  355. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  356. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  357. <Column id="medispcl" type="STRING" size="256" sumtext="진료의사"/>
  358. <Column id="medispclnm" type="STRING" size="256" sumtext="진료의사명"/>
  359. <Column id="yesterday_adm_cnt" type="STRING" size="256" sumtext="전일재원수"/>
  360. <Column id="today_in_cnt" type="STRING" size="256" sumtext="입원환자수"/>
  361. <Column id="today_dsch_cnt" type="STRING" size="256" sumtext="퇴원환자수"/>
  362. <Column id="today_indsch_cnt" type="STRING" size="256" sumtext="당일입퇴원환자수"/>
  363. <Column id="today_dsch_daycnt" type="STRING" size="256" sumtext="퇴원연인원"/>
  364. <Column id="change_add" type="STRING" size="256" sumtext="전과증가"/>
  365. <Column id="change_redu" type="STRING" size="256" sumtext="전과감소"/>
  366. <Column id="today_adm_cnt" type="STRING" size="256" sumtext="금일재원수"/>
  367. <Column id="avrg_adm_cnt" type="STRING" size="256" sumtext="평균재원환자수"/>
  368. <Column id="spec_cnt" type="STRING" size="256" sumtext="선택진료수"/>
  369. <Column id="spec_ratio" type="STRING" size="256" sumtext="선택진료비율"/>
  370. </ColumnInfo>
  371. </Dataset>
  372. <Dataset id="ds_main_ward_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  373. <ColumnInfo>
  374. <Column id="ward" type="STRING" size="256" sumtext="병동"/>
  375. <Column id="ward_vip_tot" type="STRING" size="256" sumtext="특실병실수"/>
  376. <Column id="ward_vip_cnt" type="STRING" size="256" sumtext="특실재실수"/>
  377. <Column id="ward_1_tot" type="STRING" size="256" sumtext="1인실병실수"/>
  378. <Column id="ward_1_cnt" type="STRING" size="256" sumtext="1인재실수"/>
  379. <Column id="ward_2_tot" type="STRING" size="256" sumtext="2인실병실수"/>
  380. <Column id="ward_2_cnt" type="STRING" size="256" sumtext="2인재실수"/>
  381. <Column id="ward_3_tot" type="STRING" size="256" sumtext="3인실병실수"/>
  382. <Column id="ward_3_cnt" type="STRING" size="256" sumtext="3인재실수"/>
  383. <Column id="ward_4_tot" type="STRING" size="256" sumtext="4인실병실수"/>
  384. <Column id="ward_4_cnt" type="STRING" size="256" sumtext="4인재실수"/>
  385. <Column id="ward_5_tot" type="STRING" size="256" sumtext="5인실병실수"/>
  386. <Column id="ward_5_cnt" type="STRING" size="256" sumtext="5인재실수"/>
  387. <Column id="ward_6_tot" type="STRING" size="256" sumtext="6인실병실수"/>
  388. <Column id="ward_6_cnt" type="STRING" size="256" sumtext="6인재실수"/>
  389. <Column id="ward_7_tot" type="STRING" size="256" sumtext="7인실병실수"/>
  390. <Column id="ward_7_cnt" type="STRING" size="256" sumtext="7인재실수"/>
  391. <Column id="ward_8_tot" type="STRING" size="256" sumtext="8인실병실수"/>
  392. <Column id="ward_8_cnt" type="STRING" size="256" sumtext="8인재실수"/>
  393. <Column id="ward_sd_tot" type="STRING" size="256" sumtext="중환자실합계"/>
  394. <Column id="ward_sd_cnt" type="STRING" size="256" sumtext="중환자재실수"/>
  395. <Column id="ward_tot" type="STRING" size="256" sumtext="병실합계"/>
  396. <Column id="ward_cnt" type="STRING" size="256" sumtext="재실합계"/>
  397. <Column id="ward_use" type="STRING" size="256" sumtext="병동가동율"/>
  398. <Column id="avg_use" type="STRING" size="256" sumtext="평균가동율"/>
  399. </ColumnInfo>
  400. </Dataset>
  401. <Dataset id="ds_main_wardbed_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  402. <ColumnInfo>
  403. <Column id="ward" type="STRING" size="256" sumtext="병동"/>
  404. <Column id="incnt" type="STRING" size="256" sumtext="입원환자수"/>
  405. <Column id="admcnt" type="STRING" size="256" sumtext="재원환자수"/>
  406. <Column id="dschcnt" type="STRING" size="256" sumtext="퇴원환자수"/>
  407. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  408. </ColumnInfo>
  409. </Dataset>
  410. <Dataset id="ds_main_weekday_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  411. <ColumnInfo>
  412. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  413. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  414. <Column id="gubn" type="STRING" size="256" sumtext="구분"/>
  415. <Column id="mon" type="STRING" size="256" sumtext="월요일"/>
  416. <Column id="tue" type="STRING" size="256" sumtext="화요일"/>
  417. <Column id="wed" type="STRING" size="256" sumtext="수요일"/>
  418. <Column id="thu" type="STRING" size="256" sumtext="목요일"/>
  419. <Column id="fri" type="STRING" size="256" sumtext="금요일"/>
  420. <Column id="sat" type="STRING" size="256" sumtext="토요일"/>
  421. <Column id="sun" type="STRING" size="256" sumtext="일요일"/>
  422. <Column id="tot" type="STRING" size="256" sumtext="합계"/>
  423. </ColumnInfo>
  424. </Dataset>
  425. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  426. <ColumnInfo>
  427. <Column id="statisticflag" type="STRING" size="256"/>
  428. <Column id="fromdd" type="STRING" size="256"/>
  429. <Column id="todd" type="STRING" size="256"/>
  430. <Column id="srchflag" type="STRING" size="256"/>
  431. <Column id="insukind" type="STRING" size="256"/>
  432. <Column id="insukindyn" type="STRING" size="256"/>
  433. </ColumnInfo>
  434. <Rows>
  435. <Row>
  436. <Col id="statisticflag"/>
  437. <Col id="fromdd"/>
  438. <Col id="todd"/>
  439. <Col id="srchflag"/>
  440. <Col id="insukind"/>
  441. <Col id="insukindyn"/>
  442. </Row>
  443. </Rows>
  444. </Dataset>
  445. <Dataset id="ds_hidden_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  446. </Objects>
  447. <Bind>
  448. <BindItem id="item0" compid="group2.ipt_pid" propid="value" datasetid="ds_init_cond" columnid="fromdd"/>
  449. <BindItem id="item1" compid="group2.radio1" propid="value" datasetid="ds_init_cond" columnid="statisticflag"/>
  450. <BindItem id="item2" compid="group2.input1" propid="value" datasetid="ds_init_cond" columnid="todd"/>
  451. <BindItem id="item3" compid="group2.combo1" propid="value" datasetid="ds_init_cond" columnid="insukind"/>
  452. <BindItem id="item4" compid="group2.bool1" propid="value" datasetid="ds_init_cond" columnid="insukindyn"/>
  453. <BindItem id="item5" compid="switch1.case_d.chkDoct" propid="value" datasetid="ds_init_cond" columnid="srchflag"/>
  454. </Bind>
  455. <Script type="xscript4.0"><![CDATA[ include "com_commonxp::comm_main.xjs";
  456. include "com_basiccodexp::ZBC001.xjs";
  457. include "pam_pamcomnxp::PAM.xjs";
  458. include "pam_opatmngtxp::PMOCOM.xjs";
  459. var XXX_defSize = 90;
  460. function SMSTP00700_oninit(obj:Form, e:InitEventInfo)
  461. {
  462. frmf_initForm(obj);
  463. }
  464. function SMSTP00700_onload(obj:Form, e:LoadEventInfo)
  465. {
  466. grdf_initGrid(switch1.case_b.grd_b);
  467. grdf_initGrid(switch1.case_d.grd_d);
  468. grdf_initGrid(switch1.case_s.grd_s);
  469. grdf_initGrid(switch1.case_w.grd_w);
  470. switch1.case_d.grd_d.setFormatColProperty( 2, "size", 0);
  471. fInitialize();
  472. }
  473. function fInitialize()
  474. {
  475. ds_send.clearData();
  476. ds_send.addRow();
  477. ds_init_cond.clearData();
  478. ds_init_cond.addRow();
  479. ds_main_dept_datalist.clearData();
  480. ds_main_ward_datalist.clearData();
  481. ds_main_wardbed_datalist.clearData();
  482. ds_main_weekday_datalist.clearData();
  483. // 날자 입력 항목에 오늘 날자 세팅
  484. var curDate = utlf_getCurrentDate();
  485. ds_init_cond.setColumn( 0, "fromdd", curDate-1);
  486. ds_init_cond.setColumn( 0, "todd", curDate-1);
  487. ds_init_cond.setColumn( 0, "statisticflag", 'D');
  488. ds_init_cond.setColumn( 0, "statisticflag", 'W');
  489. // 원무사용 기초코드 조회(진료과,의사,할인,미수코드)
  490. dsf_makeValue(ds_init_cond, "sess_posinstcd", "string", sysf_getUserInfo("dutplceinstcd"));
  491. var oParam = {};
  492. oParam.id = "TRPAMCOM01";
  493. oParam.service = "pamcomnapp.PamComn";
  494. oParam.method = "reqGetComCD";
  495. oParam.inds = "req=ds_init_cond";
  496. oParam.outds = "=disccd ds_hidden_init_insukind=insukind =suppkind "
  497. +"=orddeptcd =orddrid =reducd "
  498. +"=uncocd ds_init_proccd= =subjno =rcptflag";
  499. oParam.async = false;
  500. //oParam.callback = "cf_TRPAMCOM01";
  501. tranf_submit(oParam);
  502. frmf_inputEnterKey("group2.radio1", "onitemchanged", new ItemChangeEventInfo );
  503. }
  504. function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  505. {
  506. var rsrvgubn = obj.value;
  507. if (rsrvgubn == "D")
  508. {
  509. switch1.tabindex = 0;
  510. group2.caption9.visible = false;
  511. group2.combo1.visible = false;
  512. group2.bool1.visible = false;
  513. }
  514. else if (rsrvgubn == "W")
  515. {
  516. switch1.tabindex = 1;
  517. group2.caption9.visible = false;
  518. group2.combo1.visible = false;
  519. group2.bool1.visible = false;
  520. }
  521. else if (rsrvgubn == "B")
  522. {
  523. switch1.tabindex = 2;
  524. group2.caption9.visible = true;
  525. group2.combo1.visible = true;
  526. group2.bool1.visible = true;
  527. }
  528. else if (rsrvgubn == "S")
  529. {
  530. switch1.tabindex = 3;
  531. group2.caption9.visible = false;
  532. group2.combo1.visible = false;
  533. group2.bool1.visible = false;
  534. }
  535. }
  536. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  537. {
  538. // 집계 대상 테이블 변경으로 인한 주석처리 PAM.PMIMSPAT -> STS.SDCHADPT 수정 by 조중래 20150812
  539. // if( ds_init_cond.getColumn(0, "statisticflag") == "W") {
  540. // //병상 집계기준 일자와 통합통계 기준일자가 달라서 병상 집계기준일자에 1일을 더해준다.
  541. // var fromdate = ds_init_cond.getColumn(0, "fromdd");
  542. // var todate = ds_init_cond.getColumn(0, "todd");
  543. // var fromdd = ((fromdate.toDate("YYYYMMDD")).getAddDate(1, "D")).getDateFormat("YYYYMMDD") ;
  544. // var todd = ((todate.toDate("YYYYMMDD")).getAddDate(1, "D")).getDateFormat("YYYYMMDD") ;
  545. //
  546. // ds_send.setColumn( 0, "fromdd", fromdd);
  547. // ds_send.setColumn( 0, "todd", todd);
  548. // } else {
  549. // ds_send.setColumn( 0, "fromdd", ds_init_cond.getColumn(0, "fromdd"));
  550. // ds_send.setColumn( 0, "todd", ds_init_cond.getColumn(0, "todd"));
  551. // }
  552. ds_send.setColumn( 0, "fromdd", ds_init_cond.getColumn(0, "fromdd"));
  553. ds_send.setColumn( 0, "todd", ds_init_cond.getColumn(0, "todd"));
  554. ds_send.setColumn( 0, "statisticflag", ds_init_cond.getColumn(0, "statisticflag"));
  555. ds_send.setColumn( 0, "srchflag", ds_init_cond.getColumn(0, "srchflag"));
  556. ds_send.setColumn( 0, "insukind", ds_init_cond.getColumn(0, "insukind"));
  557. ds_send.setColumn( 0, "insukindyn", ds_init_cond.getColumn(0, "insukindyn"));
  558. var oParam = {};
  559. oParam.id = "TRSTP00701";
  560. oParam.service = "stspamapp.StsPam";
  561. oParam.method = "reqGetInPatSts";
  562. oParam.inds = "req=ds_send";
  563. oParam.outds = "ds_main_dept_datalist=dept ds_main_ward_datalist=ward ds_main_wardbed_datalist=wardbed ds_main_weekday_datalist=weekday";
  564. oParam.async = false;
  565. oParam.callback = "cf_TXSTP00701";
  566. tranf_submit(oParam);
  567. }
  568. function cf_TXSTP00701(sSvcId, nErrorCode, sErrorMsg)
  569. {
  570. if(nErrorCode < 0) return;
  571. else
  572. {
  573. }
  574. }
  575. function switch1_case_d_chkDoct_onclick(obj:CheckBox, e:ClickEventInfo)
  576. {
  577. if (obj.value == "Y")
  578. {
  579. switch1.case_d.grd_d.setFormatColProperty( 2, "size", 120);
  580. }
  581. else
  582. {
  583. switch1.case_d.grd_d.setFormatColProperty( 2, "size", 0);
  584. }
  585. }
  586. function group1_btn_updtexcel_onclick(obj:Button, e:ClickEventInfo)
  587. {
  588. if (group2.radio1.value == "D")
  589. {
  590. grdf_exportExcel(switch1.case_d.grd_d, "SheetName", "Sheet1", true, "", "user", true);
  591. }
  592. else if (group2.radio1.value == "W")
  593. {
  594. grdf_exportExcel(switch1.case_w.grd_w, "병상별 환자 현황", "Sheet1", true, "", "user", true);
  595. }
  596. else if (group2.radio1.value == "B")
  597. {
  598. grdf_exportExcel(switch1.case_b.grd_b, "병동별 환자 현황", "Sheet1", true, "", "user", true);
  599. }
  600. else if (group2.radio1.value == "S")
  601. {
  602. grdf_exportExcel(switch1.case_s.grd_s, "요일별 통계", "Sheet1", true, "", "user", true);
  603. }
  604. }
  605. function group4_btn_clear_onclick(obj:Button, e:ClickEventInfo)
  606. {
  607. fInitialize();
  608. }
  609. ]]></Script>
  610. </Form>
  611. </FDL>