SMLBS00300_수혈환자수.xfdl 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBS00300" position="absolute 0 0 1256 805" titletext="수혈환자수" oninit="model1_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 25 1256 805" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Div id="group1" position="absolute 0 0 1256 42" anchor="left top right" positiontype="position" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption5" class="search_name" position="absolute 339 10 387 30" anchor="default" text="구분" positiontype="position"/>
  14. <Static id="caption4" class="search_name" position="absolute 8 10 94 30" anchor="default" text="통계 희망일" positiontype="position"/>
  15. <Combo id="cmb_rtnabnflag" position="absolute 387 10 489 30" anchor="default" positiontype="position" innerdataset="@ds_cond_gbn" codecolumn="value" datacolumn="label" index="0" value="1" text="전체"/>
  16. <Button id="btn_ref" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" text="조회" onlbuttonup="btn_ref_onlbuttonup" positiontype="position"/>
  17. <cp_monthCal id="cp_workfromdd" titletext="monthCalendar" taborder="2" scrollbars="none" position="absolute 99 10 174 30" visible="true"/>
  18. <Static id="caption9" text="~" position="absolute 173 10 189 30" style="align:center middle;"/>
  19. <cp_monthCal id="cp_worktodd" titletext="monthCalendar" taborder="5" scrollbars="none" position="absolute 187 10 262 30"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Tab id="switch1" position="absolute 0 52 1256 780" anchor="all" positiontype="position" onchanged="group3_switch1_onchanged">
  24. <Tabpages>
  25. <Tabpage id="case0" text="일별">
  26. <Layouts>
  27. <Layout>
  28. <Static id="caption32" class="tit_2" position="absolute 0 0 171 20" anchor="default" text="일별 수혈환자수" style="align:left top;" positiontype="position"/>
  29. <Grid id="grd_days" position="absolute 0 20 1256 701" anchor="all" positiontype="position" binddataset="ds_grid_grd_days">
  30. <Formats>
  31. <Format id="default">
  32. <Columns>
  33. <Column size="120"/>
  34. <Column size="50"/>
  35. <Column size="50"/>
  36. <Column size="50"/>
  37. <Column size="50"/>
  38. <Column size="50"/>
  39. <Column size="50"/>
  40. <Column size="50"/>
  41. <Column size="50"/>
  42. <Column size="50"/>
  43. <Column size="50"/>
  44. <Column size="50"/>
  45. <Column size="50"/>
  46. <Column size="50"/>
  47. <Column size="50"/>
  48. <Column size="50"/>
  49. <Column size="50"/>
  50. <Column size="50"/>
  51. <Column size="50"/>
  52. <Column size="50"/>
  53. <Column size="50"/>
  54. <Column size="50"/>
  55. <Column size="50"/>
  56. <Column size="50"/>
  57. <Column size="50"/>
  58. <Column size="50"/>
  59. <Column size="50"/>
  60. <Column size="50"/>
  61. <Column size="50"/>
  62. <Column size="50"/>
  63. <Column size="50"/>
  64. <Column size="50"/>
  65. <Column size="80"/>
  66. </Columns>
  67. <Rows>
  68. <Row size="22" band="head"/>
  69. <Row size="20"/>
  70. </Rows>
  71. <Band id="head">
  72. <Cell text="진료과"/>
  73. <Cell col="1" text="1일"/>
  74. <Cell col="2" text="2일"/>
  75. <Cell col="3" text="3일"/>
  76. <Cell col="4" text="4일"/>
  77. <Cell col="5" text="5일"/>
  78. <Cell col="6" text="6일"/>
  79. <Cell col="7" text="7일"/>
  80. <Cell col="8" text="8일"/>
  81. <Cell col="9" text="9일"/>
  82. <Cell col="10" text="10일"/>
  83. <Cell col="11" text="11일"/>
  84. <Cell col="12" text="12일"/>
  85. <Cell col="13" text="13일"/>
  86. <Cell col="14" text="14일"/>
  87. <Cell col="15" text="15일"/>
  88. <Cell col="16" text="16일"/>
  89. <Cell col="17" text="17일"/>
  90. <Cell col="18" text="18일"/>
  91. <Cell col="19" text="19일"/>
  92. <Cell col="20" text="20일"/>
  93. <Cell col="21" text="21일"/>
  94. <Cell col="22" text="22일"/>
  95. <Cell col="23" text="23일"/>
  96. <Cell col="24" text="24일"/>
  97. <Cell col="25" text="25일"/>
  98. <Cell col="26" text="26일"/>
  99. <Cell col="27" text="27일"/>
  100. <Cell col="28" text="28일"/>
  101. <Cell col="29" text="29일"/>
  102. <Cell col="30" text="30일"/>
  103. <Cell col="31" text="31일"/>
  104. <Cell col="32" text="Total"/>
  105. </Band>
  106. <Band id="body">
  107. <Cell style="align:center middle;" text="bind:orddept"/>
  108. <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
  109. <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
  110. <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
  111. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
  112. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:a05"/>
  113. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:a06"/>
  114. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:a07"/>
  115. <Cell col="8" displaytype="number" style="align:right middle;" text="bind:a08"/>
  116. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:a09"/>
  117. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:a10"/>
  118. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:a11"/>
  119. <Cell col="12" displaytype="number" style="align:right middle;" text="bind:a12"/>
  120. <Cell col="13" displaytype="number" style="align:right middle;" text="bind:a13"/>
  121. <Cell col="14" displaytype="number" style="align:right middle;" text="bind:a14"/>
  122. <Cell col="15" displaytype="number" style="align:right middle;" text="bind:a15"/>
  123. <Cell col="16" displaytype="number" style="align:right middle;" text="bind:a16"/>
  124. <Cell col="17" displaytype="number" style="align:right middle;" text="bind:a17"/>
  125. <Cell col="18" displaytype="number" style="align:right middle;" text="bind:a18"/>
  126. <Cell col="19" displaytype="number" style="align:right middle;" text="bind:a19"/>
  127. <Cell col="20" displaytype="number" style="align:right middle;" text="bind:a20"/>
  128. <Cell col="21" displaytype="number" style="align:right middle;" text="bind:a21"/>
  129. <Cell col="22" displaytype="number" style="align:right middle;" text="bind:a22"/>
  130. <Cell col="23" displaytype="number" style="align:right middle;" text="bind:a23"/>
  131. <Cell col="24" displaytype="number" style="align:right middle;" text="bind:a24"/>
  132. <Cell col="25" displaytype="number" style="align:right middle;" text="bind:a25"/>
  133. <Cell col="26" displaytype="number" style="align:right middle;" text="bind:a26"/>
  134. <Cell col="27" displaytype="number" style="align:right middle;" text="bind:a27"/>
  135. <Cell col="28" displaytype="number" style="align:right middle;" text="bind:a28"/>
  136. <Cell col="29" displaytype="number" style="align:right middle;" text="bind:a29"/>
  137. <Cell col="30" displaytype="number" style="align:right middle;" text="bind:a30"/>
  138. <Cell col="31" displaytype="number" style="align:right middle;" text="bind:a31"/>
  139. <Cell col="32" displaytype="number" style="align:right middle;" text="bind:ahap"/>
  140. </Band>
  141. </Format>
  142. </Formats>
  143. </Grid>
  144. </Layout>
  145. </Layouts>
  146. </Tabpage>
  147. <Tabpage id="case1" text="월별">
  148. <Layouts>
  149. <Layout>
  150. <Static id="caption1" class="tit_2" position="absolute 0 0 123 20" anchor="default" text="월별 수혈환자수" style="align:left top;" positiontype="position"/>
  151. <Grid id="grd_month" position="absolute 0 20 1256 701" anchor="all" autofittype="col" positiontype="position" binddataset="ds_grid_grd_month">
  152. <Formats>
  153. <Format id="default">
  154. <Columns>
  155. <Column size="120"/>
  156. <Column size="80"/>
  157. <Column size="80"/>
  158. <Column size="80"/>
  159. <Column size="80"/>
  160. <Column size="80"/>
  161. <Column size="80"/>
  162. <Column size="80"/>
  163. <Column size="80"/>
  164. <Column size="80"/>
  165. <Column size="80"/>
  166. <Column size="80"/>
  167. <Column size="80"/>
  168. <Column size="80"/>
  169. </Columns>
  170. <Rows>
  171. <Row size="22" band="head"/>
  172. <Row size="20"/>
  173. </Rows>
  174. <Band id="head">
  175. <Cell text="진료과"/>
  176. <Cell col="1" text="1월"/>
  177. <Cell col="2" text="2월"/>
  178. <Cell col="3" text="3월"/>
  179. <Cell col="4" text="4월"/>
  180. <Cell col="5" text="5월"/>
  181. <Cell col="6" text="6월"/>
  182. <Cell col="7" text="7월"/>
  183. <Cell col="8" text="8월"/>
  184. <Cell col="9" text="9월"/>
  185. <Cell col="10" text="10월"/>
  186. <Cell col="11" text="11월"/>
  187. <Cell col="12" text="12월"/>
  188. <Cell col="13" text="Total"/>
  189. </Band>
  190. <Band id="body">
  191. <Cell style="align:center middle;" text="bind:orddept"/>
  192. <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
  193. <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
  194. <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
  195. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
  196. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:a05"/>
  197. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:a06"/>
  198. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:a07"/>
  199. <Cell col="8" displaytype="number" style="align:right middle;" text="bind:a08"/>
  200. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:a09"/>
  201. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:a10"/>
  202. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:a11"/>
  203. <Cell col="12" displaytype="number" style="align:right middle;" text="bind:a12"/>
  204. <Cell col="13" displaytype="number" style="align:right middle;" text="bind:ahap"/>
  205. </Band>
  206. </Format>
  207. </Formats>
  208. </Grid>
  209. </Layout>
  210. </Layouts>
  211. </Tabpage>
  212. <Tabpage id="case2" text="분기별">
  213. <Layouts>
  214. <Layout>
  215. <Static id="caption2" class="tit_2" position="absolute 0 0 131 20" anchor="default" text="분기별 수혈환자수" style="align:left top;" positiontype="position"/>
  216. <Grid id="grd_quarter" position="absolute 0 20 1256 701" anchor="all" autofittype="col" positiontype="position" binddataset="ds_grid_grd_quarter">
  217. <Formats>
  218. <Format id="default">
  219. <Columns>
  220. <Column size="120"/>
  221. <Column size="120"/>
  222. <Column size="120"/>
  223. <Column size="120"/>
  224. <Column size="120"/>
  225. <Column size="120"/>
  226. </Columns>
  227. <Rows>
  228. <Row size="22" band="head"/>
  229. <Row size="20"/>
  230. </Rows>
  231. <Band id="head">
  232. <Cell text="진료과"/>
  233. <Cell col="1" text="1분기"/>
  234. <Cell col="2" text="2분기"/>
  235. <Cell col="3" text="3분기"/>
  236. <Cell col="4" text="4분기"/>
  237. <Cell col="5" text="Total"/>
  238. </Band>
  239. <Band id="body">
  240. <Cell style="align:center middle;" text="bind:orddept"/>
  241. <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
  242. <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
  243. <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
  244. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
  245. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:ahap"/>
  246. </Band>
  247. </Format>
  248. </Formats>
  249. </Grid>
  250. </Layout>
  251. </Layouts>
  252. </Tabpage>
  253. <Tabpage id="case3" text="연별">
  254. <Layouts>
  255. <Layout>
  256. <Static id="caption3" class="tit_2" position="absolute 0 0 131 20" anchor="default" text="연별 수혈환자수" style="align:left top;" positiontype="position"/>
  257. <Grid id="grd_year" position="absolute 0 20 1256 701" anchor="all" autofittype="none" positiontype="position" binddataset="ds_grid_grd_year">
  258. <Formats>
  259. <Format id="default">
  260. <Columns>
  261. <Column size="100"/>
  262. <Column size="100"/>
  263. <Column size="100"/>
  264. <Column size="100"/>
  265. <Column size="100"/>
  266. <Column size="100"/>
  267. <Column size="100"/>
  268. <Column size="100"/>
  269. <Column size="100"/>
  270. <Column size="100"/>
  271. <Column size="100"/>
  272. <Column size="80"/>
  273. </Columns>
  274. <Rows>
  275. <Row size="22" band="head"/>
  276. <Row size="20"/>
  277. </Rows>
  278. <Band id="head">
  279. <Cell text="진료과"/>
  280. <Cell col="1"/>
  281. <Cell col="2"/>
  282. <Cell col="3"/>
  283. <Cell col="4"/>
  284. <Cell col="5"/>
  285. <Cell col="6"/>
  286. <Cell col="7"/>
  287. <Cell col="8"/>
  288. <Cell col="9"/>
  289. <Cell col="10"/>
  290. <Cell col="11" text="Total"/>
  291. </Band>
  292. <Band id="body">
  293. <Cell style="align:center middle;" text="bind:orddept"/>
  294. <Cell col="1" displaytype="number" style="align:right middle;" text="bind:a01"/>
  295. <Cell col="2" displaytype="number" style="align:right middle;" text="bind:a02"/>
  296. <Cell col="3" displaytype="number" style="align:right middle;" text="bind:a03"/>
  297. <Cell col="4" displaytype="number" style="align:right middle;" text="bind:a04"/>
  298. <Cell col="5" displaytype="number" style="align:right middle;" text="bind:a05"/>
  299. <Cell col="6" displaytype="number" style="align:right middle;" text="bind:a06"/>
  300. <Cell col="7" displaytype="number" style="align:right middle;" text="bind:a07"/>
  301. <Cell col="8" displaytype="number" style="align:right middle;" text="bind:a08"/>
  302. <Cell col="9" displaytype="number" style="align:right middle;" text="bind:a09"/>
  303. <Cell col="10" displaytype="number" style="align:right middle;" text="bind:a10"/>
  304. <Cell col="11" displaytype="number" style="align:right middle;" text="bind:ahap"/>
  305. </Band>
  306. </Format>
  307. </Formats>
  308. </Grid>
  309. </Layout>
  310. </Layouts>
  311. </Tabpage>
  312. </Tabpages>
  313. </Tab>
  314. <Button id="btn_excel" class="btn7" position="absolute 1203 49 1256 69" anchor="top right" text="엑셀" onlbuttonup="btn_excel_onlbuttonup" positiontype="position"/>
  315. </Layout>
  316. </Layouts>
  317. </Div>
  318. <Button id="btn_print" taborder="1" text="출력" onlbuttonup="btn_print_onlbuttonup" class="btn6" position="absolute 1128 0 1184 20" anchor="top right"/>
  319. <Button id="btn_reset" taborder="2" text="초기화" onlbuttonup="btn_reset_onlbuttonup" class="btn4" position="absolute 1187 0 1256 20" anchor="top right"/>
  320. <Static id="caption6" text="수혈환자수" class="tit_1" position="absolute 0 0 150 25"/>
  321. </Layout>
  322. </Layouts>
  323. <Objects>
  324. <Dataset id="ds_grid_grd_days" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
  325. <ColumnInfo>
  326. <column id="orddept" type="STRING" size="256"/>
  327. <column id="a01" type="STRING" size="256"/>
  328. <column id="a02" type="STRING" size="256"/>
  329. <column id="a03" type="STRING" size="256"/>
  330. <column id="a04" type="STRING" size="256"/>
  331. <column id="a05" type="STRING" size="256"/>
  332. <column id="a06" type="STRING" size="256"/>
  333. <column id="a07" type="STRING" size="256"/>
  334. <column id="a08" type="STRING" size="256"/>
  335. <column id="a09" type="STRING" size="256"/>
  336. <column id="a10" type="STRING" size="256"/>
  337. <column id="a11" type="STRING" size="256"/>
  338. <column id="a12" type="STRING" size="256"/>
  339. <column id="a13" type="STRING" size="256"/>
  340. <column id="a14" type="STRING" size="256"/>
  341. <column id="a15" type="STRING" size="256"/>
  342. <column id="a16" type="STRING" size="256"/>
  343. <column id="a17" type="STRING" size="256"/>
  344. <column id="a18" type="STRING" size="256"/>
  345. <column id="a19" type="STRING" size="256"/>
  346. <column id="a20" type="STRING" size="256"/>
  347. <column id="a21" type="STRING" size="256"/>
  348. <column id="a22" type="STRING" size="256"/>
  349. <column id="a23" type="STRING" size="256"/>
  350. <column id="a24" type="STRING" size="256"/>
  351. <column id="a25" type="STRING" size="256"/>
  352. <column id="a26" type="STRING" size="256"/>
  353. <column id="a27" type="STRING" size="256"/>
  354. <column id="a28" type="STRING" size="256"/>
  355. <column id="a29" type="STRING" size="256"/>
  356. <column id="a30" type="STRING" size="256"/>
  357. <column id="a31" type="STRING" size="256"/>
  358. <column id="ahap" type="STRING" size="256"/>
  359. </ColumnInfo>
  360. </Dataset>
  361. <Dataset id="ds_grid_grd_month" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
  362. <ColumnInfo>
  363. <column id="orddept" type="STRING" size="256"/>
  364. <column id="a01" type="STRING" size="256"/>
  365. <column id="a02" type="STRING" size="256"/>
  366. <column id="a03" type="STRING" size="256"/>
  367. <column id="a04" type="STRING" size="256"/>
  368. <column id="a05" type="STRING" size="256"/>
  369. <column id="a06" type="STRING" size="256"/>
  370. <column id="a07" type="STRING" size="256"/>
  371. <column id="a08" type="STRING" size="256"/>
  372. <column id="a09" type="STRING" size="256"/>
  373. <column id="a10" type="STRING" size="256"/>
  374. <column id="a11" type="STRING" size="256"/>
  375. <column id="a12" type="STRING" size="256"/>
  376. <column id="ahap" type="STRING" size="256"/>
  377. </ColumnInfo>
  378. </Dataset>
  379. <Dataset id="ds_grid_grd_quarter" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
  380. <ColumnInfo>
  381. <column id="orddept" type="STRING" size="256"/>
  382. <column id="a01" type="STRING" size="256"/>
  383. <column id="a02" type="STRING" size="256"/>
  384. <column id="a03" type="STRING" size="256"/>
  385. <column id="a04" type="STRING" size="256"/>
  386. <column id="ahap" type="STRING" size="256"/>
  387. </ColumnInfo>
  388. </Dataset>
  389. <Dataset id="ds_grid_grd_year" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
  390. <ColumnInfo>
  391. <column id="orddept" type="STRING" size="256"/>
  392. <column id="a01" type="STRING" size="256"/>
  393. <column id="a02" type="STRING" size="256"/>
  394. <column id="a03" type="STRING" size="256"/>
  395. <column id="a04" type="STRING" size="256"/>
  396. <column id="a05" type="STRING" size="256"/>
  397. <column id="a06" type="STRING" size="256"/>
  398. <column id="a07" type="STRING" size="256"/>
  399. <column id="a08" type="STRING" size="256"/>
  400. <column id="a09" type="STRING" size="256"/>
  401. <column id="a10" type="STRING" size="256"/>
  402. <column id="ahap" type="STRING" size="256"/>
  403. </ColumnInfo>
  404. </Dataset>
  405. <Dataset id="ds_cond_gbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  406. <ColumnInfo>
  407. <Column id="label" type="STRING" size="256"/>
  408. <Column id="value" type="STRING" size="256"/>
  409. </ColumnInfo>
  410. <Rows>
  411. <Row>
  412. <Col id="label">전체</Col>
  413. <Col id="value">1</Col>
  414. </Row>
  415. <Row>
  416. <Col id="label">입원환자</Col>
  417. <Col id="value">2</Col>
  418. </Row>
  419. <Row>
  420. <Col id="label">외래환자</Col>
  421. <Col id="value">3</Col>
  422. </Row>
  423. </Rows>
  424. </Dataset>
  425. <Dataset id="ds_data_monthPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
  426. <ColumnInfo>
  427. <column id="orddept" type="STRING" size="256"/>
  428. <column id="a01" type="STRING" size="256"/>
  429. <column id="a02" type="STRING" size="256"/>
  430. <column id="a03" type="STRING" size="256"/>
  431. <column id="a04" type="STRING" size="256"/>
  432. <column id="a05" type="STRING" size="256"/>
  433. <column id="a06" type="STRING" size="256"/>
  434. <column id="a07" type="STRING" size="256"/>
  435. <column id="a08" type="STRING" size="256"/>
  436. <column id="a09" type="STRING" size="256"/>
  437. <column id="a10" type="STRING" size="256"/>
  438. <column id="a11" type="STRING" size="256"/>
  439. <column id="a12" type="STRING" size="256"/>
  440. <column id="bhap" type="STRING" size="256"/>
  441. </ColumnInfo>
  442. </Dataset>
  443. <Dataset id="ds_data_quarterPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
  444. <ColumnInfo>
  445. <column id="orddept" type="STRING" size="256"/>
  446. <column id="b01" type="STRING" size="256"/>
  447. <column id="b02" type="STRING" size="256"/>
  448. <column id="b03" type="STRING" size="256"/>
  449. <column id="b04" type="STRING" size="256"/>
  450. <column id="bhap" type="STRING" size="256"/>
  451. </ColumnInfo>
  452. </Dataset>
  453. <Dataset id="ds_data_yearPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rsltregst_onrowposchanged">
  454. <ColumnInfo>
  455. <column id="orddept" type="STRING" size="256"/>
  456. <column id="c01" type="STRING" size="256"/>
  457. <column id="c02" type="STRING" size="256"/>
  458. <column id="c03" type="STRING" size="256"/>
  459. <column id="c04" type="STRING" size="256"/>
  460. <column id="c05" type="STRING" size="256"/>
  461. <column id="c06" type="STRING" size="256"/>
  462. <column id="c07" type="STRING" size="256"/>
  463. <column id="c08" type="STRING" size="256"/>
  464. <column id="c09" type="STRING" size="256"/>
  465. <column id="c10" type="STRING" size="256"/>
  466. <column id="bhap" type="STRING" size="256"/>
  467. </ColumnInfo>
  468. </Dataset>
  469. </Objects>
  470. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  471. * System Name :
  472. * Job Name :
  473. * Creator :
  474. * Make Date : 2015-11-13
  475. * Description :
  476. *---------------------------------------------------------------------------------------
  477. * Modify Date Modifier Modify Description
  478. *---------------------------------------------------------------------------------------
  479. * 2015-11-13 Live Converter TF->XP
  480. *
  481. *---------------------------------------------------------------------------------------
  482. ****************************************************************************************/
  483. include "com_commonxp::comm_main.xjs";
  484. include "lis_commonxp::LLZ001.xjs";
  485. include "lis_commonxp::LZZ001.xjs";
  486. function model1_oninit(obj:Form, e:InitEventInfo)
  487. {
  488. //폼 초기화 함수
  489. frmf_initForm(obj);
  490. lf_setInit();
  491. }
  492. function lf_setInit() {
  493. var curDate = utlf_getYear()+utlf_getMonth();
  494. group3.group1.cp_workfromdd.value = curDate;
  495. group3.group1.cp_worktodd.visible = curDate;
  496. group3.group1.cmb_rtnabnflag.value = "1"; // 1=전체, 2= 입원, 3=외래
  497. group3.switch1.tabindex = 1; // 0=일별 1=월별 2=분기별 3=연별
  498. group3.group1.caption9.visible = false;
  499. group3.group1.cp_worktodd.visible = false;
  500. ds_grid_grd_days.clearData();
  501. ds_grid_grd_month.clearData();
  502. ds_grid_grd_quarter.clearData();
  503. ds_grid_grd_year.clearData();
  504. }
  505. function lf_getTransPidCnt() {
  506. var fromdd = group3.group1.cp_workfromdd.getData();
  507. var todd = group3.group1.cp_worktodd.getData();
  508. var gbn = group3.group1.cmb_rtnabnflag.value; // 1=전체, 2= 입원, 3=외래
  509. var flag = group3.switch1.tabindex; // 0=일별, 1=월별, 2=분기별, 3=연별
  510. var fromYr = toNumber(fromdd.substr(0, 4));
  511. var toYr = toNumber(todd.substr(0, 4));
  512. var diffYr = 0; // 년수 차이
  513. // 일별
  514. if(group3.switch1.tabindex == 0) {
  515. var sInDsName = dsf_createDsRow("ds_temp_search"
  516. , [{col: "flag", val:flag }
  517. , {col: "fromdd", val:fromdd }
  518. , {col: "todd", val:todd }
  519. , {col: "gbn", val:gbn }
  520. ]);
  521. var oParam = {};
  522. oParam.id = "TRLBS00301";
  523. oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
  524. oParam.method = "reqGetTransPidCnt1";
  525. oParam.inds = "cond="+sInDsName;
  526. oParam.outds = "ds_grid_grd_days=getTransPidCnt1";
  527. oParam.async = false;
  528. oParam.callback = "cbf_SMLBS00300";
  529. tranf_submit(oParam);
  530. // 월별
  531. }else if(group3.switch1.tabindex == 1) {
  532. var sInDsName = dsf_createDsRow("ds_temp_search"
  533. , [{col: "flag", val:flag }
  534. , {col: "fromdd", val:fromdd }
  535. , {col: "todd", val:todd }
  536. , {col: "gbn", val:gbn }
  537. ]);
  538. var oParam = {};
  539. oParam.id = "TRLBS00301";
  540. oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
  541. oParam.method = "reqGetTransPidCnt1";
  542. oParam.inds = "cond="+sInDsName;
  543. oParam.outds = "ds_grid_grd_month=getTransPidCnt1";
  544. oParam.async = false;
  545. oParam.callback = "cbf_SMLBS00300";
  546. tranf_submit(oParam);
  547. // 분기별
  548. }else if(group3.switch1.tabindex == 2) {
  549. var sInDsName = dsf_createDsRow("ds_temp_search"
  550. , [{col: "flag", val:flag }
  551. , {col: "fromdd", val:fromdd }
  552. , {col: "todd", val:todd }
  553. , {col: "gbn", val:gbn }
  554. ]);
  555. var oParam = {};
  556. oParam.id = "TRLBS00302";
  557. oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
  558. oParam.method = "reqGetTransPidCnt2";
  559. oParam.inds = "cond="+sInDsName;
  560. oParam.outds = "ds_grid_grd_quarter=getTransPidCnt2";
  561. oParam.async = false;
  562. oParam.callback = "cbf_SMLBS00300";
  563. tranf_submit(oParam);
  564. // 연별
  565. }else if(group3.switch1.tabindex == 3) {
  566. group3.switch1.case3.grd_year.binddataset = "";
  567. lf_yearCaption();
  568. diffYr = toYr - fromYr;
  569. if(diffYr > 9){
  570. sysf_messageBox("10년이내로 조회하세요.","E");
  571. return;
  572. }
  573. var sInDsName = dsf_createDsRow("ds_temp_search"
  574. , [{col: "flag", val:flag }
  575. , {col: "fromdd", val:fromdd }
  576. , {col: "todd", val:todd }
  577. , {col: "gbn", val:gbn }
  578. ]);
  579. var oParam = {};
  580. oParam.id = "TRLBS00303";
  581. oParam.service = "statsmngtapp.BloodBankStatsRefMngt";
  582. oParam.method = "reqGetTransPidCnt3";
  583. oParam.inds = "cond="+sInDsName;
  584. oParam.outds = "ds_grid_grd_year=getTransPidCnt3";
  585. oParam.async = false;
  586. oParam.callback = "cbf_SMLBS00300";
  587. tranf_submit(oParam);
  588. }
  589. }
  590. // 엑셀 저장
  591. function lf_saveExcel() {
  592. // 일별
  593. if(group3.switch1.tabindex == 0) {
  594. grdf_exportExcel(group3.switch1.case0.grd_days, lf_lisGetTitle(this), "sheet1", false);
  595. // 월별
  596. }else if(group3.switch1.tabindex == 1) {
  597. grdf_exportExcel(group3.switch1.case1.grd_month, lf_lisGetTitle(this), "sheet1", false);
  598. // 분기별
  599. }else if(group3.switch1.tabindex == 2) {
  600. grdf_exportExcel(group3.switch1.case2.grd_quarter, lf_lisGetTitle(this), "sheet1", false);
  601. // 연별
  602. }else if(group3.switch1.tabindex == 3) {
  603. grdf_exportExcel(group3.switch1.case3.grd_year, lf_lisGetTitle(this), "sheet1", false);
  604. }
  605. }
  606. // 출력
  607. function lf_exePrint(){
  608. // 월별
  609. if(group3.switch1.tabindex == 1) {
  610. ds_data_monthPrint.clearData();
  611. var addRw = 0;
  612. for(var i=0; i<ds_grid_grd_month.rowcount; i++){
  613. addRw = ds_data_monthPrint.addRow();
  614. ds_data_monthPrint.setColumn(addRw, "orddept", ds_grid_grd_month.getColumn(i, "orddept"));
  615. ds_data_monthPrint.setColumn(addRw, "a01", ds_grid_grd_month.getColumn(i, "a01"));
  616. ds_data_monthPrint.setColumn(addRw, "a02", ds_grid_grd_month.getColumn(i, "a02"));
  617. ds_data_monthPrint.setColumn(addRw, "a03", ds_grid_grd_month.getColumn(i, "a03"));
  618. ds_data_monthPrint.setColumn(addRw, "a04", ds_grid_grd_month.getColumn(i, "a04"));
  619. ds_data_monthPrint.setColumn(addRw, "a05", ds_grid_grd_month.getColumn(i, "a05"));
  620. ds_data_monthPrint.setColumn(addRw, "a06", ds_grid_grd_month.getColumn(i, "a06"));
  621. ds_data_monthPrint.setColumn(addRw, "a07", ds_grid_grd_month.getColumn(i, "a07"));
  622. ds_data_monthPrint.setColumn(addRw, "a08", ds_grid_grd_month.getColumn(i, "a08"));
  623. ds_data_monthPrint.setColumn(addRw, "a09", ds_grid_grd_month.getColumn(i, "a09"));
  624. ds_data_monthPrint.setColumn(addRw, "a10", ds_grid_grd_month.getColumn(i, "a10"));
  625. ds_data_monthPrint.setColumn(addRw, "a11", ds_grid_grd_month.getColumn(i, "a11"));
  626. ds_data_monthPrint.setColumn(addRw, "a12", ds_grid_grd_month.getColumn(i, "a12"));
  627. ds_data_monthPrint.setColumn(addRw, "bhap", ds_grid_grd_month.getColumn(i, "ahap"));
  628. }
  629. var objDOM = rptf_createDOM(); // DOM 객체 설정
  630. rptf_makeNodeToDOM(objDOM, "/root/hidden/report");
  631. rptf_setValueToDOM(objDOM, "/root/hidden/report/fromdd", group3.group1.cp_workfromdd.getData());
  632. rptf_setValueToDOM(objDOM, "/root/hidden/report/todd", group3.group1.cp_worktodd.getData());
  633. rptf_setNodeListToDOM(objDOM, "/root/hidden/report/month", ds_data_monthPrint);
  634. var objParam = new Object();
  635. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  636. var option = "open=1;save=1;directprint=0;print=1;zoom=0";
  637. rptf_exeReportPreview30(["RPLBS00300"],[objParam], option);
  638. // 분기별
  639. }else if(group3.switch1.tabindex == 2) {
  640. ds_data_quarterPrint.clearData();
  641. var addRw = 0;
  642. for(var i=0; i<ds_grid_grd_quarter.rowcount; i++){
  643. addRw = ds_data_quarterPrint.addRow();
  644. ds_data_quarterPrint.setColumn(addRw, "orddept", ds_grid_grd_quarter.getColumn(i, "orddept"));
  645. ds_data_quarterPrint.setColumn(addRw, "b01", ds_grid_grd_quarter.getColumn(i, "a01"));
  646. ds_data_quarterPrint.setColumn(addRw, "b02", ds_grid_grd_quarter.getColumn(i, "a02"));
  647. ds_data_quarterPrint.setColumn(addRw, "b03", ds_grid_grd_quarter.getColumn(i, "a03"));
  648. ds_data_quarterPrint.setColumn(addRw, "b04", ds_grid_grd_quarter.getColumn(i, "a04"));
  649. ds_data_quarterPrint.setColumn(addRw, "bhap", ds_grid_grd_quarter.getColumn(i, "ahap"));
  650. }
  651. var objDOM = rptf_createDOM(); // DOM 객체 설정
  652. rptf_makeNodeToDOM(objDOM, "/root/hidden/report");
  653. rptf_setValueToDOM(objDOM, "/root/hidden/report/fromdd", group3.group1.cp_workfromdd.getData());
  654. rptf_setValueToDOM(objDOM, "/root/hidden/report/todd", group3.group1.cp_worktodd.getData());
  655. rptf_setNodeListToDOM(objDOM, "/root/hidden/report/quarter", ds_data_quarterPrint);
  656. var objParam = new Object();
  657. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  658. var option = "open=1;save=1;directprint=0;print=1;zoom=0";
  659. rptf_exeReportPreview30(["RPLBS00400"],[objParam], option);
  660. // 연별
  661. }else if(group3.switch1.tabindex == 3) {
  662. ds_data_yearPrint.clearData();
  663. var addRw = 0;
  664. for(var i=0; i<ds_grid_grd_year.rowcount; i++){
  665. addRw = ds_data_yearPrint.addRow();
  666. ds_data_yearPrint.setColumn(addRw, "orddept", ds_grid_grd_year.getColumn(i, "orddept"));
  667. ds_data_yearPrint.setColumn(addRw, "c01", ds_grid_grd_year.getColumn(i, "a01"));
  668. ds_data_yearPrint.setColumn(addRw, "c02", ds_grid_grd_year.getColumn(i, "a02"));
  669. ds_data_yearPrint.setColumn(addRw, "c03", ds_grid_grd_year.getColumn(i, "a03"));
  670. ds_data_yearPrint.setColumn(addRw, "c04", ds_grid_grd_year.getColumn(i, "a04"));
  671. ds_data_yearPrint.setColumn(addRw, "c05", ds_grid_grd_year.getColumn(i, "a05"));
  672. ds_data_yearPrint.setColumn(addRw, "c06", ds_grid_grd_year.getColumn(i, "a06"));
  673. ds_data_yearPrint.setColumn(addRw, "c07", ds_grid_grd_year.getColumn(i, "a07"));
  674. ds_data_yearPrint.setColumn(addRw, "c08", ds_grid_grd_year.getColumn(i, "a08"));
  675. ds_data_yearPrint.setColumn(addRw, "c09", ds_grid_grd_year.getColumn(i, "a09"));
  676. ds_data_yearPrint.setColumn(addRw, "c10", ds_grid_grd_year.getColumn(i, "a10"));
  677. ds_data_yearPrint.setColumn(addRw, "bhap", ds_grid_grd_year.getColumn(i, "ahap"));
  678. }
  679. var sdd = group3.group1.cp_workfromdd.getData();
  680. var sdd = toNumber(sdd.substr(0, 4));
  681. var objDOM = rptf_createDOM(); // DOM 객체 설정
  682. rptf_makeNodeToDOM(objDOM, "/root/hidden/report");
  683. rptf_setValueToDOM(objDOM, "/root/hidden/report/fromdd", group3.group1.cp_workfromdd.getData());
  684. rptf_setValueToDOM(objDOM, "/root/hidden/report/todd", group3.group1.cp_worktodd.getData());
  685. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title1", sdd);
  686. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title2", sdd+1);
  687. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title3", sdd+2);
  688. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title4", sdd+3);
  689. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title5", sdd+4);
  690. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title6", sdd+5);
  691. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title7", sdd+6);
  692. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title8", sdd+7);
  693. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title9", sdd+8);
  694. rptf_setValueToDOM(objDOM, "/root/hidden/report/title/title10", sdd+9);
  695. rptf_setNodeListToDOM(objDOM, "/root/hidden/report/year", ds_data_yearPrint);
  696. var objParam = new Object();
  697. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  698. var option = "open=1;save=1;directprint=0;print=1;zoom=0";
  699. rptf_exeReportPreview30(["RPLBS00500"],[objParam], option);
  700. }
  701. }
  702. // 연별 캡션 변경
  703. function lf_yearCaption() {
  704. for(var i=1; i<group3.switch1.case3.grd_year.getFormatColCount(); i++){
  705. group3.switch1.case3.grd_year.setFormatColProperty(i, "size", 0);
  706. }
  707. var fromdd = group3.group1.cp_workfromdd.getData();
  708. var todd = group3.group1.cp_worktodd.getData();
  709. var fromyy = toNumber(fromdd.substr(0, 4));
  710. var toyy = toNumber(todd.substr(0, 4));
  711. var newCap = "진료과";
  712. var cnt = 0;
  713. for(i=fromyy; i<=toyy; i++){
  714. newCap += "^" + i;
  715. cnt ++;
  716. }
  717. var upHeadArr = newCap.split("^");
  718. var tempCnt = 1;
  719. for(var z=1; z<=cnt; z++) {
  720. group3.switch1.case3.grd_year.setFormatColProperty(z, "size", 100);
  721. if(!utlf_isNull(upHeadArr[tempCnt])) {
  722. group3.switch1.case3.grd_year.setCellProperty("Head", z, "text", ""+upHeadArr[tempCnt]);
  723. tempCnt = tempCnt + 1;
  724. }
  725. }
  726. }
  727. // callback 함수
  728. function cbf_SMLBS00300(strSvcID, nErrorCode, strErrorMag) {
  729. if(nErrorCode != 0) {
  730. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  731. }else{
  732. switch(strSvcID){
  733. case "TRLBS00301":
  734. break;
  735. case "TRLBS00302":
  736. break;
  737. case "TRLBS00303":
  738. group3.switch1.case3.grd_year.binddataset = "ds_grid_grd_year";
  739. break;
  740. case "TRLBS00304":
  741. break;
  742. default:
  743. break;
  744. }
  745. }
  746. }
  747. function btn_ref_onlbuttonup(obj:Button, e:MouseEventInfo)
  748. {
  749. lf_getTransPidCnt();
  750. }
  751. function group3_switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  752. {
  753. // 일별
  754. if(e.postindex == 0){
  755. group3.group1.caption9.visible = false;
  756. group3.group1.cp_worktodd.visible = false;
  757. // 월별
  758. }else if(e.postindex == 1){
  759. group3.group1.caption9.visible = false;
  760. group3.group1.cp_worktodd.visible = false;
  761. // 분기별
  762. }else if(e.postindex == 2){
  763. group3.group1.caption9.visible = false;
  764. group3.group1.cp_worktodd.visible = false;
  765. // 연별
  766. }else if(e.postindex == 3){
  767. group3.group1.caption9.visible = true;
  768. group3.group1.cp_worktodd.visible = true;
  769. lf_yearCaption(); // 연별캡션 변경
  770. }
  771. }
  772. function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
  773. {
  774. lf_saveExcel();
  775. }
  776. function btn_reset_onlbuttonup(obj:Button, e:MouseEventInfo)
  777. {
  778. lf_setInit();
  779. }
  780. function btn_print_onlbuttonup(obj:Button, e:MouseEventInfo)
  781. {
  782. lf_exePrint();
  783. }
  784. ]]></Script>
  785. </Form>
  786. </FDL>