SMLLS00100_채혈통계.xfdl 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLS00100" position="absolute 0 0 1256 805" titletext="채혈 통계" oninit="SMLLS00100_oninit" onload="SMLLS00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption10" class="tit_1" position="absolute 0 0 116 25" anchor="default" positiontype="position" text="채혈 통계"/>
  8. <Button id="btn_print" class="btn6" visible="false" position="absolute 1200 0 1256 20" anchor="default" positiontype="position" text="출력" onlbuttonup="btn_print_onlbuttonup" onclick="btn_print_onclick"/>
  9. <Button id="btn_excel" class="btn7" position="absolute 1154 0 1256 20" anchor="top right" positiontype="position" text="EXCEL저장" onclick="btn_excel_onclick" style="align:left middle;"/>
  10. <Div id="Div00" taborder="47" style="background:white;" text="00" position="absolute 0 52 1256 805" anchor="all">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption7" text="외래채혈 환자수 달력편" class="tit_2" position="absolute 0 0 184 20" anchor="default"/>
  14. <Button id="button131" taborder="61" onclick="button131_onclick" onlbuttonup="button131_onlbuttonup" class="icon_pre_year" position="absolute 480 23 496 43" anchor="default"/>
  15. <Button id="btn_premonth" taborder="62" onclick="btn_premonth_onclick" onlbuttonup="btn_premonth_onlbuttonup" class="icon_pre_month" position="absolute 499 23 515 43" anchor="default"/>
  16. <Edit id="opt_year" taborder="63" readonly="true" class="calendar_output" position="absolute 532 20 582 40" anchor="default"/>
  17. <Static id="caption101" text="년" class="calendar_output" position="absolute 582 20 602 40" anchor="default"/>
  18. <Edit id="opt_month" taborder="64" readonly="true" class="calendar_output" position="absolute 607 20 647 40" anchor="default"/>
  19. <Static id="caption102" text="월" class="calendar_output" position="absolute 647 20 667 40" anchor="default"/>
  20. <Button id="button134" taborder="65" onclick="button134_onclick" onlbuttonup="button134_onlbuttonup" class="icon_next_month" position="absolute 676 23 692 43" anchor="default"/>
  21. <Button id="button132" taborder="66" onclick="button132_onclick" onlbuttonup="button132_onlbuttonup" class="icon_next_year" position="absolute 695 23 711 43" anchor="default"/>
  22. <Button id="btn_cal" taborder="67" text="조회" onclick="btn_cal_onclick" onlbuttonup="btn_cal_onlbuttonup" class="btn1" visible="false" position="absolute 1200 0 1256 20" anchor="top right"/>
  23. <Grid id="grd_calendar" class="gridcalendar2" taborder="68" binddataset="ds_grid_grd_calendar" useinputpanel="false" autofittype="col" position="absolute 0 43 1256 746" anchor="all" onclick="grd_calendar_onclick" selecttype="cell">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="170"/>
  28. <Column size="170"/>
  29. <Column size="170"/>
  30. <Column size="170"/>
  31. <Column size="170"/>
  32. <Column size="170"/>
  33. <Column size="170"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell text="일"/>
  42. <Cell col="1" text="월"/>
  43. <Cell col="2" text="화"/>
  44. <Cell col="3" text="수"/>
  45. <Cell col="4" text="목"/>
  46. <Cell col="5" text="금"/>
  47. <Cell col="6" text="토"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell rowspan="2" taborder="undefined">
  51. <Cell style="color:red;color2:red;font:arial,9,bold;" class="color_sun" text="bind:sun"/>
  52. <Cell row="1" text="bind:sun_cnt"/>
  53. </Cell>
  54. <Cell col="1" rowspan="2" taborder="undefined">
  55. <Cell style="font:arial,9,bold;" text="bind:mon"/>
  56. <Cell row="1" text="bind:mon_cnt"/>
  57. </Cell>
  58. <Cell col="2" rowspan="2" taborder="undefined">
  59. <Cell style="font:arial,9,bold;" text="bind:tue"/>
  60. <Cell row="1" text="bind:tue_cnt"/>
  61. </Cell>
  62. <Cell col="3" rowspan="2" taborder="undefined">
  63. <Cell style="font:arial,9,bold;" text="bind:wed"/>
  64. <Cell row="1" text="bind:wed_cnt"/>
  65. </Cell>
  66. <Cell col="4" rowspan="2" taborder="undefined">
  67. <Cell style="font:arial,9,bold;" text="bind:thu"/>
  68. <Cell row="1" text="bind:thu_cnt"/>
  69. </Cell>
  70. <Cell col="5" rowspan="2" taborder="undefined">
  71. <Cell style="font:arial,9,bold;" text="bind:fri"/>
  72. <Cell row="1" text="bind:fri_cnt"/>
  73. </Cell>
  74. <Cell col="6" rowspan="2" taborder="undefined">
  75. <Cell style="color:blue;color2:blue;font:arial,9,bold;" class="color_sat" text="bind:sat"/>
  76. <Cell row="1" text="bind:sat_cnt"/>
  77. </Cell>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. <Button id="button111" taborder="69" text="01" class="icon_month" position="absolute 1 725 28 752" style="align:center middle;" anchor="left bottom" onlbuttondown="Div00_button111_onlbuttondown"/>
  83. <Button id="button112" taborder="70" text="02" class="icon_month" position="absolute 31 725 58 752" anchor="left bottom" onlbuttonup="Div00_button112_onlbuttonup"/>
  84. <Button id="button113" taborder="71" text="03" class="icon_month" position="absolute 61 725 88 752" anchor="left bottom" onlbuttonup="Div00_button113_onlbuttonup"/>
  85. <Button id="button114" taborder="72" text="04" class="icon_month" position="absolute 91 725 118 752" anchor="left bottom" onlbuttonup="Div00_button114_onlbuttonup"/>
  86. <Button id="button115" taborder="73" text="05" class="icon_month" position="absolute 121 725 148 752" anchor="left bottom" onlbuttonup="Div00_button115_onlbuttonup"/>
  87. <Button id="button116" taborder="74" text="06" class="icon_month" position="absolute 151 725 178 752" anchor="left bottom" onlbuttonup="Div00_button116_onlbuttonup"/>
  88. <Button id="button117" taborder="75" text="07" class="icon_month" position="absolute 181 725 208 752" anchor="left bottom" onlbuttonup="Div00_button117_onlbuttonup"/>
  89. <Button id="button118" taborder="76" text="08" class="icon_month" position="absolute 211 725 238 752" anchor="left bottom" onlbuttonup="Div00_button118_onlbuttonup"/>
  90. <Button id="button119" taborder="77" text="09" class="icon_month" position="absolute 241 725 268 752" anchor="left bottom" onlbuttonup="Div00_button119_onlbuttonup"/>
  91. <Button id="button110" taborder="78" text="10" class="icon_month" position="absolute 271 725 298 752" anchor="left bottom"/>
  92. <Button id="button121" taborder="79" text="11" class="icon_month" position="absolute 301 725 328 752" anchor="left bottom" onlbuttonup="Div00_button121_onlbuttonup"/>
  93. <Button id="button122" taborder="80" text="12" onclick="switch1_case2_group4_button122_onclick" class="icon_month" position="absolute 331 725 358 752" anchor="left bottom" onlbuttonup="Div00_button122_onlbuttonup"/>
  94. </Layout>
  95. </Layouts>
  96. </Div>
  97. <Static id="caption6" text="통계 리스트" class="tit_2" position="absolute 1 128 94 145" visible="true"/>
  98. <Grid id="grd_stsList_yy" taborder="49" binddataset="ds_main_stsList" useinputpanel="false" position="absolute 0 149 1256 805" anchor="all" style="align:center middle;">
  99. <Formats>
  100. <Format id="default">
  101. <Columns>
  102. <Column size="30"/>
  103. <Column size="110"/>
  104. <Column size="100"/>
  105. <Column size="60"/>
  106. <Column size="40"/>
  107. <Column size="40"/>
  108. <Column size="40"/>
  109. <Column size="40"/>
  110. <Column size="40"/>
  111. <Column size="40"/>
  112. <Column size="40"/>
  113. <Column size="40"/>
  114. <Column size="40"/>
  115. <Column size="40"/>
  116. </Columns>
  117. <Rows>
  118. <Row size="22" band="head"/>
  119. <Row size="20"/>
  120. </Rows>
  121. <Band id="head">
  122. <Cell text="No."/>
  123. <Cell col="1" text="부서명"/>
  124. <Cell col="2" text="구분"/>
  125. <Cell col="3" text="Total"/>
  126. <Cell col="4" text="expr:lf_column()"/>
  127. <Cell col="5" text="expr:lf_column()+1"/>
  128. <Cell col="6" text="expr:lf_column()+2"/>
  129. <Cell col="7" text="expr:lf_column(3)"/>
  130. <Cell col="8" text="expr:lf_column(4)"/>
  131. <Cell col="9" text="expr:lf_column(5)"/>
  132. <Cell col="10" text="expr:lf_column(6)"/>
  133. <Cell col="11" text="expr:lf_column(7)"/>
  134. <Cell col="12" text="expr:lf_column(8)"/>
  135. <Cell col="13" text="expr:lf_column(9)"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell celltype="head" expr="expr:currow+1"/>
  139. <Cell col="1" style="align:left middle;" text="bind:stsnm2"/>
  140. <Cell col="2" style="align:left middle;" text="bind:stsnm"/>
  141. <Cell col="3" style="align:right middle;" text="bind:total"/>
  142. <Cell col="4" style="align:right middle;" text="bind:d01"/>
  143. <Cell col="5" style="align:right middle;" text="bind:d02"/>
  144. <Cell col="6" style="align:right middle;" text="bind:d03"/>
  145. <Cell col="7" style="align:right middle;" text="bind:d04"/>
  146. <Cell col="8" style="align:right middle;" text="bind:d05"/>
  147. <Cell col="9" style="align:right middle;" text="bind:d06"/>
  148. <Cell col="10" style="align:right middle;" text="bind:d07"/>
  149. <Cell col="11" style="align:right middle;" text="bind:d08"/>
  150. <Cell col="12" style="align:right middle;" text="bind:d09"/>
  151. <Cell col="13" style="align:right middle;" text="bind:d10"/>
  152. <Cell col="14"/>
  153. </Band>
  154. </Format>
  155. </Formats>
  156. </Grid>
  157. <Grid id="grd_stsList_mm" taborder="50" binddataset="ds_main_stsList" useinputpanel="false" autofittype="col" position="absolute 0 149 1256 805" anchor="all" style="align:center middle;">
  158. <Formats>
  159. <Format id="default">
  160. <Columns>
  161. <Column size="30"/>
  162. <Column size="110"/>
  163. <Column size="100"/>
  164. <Column size="60"/>
  165. <Column size="75"/>
  166. <Column size="75"/>
  167. <Column size="75"/>
  168. <Column size="75"/>
  169. <Column size="75"/>
  170. <Column size="75"/>
  171. <Column size="75"/>
  172. <Column size="75"/>
  173. <Column size="75"/>
  174. <Column size="75"/>
  175. <Column size="75"/>
  176. <Column size="75"/>
  177. </Columns>
  178. <Rows>
  179. <Row size="22" band="head"/>
  180. <Row size="20"/>
  181. </Rows>
  182. <Band id="head">
  183. <Cell text="No."/>
  184. <Cell col="1" text="부서명"/>
  185. <Cell col="2" text="구분"/>
  186. <Cell col="3" text="Total"/>
  187. <Cell col="4" text="1"/>
  188. <Cell col="5" text="2"/>
  189. <Cell col="6" text="3"/>
  190. <Cell col="7" text="4"/>
  191. <Cell col="8" text="5"/>
  192. <Cell col="9" text="6"/>
  193. <Cell col="10" text="7"/>
  194. <Cell col="11" text="8"/>
  195. <Cell col="12" text="9"/>
  196. <Cell col="13" text="10"/>
  197. <Cell col="14" text="11"/>
  198. <Cell col="15" text="12"/>
  199. </Band>
  200. <Band id="body">
  201. <Cell celltype="head" expr="expr:currow+1"/>
  202. <Cell col="1" style="align:left middle;" text="bind:stsnm2"/>
  203. <Cell col="2" style="align:left middle;" text="bind:stsnm"/>
  204. <Cell col="3" style="align:right middle;" text="bind:total"/>
  205. <Cell col="4" style="align:right middle;" text="bind:d01"/>
  206. <Cell col="5" style="align:right middle;" text="bind:d02"/>
  207. <Cell col="6" style="align:right middle;" text="bind:d03"/>
  208. <Cell col="7" style="align:right middle;" text="bind:d04"/>
  209. <Cell col="8" style="align:right middle;" text="bind:d05"/>
  210. <Cell col="9" style="align:right middle;" text="bind:d06"/>
  211. <Cell col="10" style="align:right middle;" text="bind:d07"/>
  212. <Cell col="11" style="align:right middle;" text="bind:d08"/>
  213. <Cell col="12" style="align:right middle;" text="bind:d09"/>
  214. <Cell col="13" style="align:right middle;" text="bind:d10"/>
  215. <Cell col="14" style="align:right middle;" text="bind:d11"/>
  216. <Cell col="15" style="align:right middle;" text="bind:d12"/>
  217. <Cell col="16"/>
  218. </Band>
  219. </Format>
  220. </Formats>
  221. </Grid>
  222. <Grid id="grd_stsList_dd" taborder="51" binddataset="ds_main_stsList" useinputpanel="false" position="absolute 0 149 1256 805" anchor="all" style="align:center middle;" visible="true" cellsizingtype="both">
  223. <Formats>
  224. <Format id="default">
  225. <Columns>
  226. <Column size="30"/>
  227. <Column size="110"/>
  228. <Column size="100"/>
  229. <Column size="60"/>
  230. <Column size="40"/>
  231. <Column size="40"/>
  232. <Column size="40"/>
  233. <Column size="40"/>
  234. <Column size="40"/>
  235. <Column size="40"/>
  236. <Column size="40"/>
  237. <Column size="40"/>
  238. <Column size="40"/>
  239. <Column size="40"/>
  240. <Column size="40"/>
  241. <Column size="40"/>
  242. <Column size="40"/>
  243. <Column size="40"/>
  244. <Column size="40"/>
  245. <Column size="40"/>
  246. <Column size="40"/>
  247. <Column size="40"/>
  248. <Column size="40"/>
  249. <Column size="40"/>
  250. <Column size="40"/>
  251. <Column size="40"/>
  252. <Column size="40"/>
  253. <Column size="40"/>
  254. <Column size="40"/>
  255. <Column size="40"/>
  256. <Column size="40"/>
  257. <Column size="40"/>
  258. <Column size="40"/>
  259. <Column size="40"/>
  260. <Column size="40"/>
  261. </Columns>
  262. <Rows>
  263. <Row size="24" band="head"/>
  264. <Row size="24"/>
  265. </Rows>
  266. <Band id="head">
  267. <Cell/>
  268. <Cell col="1" text="부서명"/>
  269. <Cell col="2" text="구분"/>
  270. <Cell col="3" text="Total"/>
  271. <Cell col="4" text="1"/>
  272. <Cell col="5" text="2"/>
  273. <Cell col="6" text="3"/>
  274. <Cell col="7" text="4"/>
  275. <Cell col="8" text="5"/>
  276. <Cell col="9" text="6"/>
  277. <Cell col="10" text="7"/>
  278. <Cell col="11" text="8"/>
  279. <Cell col="12" text="9"/>
  280. <Cell col="13" text="10"/>
  281. <Cell col="14" text="11"/>
  282. <Cell col="15" text="12"/>
  283. <Cell col="16" text="13"/>
  284. <Cell col="17" text="14"/>
  285. <Cell col="18" text="15"/>
  286. <Cell col="19" text="16"/>
  287. <Cell col="20" text="17"/>
  288. <Cell col="21" text="18"/>
  289. <Cell col="22" text="19"/>
  290. <Cell col="23" text="20"/>
  291. <Cell col="24" text="21"/>
  292. <Cell col="25" text="22"/>
  293. <Cell col="26" text="23"/>
  294. <Cell col="27" text="24"/>
  295. <Cell col="28" text="25"/>
  296. <Cell col="29" text="26"/>
  297. <Cell col="30" text="27"/>
  298. <Cell col="31" text="28"/>
  299. <Cell col="32" text="29"/>
  300. <Cell col="33" text="30"/>
  301. <Cell col="34" text="31"/>
  302. </Band>
  303. <Band id="body">
  304. <Cell celltype="head" expr="expr:currow+1"/>
  305. <Cell col="1" style="align:left middle;" text="bind:stsnm2"/>
  306. <Cell col="2" style="align:left middle;" text="bind:stsnm"/>
  307. <Cell col="3" style="align:right middle;" text="bind:total"/>
  308. <Cell col="4" style="align:right middle;" text="bind:d01"/>
  309. <Cell col="5" style="align:right middle;" text="bind:d02"/>
  310. <Cell col="6" style="align:right middle;" text="bind:d03"/>
  311. <Cell col="7" style="align:right middle;" text="bind:d04"/>
  312. <Cell col="8" style="align:right middle;" text="bind:d05"/>
  313. <Cell col="9" style="align:right middle;" text="bind:d06"/>
  314. <Cell col="10" style="align:right middle;" text="bind:d07"/>
  315. <Cell col="11" style="align:right middle;" text="bind:d08"/>
  316. <Cell col="12" style="align:right middle;" text="bind:d09"/>
  317. <Cell col="13" style="align:right middle;" text="bind:d10"/>
  318. <Cell col="14" style="align:right middle;" text="bind:d11"/>
  319. <Cell col="15" style="align:right middle;" text="bind:d12"/>
  320. <Cell col="16" style="align:right middle;" text="bind:d13"/>
  321. <Cell col="17" style="align:right middle;" text="bind:d14"/>
  322. <Cell col="18" style="align:right middle;" text="bind:d15"/>
  323. <Cell col="19" style="align:right middle;" text="bind:d16"/>
  324. <Cell col="20" style="align:right middle;" text="bind:d17"/>
  325. <Cell col="21" style="align:right middle;" text="bind:d18"/>
  326. <Cell col="22" style="align:right middle;" text="bind:d19"/>
  327. <Cell col="23" style="align:right middle;" text="bind:d20"/>
  328. <Cell col="24" style="align:right middle;" text="bind:d21"/>
  329. <Cell col="25" style="align:right middle;" text="bind:d22"/>
  330. <Cell col="26" style="align:right middle;" text="bind:d23"/>
  331. <Cell col="27" style="align:right middle;" text="bind:d24"/>
  332. <Cell col="28" style="align:right middle;" text="bind:d25"/>
  333. <Cell col="29" style="align:right middle;" text="bind:d26"/>
  334. <Cell col="30" style="align:right middle;" text="bind:d27"/>
  335. <Cell col="31" style="align:right middle;" text="bind:d28"/>
  336. <Cell col="32" style="align:right middle;" text="bind:d29"/>
  337. <Cell col="33" style="align:right middle;" text="bind:d30"/>
  338. <Cell col="34" style="align:right middle;" text="bind:d31"/>
  339. <Cell col="35"/>
  340. </Band>
  341. </Format>
  342. </Formats>
  343. </Grid>
  344. <Tab id="switch1" taborder="52" onchanged="switch1_onchanged" tabindex="0" position="absolute 0 28 1256 56" visible="true" anchor="left top right">
  345. <Tabpages>
  346. <Tabpage id="case1" text="채혈">
  347. <Layouts>
  348. <Layout/>
  349. </Layouts>
  350. </Tabpage>
  351. <Tabpage id="case2" text="외래채혈">
  352. <Layouts>
  353. <Layout>
  354. <Div id="group4" taborder="7" onclick="group4_onclick" position="absolute 952 1024 1312 1059"/>
  355. </Layout>
  356. </Layouts>
  357. </Tabpage>
  358. <Tabpage id="tabpage3" text="병동채혈"/>
  359. <Tabpage id="tabpage4" text="아침채혈">
  360. <Layouts>
  361. <Layout/>
  362. </Layouts>
  363. </Tabpage>
  364. <Tabpage id="tabpage5" text="달력편"/>
  365. </Tabpages>
  366. </Tab>
  367. <Div id="grp_sea" anchor="left top right" taborder="53" style="align:center top;" class="div_SA2" position="absolute 0 52 1256 120">
  368. <Layouts>
  369. <Layout>
  370. <Combo id="cbo_2" taborder="61" value="1" text="시행부서별" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 35 204 55" anchor="default">
  371. <Dataset id="innerdataset">
  372. <ColumnInfo>
  373. <Column id="codecolumn" size="256"/>
  374. <Column id="datacolumn" size="256"/>
  375. </ColumnInfo>
  376. <Rows>
  377. <Row>
  378. <Col id="codecolumn">1</Col>
  379. <Col id="datacolumn">시행부서별</Col>
  380. </Row>
  381. <Row>
  382. <Col id="codecolumn">2</Col>
  383. <Col id="datacolumn">진료과별</Col>
  384. </Row>
  385. <Row>
  386. <Col id="codecolumn">3</Col>
  387. <Col id="datacolumn">진료의사별</Col>
  388. </Row>
  389. <Row>
  390. <Col id="codecolumn">4</Col>
  391. <Col id="datacolumn">채혈자별</Col>
  392. </Row>
  393. <Row>
  394. <Col id="codecolumn">5</Col>
  395. <Col id="datacolumn">시간대별</Col>
  396. </Row>
  397. </Rows>
  398. </Dataset>
  399. </Combo>
  400. <Static id="caption1" text="조회구분" class="search_name" position="absolute 8 10 74 30" anchor="default"/>
  401. <Static id="caption3" text="통계구분" class="search_name" position="absolute 8 35 70 55" anchor="default"/>
  402. <Combo id="cbo_3" taborder="52" value="1" text="병동별" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 35 204 55" anchor="default">
  403. <Dataset id="innerdataset">
  404. <ColumnInfo>
  405. <Column id="codecolumn" size="256"/>
  406. <Column id="datacolumn" size="256"/>
  407. </ColumnInfo>
  408. <Rows>
  409. <Row>
  410. <Col id="codecolumn">1</Col>
  411. <Col id="datacolumn">병동별</Col>
  412. </Row>
  413. </Rows>
  414. </Dataset>
  415. </Combo>
  416. <Static id="caption2" text="통계구분2" class="search_name" position="absolute 286 35 357 55" anchor="default"/>
  417. <Static id="caption4" text="조회기간" class="search_name" position="absolute 286 10 361 30" anchor="default"/>
  418. <Static id="caption9" text="~" class="search_no_b" visible="false" position="absolute 463 10 479 30" style="align:center middle;" anchor="default"/>
  419. <Calendar id="ipt_stsfromdd" taborder="53" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="grp_sea_ipt_stsfromdd_onchanged" class="input_search" position="absolute 368 10 463 30" mask="yyyy-mm" anchor="default"/>
  420. <Calendar id="ipt_ststodd" taborder="54" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="grp_sea_ipt_ststodd_onchanged" class="input_search" visible="false" position="absolute 479 10 574 30" mask="yyyy" anchor="default"/>
  421. <Radio id="radio2" taborder="55" columncount="3" rowcount="0" index="0" codecolumn="codecolumn" datacolumn="datacolumn" value="1" position="absolute 368 35 570 55" anchor="default">
  422. <Dataset id="innerdataset">
  423. <ColumnInfo>
  424. <Column id="codecolumn" size="256"/>
  425. <Column id="datacolumn" size="256"/>
  426. </ColumnInfo>
  427. <Rows>
  428. <Row>
  429. <Col id="codecolumn">1</Col>
  430. <Col id="datacolumn">바코드</Col>
  431. </Row>
  432. <Row>
  433. <Col id="codecolumn">2</Col>
  434. <Col id="datacolumn">환자</Col>
  435. </Row>
  436. <Row>
  437. <Col id="codecolumn">3</Col>
  438. <Col id="datacolumn">처방건수</Col>
  439. </Row>
  440. </Rows>
  441. </Dataset>
  442. </Radio>
  443. <Combo id="cbo_io" taborder="56" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" position="absolute 677 35 787 55" anchor="default">
  444. <Dataset id="innerdataset">
  445. <ColumnInfo>
  446. <Column id="codecolumn" size="256"/>
  447. <Column id="datacolumn" size="256"/>
  448. </ColumnInfo>
  449. <Rows>
  450. <Row>
  451. <Col id="codecolumn">0</Col>
  452. <Col id="datacolumn">- 전 체 -</Col>
  453. </Row>
  454. <Row>
  455. <Col id="codecolumn">I</Col>
  456. <Col id="datacolumn">입 원</Col>
  457. </Row>
  458. <Row>
  459. <Col id="codecolumn">O</Col>
  460. <Col id="datacolumn">외 래</Col>
  461. </Row>
  462. <Row>
  463. <Col id="codecolumn">E</Col>
  464. <Col id="datacolumn">응 급</Col>
  465. </Row>
  466. <Row>
  467. <Col id="codecolumn">S</Col>
  468. <Col id="datacolumn">건 진</Col>
  469. </Row>
  470. </Rows>
  471. </Dataset>
  472. </Combo>
  473. <Static id="caption5" text="입원/외래" class="search_name" position="absolute 598 35 671 55" anchor="default"/>
  474. <Button id="btn_ref" taborder="57" text="조회" onclick="grp_sea_btn_ref_onclick" class="btn1" position="absolute 1189 10 1245 30" anchor="top right"/>
  475. <Radio id="radio1" taborder="58" columncount="3" rowcount="0" index="-1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_sea_radio1_onitemchanged" position="absolute 82 10 274 30" anchor="default">
  476. <Dataset id="innerdataset">
  477. <ColumnInfo>
  478. <Column id="codecolumn" size="256"/>
  479. <Column id="datacolumn" size="256"/>
  480. </ColumnInfo>
  481. <Rows>
  482. <Row>
  483. <Col id="codecolumn">1</Col>
  484. <Col id="datacolumn">일별</Col>
  485. </Row>
  486. <Row>
  487. <Col id="codecolumn">2</Col>
  488. <Col id="datacolumn">월별</Col>
  489. </Row>
  490. <Row>
  491. <Col id="codecolumn">3</Col>
  492. <Col id="datacolumn">연별</Col>
  493. </Row>
  494. </Rows>
  495. </Dataset>
  496. </Radio>
  497. <Combo id="cbo_bt" taborder="59" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" visible="false" position="absolute 677 10 788 30" anchor="default">
  498. <Dataset id="innerdataset">
  499. <ColumnInfo>
  500. <Column id="codecolumn" size="256"/>
  501. <Column id="datacolumn" size="256"/>
  502. </ColumnInfo>
  503. <Rows>
  504. <Row>
  505. <Col id="codecolumn">-</Col>
  506. <Col id="datacolumn">- 전 체 -</Col>
  507. </Row>
  508. <Row>
  509. <Col id="codecolumn">1</Col>
  510. <Col id="datacolumn">Bleeding Time</Col>
  511. </Row>
  512. <Row>
  513. <Col id="codecolumn">2</Col>
  514. <Col id="datacolumn">Tuberculin Test</Col>
  515. </Row>
  516. </Rows>
  517. </Dataset>
  518. </Combo>
  519. <Static id="caption16" text="채혈 구분" class="search_name" visible="false" position="absolute 598 10 667 30" anchor="default"/>
  520. <Combo id="cbo_1" taborder="60" value="1" text="시행부서별" codecolumn="codecolumn" datacolumn="datacolumn" index="0" position="absolute 82 35 204 55" anchor="default">
  521. <Dataset id="innerdataset">
  522. <ColumnInfo>
  523. <Column id="codecolumn" size="256"/>
  524. <Column id="datacolumn" size="256"/>
  525. </ColumnInfo>
  526. <Rows>
  527. <Row>
  528. <Col id="codecolumn">1</Col>
  529. <Col id="datacolumn">시행부서별</Col>
  530. </Row>
  531. <Row>
  532. <Col id="codecolumn">2</Col>
  533. <Col id="datacolumn">진료과별</Col>
  534. </Row>
  535. <Row>
  536. <Col id="codecolumn">3</Col>
  537. <Col id="datacolumn">진료의사별</Col>
  538. </Row>
  539. </Rows>
  540. </Dataset>
  541. </Combo>
  542. </Layout>
  543. </Layouts>
  544. </Div>
  545. </Layout>
  546. </Layouts>
  547. <Objects>
  548. <Dataset id="ds_main_stsList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  549. <ColumnInfo>
  550. <Column id="stsnm2" type="STRING"/>
  551. <Column id="stsnm" type="STRING"/>
  552. <Column id="total" type="STRING"/>
  553. <Column id="d01" type="STRING"/>
  554. <Column id="d02" type="STRING"/>
  555. <Column id="d03" type="STRING"/>
  556. <Column id="d04" type="STRING"/>
  557. <Column id="d05" type="STRING"/>
  558. <Column id="d06" type="STRING"/>
  559. <Column id="d07" type="STRING"/>
  560. <Column id="d08" type="STRING"/>
  561. <Column id="d09" type="STRING"/>
  562. <Column id="d10" type="STRING"/>
  563. <Column id="d11" type="STRING"/>
  564. <Column id="d12" type="STRING"/>
  565. <Column id="d13" type="STRING"/>
  566. <Column id="d14" type="STRING"/>
  567. <Column id="d15" type="STRING"/>
  568. <Column id="d16" type="STRING"/>
  569. <Column id="d17" type="STRING"/>
  570. <Column id="d18" type="STRING"/>
  571. <Column id="d19" type="STRING"/>
  572. <Column id="d20" type="STRING"/>
  573. <Column id="d21" type="STRING"/>
  574. <Column id="d22" type="STRING"/>
  575. <Column id="d23" type="STRING"/>
  576. <Column id="d24" type="STRING"/>
  577. <Column id="d25" type="STRING"/>
  578. <Column id="d26" type="STRING"/>
  579. <Column id="d27" type="STRING"/>
  580. <Column id="d28" type="STRING"/>
  581. <Column id="d29" type="STRING"/>
  582. <Column id="d30" type="STRING"/>
  583. <Column id="d31" type="STRING"/>
  584. </ColumnInfo>
  585. </Dataset>
  586. <Dataset id="ds_grid_grd_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  587. <ColumnInfo>
  588. <Column id="sun" type="STRING"/>
  589. <Column id="mon" type="STRING"/>
  590. <Column id="tue" type="STRING"/>
  591. <Column id="wed" type="STRING"/>
  592. <Column id="thu" type="STRING"/>
  593. <Column id="fri" type="STRING"/>
  594. <Column id="sat" type="STRING"/>
  595. <Column id="sun_cnt" type="STRING"/>
  596. <Column id="mon_cnt" type="STRING"/>
  597. <Column id="tue_cnt" type="STRING"/>
  598. <Column id="wed_cnt" type="STRING"/>
  599. <Column id="thu_cnt" type="STRING"/>
  600. <Column id="fri_cnt" type="STRING"/>
  601. <Column id="sat_cnt" type="STRING"/>
  602. </ColumnInfo>
  603. </Dataset>
  604. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  605. <ColumnInfo>
  606. <Column id="stsflag" type="STRING" size="256"/>
  607. <Column id="stsfromdd" type="STRING" size="256"/>
  608. <Column id="ststodd" type="STRING" size="256"/>
  609. <Column id="stskind" type="STRING" size="256"/>
  610. <Column id="stskind2" type="STRING" size="256"/>
  611. <Column id="ioflag" type="STRING" size="256"/>
  612. <Column id="bcollflag" type="STRING" size="256"/>
  613. <Column id="btbcollflag" type="STRING" size="256"/>
  614. </ColumnInfo>
  615. <Rows>
  616. <Row>
  617. <Col id="stsflag">1</Col>
  618. <Col id="stskind">1</Col>
  619. <Col id="stskind2">1</Col>
  620. <Col id="ioflag">0</Col>
  621. <Col id="bcollflag">0</Col>
  622. <Col id="btbcollflag">-</Col>
  623. </Row>
  624. </Rows>
  625. </Dataset>
  626. </Objects>
  627. <Bind>
  628. <BindItem id="item0" compid="grp_sea.radio1" propid="value" datasetid="ds_hidden" columnid="stsflag"/>
  629. <BindItem id="item1" compid="grp_sea.ipt_stsfromdd" propid="value" datasetid="ds_hidden" columnid="stsfromdd"/>
  630. <BindItem id="item2" compid="grp_sea.ipt_ststodd" propid="value" datasetid="ds_hidden" columnid="ststodd"/>
  631. <BindItem id="item3" compid="grp_sea.cbo_bt" propid="value" datasetid="ds_hidden" columnid="btbcollflag"/>
  632. <BindItem id="item4" compid="grp_sea.cbo_io" propid="value" datasetid="ds_hidden" columnid="ioflag"/>
  633. <BindItem id="item5" compid="grp_sea.radio2" propid="value" datasetid="ds_hidden" columnid="stskind2"/>
  634. <BindItem id="item6" compid="grp_sea.cbo_1" propid="value" datasetid="ds_hidden" columnid="stskind"/>
  635. <BindItem id="item7" compid="grp_sea.cbo_2" propid="value" datasetid="ds_hidden" columnid="stskind"/>
  636. <BindItem id="item8" compid="grp_sea.cbo_3" propid="value" datasetid="ds_hidden" columnid="stskind"/>
  637. </Bind>
  638. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  639. * System Name :
  640. * Job Name :
  641. * Creator :
  642. * Make Date : 2015-11-13
  643. * Description :
  644. *---------------------------------------------------------------------------------------
  645. * Modify Date Modifier Modify Description
  646. *---------------------------------------------------------------------------------------
  647. * 2015-11-13 Live Converter TF->XP
  648. *
  649. *---------------------------------------------------------------------------------------
  650. ****************************************************************************************/
  651. include "com_commonxp::comm_main.xjs";
  652. include "lis_commonxp::LLZ001.xjs";
  653. function SMLLS00100_oninit(obj:Form, e:InitEventInfo)
  654. {
  655. frmf_initForm(obj); // 화면공통
  656. }
  657. function SMLLS00100_onload(obj:Form, e:LoadEventInfo)
  658. {
  659. grdf_initGrid(grd_stsList_dd);
  660. grdf_initGrid(grd_stsList_mm);
  661. grdf_initGrid(grd_stsList_yy);
  662. grdf_initGrid(Div00.grd_calendar);
  663. fSetInit(); //초기화 함수 호출
  664. }
  665. //화면 open시 초기화
  666. function fSetInit()
  667. {
  668. Div00.visible = false;
  669. var toDay = utlf_getCurrentDate();
  670. //grp_sea.ipt_stsfromdd.value = toDay;
  671. //grp_sea.ipt_ststodd.value = toDay;
  672. ds_hidden.setColumn(0, "stsfromdd", toDay);
  673. ds_hidden.setColumn(0, "ststodd", toDay);
  674. grp_sea.cbo_3.visible = false; //통계구분
  675. grp_sea.cbo_1.visible = true;
  676. //해당일에 대한 마지막 일자 가져와서 그리드 컬럼 숨기기
  677. var lastDay = utlf_lastDateNum(toDay) + 4;
  678. for(var i = lastDay; i > ds_main_stsList.colcount-1; i--)
  679. {
  680. grd_stsList_dd.setFormatColProperty(i, "size", 0);
  681. }
  682. grd_stsList_dd.setFormatColProperty("1", "size", 0);
  683. grd_stsList_dd.visible = true;
  684. grd_stsList_mm.visible = false;
  685. grd_stsList_yy.visible = false;
  686. }
  687. //조회구분 선택시 통계희망월 포멧 지정
  688. function fShowHopeddnGridSet()
  689. {
  690. ds_main_stsList.clearData();
  691. ds_hidden.setColumn(0, "stskind2", 1);
  692. var toDay = utlf_getCurrentDate();
  693. //연별
  694. if(ds_hidden.getColumn(0, "stsflag") == "3") //if(grp_sea.radio1.value == "3")
  695. {
  696. grp_sea.caption9.visible = true;
  697. grp_sea.ipt_ststodd.visible = true;
  698. grp_sea.ipt_stsfromdd.dateformat = "yyyy";
  699. grp_sea.ipt_stsfromdd.editformat = "yyyy";
  700. grp_sea.ipt_ststodd.dateformat = "yyyy";
  701. grp_sea.ipt_ststodd.editformat = "yyyy";
  702. ds_hidden.setColumn(0, "stsfromdd", toDay.substring(0, 4));
  703. ds_hidden.setColumn(0, "ststodd", toDay.substring(0, 4));
  704. }
  705. if(ds_hidden.getColumn(0, "stsflag") == "1" || ds_hidden.getColumn(0, "stsflag") == "2")
  706. {
  707. // 일별, 월별
  708. grp_sea.caption9.visible = false; // todd 숨김
  709. grp_sea.ipt_ststodd.visible = false;
  710. // 일별 그리드
  711. if(ds_hidden.getColumn(0, "stsflag") == "1")
  712. {
  713. toDay = utlf_getCurrentDate();
  714. grp_sea.ipt_stsfromdd.dateformat = "yyyy-MM";
  715. grp_sea.ipt_stsfromdd.editformat = "yyyy-MM";
  716. grp_sea.ipt_ststodd.dateformat = "yyyy-MM";
  717. grp_sea.ipt_ststodd.editformat = "yyyy-MM";
  718. ds_hidden.setColumn(0, "stsfromdd", toDay.substring(0, 6));
  719. ds_hidden.setColumn(0, "ststodd", toDay.substring(0, 6));
  720. }
  721. else if(ds_hidden.getColumn(0, "stsflag") == "2")
  722. {
  723. grp_sea.ipt_stsfromdd.dateformat = "yyyy";
  724. grp_sea.ipt_stsfromdd.editformat = "yyyy";
  725. grp_sea.ipt_ststodd.dateformat = "yyyy";
  726. grp_sea.ipt_ststodd.editformat = "yyyy";
  727. ds_hidden.setColumn(0, "stsfromdd", toDay.substring(0, 4));
  728. ds_hidden.setColumn(0, "ststodd", toDay.substring(0, 4));
  729. }
  730. }
  731. fshowGridSet(); // 그리드 컬럼 정하기
  732. }
  733. function fshowGridSet()
  734. {
  735. var flag = switch1.tabindex;
  736. var day = ds_hidden.getColumn(0, "stsfromdd");
  737. var i = 0;
  738. if(flag == "0" || flag == "1" || flag == "2" || flag == "3") //채혈, 외래채혈,병동채혈
  739. {
  740. if(grp_sea.radio1.value == "1")
  741. {
  742. //일별
  743. grd_stsList_dd.visible = true;
  744. grd_stsList_mm.visible = false;
  745. grd_stsList_yy.visible = false;
  746. var lastDay = utlf_lastDateNum(day); // 마지막 날짜
  747. i = 4;
  748. for(var j = 0; j < lastDay; j++) // 5번째컬럼부터 조회되는 년도 컬럼 size 80
  749. {
  750. grd_stsList_dd.setFormatColProperty(i, "size", 40);
  751. i++;
  752. }
  753. for (var k = lastDay ; k<31; k++) // 조회되지 않는 컬럼 size 0
  754. {
  755. grd_stsList_dd.setFormatColProperty(i,"size",0);
  756. i++;
  757. }
  758. }else if(grp_sea.radio1.value == "2"){ //월별
  759. grd_stsList_dd.visible = false;
  760. grd_stsList_mm.visible = true;
  761. grd_stsList_yy.visible = false;
  762. }else if(grp_sea.radio1.value == "3"){ // 연별
  763. grd_stsList_dd.visible = false;
  764. grd_stsList_mm.visible = false;
  765. grd_stsList_yy.visible = true;
  766. var sFromdd = new String(grp_sea.ipt_stsfromdd.value);
  767. var sTodd = new String(grp_sea.ipt_ststodd.value);
  768. var fromdd = sFromdd.substring(0,4);
  769. var todd = sTodd.substring(0,4);
  770. var i = 4;
  771. for (var j=0 ; j<todd-fromdd+1; j++){ // 5번째컬럼부터 조회되는 년도 컬럼 size 80
  772. grd_stsList_yy.setFormatColProperty(i,"size",80);
  773. i++;
  774. }
  775. for (var k = todd-fromdd ; k<9; k++){ // 조회되지 않는 컬럼 size 0
  776. grd_stsList_yy.setFormatColProperty(i,"size",0);
  777. i++;
  778. }
  779. }
  780. grd_stsList_dd.setFormatColProperty("1","size",0); //채혈, 외래채혈,병동채혈 선택 시 부서명 컬럼 size 0
  781. grd_stsList_mm.setFormatColProperty("1","size",0);
  782. grd_stsList_yy.setFormatColProperty("1","size",0);
  783. }else if(flag == "4"){ // 달력편
  784. grd_stsList_dd.visible = false;
  785. grd_stsList_mm.visible = false;
  786. grd_stsList_yy.visible = false;
  787. caption6.visible = false;
  788. }
  789. }
  790. //탭 선택에 따라 검색조건 변경 flag 1: 채혈, 2: 외래채혈, 3:병동채혈, 4:아침채혈
  791. function ftabSwitch()
  792. {
  793. ds_main_stsList.clearData();
  794. var flag = switch1.tabindex;
  795. btn_excel.visible = true;
  796. Div00.visible = false;
  797. trace("tabindex == " + flag);
  798. //채혈,외래채혈
  799. if(flag == "0")
  800. {
  801. grp_sea.visible = true;
  802. grp_sea.cbo_1.visible = true; //통계구분
  803. grp_sea.cbo_2.visible = false;
  804. grp_sea.cbo_3.visible = false;
  805. grp_sea.caption16.visible = false; // 채혈구분
  806. grp_sea.cbo_bt.visible = false;
  807. grp_sea.caption5.visible = true; // 입원/외래
  808. grp_sea.cbo_io.visible= true;
  809. ds_hidden.setColumn(0, "bcollflag", "0");
  810. }
  811. else if(flag == "1")
  812. {
  813. grp_sea.cbo_1.visible = false;
  814. grp_sea.cbo_2.visible = true;
  815. grp_sea.cbo_3.visible = false;
  816. grp_sea.cbo_io.visible = true;
  817. grp_sea.caption5.visible = true;
  818. grp_sea.caption16.visible = false;
  819. grp_sea.cbo_bt.visible = false;
  820. grp_sea.cbo_io.value = "0";
  821. ds_hidden.setColumn(0, "bcollflag", "1");
  822. }
  823. else if(flag == "2" || flag == "3" )
  824. {
  825. grp_sea.visible = true;
  826. grp_sea.cbo_1.visible = false;
  827. grp_sea.cbo_2.visible = false;
  828. grp_sea.cbo_3.visible = true; //통계구분
  829. grp_sea.caption5.visible = false; // 입원/외래
  830. grp_sea.cbo_io.visible= false;
  831. // 병동채혈
  832. if(flag == "2")
  833. {
  834. grp_sea.caption16.visible = false; // 채혈구분
  835. grp_sea.cbo_bt.visible = false;
  836. ds_hidden.setColumn(0, "bcollflag", "2");
  837. }
  838. else if(flag == "3") // 아침채혈
  839. {
  840. grp_sea.caption16.visible = true; // 채혈구분
  841. grp_sea.cbo_bt.visible = true;
  842. ds_hidden.setColumn(0, "bcollflag", "3");
  843. }
  844. }
  845. else if(flag = "4")
  846. {
  847. grp_sea.visible = false;
  848. Div00.visible = true;
  849. btn_excel.visible = false;
  850. lf_initCalendar();
  851. }
  852. fshowGridSet();
  853. }
  854. // 조회조건
  855. function fcheckSaerch()
  856. {
  857. var sFromdd = ds_hidden.getColumn(0, "stsfromdd");
  858. var sTodd = ds_hidden.getColumn(0, "ststodd");
  859. var fromdd = sFromdd.substring(0,4);
  860. var todd = sTodd.substring(0,4);
  861. //연별 조회시 10년 이내로 조회
  862. if(ds_hidden.getColumn(0, "stsflag") == "3")
  863. {
  864. if(todd - fromdd > 9)
  865. {
  866. sysf_messageBox("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요", "I");
  867. return;
  868. }
  869. }
  870. if(sFromdd > sTodd)
  871. {
  872. sysf_messageBox("통계 희망일 시작시간이 종료시간보다 작아야 합니다. ", "I");
  873. return;
  874. }
  875. fGetStats();
  876. }
  877. //조회
  878. function fGetStats()
  879. {
  880. var flag = switch1.tabindex;
  881. var fromdd = ds_hidden.getColumn(0, "stsfromdd");
  882. var sFromdd = parseInt(fromdd.substring(0,6));
  883. trace("sFromdd = " + sFromdd);
  884. var stskind;
  885. trace("flag = " + flag);
  886. if(flag== "0" || flag=="1")
  887. {
  888. stskind = grp_sea.cbo_1.value;
  889. }
  890. else if(flag== "2" || flag=="3")
  891. {
  892. stskind = "1";
  893. }
  894. var lastday = utlf_lastDateNum(fromdd);
  895. trace("lastDAY = " + lastday);
  896. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "stsflag", val : ds_hidden.getColumn(0, "stsflag")} //조회구분 1:일별, 2:월별, 3: 연별
  897. ,{col: "stsfromdd", val : sFromdd} //조회시작
  898. ,{col: "ststodd", val : ds_hidden.getColumn(0, "ststodd")} //조회끝
  899. ,{col: "stskind", val : ds_hidden.getColumn(0, "stskind")} //통계구분 1: 시행부서, 2: 진료과, 3: 진료의, 4: 채혈자, 5: 시간대별 (단, 병동 및 아침채혈의 경우 1: 병동별)
  900. ,{col: "stskind2", val : ds_hidden.getColumn(0, "stskind2")} //통계구분2 1:바코드, 2: 환자, 3: 처방건수
  901. ,{col: "bcollflag", val : ds_hidden.getColumn(0, "bcollflag")} //채혈구분 0: 채혈, 1: 외래채혈, 2: 병동채혈, 3: 아침채혈
  902. ,{col: "btbcollflag", val : ds_hidden.getColumn(0, "btbcollflag")} //아침채혈구분 -: 전체, 1: BT, 2: TT(아침채혈만 사용)
  903. ,{col: "ioflag", val : ds_hidden.getColumn(0, "ioflag")} //입원/외래 구분
  904. ,{col: "lastday", val : lastday} //마지막일자
  905. ,{col: "year", val : sFromdd}]); //연별조회시사용
  906. var oParam = {};
  907. oParam.id = "TRLLS00101";
  908. oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
  909. oParam.method = "reqGetOutBcollSts";
  910. oParam.inds = "cond="+sInDsName;
  911. oParam.outds = "ds_main_stsList=stslist";
  912. oParam.async = false;
  913. tranf_submit(oParam);
  914. ds_main_stsList.rowposition = -1;
  915. fchangeColor();
  916. }
  917. function fchangeColor()
  918. {
  919. // 합계 행 색변경
  920. ds_main_stsList.addColumn("checkcolor", "String");
  921. var sExpr = "EXPR(checkcolor)";
  922. //Row색깔 투입
  923. for(j = 0; j < ds_main_stsList.rowcount; j++)
  924. {
  925. if(ds_main_stsList.getColumn(j, "stsnm") == "합계")
  926. {
  927. ds_main_stsList.setColumn(j, "checkcolor", "#7BE6B7");
  928. }
  929. else
  930. {
  931. ds_main_stsList.setColumn(j, "checkcolor", "default");
  932. }
  933. ds_main_stsList.setRowType(j,"1");
  934. }
  935. //if(grp_sea.radio1.value == "1")
  936. if(ds_hidden.getColumn(0, "stsflag") == "1")
  937. {
  938. //색깔변경
  939. for(i = 0; i < grd_stsList_dd.getCellCount('Head'); i++)
  940. {
  941. grd_stsList_dd.setCellProperty("Body", i, "background", sExpr);
  942. grd_stsList_dd.setCellProperty("Body", i, "background2", sExpr);
  943. }
  944. grd_stsList_dd.setCellProperty("Body", 3, "background", "#ffe79d");
  945. grd_stsList_dd.setCellProperty("Body", 3, "background2", "#ffe79d");
  946. }
  947. else if(ds_hidden.getColumn(0, "stsflag") == "2") //else if(grp_sea.radio1.value == "2")
  948. {
  949. //색깔변경
  950. for(i = 0; i < grd_stsList_mm.getCellCount('Head'); i++)
  951. {
  952. grd_stsList_mm.setCellProperty("Body", i, "background", sExpr);
  953. grd_stsList_mm.setCellProperty("Body", i, "background2", sExpr);
  954. }
  955. grd_stsList_mm.setCellProperty("Body", 3, "background", "#ffe79d");
  956. grd_stsList_mm.setCellProperty("Body", 3, "background2", "#ffe79d");
  957. }
  958. else if(ds_hidden.getColumn(0, "stsflag") == "3") //else if(grp_sea.radio1.value == "3")
  959. {
  960. //색깔변경
  961. for(i =0; i < grd_stsList_yy.getCellCount('Head'); i++ )
  962. {
  963. grd_stsList_yy.setCellProperty("Body", i, "background", sExpr);
  964. grd_stsList_yy.setCellProperty("Body", i, "background2", sExpr);
  965. }
  966. grd_stsList_yy.setCellProperty("Body", 3, "background", "#ffe79d");
  967. grd_stsList_yy.setCellProperty("Body", 3, "background2", "#ffe79d");
  968. }
  969. }
  970. // 연별 통계 조회시 그리드 컬럼명 변경
  971. function lf_column()
  972. {
  973. var sFrom = new String(grp_sea.ipt_stsfromdd.value);
  974. var fromdd = parseInt(sFrom.substring(0,4));
  975. return fromdd;
  976. }
  977. // 엑셀저장
  978. function fexeSaveToExcel()
  979. {
  980. var flagnm;
  981. if(switch1.tabindex== "0")
  982. {
  983. flagnm = "채혈";
  984. }
  985. else if(switch1.tabindex == "1")
  986. {
  987. flagnm = "외래채혈통계_";
  988. }
  989. else if(switch1.tabindex == "2")
  990. {
  991. flagnm = "병동채혈통계_";
  992. }
  993. if(ds_hidden.getColumn(0, "stsflag") == "1")//if(grp_sea.radio1.value == "1")
  994. {
  995. grdf_exportExcel(grd_stsList_dd, flagnm, lf_lisGetTitle(this) + "_" + "sheet1", false);
  996. }
  997. else if(ds_hidden.getColumn(0, "stsflag") == "2")//else if(grp_sea.radio1.value == "2")
  998. {
  999. grdf_exportExcel(grd_stsList_mm, flagnm, lf_lisGetTitle(this) + "_" + "sheet1", false);
  1000. }
  1001. else if(ds_hidden.getColumn(0, "stsflag") == "3")//else if(grp_sea.radio1.value == "3")
  1002. {
  1003. grdf_exportExcel(grd_stsList_yy, flagnm, lf_lisGetTitle(this) + "_" + "sheet1", false);
  1004. }
  1005. }
  1006. // 조회구분 일별,월별,연별
  1007. function grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1008. {
  1009. fShowHopeddnGridSet(); // 데이트 포멧 변경 -> 그리드 변경lf_showGridSet();
  1010. }
  1011. //탭 클릭시
  1012. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1013. {
  1014. ftabSwitch();
  1015. }
  1016. // 조회기간 변경시 fromdd
  1017. function grp_sea_ipt_stsfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  1018. {
  1019. fshowGridSet(); // 그리드변경
  1020. }
  1021. // 조회기간 변경시 todd
  1022. function grp_sea_ipt_ststodd_onchanged(obj:Calendar, e:ChangeEventInfo)
  1023. {
  1024. fshowGridSet(); // 그리드변경
  1025. }
  1026. // 조회버튼
  1027. function grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  1028. {
  1029. fcheckSaerch();
  1030. }
  1031. //엑셀저장버튼
  1032. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  1033. {
  1034. fexeSaveToExcel();
  1035. }
  1036. function lf_initCalendar()
  1037. {
  1038. var curDate = utlf_getCurrentDate().toDate();
  1039. Div00.opt_year.value = curDate.getDateFormat('YYYY');
  1040. Div00.opt_month.value = curDate.getDateFormat('MM');
  1041. //setCalendar(curDate);
  1042. lf_GetCalendar();// 통계조회
  1043. }
  1044. function setCalendar(dateObj)
  1045. {
  1046. // 그리드 초기화
  1047. //model.removeNodeset("/root/main/weeklist/list");
  1048. grd_calendar.rebuild();
  1049. dateObj.setDate(1);
  1050. var startDay = dateObj.getDay();
  1051. var days = dateObj.getMonthDay();
  1052. var rows = Math.ceil( ( startDay + days ) / 7 );
  1053. for( var i = 0; i < rows; i++ )
  1054. grd_calendar.addRow(false);
  1055. grd_calendar.rebuild();
  1056. var rowIndex = grd_calendar.fixedRows;
  1057. var colIndex = startDay;
  1058. for( var i = 1; i <= days; i++ ) {
  1059. grd_calendar.valueMatrix(rowIndex, colIndex) = i;
  1060. colIndex++;
  1061. if( colIndex == 7 ) {
  1062. colIndex = 0;
  1063. rowIndex++;
  1064. }
  1065. }
  1066. lf_GetCalendar();// 통계조회
  1067. }
  1068. function lf_GetCalendar(){
  1069. var sInDsName = dsf_createDsRow("ds_temp_search"
  1070. , [{col: "yyyy", val: Div00.opt_year.value}
  1071. , {col: "mm", val:Div00.opt_month.value}]);
  1072. var oParam = {};
  1073. oParam.id = "TRLLS00102";
  1074. oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
  1075. oParam.method = "reqGetOutBcollCalSts";
  1076. oParam.inds = "cond="+sInDsName;
  1077. oParam.outds = "ds_grid_grd_calendar=list";
  1078. oParam.async = false;
  1079. tranf_submit(oParam);
  1080. }
  1081. function btn_premonth_onlbuttonup(obj:Button, e:MouseEventInfo)
  1082. {
  1083. var isMonth = Div00.opt_month.value;
  1084. var isYear = Div00.opt_year.value;
  1085. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
  1086. Div00.opt_year.value = isDate.getDateFormat('YYYY');
  1087. Div00.opt_month.value = isDate.getDateFormat('MM');
  1088. lf_GetCalendar();// 통계조회
  1089. }
  1090. function button131_onlbuttonup(obj:Button, e:MouseEventInfo)
  1091. {
  1092. var isMonth = Div00.opt_month.value;
  1093. var isYear = Div00.opt_year.value;
  1094. var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
  1095. Div00.opt_year.value = isDate.getDateFormat('YYYY');
  1096. Div00.opt_month.value = isDate.getDateFormat('MM');
  1097. lf_GetCalendar();// 통계조회
  1098. }
  1099. function lf_setMonth(month) {
  1100. Div00.opt_month.value = month;
  1101. lf_GetCalendar();// 통계조회
  1102. }
  1103. function Div00_button111_onlbuttondown(obj:Button, e:MouseEventInfo)
  1104. {
  1105. lf_setMonth(obj.text);
  1106. }
  1107. function Div00_button112_onlbuttonup(obj:Button, e:MouseEventInfo)
  1108. {
  1109. lf_setMonth(obj.text);
  1110. }
  1111. function Div00_button113_onlbuttonup(obj:Button, e:MouseEventInfo)
  1112. {
  1113. lf_setMonth(obj.text);
  1114. }
  1115. function Div00_button114_onlbuttonup(obj:Button, e:MouseEventInfo)
  1116. {
  1117. lf_setMonth(obj.text);
  1118. }
  1119. function Div00_button115_onlbuttonup(obj:Button, e:MouseEventInfo)
  1120. {
  1121. lf_setMonth(obj.text);
  1122. }
  1123. function Div00_button116_onlbuttonup(obj:Button, e:MouseEventInfo)
  1124. {
  1125. lf_setMonth(obj.text);
  1126. }
  1127. function Div00_button117_onlbuttonup(obj:Button, e:MouseEventInfo)
  1128. {
  1129. lf_setMonth(obj.text);
  1130. }
  1131. function Div00_button118_onlbuttonup(obj:Button, e:MouseEventInfo)
  1132. {
  1133. lf_setMonth(obj.text);
  1134. }
  1135. function Div00_button119_onlbuttonup(obj:Button, e:MouseEventInfo)
  1136. {
  1137. lf_setMonth(obj.text);
  1138. }
  1139. function Div00_button121_onlbuttonup(obj:Button, e:MouseEventInfo)
  1140. {
  1141. lf_setMonth(obj.text);
  1142. }
  1143. function Div00_button122_onlbuttonup(obj:Button, e:MouseEventInfo)
  1144. {
  1145. lf_setMonth(obj.text);
  1146. }
  1147. function button134_onlbuttonup(obj:Button, e:MouseEventInfo)
  1148. {
  1149. var isMonth = Div00.opt_month.value;
  1150. var isYear = Div00.opt_year.value;
  1151. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
  1152. Div00.opt_year.value = isDate.getDateFormat('YYYY');
  1153. Div00.opt_month.value = isDate.getDateFormat('MM');
  1154. lf_GetCalendar();// 통계조회
  1155. }
  1156. function button132_onlbuttonup(obj:Button, e:MouseEventInfo)
  1157. {
  1158. var isMonth = Div00.opt_month.value;
  1159. var isYear = Div00.opt_year.value;
  1160. var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
  1161. Div00.opt_year.value = isDate.getDateFormat('YYYY');
  1162. Div00.opt_month.value = isDate.getDateFormat('MM');
  1163. lf_GetCalendar();// 통계조회
  1164. }
  1165. ]]></Script>
  1166. </Form>
  1167. </FDL>