SSMNW00100_중환자실 월별연도별 이용현황.xfdl 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SSMNW00100" position="absolute 0 0 1196 762" titletext="중환자실 이용현황" onload="SSMNW00100_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1197 26" id="group1" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Static text="중환자실 이용현황" position="absolute 0 0 207 26" id="caption6" class="tit_1" anchor="default" positiontype="position"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 13 1195 759" id="group3" scrollbars="autoboth" positiontype="position" anchor="all">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 10 1194 45" align="align:center top;" id="grp_sea" anchor="left top right" positiontype="position" class="div_SA">
  18. <Layouts>
  19. <Layout width="1194" height="35">
  20. <Button text="조회" position="absolute 1128 7 1184 27" id="button1" class="btn1" onclick="button1_onclick" anchor="top right" positiontype="position"/>
  21. <Shape linetype="vertical" position="absolute 1109 7 1115 29" id="line13" class="line_4" anchor="top right" positiontype="position"/>
  22. <Static text="중환자실별 :" position="absolute 20 10 125 27" id="caption3" class="search_name" anchor="default" positiontype="position"/>
  23. <Combo position="absolute 130 9 265 29" id="cmb_wardcd" class="combo_search" anchor="default" positiontype="position" innerdataset="@ds_data_deptlist" codecolumn="deptcd" datacolumn="deptnm" onitemchanged="group3_grp_sea_cmb_wardcd_onitemchanged"/>
  24. <Static text="해당기간 :" position="absolute 310 10 400 27" id="caption2" class="search_name" anchor="default" positiontype="position"/>
  25. <Calendar position="absolute 401 9 491 29" align="align:center middle;" id="ipt_yearmonth" class="input_s_essential" mask="@@@@-@@" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM-dd" positiontype="position"/>
  26. <Calendar position="absolute 393 9 483 29" align="align:center middle;" id="ipt_year" class="input_s_essential" mask="@@@@" anchor="default" editformat="yyyy" dateformat="yyyy" value="null" positiontype="position"/>
  27. <Calendar position="absolute 393 9 483 29" align="align:center middle;" id="ipt_fromyear" class="input_s_essential" mask="@@@@" anchor="default" editformat="yyyy" dateformat="yyyy" value="null" positiontype="position"/>
  28. <Calendar position="absolute 510 9 600 29" align="align:center middle;" id="ipt_toyear" class="input_s_essential" mask="@@@@" anchor="default" dateformat="yyyy" value="null" editformat="yyyy" positiontype="position"/>
  29. <Static text="~" position="absolute 494 10 511 27" id="cpt_dash" class="search_no_b" visible="false" anchor="default" positiontype="position"/>
  30. <Calendar position="absolute 393 9 483 29" align="align:center middle;" id="ipt_fromdd" class="input_s_essential" mask="@@@@-@@-@@" anchor="default" dateformat="yyyy" value="null" editformat="yyyy" positiontype="position"/>
  31. <Calendar position="absolute 510 9 600 29" align="align:center middle;" id="ipt_todd" class="input_s_essential" mask="@@@@-@@-@@" anchor="default" editformat="yyyy" dateformat="yyyy" value="null" positiontype="position"/>
  32. <Static text="조회구분 :" position="absolute 655 10 760 27" id="caption1" class="search_name" anchor="default" positiontype="position"/>
  33. <Radio position="absolute 750 8 910 27" id="rdo_refflag" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_grp_sea_rdo_refflag_onitemchanged" positiontype="position">
  34. <Dataset id="innerdataset">
  35. <ColumnInfo>
  36. <Column id="codecolumn"/>
  37. <Column id="datacolumn"/>
  38. </ColumnInfo>
  39. <Rows>
  40. <Row>
  41. <Col id="codecolumn">A</Col>
  42. <Col id="datacolumn">통계항목별</Col>
  43. </Row>
  44. <Row>
  45. <Col id="codecolumn">B</Col>
  46. <Col id="datacolumn">진료과별</Col>
  47. </Row>
  48. </Rows>
  49. </Dataset>
  50. </Radio>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Tab position="absolute 0 59 1186 746" id="swt_icupatlist" anchor="all" onchanged="group3_swt_icupatlist_onchanged" positiontype="position">
  55. <Tabpages>
  56. <Tabpage id="case_year" text="연도별">
  57. <Layouts>
  58. <Layout>
  59. <Grid position="absolute 1 0 1186 660" id="grd_icupatyearlist" binddataset="ds_grid_icupatyearlist" anchor="all" positiontype="position">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="175"/>
  64. <Column size="80"/>
  65. <Column size="80"/>
  66. <Column size="80"/>
  67. <Column size="80"/>
  68. <Column size="80"/>
  69. <Column size="80"/>
  70. <Column size="80"/>
  71. <Column size="80"/>
  72. <Column size="80"/>
  73. </Columns>
  74. <Rows>
  75. <Row size="24" band="head"/>
  76. <Row size="24" band="head"/>
  77. <Row size="24"/>
  78. </Rows>
  79. <Band id="head">
  80. <Cell rowspan="2" text="구분"/>
  81. <Cell col="1"/>
  82. <Cell col="2"/>
  83. <Cell col="3"/>
  84. <Cell col="4"/>
  85. <Cell col="5"/>
  86. <Cell col="6"/>
  87. <Cell col="7"/>
  88. <Cell col="8"/>
  89. <Cell col="9"/>
  90. <Cell row="1" col="1"/>
  91. <Cell row="1" col="2"/>
  92. <Cell row="1" col="3"/>
  93. <Cell row="1" col="4"/>
  94. <Cell row="1" col="5"/>
  95. <Cell row="1" col="6"/>
  96. <Cell row="1" col="7"/>
  97. <Cell row="1" col="8"/>
  98. <Cell row="1" col="9"/>
  99. </Band>
  100. <Band id="body">
  101. <Cell celltype="head" text="bind:item"/>
  102. <Cell col="1" displaytype="number" text="bind:year0"/>
  103. <Cell col="2" displaytype="number" text="bind:year1"/>
  104. <Cell col="3" displaytype="number" text="bind:per0"/>
  105. <Cell col="4" displaytype="number" text="bind:year1"/>
  106. <Cell col="5" displaytype="number" text="bind:year2"/>
  107. <Cell col="6" displaytype="number" text="bind:per1"/>
  108. <Cell col="7" displaytype="number" text="bind:year2"/>
  109. <Cell col="8" displaytype="number" text="bind:year3"/>
  110. <Cell col="9" displaytype="number" text="bind:per2"/>
  111. </Band>
  112. </Format>
  113. </Formats>
  114. </Grid>
  115. <Grid position="absolute 1 0 1186 660" id="grd_icupatordyearlist" binddataset="ds_grid_icupatordyearlist" visible="true" anchor="all" scrollbars="none" positiontype="position">
  116. <Formats>
  117. <Format id="default">
  118. <Columns>
  119. <Column size="175"/>
  120. <Column size="80"/>
  121. <Column size="80"/>
  122. <Column size="80"/>
  123. <Column size="80"/>
  124. <Column size="80"/>
  125. <Column size="80"/>
  126. <Column size="80"/>
  127. <Column size="80"/>
  128. <Column size="80"/>
  129. </Columns>
  130. <Rows>
  131. <Row size="24" band="head"/>
  132. <Row size="24" band="head"/>
  133. <Row size="24"/>
  134. </Rows>
  135. <Band id="head">
  136. <Cell rowspan="2" text="구분"/>
  137. <Cell col="1"/>
  138. <Cell col="2"/>
  139. <Cell col="3"/>
  140. <Cell col="4"/>
  141. <Cell col="5"/>
  142. <Cell col="6"/>
  143. <Cell col="7"/>
  144. <Cell col="8"/>
  145. <Cell col="9"/>
  146. <Cell row="1" col="1"/>
  147. <Cell row="1" col="2"/>
  148. <Cell row="1" col="3"/>
  149. <Cell row="1" col="4"/>
  150. <Cell row="1" col="5"/>
  151. <Cell row="1" col="6"/>
  152. <Cell row="1" col="7"/>
  153. <Cell row="1" col="8"/>
  154. <Cell row="1" col="9"/>
  155. </Band>
  156. <Band id="body">
  157. <Cell text="bind:item"/>
  158. <Cell col="1" displaytype="number" text="bind:y01"/>
  159. <Cell col="2" displaytype="number" text="bind:y02"/>
  160. <Cell col="3" displaytype="number" text="bind:per1"/>
  161. <Cell col="4" displaytype="number" text="bind:y03"/>
  162. <Cell col="5" displaytype="number" text="bind:y04"/>
  163. <Cell col="6" displaytype="number" text="bind:per2"/>
  164. <Cell col="7" displaytype="number" text="bind:y05"/>
  165. <Cell col="8" displaytype="number" text="bind:y06"/>
  166. <Cell col="9" displaytype="number" text="bind:per3"/>
  167. </Band>
  168. </Format>
  169. </Formats>
  170. </Grid>
  171. </Layout>
  172. </Layouts>
  173. </Tabpage>
  174. <Tabpage id="case_month" text="월별">
  175. <Layouts>
  176. <Layout>
  177. <Grid position="absolute 0 0 1186 660" id="grd_icupatmonthlist" binddataset="ds_grid_icupatmonthlist" anchor="all" positiontype="position">
  178. <Formats>
  179. <Format id="default">
  180. <Columns>
  181. <Column size="175"/>
  182. <Column size="65"/>
  183. <Column size="65"/>
  184. <Column size="65"/>
  185. <Column size="65"/>
  186. <Column size="65"/>
  187. <Column size="65"/>
  188. <Column size="65"/>
  189. <Column size="65"/>
  190. <Column size="65"/>
  191. <Column size="65"/>
  192. <Column size="65"/>
  193. <Column size="65"/>
  194. <Column size="100"/>
  195. </Columns>
  196. <Rows>
  197. <Row size="24" band="head"/>
  198. <Row size="24"/>
  199. </Rows>
  200. <Band id="head">
  201. <Cell text="구분"/>
  202. <Cell col="1" text="1월"/>
  203. <Cell col="2" text="2월"/>
  204. <Cell col="3" text="3월"/>
  205. <Cell col="4" text="4월"/>
  206. <Cell col="5" text="5월"/>
  207. <Cell col="6" text="6월"/>
  208. <Cell col="7" text="7월"/>
  209. <Cell col="8" text="8월"/>
  210. <Cell col="9" text="9월"/>
  211. <Cell col="10" text="10월"/>
  212. <Cell col="11" text="11월"/>
  213. <Cell col="12" text="12월"/>
  214. <Cell col="13" text="Total/평균"/>
  215. </Band>
  216. <Band id="body">
  217. <Cell celltype="head" text="bind:item"/>
  218. <Cell col="1" text="bind:m01"/>
  219. <Cell col="2" text="bind:m02"/>
  220. <Cell col="3" text="bind:m03"/>
  221. <Cell col="4" text="bind:m04"/>
  222. <Cell col="5" text="bind:m05"/>
  223. <Cell col="6" text="bind:m06"/>
  224. <Cell col="7" text="bind:m07"/>
  225. <Cell col="8" text="bind:m08"/>
  226. <Cell col="9" text="bind:m09"/>
  227. <Cell col="10" text="bind:m10"/>
  228. <Cell col="11" text="bind:m11"/>
  229. <Cell col="12" text="bind:m12"/>
  230. <Cell col="13" text="bind:total"/>
  231. </Band>
  232. </Format>
  233. </Formats>
  234. </Grid>
  235. </Layout>
  236. </Layouts>
  237. </Tabpage>
  238. <Tabpage id="case_day" text="일별">
  239. <Layouts>
  240. <Layout>
  241. <Grid position="absolute 0 1 1186 660" id="grd_icupatdaylist" binddataset="ds_grid_icupatdaylist" anchor="all" positiontype="position">
  242. <Formats>
  243. <Format id="default">
  244. <Columns>
  245. <Column size="175"/>
  246. <Column size="30"/>
  247. <Column size="30"/>
  248. <Column size="30"/>
  249. <Column size="30"/>
  250. <Column size="30"/>
  251. <Column size="30"/>
  252. <Column size="30"/>
  253. <Column size="30"/>
  254. <Column size="30"/>
  255. <Column size="30"/>
  256. <Column size="30"/>
  257. <Column size="30"/>
  258. <Column size="30"/>
  259. <Column size="30"/>
  260. <Column size="30"/>
  261. <Column size="30"/>
  262. <Column size="30"/>
  263. <Column size="30"/>
  264. <Column size="30"/>
  265. <Column size="30"/>
  266. <Column size="30"/>
  267. <Column size="30"/>
  268. <Column size="30"/>
  269. <Column size="30"/>
  270. <Column size="30"/>
  271. <Column size="30"/>
  272. <Column size="30"/>
  273. <Column size="30"/>
  274. <Column size="30"/>
  275. <Column size="30"/>
  276. <Column size="30"/>
  277. <Column size="64"/>
  278. </Columns>
  279. <Rows>
  280. <Row size="24" band="head"/>
  281. <Row size="24"/>
  282. </Rows>
  283. <Band id="head">
  284. <Cell text="구분"/>
  285. <Cell col="1" text="1일"/>
  286. <Cell col="2" text="2일"/>
  287. <Cell col="3" text="3일"/>
  288. <Cell col="4" text="4일"/>
  289. <Cell col="5" text="5일"/>
  290. <Cell col="6" text="6일"/>
  291. <Cell col="7" text="7일"/>
  292. <Cell col="8" text="8일"/>
  293. <Cell col="9" text="9일"/>
  294. <Cell col="10" text="10일"/>
  295. <Cell col="11" text="11일"/>
  296. <Cell col="12" text="12일"/>
  297. <Cell col="13" text="13일"/>
  298. <Cell col="14" text="14일"/>
  299. <Cell col="15" text="15일"/>
  300. <Cell col="16" text="16일"/>
  301. <Cell col="17" text="17일"/>
  302. <Cell col="18" text="18일"/>
  303. <Cell col="19" text="19일"/>
  304. <Cell col="20" text="20일"/>
  305. <Cell col="21" text="21일"/>
  306. <Cell col="22" text="22일"/>
  307. <Cell col="23" text="23일"/>
  308. <Cell col="24" text="24일"/>
  309. <Cell col="25" text="25일"/>
  310. <Cell col="26" text="26일"/>
  311. <Cell col="27" text="27일"/>
  312. <Cell col="28" text="28일"/>
  313. <Cell col="29" text="29일"/>
  314. <Cell col="30" text="30일"/>
  315. <Cell col="31" text="31일"/>
  316. <Cell col="32" text="Total/평균"/>
  317. </Band>
  318. <Band id="body">
  319. <Cell celltype="head" text="bind:item"/>
  320. <Cell col="1" text="bind:d01"/>
  321. <Cell col="2" text="bind:d02"/>
  322. <Cell col="3" text="bind:d03"/>
  323. <Cell col="4" text="bind:d04"/>
  324. <Cell col="5" text="bind:d05"/>
  325. <Cell col="6" text="bind:d06"/>
  326. <Cell col="7" text="bind:d07"/>
  327. <Cell col="8" text="bind:d08"/>
  328. <Cell col="9" text="bind:d09"/>
  329. <Cell col="10" text="bind:d10"/>
  330. <Cell col="11" text="bind:d11"/>
  331. <Cell col="12" text="bind:d12"/>
  332. <Cell col="13" text="bind:d13"/>
  333. <Cell col="14" text="bind:d14"/>
  334. <Cell col="15" text="bind:d15"/>
  335. <Cell col="16" text="bind:d16"/>
  336. <Cell col="17" text="bind:d17"/>
  337. <Cell col="18" text="bind:d18"/>
  338. <Cell col="19" text="bind:d19"/>
  339. <Cell col="20" text="bind:d20"/>
  340. <Cell col="21" text="bind:d21"/>
  341. <Cell col="22" text="bind:d22"/>
  342. <Cell col="23" text="bind:d23"/>
  343. <Cell col="24" text="bind:d24"/>
  344. <Cell col="25" text="bind:d25"/>
  345. <Cell col="26" text="bind:d26"/>
  346. <Cell col="27" text="bind:d27"/>
  347. <Cell col="28" text="bind:d28"/>
  348. <Cell col="29" text="bind:d29"/>
  349. <Cell col="30" text="bind:d30"/>
  350. <Cell col="31" text="bind:d31"/>
  351. <Cell col="32" text="bind:total"/>
  352. </Band>
  353. </Format>
  354. </Formats>
  355. </Grid>
  356. </Layout>
  357. </Layouts>
  358. </Tabpage>
  359. <Tabpage id="case_term" text="자유기간별">
  360. <Layouts>
  361. <Layout>
  362. <Grid position="absolute 1 0 1186 660" id="grd_patordtermdaylist" binddataset="ds_grid_icupattermdaylist" anchor="all" visible="true" positiontype="position">
  363. <Formats>
  364. <Format id="default">
  365. <Columns>
  366. <Column size="175"/>
  367. <Column size="90"/>
  368. <Column size="90"/>
  369. <Column size="90"/>
  370. <Column size="90"/>
  371. <Column size="90"/>
  372. <Column size="90"/>
  373. <Column size="90"/>
  374. <Column size="90"/>
  375. <Column size="90"/>
  376. <Column size="90"/>
  377. </Columns>
  378. <Rows>
  379. <Row size="24" band="head"/>
  380. <Row size="24"/>
  381. </Rows>
  382. <Band id="head">
  383. <Cell text="구분"/>
  384. <Cell col="1" text="1일"/>
  385. <Cell col="2" text="2일"/>
  386. <Cell col="3" text="3일"/>
  387. <Cell col="4" text="4일"/>
  388. <Cell col="5" text="5일"/>
  389. <Cell col="6" text="6일"/>
  390. <Cell col="7" text="7일"/>
  391. <Cell col="8" text="8일"/>
  392. <Cell col="9" text="9일"/>
  393. <Cell col="10" text="10일"/>
  394. </Band>
  395. <Band id="body">
  396. <Cell text="bind:item"/>
  397. <Cell col="1" text="bind:d01"/>
  398. <Cell col="2" text="bind:d02"/>
  399. <Cell col="3" text="bind:d03"/>
  400. <Cell col="4" text="bind:d04"/>
  401. <Cell col="5" text="bind:d05"/>
  402. <Cell col="6" text="bind:d06"/>
  403. <Cell col="7" text="bind:d07"/>
  404. <Cell col="8" text="bind:d08"/>
  405. <Cell col="9" text="bind:d09"/>
  406. <Cell col="10" text="bind:d10"/>
  407. </Band>
  408. </Format>
  409. </Formats>
  410. </Grid>
  411. <Grid position="absolute 1 0 1186 660" id="grd_pattermdaylist" binddataset="ds_grid_icupattermdaylist" anchor="all" visible="false" positiontype="position">
  412. <Formats>
  413. <Format id="default">
  414. <Columns>
  415. <Column size="175"/>
  416. </Columns>
  417. <Rows>
  418. <Row size="24" band="head"/>
  419. <Row size="24"/>
  420. </Rows>
  421. <Band id="head">
  422. <Cell text="구분"/>
  423. </Band>
  424. <Band id="body">
  425. <Cell text="bind:item"/>
  426. </Band>
  427. </Format>
  428. </Formats>
  429. </Grid>
  430. </Layout>
  431. </Layouts>
  432. </Tabpage>
  433. </Tabpages>
  434. </Tab>
  435. <Button text="엑셀" position="absolute 1140 57 1192 77" id="btn_excel" class="btn7" onclick="btn_excel_onclick" anchor="top right" positiontype="position"/>
  436. <Button text="용어정의" position="absolute 1075 57 1139 77" id="button3" class="btn2" onclick="button3_onclick" anchor="top right" positiontype="position"/>
  437. </Layout>
  438. </Layouts>
  439. </Div>
  440. </Layout>
  441. </Layouts>
  442. <Objects>
  443. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  444. <ColumnInfo>
  445. <Column id="yearmonth" type="STRING" size="256"/>
  446. <Column id="year" type="STRING" size="256"/>
  447. <Column id="fromyear" type="STRING" size="256"/>
  448. <Column id="toyear" type="STRING" size="256"/>
  449. <Column id="fromdd" type="STRING" size="256"/>
  450. <Column id="todd" type="STRING" size="256"/>
  451. <Column id="refflag" type="STRING" size="256"/>
  452. <Column id="wardcd" type="STRING" size="256"/>
  453. </ColumnInfo>
  454. <Rows>
  455. <Row/>
  456. </Rows>
  457. </Dataset>
  458. <Dataset id="ds_data_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  459. <ColumnInfo>
  460. <Column id="deptcd" type="STRING" size="256"/>
  461. <Column id="deptnm" type="STRING" size="256"/>
  462. </ColumnInfo>
  463. <Rows>
  464. <Row/>
  465. </Rows>
  466. </Dataset>
  467. <Dataset id="ds_grid_icupatyearlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  468. <ColumnInfo>
  469. <Column id="year" type="STRING"/>
  470. <Column id="item" type="STRING"/>
  471. <Column id="itemcnt" type="STRING"/>
  472. <Column id="sort" type="STRING"/>
  473. </ColumnInfo>
  474. </Dataset>
  475. <Dataset id="ds_grid_icupatordyearlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  476. <ColumnInfo>
  477. <Column id="item" type="STRING"/>
  478. <Column id="y01" type="STRING"/>
  479. <Column id="y02" type="STRING"/>
  480. <Column id="per1" type="STRING"/>
  481. <Column id="y03" type="STRING"/>
  482. <Column id="y04" type="STRING"/>
  483. <Column id="per2" type="STRING"/>
  484. <Column id="y05" type="STRING"/>
  485. <Column id="y06" type="STRING"/>
  486. <Column id="per3" type="STRING"/>
  487. </ColumnInfo>
  488. </Dataset>
  489. <Dataset id="ds_grid_icupatmonthlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  490. <ColumnInfo>
  491. <Column id="item" type="STRING"/>
  492. <Column id="m01" type="STRING"/>
  493. <Column id="m02" type="STRING"/>
  494. <Column id="m03" type="STRING"/>
  495. <Column id="m04" type="STRING"/>
  496. <Column id="m05" type="STRING"/>
  497. <Column id="m06" type="STRING"/>
  498. <Column id="m07" type="STRING"/>
  499. <Column id="m08" type="STRING"/>
  500. <Column id="m09" type="STRING"/>
  501. <Column id="m10" type="STRING"/>
  502. <Column id="m11" type="STRING"/>
  503. <Column id="m12" type="STRING"/>
  504. <Column id="total" type="STRING"/>
  505. </ColumnInfo>
  506. </Dataset>
  507. <Dataset id="ds_grid_icupatdaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  508. <ColumnInfo>
  509. <Column id="item" type="STRING"/>
  510. <Column id="d01" type="STRING"/>
  511. <Column id="d02" type="STRING"/>
  512. <Column id="d03" type="STRING"/>
  513. <Column id="d04" type="STRING"/>
  514. <Column id="d05" type="STRING"/>
  515. <Column id="d06" type="STRING"/>
  516. <Column id="d07" type="STRING"/>
  517. <Column id="d08" type="STRING"/>
  518. <Column id="d09" type="STRING"/>
  519. <Column id="d10" type="STRING"/>
  520. <Column id="d11" type="STRING"/>
  521. <Column id="d12" type="STRING"/>
  522. <Column id="d13" type="STRING"/>
  523. <Column id="d14" type="STRING"/>
  524. <Column id="d15" type="STRING"/>
  525. <Column id="d16" type="STRING"/>
  526. <Column id="d17" type="STRING"/>
  527. <Column id="d18" type="STRING"/>
  528. <Column id="d19" type="STRING"/>
  529. <Column id="d20" type="STRING"/>
  530. <Column id="d21" type="STRING"/>
  531. <Column id="d22" type="STRING"/>
  532. <Column id="d23" type="STRING"/>
  533. <Column id="d24" type="STRING"/>
  534. <Column id="d25" type="STRING"/>
  535. <Column id="d26" type="STRING"/>
  536. <Column id="d27" type="STRING"/>
  537. <Column id="d28" type="STRING"/>
  538. <Column id="d29" type="STRING"/>
  539. <Column id="d30" type="STRING"/>
  540. <Column id="d31" type="STRING"/>
  541. <Column id="total" type="STRING"/>
  542. </ColumnInfo>
  543. </Dataset>
  544. <Dataset id="ds_grid_grd_pattermdaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  545. <ColumnInfo>
  546. <Column id="item" type="STRING"/>
  547. </ColumnInfo>
  548. </Dataset>
  549. <Dataset id="ds_grid_grd_patordtermdaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  550. <ColumnInfo>
  551. <Column id="item" type="STRING"/>
  552. <Column id="d01" type="STRING"/>
  553. <Column id="d02" type="STRING"/>
  554. <Column id="d03" type="STRING"/>
  555. <Column id="d04" type="STRING"/>
  556. <Column id="d05" type="STRING"/>
  557. <Column id="d06" type="STRING"/>
  558. <Column id="d07" type="STRING"/>
  559. <Column id="d08" type="STRING"/>
  560. <Column id="d09" type="STRING"/>
  561. <Column id="d10" type="STRING"/>
  562. </ColumnInfo>
  563. </Dataset>
  564. <Dataset id="ds_grid_icupattermdaylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  565. <ColumnInfo>
  566. <Column id="year" type="STRING"/>
  567. <Column id="item" type="STRING"/>
  568. <Column id="itemcnt" type="STRING"/>
  569. <Column id="sort" type="STRING"/>
  570. </ColumnInfo>
  571. </Dataset>
  572. <Dataset id="ds_grid_icupatyearlist_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  573. </Objects>
  574. <Bind>
  575. <BindItem id="item0" compid="group3.grp_sea.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  576. <BindItem id="item1" compid="group3.grp_sea.ipt_todd" propid="value" datasetid="ds_cond" columnid="todd"/>
  577. <BindItem id="item2" compid="group3.grp_sea.ipt_fromyear" propid="value" datasetid="ds_cond" columnid="fromyear"/>
  578. <BindItem id="item3" compid="group3.grp_sea.ipt_toyear" propid="value" datasetid="ds_cond" columnid="toyear"/>
  579. <BindItem id="item4" compid="group3.grp_sea.ipt_year" propid="value" datasetid="ds_cond" columnid="year"/>
  580. <BindItem id="item5" compid="group3.grp_sea.ipt_yearmonth" propid="value" datasetid="ds_cond" columnid="yearmonth"/>
  581. <BindItem id="item6" compid="group3.grp_sea.cmb_wardcd" propid="value" datasetid="ds_cond" columnid="wardcd"/>
  582. </Bind>
  583. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  584. * System Name : Himed
  585. * Job Name :
  586. * File Name : SSMNW00100_중환자실 월별연도별 이용현황.xfdl
  587. * Creator :
  588. * Make Date : 2014-08-20
  589. *
  590. * Description :
  591. *---------------------------------------------------------------------------------------
  592. * Modify Date Modifier Modify Description
  593. *---------------------------------------------------------------------------------------
  594. * 2014-08-20 Converting Program(TF->XP)
  595. *
  596. *---------------------------------------------------------------------------------------
  597. ****************************************************************************************/
  598. //=======================================================================================
  599. // xjs Include
  600. //---------------------------------------------------------------------------------------
  601. include "com_commonxp::comm_main.xjs";
  602. include "emr_carecomxp::SPMNZ001.xjs";
  603. /***********************************************************************************************
  604. * 함수명 : fInit
  605. * 설 명 : 초기화시
  606. ************************************************************************************************/
  607. function fInit(){
  608. ds_cond.enableevent = false;
  609. ds_cond.setColumn(0,"yearmonth", utlf_getCurrentDate().substr(0,6) );
  610. ds_cond.setColumn(0,"year", utlf_getCurrentDate().substr(0,4) );
  611. ds_cond.setColumn(0,"fromyear",utlf_getCurrentDate().substr(0,4) );
  612. ds_cond.setColumn(0,"toyear",utlf_getCurrentDate().substr(0,4) );
  613. ds_cond.setColumn(0,"fromdd",utlf_getCurrentDate());
  614. ds_cond.setColumn(0,"todd",utlf_getCurrentDate());
  615. ds_cond.setColumn(0,"refflag","A");
  616. ds_cond.setColumn(0,"wardcd","");
  617. ds_cond.enableevent = true;
  618. group3.grp_sea.rdo_refflag.index=0;
  619. group3.grp_sea.ipt_fromyear.visible=false;
  620. group3.grp_sea.ipt_toyear.visible=false;
  621. group3.grp_sea.ipt_year.visible=false;//월별
  622. group3.grp_sea.ipt_yearmonth.visible=false;//일별
  623. group3.grp_sea.ipt_fromdd.visible=true;//연도별
  624. group3.grp_sea.ipt_todd.visible=true;//연도별
  625. group3.grp_sea.cpt_dash.visible=true;//연도별
  626. group3.swt_icupatlist.case_year.grd_icupatyearlist.visible=true;//통계항목별
  627. group3.swt_icupatlist.case_year.grd_icupatordyearlist.visible=false;//진료과별
  628. if(frmf_getMenuParam() == "SSMNW00200"){ // 자유기간 이용현황 메뉴선택 일 경우
  629. group3.grp_sea.rdo_refflag.index=0;
  630. group3.grp_sea.ipt_fromyear.visible=false;
  631. group3.grp_sea.ipt_toyear.visible=false;
  632. group3.grp_sea.ipt_year.visible=false;//월별
  633. group3.grp_sea.ipt_yearmonth.visible=false;//일별
  634. group3.grp_sea.ipt_fromdd.visible=true;//연도별
  635. group3.grp_sea.ipt_todd.visible=true;//연도별
  636. group3.grp_sea.cpt_dash.visible=true;//연도별
  637. }else{
  638. group3.grp_sea.rdo_refflag.index=0;
  639. group3.grp_sea.ipt_fromyear.visible=false;
  640. group3.grp_sea.ipt_toyear.visible=false;
  641. group3.grp_sea.ipt_year.visible=false;//월별
  642. group3.grp_sea.ipt_yearmonth.visible=false;//일별
  643. group3.grp_sea.ipt_fromdd.visible=true;//연도별
  644. group3.grp_sea.ipt_todd.visible=true;//연도별
  645. group3.grp_sea.cpt_dash.visible=true;//연도별
  646. group3.swt_icupatlist.removeTabpage(3);
  647. }
  648. tranf_submit({
  649. id: "TRSNW00101"
  650. , service: "stsenrapp.StsEnrIcuMngt"
  651. , method: "reqGetDeptList"
  652. , outds: "ds_data_deptlist=deptlist"
  653. , async: false
  654. });
  655. }
  656. /***********************************************************************************************
  657. * 함수명 : fSwitchSrchICUPatList
  658. * 설 명 : 탭에 따른 조회
  659. ************************************************************************************************/
  660. function fSwitchSrchICUPatList(){
  661. var tabID = group3.swt_icupatlist.tabindex;
  662. switch( tabID){
  663. // 연도별
  664. case 0: fSrchICUYearInfo(); // 중환자실 연도별현황 조회
  665. break;
  666. // 월별
  667. case 1: fSrchICUMonthInfo(); // 중환자실 월별현황 조회
  668. break;
  669. // 일자별
  670. case 2: fSrchICUDayInfo(); // 중환자실 일별현황 조회
  671. break;
  672. // 자유기간별
  673. case 3: fSrchICUTermDayInfo(); // 중환자실 자유기간별현황 조회
  674. break;
  675. }
  676. }
  677. /***********************************************************************************************
  678. * 함수명 : fSrchICUYearInfo
  679. * 설 명 : 중환자실 연도별현황 조회
  680. ************************************************************************************************/
  681. function fSrchICUYearInfo(){
  682. group3.grp_sea.ipt_fromdd.updateToDataset();
  683. group3.grp_sea.ipt_todd.updateToDataset();
  684. var cnt = 0;
  685. var fromyear = group3.grp_sea.ipt_fromdd.value;
  686. var toyear = group3.grp_sea.ipt_todd.value;
  687. var interval = utlf_getDateInterval(fromyear, toyear, "yyyy");
  688. var maxyear = 3; // 조회기간 제한
  689. var tempyear = "";
  690. // 조회구간이 3년을 넘으면 제어
  691. if(interval >= maxyear){
  692. sysf_messageBox("조회구간은 최대 3년만 가능합니다.","I");
  693. return;
  694. }
  695. //통계항목별
  696. if( group3.grp_sea.rdo_refflag.value =="A"){
  697. if(fromyear > toyear){
  698. sysf_messageBox("해당기간이 올바르지 않습니다.","E", "확인 후 다시 조회하십시오.");
  699. group3.ipt_fromdd.setFocus("ipt_fromyear");
  700. return;
  701. }
  702. ds_grid_icupatyearlist.clearData();
  703. ds_grid_icupatyearlist_temp.clearData();
  704. dsf_createDsRow("ds_temp", [{col: "fromyear", val:String(fromyear).toDate().getAddDate(-1,"Y").getDateFormat("YYYY") }
  705. ,{col:"toyear", val:String(toyear).toDate().getDateFormat("YYYY") }
  706. ,{col: "wardcd", val:group3.grp_sea.cmb_wardcd.value}
  707. ,{col: "refflag", val:group3.grp_sea.rdo_refflag.value }]);
  708. tranf_submit({
  709. id: "TRSNW00104"
  710. , service: "stsenrapp.StsEnrIcuMngt"
  711. , method: "reqGetICUYearList"
  712. , inds: "req=ds_temp"
  713. , outds: "ds_grid_icupatyearlist_temp=icupatyearlist"
  714. , async: false
  715. });
  716. if(ds_grid_icupatyearlist_temp.rowcount > 0) {
  717. if(interval == 0){
  718. group3.swt_icupatlist.case_year.grd_icupatyearlist.enableredraw=false;
  719. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 1, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  720. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  721. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  722. group3.swt_icupatlist.case_year.grd_icupatyearlist.mergeContentsCell("Head",0,1,0,3,3,false);
  723. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 8, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4) +"년");
  724. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 9, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1+"년");
  725. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 10, "text", "증감(%)");
  726. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(4,"size",0);
  727. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(5,"size",0);
  728. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(6,"size",0);
  729. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(7,"size",0);
  730. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(8,"size",0);
  731. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(9,"size",0);
  732. group3.swt_icupatlist.case_year.grd_icupatyearlist.enableredraw=true;
  733. cnt = 2;
  734. }
  735. if(interval ==1){
  736. group3.swt_icupatlist.case_year.grd_icupatyearlist.enableredraw=false;
  737. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 1, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  738. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  739. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  740. group3.swt_icupatlist.case_year.grd_icupatyearlist.mergeContentsCell("Head",0,1,0,3,3,false);
  741. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  742. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  743. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  744. group3.swt_icupatlist.case_year.grd_icupatyearlist.mergeContentsCell("Head",0,4,0,6,3,false);
  745. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 6, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4) +"년");
  746. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 7, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1+"년");
  747. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 8, "text", "증감(%)");
  748. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 9, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1 +"년");
  749. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 10, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2+"년");
  750. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 11, "text", "증감(%)");
  751. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(4,"size",80);
  752. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(5,"size",80);
  753. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(6,"size",80);
  754. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(7,"size",0);
  755. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(8,"size",0);
  756. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(9,"size",0);
  757. group3.swt_icupatlist.case_year.grd_icupatyearlist.enableredraw=true;
  758. cnt = 3;
  759. }
  760. if(interval ==2){
  761. group3.swt_icupatlist.case_year.grd_icupatyearlist.enableredraw=false;
  762. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 1, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  763. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  764. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  765. group3.swt_icupatlist.case_year.grd_icupatyearlist.mergeContentsCell("Head",0,1,0,3,3,false);
  766. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  767. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  768. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  769. group3.swt_icupatlist.case_year.grd_icupatyearlist.mergeContentsCell("Head",0,4,0,6,3,false);
  770. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2);
  771. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2);
  772. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 5, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2);
  773. group3.swt_icupatlist.case_year.grd_icupatyearlist.mergeContentsCell("Head",0,7,0,9,3,false);
  774. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4) +"년");
  775. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 5, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1+"년");
  776. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 6, "text", "증감(%)");
  777. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 7, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1 +"년");
  778. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 8, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2+"년");
  779. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 9, "text", "증감(%)");
  780. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 10, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2 +"년");
  781. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 11, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-3+"년");
  782. group3.swt_icupatlist.case_year.grd_icupatyearlist.setCellProperty("Head", 12, "text", "증감(%)");
  783. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(4,"size",80);
  784. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(5,"size",80);
  785. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(6,"size",80);
  786. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(7,"size",80);
  787. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(8,"size",80);
  788. group3.swt_icupatlist.case_year.grd_icupatyearlist.setFormatColProperty(9,"size",80);
  789. group3.swt_icupatlist.case_year.grd_icupatyearlist.enableredraw=true;
  790. cnt = 4;
  791. }
  792. tempyear = ds_temp.getColumn(0,"toyear");
  793. for (var k=0; k < 28; k++){
  794. ds_grid_icupatyearlist.addRow();
  795. }
  796. for (var i=0; i < cnt; i++){
  797. for (var j=0; j < ds_grid_icupatyearlist.rowcount; j++){
  798. if( !utlf_isNull(ds_grid_icupatyearlist_temp.lookup("year", tempyear, "year"))){
  799. itemcnt = ds_grid_icupatyearlist_temp.lookupExpr("year=='"+tempyear+"' && sort=='"+(j+1)+"'","itemcnt")
  800. item = ds_grid_icupatyearlist_temp.lookupExpr("year=='"+tempyear+"' && sort=='"+(j+1)+"'","item")
  801. sort = ds_grid_icupatyearlist_temp.lookupExpr("year=='"+tempyear+"' && sort=='"+(j+1)+"'","sort")
  802. per = utlf_transNull(ds_grid_icupatyearlist_temp.lookupExpr("year=='"+(tempyear-1)+"' && sort=='"+(j+1)+"'","itemcnt"),0);
  803. ds_grid_icupatyearlist.addColumn("year"+ i,"string");
  804. ds_grid_icupatyearlist.addColumn("per"+ i,"string");
  805. ds_grid_icupatyearlist.setColumn(j, "item", item)
  806. ds_grid_icupatyearlist.setColumn(j, "year"+ i, itemcnt)
  807. ds_grid_icupatyearlist.setColumn(j, "per"+ i, Math.round((Number(itemcnt) - Number(per)) / Number(per) * 100 *100)/100 )
  808. ds_grid_icupatyearlist.setColumn(j, "sort", sort)
  809. }
  810. }
  811. tempyear --;
  812. }
  813. }
  814. }else{
  815. ds_grid_icupatordyearlist.clearData();
  816. dsf_createDsRow("ds_temp", [{col: "fromyear", val:ds_cond.getColumn(0,"fromyear").toDate().getAddDate(0,"Y").getDateFormat("YYYY") }
  817. ,{col:"toyear", val:ds_cond.getColumn(0,"toyear") }
  818. ,{col: "wardcd", val:ds_cond.getColumn(0,"wardcd") }
  819. ,{col: "refflag", val:group3.grp_sea.rdo_refflag.value }]);
  820. tranf_submit({
  821. id: "TRSNW00106"
  822. , service: "stsenrapp.StsEnrIcuMngt"
  823. , method: "reqGetOrdICUYearList"
  824. , inds: "req=ds_temp"
  825. , outds: "ds_grid_icupatordyearlist=icupatyearlist"
  826. , async: false
  827. //, callback: "cbk_TRMNR08501"
  828. });
  829. // 연도별 그리드 만들기(가로형태로)
  830. if(ds_grid_icupatordyearlist.rowcount > 0) {
  831. if(interval == 0){
  832. group3.swt_icupatlist.case_year.grd_icupatordyearlist.enableredraw=false;
  833. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 1, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  834. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  835. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  836. group3.swt_icupatlist.case_year.grd_icupatordyearlist.mergeContentsCell("Head",0,1,0,3,3,false);
  837. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 8, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4) +"년");
  838. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 9, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1+"년");
  839. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 10, "text", "증감(%)");
  840. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(4,"size",0);
  841. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(5,"size",0);
  842. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(6,"size",0);
  843. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(7,"size",0);
  844. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(8,"size",0);
  845. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(9,"size",0);
  846. group3.swt_icupatlist.case_year.grd_icupatordyearlist.enableredraw=true;
  847. }
  848. if(interval ==1){
  849. group3.swt_icupatlist.case_year.grd_icupatordyearlist.enableredraw=false;
  850. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 1, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  851. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  852. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  853. group3.swt_icupatlist.case_year.grd_icupatordyearlist.mergeContentsCell("Head",0,1,0,3,3,false);
  854. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  855. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  856. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  857. group3.swt_icupatlist.case_year.grd_icupatordyearlist.mergeContentsCell("Head",0,4,0,6,3,false);
  858. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 6, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4) +"년");
  859. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 7, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1+"년");
  860. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 8, "text", "증감(%)");
  861. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 9, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1 +"년");
  862. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 10, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2+"년");
  863. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 11, "text", "증감(%)");
  864. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(4,"size",80);
  865. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(5,"size",80);
  866. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(6,"size",80);
  867. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(7,"size",0);
  868. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(8,"size",0);
  869. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(9,"size",0);
  870. group3.swt_icupatlist.case_year.grd_icupatordyearlist.enableredraw=true;
  871. }
  872. if(interval ==2){
  873. group3.swt_icupatlist.case_year.grd_icupatordyearlist.enableredraw=false;
  874. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 1, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  875. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  876. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4));
  877. group3.swt_icupatlist.case_year.grd_icupatordyearlist.mergeContentsCell("Head",0,1,0,3,3,false);
  878. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 2, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  879. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  880. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1);
  881. group3.swt_icupatlist.case_year.grd_icupatordyearlist.mergeContentsCell("Head",0,4,0,6,3,false);
  882. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 3, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2);
  883. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2);
  884. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 5, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2);
  885. group3.swt_icupatlist.case_year.grd_icupatordyearlist.mergeContentsCell("Head",0,7,0,9,3,false);
  886. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 4, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4) +"년");
  887. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 5, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1+"년");
  888. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 6, "text", "증감(%)");
  889. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 7, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-1 +"년");
  890. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 8, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2+"년");
  891. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 9, "text", "증감(%)");
  892. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 10, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-2 +"년");
  893. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 11, "text", String(group3.grp_sea.ipt_todd.value).substr(0,4)-3+"년");
  894. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setCellProperty("Head", 12, "text", "증감(%)");
  895. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(4,"size",80);
  896. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(5,"size",80);
  897. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(6,"size",80);
  898. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(7,"size",80);
  899. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(8,"size",80);
  900. group3.swt_icupatlist.case_year.grd_icupatordyearlist.setFormatColProperty(9,"size",80);
  901. group3.swt_icupatlist.case_year.grd_icupatordyearlist.enableredraw=true;
  902. }
  903. }
  904. }
  905. }
  906. /***********************************************************************************************
  907. * 함수명 : fSrchICUMonthInfo
  908. * 설 명 : 중환자실 월별현황 조회
  909. ************************************************************************************************/
  910. function fSrchICUMonthInfo(){
  911. ds_grid_icupatmonthlist.clearData();
  912. dsf_createDsRow("ds_temp", [{col: "year", val:ds_cond.getColumn(0,"year").substr(0,4) }
  913. ,{col: "wardcd", val:ds_cond.getColumn(0,"wardcd") }
  914. ,{col: "refflag", val:group3.grp_sea.rdo_refflag.value }]);
  915. tranf_submit({
  916. id: "TRSNW00103"
  917. , service: "stsenrapp.StsEnrIcuMngt"
  918. , method: "reqGetICUMonthList"
  919. , inds: "req=ds_temp"
  920. , outds: "ds_grid_icupatmonthlist=icupatmonthlist"
  921. , async: false
  922. //, callback: "cbk_TRMNR08501"
  923. });
  924. }
  925. /***********************************************************************************************
  926. * 함수명 : fSrchICUDayInfo
  927. * 설 명 : 중환자실 일별현황 조회
  928. ************************************************************************************************/
  929. function fSrchICUDayInfo(){
  930. ds_grid_icupatdaylist.clearData();
  931. dsf_createDsRow("ds_temp", [{col: "yearmonth", val:ds_cond.getColumn(0,"yearmonth").substr(0,6) }
  932. ,{col: "wardcd", val:ds_cond.getColumn(0,"wardcd") }
  933. ,{col: "refflag", val:group3.grp_sea.rdo_refflag.value }]);
  934. tranf_submit({
  935. id: "TRSNW00102"
  936. , service: "stsenrapp.StsEnrIcuMngt"
  937. , method: "reqGetICUDayList"
  938. , inds: "req=ds_temp"
  939. , outds: "ds_grid_icupatdaylist=icupatdaylist"
  940. , async: false
  941. });
  942. }
  943. /***********************************************************************************************
  944. * 함수명 : fSrchICUTermDayInfo
  945. * 설 명 : 중환자실 자유기간별현황 조회
  946. ************************************************************************************************/
  947. function fSrchICUTermDayInfo(){
  948. ds_grid_icupattermdaylist.clearData();
  949. dsf_createDsRow("ds_temp", [{col: "fromdd", val:ds_cond.getColumn(0,"fromdd") }
  950. ,{col:"todd", val:ds_cond.getColumn(0,"todd") }
  951. ,{col: "wardcd", val:ds_cond.getColumn(0,"wardcd") }
  952. ,{col: "refflag", val:group3.grp_sea.rdo_refflag.value }]);
  953. tranf_submit({
  954. id: "TRSNW00105"
  955. , service: "stsenrapp.StsEnrIcuMngt"
  956. , method: "reqGetICUTermDayList"
  957. , inds: "req=ds_temp"
  958. , outds: "ds_grid_icupattermdaylist=icupattermdaylist"
  959. , async: false
  960. //, callback: "cbk_TRMNR08501"
  961. });
  962. }
  963. //=======================================================================================
  964. // Event
  965. //---------------------------------------------------------------------------------------
  966. /****************************************************************************************
  967. * Components :
  968. * Components ID : SSMNW00100
  969. * Event : onload
  970. * Argument : 01.obj : Object Event has occurred
  971. * : 02.e : Event Object
  972. * Description : 온로드
  973. ****************************************************************************************/
  974. function SSMNW00100_onload(obj:Form, e:LoadEventInfo)
  975. {
  976. /* 폼 로드 */
  977. frmf_initForm(obj);
  978. lf_commoduleDataSetShow();
  979. fInit(); // 초기화
  980. }
  981. /****************************************************************************************
  982. * Components :
  983. * Components ID : button1
  984. * Event : onclick
  985. * Argument : 01.obj : Object Event has occurred
  986. * : 02.e : Event Object
  987. * Description :
  988. ****************************************************************************************/
  989. function button1_onclick(obj:Button, e:ClickEventInfo)
  990. {
  991. fSwitchSrchICUPatList(); // 탭에 따른 조회
  992. }
  993. /****************************************************************************************
  994. * Components :
  995. * Components ID : btn_excel
  996. * Event : onclick
  997. * Argument : 01.obj : Object Event has occurred
  998. * : 02.e : Event Object
  999. * Description : 엑셀 클릭시
  1000. ****************************************************************************************/
  1001. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  1002. {
  1003. var tabID = group3.swt_icupatlist.tabindex;
  1004. var refflag = group3.grp_sea.rdo_refflag.value;
  1005. switch( tabID ){
  1006. // 연도별
  1007. case 0:
  1008. if(refflag == "A"){
  1009. grdf_exportExcel(group3.swt_icupatlist.case_year.grd_icupatyearlist, "연도별", "sheet1", true);
  1010. } else {
  1011. grdf_exportExcel(group3.swt_icupatlist.case_year.grd_icupatordyearlist, "연도별", "sheet1", true);
  1012. }
  1013. break;
  1014. // 월별
  1015. case 1:
  1016. grdf_exportExcel(group3.swt_icupatlist.case_month.grd_icupatmonthlist, "월별", "sheet1", true);
  1017. break;
  1018. // 일자별
  1019. case 2:
  1020. grdf_exportExcel(group3.swt_icupatlist.case_day.grd_icupatdaylist, "일자별", "sheet1", true);
  1021. break;
  1022. // 자유기간별
  1023. case 3:
  1024. if(refflag == "A"){
  1025. grdf_exportExcel(group3.swt_icupatlist.case_term.grd_pattermdaylist, "자유기간별", "sheet1", true);
  1026. } else {
  1027. grdf_exportExcel(group3.swt_icupatlist.case_term.grd_patordtermdaylist, "자유기간별", "sheet1", true);
  1028. }
  1029. break;
  1030. }
  1031. }
  1032. /****************************************************************************************
  1033. * Components :
  1034. * Components ID : btn_excel
  1035. * Event : onclick
  1036. * Argument : 01.obj : Object Event has occurred
  1037. * : 02.e : Event Object
  1038. * Description : 엑셀 클릭시
  1039. ****************************************************************************************/
  1040. function group3_swt_icupatlist_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1041. {
  1042. var tabID =group3.swt_icupatlist.tabindex;
  1043. switch( tabID){
  1044. // 연도별
  1045. case 0:
  1046. group3.grp_sea.ipt_fromyear.visible=false;
  1047. group3.grp_sea.ipt_toyear.visible=false;
  1048. group3.grp_sea.ipt_year.visible=false;//월별
  1049. group3.grp_sea.ipt_yearmonth.visible=false;//일별
  1050. group3.grp_sea.ipt_fromdd.visible=true;//연도별
  1051. group3.grp_sea.ipt_todd.visible=true;//연도별
  1052. group3.grp_sea.cpt_dash.visible=true;//연도별
  1053. fSrchICUYearInfo(); // 중환자실 연도별현황 조회
  1054. break;
  1055. // 월별
  1056. case 1:
  1057. group3.grp_sea.ipt_fromyear.visible=false;
  1058. group3.grp_sea.ipt_toyear.visible=false;
  1059. group3.grp_sea.ipt_year.visible=true;//월별
  1060. group3.grp_sea.ipt_yearmonth.visible=false;//일별
  1061. group3.grp_sea.ipt_fromdd.visible=false;//연도별
  1062. group3.grp_sea.ipt_todd.visible=false;//연도별
  1063. group3.grp_sea.cpt_dash.visible=false;//연도별
  1064. fSrchICUMonthInfo(); // 중환자실 월별현황 조회
  1065. break;
  1066. // 일자별
  1067. case 2:
  1068. group3.grp_sea.ipt_fromyear.visible=false;
  1069. group3.grp_sea.ipt_toyear.visible=false;
  1070. group3.grp_sea.ipt_year.visible=false;//월별
  1071. group3.grp_sea.ipt_yearmonth.visible=true;//일별
  1072. group3.grp_sea.ipt_fromdd.visible=false;//연도별
  1073. group3.grp_sea.ipt_todd.visible=false;//연도별
  1074. group3.grp_sea.cpt_dash.visible=false;//연도별
  1075. fSrchICUDayInfo(); // 중환자실 일별현황 조회
  1076. break;
  1077. // 자유기간별
  1078. case 3:
  1079. group3.grp_sea.ipt_fromyear.visible=true;
  1080. group3.grp_sea.ipt_toyear.visible=true;
  1081. group3.grp_sea.ipt_year.visible=false;//월별
  1082. group3.grp_sea.ipt_yearmonth.visible=false;//일별
  1083. group3.grp_sea.ipt_fromdd.visible=false;//연도별
  1084. group3.grp_sea.ipt_todd.visible=false;//연도별
  1085. group3.grp_sea.cpt_dash.visible=true;//연도별
  1086. fSrchICUTermDayInfo(); // 중환자실 자유기간별현황 조회
  1087. break;
  1088. }
  1089. }
  1090. /****************************************************************************************
  1091. * Components :
  1092. * Components ID :
  1093. * Event : onitemchanged
  1094. * Argument : 01.obj : Object Event has occurred
  1095. * : 02.e : Event Object
  1096. * Description : 탭변경시
  1097. ****************************************************************************************/
  1098. function group3_grp_sea_rdo_refflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1099. {
  1100. if ( obj.value =="A"){
  1101. group3.grp_sea.cmb_wardcd.enable=true;
  1102. group3.swt_icupatlist.case_year.grd_icupatyearlist.visible=true;
  1103. group3.swt_icupatlist.case_year.grd_icupatordyearlist.visible=false;
  1104. }else {
  1105. group3.grp_sea.cmb_wardcd.enable=false;
  1106. group3.swt_icupatlist.case_year.grd_icupatyearlist.visible=false;
  1107. group3.swt_icupatlist.case_year.grd_icupatordyearlist.visible=true;
  1108. }
  1109. fSwitchSrchICUPatList();
  1110. }
  1111. /****************************************************************************************
  1112. * Components :
  1113. * Components ID :
  1114. * Event : button3
  1115. * Argument : 01.obj : Object Event has occurred
  1116. * : 02.e : Event Object
  1117. * Description : 용어정의 클릭시
  1118. ****************************************************************************************/
  1119. function button3_onclick(obj:Button, e:ClickEventInfo)
  1120. {
  1121. //SSMNW00500
  1122. var objArg = new Object();
  1123. var sRtnValue = frmf_modal("SSMNW00500", "SSMNW00500", objArg,"1","10","10","","","","","","","M");
  1124. if ( !(sRtnValue instanceof Object ) ) return;
  1125. }
  1126. function group3_grp_sea_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1127. {
  1128. fSwitchSrchICUPatList();
  1129. }
  1130. ]]></Script>
  1131. </Form>
  1132. </FDL>