SMLBP00320_수혈율.xfdl 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBP00320" position="absolute 0 0 1198 769" titletext="혈액반납폐기율" oninit="SMLBP00320_oninit" onload="SMLBP00320_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="혈액 T/CM 율" position="absolute 0 0 127 25" id="caption12" class="tit_1" anchor="left top"/>
  8. <Button id="btn_reset" taborder="1" text="초기화" class="btn4" position="absolute 1125 80 1193 102" onclick="btn_reset_onclick" anchor="top right"/>
  9. <Shape id="line7" linetype="vertical" class="line_2" position="absolute 0 37 1195 43"/>
  10. <Button id="btn_print" taborder="2" text="정리" class="btn6" position="absolute 1139 1 1195 23" onclick="btn_print_onclick" anchor="top right"/>
  11. <Tab id="swt_statflag" taborder="4" tabindex="0" class="sw_box" position="absolute 0 90 1185 765" onchanged="swt_statflag_onchanged" anchor="all">
  12. <Tabpages>
  13. <Tabpage id="dd" text="일별 통계">
  14. <Layouts>
  15. <Layout>
  16. <Grid id="grd_dd" taborder="1" binddataset="ds_grd_dd" useinputpanel="false" position="absolute 1 32 1181 648" anchor="all">
  17. <Formats>
  18. <Format id="default">
  19. <Columns>
  20. <Column size="22"/>
  21. <Column size="25"/>
  22. <Column size="147"/>
  23. <Column size="70"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="50"/>
  27. <Column size="50"/>
  28. <Column size="50"/>
  29. <Column size="50"/>
  30. <Column size="50"/>
  31. <Column size="50"/>
  32. <Column size="50"/>
  33. <Column size="50"/>
  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. </Columns>
  58. <Rows>
  59. <Row size="24" band="head"/>
  60. <Row size="24"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell/>
  64. <Cell col="1"/>
  65. <Cell col="2" text="구분"/>
  66. <Cell col="3" text="코드"/>
  67. <Cell col="4" text="건수"/>
  68. <Cell col="5" text="%"/>
  69. <Cell col="6" text="01"/>
  70. <Cell col="7" text="02"/>
  71. <Cell col="8" text="03"/>
  72. <Cell col="9" text="04"/>
  73. <Cell col="10" text="05"/>
  74. <Cell col="11" text="06"/>
  75. <Cell col="12" text="07"/>
  76. <Cell col="13" text="08"/>
  77. <Cell col="14" text="09"/>
  78. <Cell col="15" text="10"/>
  79. <Cell col="16" text="11"/>
  80. <Cell col="17" text="12"/>
  81. <Cell col="18" text="13"/>
  82. <Cell col="19" text="14"/>
  83. <Cell col="20" text="15"/>
  84. <Cell col="21" text="16"/>
  85. <Cell col="22" text="17"/>
  86. <Cell col="23" text="18"/>
  87. <Cell col="24" text="19"/>
  88. <Cell col="25" text="20"/>
  89. <Cell col="26" text="21"/>
  90. <Cell col="27" text="22"/>
  91. <Cell col="28" text="23"/>
  92. <Cell col="29" text="24"/>
  93. <Cell col="30" text="25"/>
  94. <Cell col="31" text="26"/>
  95. <Cell col="32" text="27"/>
  96. <Cell col="33" text="28"/>
  97. <Cell col="34" text="29"/>
  98. <Cell col="35" text="30"/>
  99. <Cell col="36" text="31"/>
  100. </Band>
  101. <Band id="body">
  102. <Cell expr="expr:currow"/>
  103. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  104. <Cell col="2" style="align:left middle;" text="bind:blodcomcd"/>
  105. <Cell col="3" text="bind:delive"/>
  106. <Cell col="4" text="bind:rtn"/>
  107. <Cell col="5" text="bind:perc"/>
  108. <Cell col="6" text="bind:d01"/>
  109. <Cell col="7" text="bind:d02"/>
  110. <Cell col="8" text="bind:d03"/>
  111. <Cell col="9" text="bind:d04"/>
  112. <Cell col="10" text="bind:d05"/>
  113. <Cell col="11" text="bind:d06"/>
  114. <Cell col="12" text="bind:d07"/>
  115. <Cell col="13" text="bind:d08"/>
  116. <Cell col="14" text="bind:d09"/>
  117. <Cell col="15" text="bind:d10"/>
  118. <Cell col="16" text="bind:d11"/>
  119. <Cell col="17" text="bind:d12"/>
  120. <Cell col="18" text="bind:d13"/>
  121. <Cell col="19" text="bind:d14"/>
  122. <Cell col="20" text="bind:d15"/>
  123. <Cell col="21" text="bind:d16"/>
  124. <Cell col="22" text="bind:d17"/>
  125. <Cell col="23" text="bind:d18"/>
  126. <Cell col="24" text="bind:d19"/>
  127. <Cell col="25" text="bind:d20"/>
  128. <Cell col="26" text="bind:d21"/>
  129. <Cell col="27" text="bind:d22"/>
  130. <Cell col="28" text="bind:d23"/>
  131. <Cell col="29" text="bind:d24"/>
  132. <Cell col="30" text="bind:d25"/>
  133. <Cell col="31" text="bind:d26"/>
  134. <Cell col="32" text="bind:d27"/>
  135. <Cell col="33" text="bind:d28"/>
  136. <Cell col="34" text="bind:d29"/>
  137. <Cell col="35" text="bind:d30"/>
  138. <Cell col="36" text="bind:d31"/>
  139. </Band>
  140. </Format>
  141. </Formats>
  142. </Grid>
  143. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 1 28 1180 34" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  144. <Static id="caption7" text="일별 통계" class="tit_2" position="absolute 1 11 84 28"/>
  145. </Layout>
  146. </Layouts>
  147. </Tabpage>
  148. <Tabpage id="mm" text="월별 통계">
  149. <Layouts>
  150. <Layout>
  151. <Grid id="grd_mm" taborder="1" binddataset="ds_grd_mm" useinputpanel="false" position="absolute 1 32 1181 648" anchor="all">
  152. <Formats>
  153. <Format id="default">
  154. <Columns>
  155. <Column size="25"/>
  156. <Column size="135"/>
  157. <Column size="50"/>
  158. <Column size="40"/>
  159. <Column size="50"/>
  160. <Column size="50"/>
  161. <Column size="40"/>
  162. <Column size="50"/>
  163. <Column size="50"/>
  164. <Column size="40"/>
  165. <Column size="50"/>
  166. <Column size="50"/>
  167. <Column size="40"/>
  168. <Column size="50"/>
  169. <Column size="50"/>
  170. <Column size="40"/>
  171. <Column size="50"/>
  172. <Column size="50"/>
  173. <Column size="45"/>
  174. <Column size="50"/>
  175. <Column size="50"/>
  176. <Column size="40"/>
  177. <Column size="50"/>
  178. <Column size="50"/>
  179. <Column size="40"/>
  180. <Column size="50"/>
  181. <Column size="50"/>
  182. <Column size="40"/>
  183. <Column size="50"/>
  184. <Column size="50"/>
  185. <Column size="40"/>
  186. <Column size="50"/>
  187. <Column size="50"/>
  188. <Column size="40"/>
  189. <Column size="50"/>
  190. <Column size="50"/>
  191. <Column size="40"/>
  192. <Column size="50"/>
  193. </Columns>
  194. <Rows>
  195. <Row size="24" band="head"/>
  196. <Row size="24" band="head"/>
  197. <Row size="24"/>
  198. </Rows>
  199. <Band id="head">
  200. <Cell rowspan="2" taborder="undefined"/>
  201. <Cell col="1" rowspan="2" text="구분" taborder="undefined"/>
  202. <Cell col="2" colspan="3" text="1월" taborder="undefined"/>
  203. <Cell col="5" colspan="3" text="2월" taborder="undefined"/>
  204. <Cell col="8" colspan="3" text="3월" taborder="undefined"/>
  205. <Cell col="11" colspan="3" text="4월" taborder="undefined"/>
  206. <Cell col="14" colspan="3" text="5월" taborder="undefined"/>
  207. <Cell col="17" colspan="3" text="6월" taborder="undefined"/>
  208. <Cell col="20" colspan="3" text="7월" taborder="undefined"/>
  209. <Cell col="23" colspan="3" text="8월" taborder="undefined"/>
  210. <Cell col="26" colspan="3" text="9월" taborder="undefined"/>
  211. <Cell col="29" colspan="3" text="10월" taborder="undefined"/>
  212. <Cell col="32" colspan="3" text="11월" taborder="undefined"/>
  213. <Cell col="35" colspan="3" text="12월" taborder="undefined"/>
  214. <Cell row="1" col="2" text="CM"/>
  215. <Cell row="1" col="3" text="불출"/>
  216. <Cell row="1" col="4" text="%"/>
  217. <Cell row="1" col="5" text="CM"/>
  218. <Cell row="1" col="6" text="불출"/>
  219. <Cell row="1" col="7" text="%"/>
  220. <Cell row="1" col="8" text="CM"/>
  221. <Cell row="1" col="9" text="불출"/>
  222. <Cell row="1" col="10" text="%"/>
  223. <Cell row="1" col="11" text="CM"/>
  224. <Cell row="1" col="12" text="불출"/>
  225. <Cell row="1" col="13" text="%"/>
  226. <Cell row="1" col="14" text="CM"/>
  227. <Cell row="1" col="15" text="불출"/>
  228. <Cell row="1" col="16" text="%"/>
  229. <Cell row="1" col="17" text="CM"/>
  230. <Cell row="1" col="18" text="불출"/>
  231. <Cell row="1" col="19" text="%"/>
  232. <Cell row="1" col="20" text="CM"/>
  233. <Cell row="1" col="21" text="불출"/>
  234. <Cell row="1" col="22" text="%"/>
  235. <Cell row="1" col="23" text="CM"/>
  236. <Cell row="1" col="24" text="불출"/>
  237. <Cell row="1" col="25" text="%"/>
  238. <Cell row="1" col="26" text="CM"/>
  239. <Cell row="1" col="27" text="불출"/>
  240. <Cell row="1" col="28" text="%"/>
  241. <Cell row="1" col="29" text="CM"/>
  242. <Cell row="1" col="30" text="불출"/>
  243. <Cell row="1" col="31" text="%"/>
  244. <Cell row="1" col="32" text="CM"/>
  245. <Cell row="1" col="33" text="불출"/>
  246. <Cell row="1" col="34" text="%"/>
  247. <Cell row="1" col="35" text="CM"/>
  248. <Cell row="1" col="36" text="불출"/>
  249. <Cell row="1" col="37" text="백분률"/>
  250. </Band>
  251. <Band id="body">
  252. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  253. <Cell col="1" style="align:left middle;" text="bind:blodcomcd"/>
  254. <Cell col="2" text="bind:t1"/>
  255. <Cell col="3" text="bind:m1"/>
  256. <Cell col="4" text="bind:p1"/>
  257. <Cell col="5" text="bind:t2"/>
  258. <Cell col="6" text="bind:m2"/>
  259. <Cell col="7" text="bind:p2"/>
  260. <Cell col="8" text="bind:t3"/>
  261. <Cell col="9" text="bind:m3"/>
  262. <Cell col="10" text="bind:p3"/>
  263. <Cell col="11" text="bind:t4"/>
  264. <Cell col="12" text="bind:m4"/>
  265. <Cell col="13" text="bind:p4"/>
  266. <Cell col="14" text="bind:t5"/>
  267. <Cell col="15" text="bind:m5"/>
  268. <Cell col="16" text="bind:p5"/>
  269. <Cell col="17" text="bind:t6"/>
  270. <Cell col="18" text="bind:m6"/>
  271. <Cell col="19" text="bind:p6"/>
  272. <Cell col="20" text="bind:t7"/>
  273. <Cell col="21" text="bind:m7"/>
  274. <Cell col="22" text="bind:p7"/>
  275. <Cell col="23" text="bind:t8"/>
  276. <Cell col="24" text="bind:m8"/>
  277. <Cell col="25" text="bind:p8"/>
  278. <Cell col="26" text="bind:t9"/>
  279. <Cell col="27" text="bind:m9"/>
  280. <Cell col="28" text="bind:p9"/>
  281. <Cell col="29" text="bind:t10"/>
  282. <Cell col="30" text="bind:m10"/>
  283. <Cell col="31" text="bind:p10"/>
  284. <Cell col="32" text="bind:t11"/>
  285. <Cell col="33" text="bind:m11"/>
  286. <Cell col="34" text="bind:p11"/>
  287. <Cell col="35" text="bind:t12"/>
  288. <Cell col="36" text="bind:m12"/>
  289. <Cell col="37" text="bind:p12"/>
  290. </Band>
  291. </Format>
  292. </Formats>
  293. </Grid>
  294. <Shape id="line4" linetype="horizontal" class="line_1" position="absolute 1 28 1180 34" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  295. <Static id="caption8" text="월별통계" class="tit_2" position="absolute 1 11 76 28"/>
  296. </Layout>
  297. </Layouts>
  298. </Tabpage>
  299. <Tabpage id="yy" text="연별 통계">
  300. <Layouts>
  301. <Layout>
  302. <Grid id="grd_yy" taborder="1" binddataset="ds_grd_yy" useinputpanel="false" position="absolute 1 32 1181 648" anchor="all">
  303. <Formats>
  304. <Format id="default">
  305. <Columns>
  306. <Column size="25"/>
  307. <Column size="120"/>
  308. <Column size="80"/>
  309. <Column size="80"/>
  310. <Column size="80"/>
  311. <Column size="80"/>
  312. <Column size="80"/>
  313. <Column size="80"/>
  314. <Column size="80"/>
  315. <Column size="80"/>
  316. <Column size="80"/>
  317. </Columns>
  318. <Rows>
  319. <Row size="24" band="head"/>
  320. <Row size="24"/>
  321. </Rows>
  322. <Band id="head">
  323. <Cell/>
  324. <Cell col="1" text="구분"/>
  325. <Cell col="2" text="d1"/>
  326. <Cell col="3" text="d2"/>
  327. <Cell col="4" text="d3"/>
  328. <Cell col="5" text="d4"/>
  329. <Cell col="6" text="d5"/>
  330. <Cell col="7" text="d6"/>
  331. <Cell col="8" text="d7"/>
  332. <Cell col="9" text="d8"/>
  333. <Cell col="10" text="d9"/>
  334. </Band>
  335. <Band id="body">
  336. <Cell text="bind:chk" edittype="checkbox" displaytype="checkbox"/>
  337. <Cell col="1" text="bind:blodtest"/>
  338. <Cell col="2" text="bind:d1"/>
  339. <Cell col="3" text="bind:d2"/>
  340. <Cell col="4" text="bind:d3"/>
  341. <Cell col="5" text="bind:d4"/>
  342. <Cell col="6" text="bind:d5"/>
  343. <Cell col="7" text="bind:d6"/>
  344. <Cell col="8" text="bind:d7"/>
  345. <Cell col="9" text="bind:d8"/>
  346. <Cell col="10" text="bind:d9"/>
  347. </Band>
  348. </Format>
  349. </Formats>
  350. </Grid>
  351. <Static id="caption10" text="년별 통계" class="tit_2" position="absolute 1 11 84 28"/>
  352. <Shape id="line5" linetype="horizontal" class="line_1" position="absolute 1 28 1180 34" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  353. </Layout>
  354. </Layouts>
  355. </Tabpage>
  356. </Tabpages>
  357. </Tab>
  358. <Button id="btn_excel" taborder="5" text="엑셀" class="btn7" position="absolute 1081 1 1133 24" onclick="btn_excel_onclick" anchor="top right"/>
  359. <Div id="group1" taborder="7" position="absolute 0 25 1195 75" class="div_SA" anchor="left top right">
  360. <Layouts>
  361. <Layout>
  362. <Button id="btn_ref" taborder="4" text="조회" class="btn1" position="absolute 1123 15 1179 37" anchor="top right" onclick="group1_btn_ref_onclick"/>
  363. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 14 1111 36" anchor="top right"/>
  364. <Calendar id="ipt_workfromdd" taborder="5" class="input_search" position="absolute 195 13 275 32" anchor="left top" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onkeyup="group1_ipt_workfromdd_onkeyup"/>
  365. <Calendar id="ipt_worktodd" taborder="6" class="input_search" visible="false" position="absolute 299 13 379 32" anchor="left top" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
  366. <Static id="caption4" text="통계 희망일 :" class="search_name" position="absolute 10 17 104 34" anchor="left top"/>
  367. <Static id="caption9" text="~" class="search_no_b" visible="false" position="absolute 283 15 296 32" anchor="left top"/>
  368. <Combo id="combo1" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 108 14 181 33" anchor="left top">
  369. <Dataset id="innerdataset">
  370. <ColumnInfo>
  371. <Column id="codecolumn"/>
  372. <Column id="datacolumn"/>
  373. </ColumnInfo>
  374. <Rows>
  375. <Row>
  376. <Col id="codecolumn">2</Col>
  377. <Col id="datacolumn">불출일</Col>
  378. </Row>
  379. <Row>
  380. <Col id="codecolumn">1</Col>
  381. <Col id="datacolumn">준비일</Col>
  382. </Row>
  383. </Rows>
  384. </Dataset>
  385. </Combo>
  386. </Layout>
  387. </Layouts>
  388. </Div>
  389. </Layout>
  390. </Layouts>
  391. <Objects>
  392. <Dataset id="ds_grd_dd" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  393. <ColumnInfo>
  394. <Column id="chk" type="STRING"/>
  395. <Column id="blodcomcd" type="STRING"/>
  396. <Column id="delive" type="STRING"/>
  397. <Column id="rtn" type="STRING"/>
  398. <Column id="perc" type="STRING"/>
  399. <Column id="d01" type="STRING"/>
  400. <Column id="d02" type="STRING"/>
  401. <Column id="d03" type="STRING"/>
  402. <Column id="d04" type="STRING"/>
  403. <Column id="d05" type="STRING"/>
  404. <Column id="d06" type="STRING"/>
  405. <Column id="d07" type="STRING"/>
  406. <Column id="d08" type="STRING"/>
  407. <Column id="d09" type="STRING"/>
  408. <Column id="d10" type="STRING"/>
  409. <Column id="d11" type="STRING"/>
  410. <Column id="d12" type="STRING"/>
  411. <Column id="d13" type="STRING"/>
  412. <Column id="d14" type="STRING"/>
  413. <Column id="d15" type="STRING"/>
  414. <Column id="d16" type="STRING"/>
  415. <Column id="d17" type="STRING"/>
  416. <Column id="d18" type="STRING"/>
  417. <Column id="d19" type="STRING"/>
  418. <Column id="d20" type="STRING"/>
  419. <Column id="d21" type="STRING"/>
  420. <Column id="d22" type="STRING"/>
  421. <Column id="d23" type="STRING"/>
  422. <Column id="d24" type="STRING"/>
  423. <Column id="d25" type="STRING"/>
  424. <Column id="d26" type="STRING"/>
  425. <Column id="d27" type="STRING"/>
  426. <Column id="d28" type="STRING"/>
  427. <Column id="d29" type="STRING"/>
  428. <Column id="d30" type="STRING"/>
  429. <Column id="d31" type="STRING"/>
  430. </ColumnInfo>
  431. </Dataset>
  432. <Dataset id="ds_grd_mm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  433. <ColumnInfo>
  434. <Column id="chk" type="STRING"/>
  435. <Column id="blodcomcd" type="STRING"/>
  436. <Column id="t1" type="STRING"/>
  437. <Column id="m1" type="STRING"/>
  438. <Column id="p1" type="STRING"/>
  439. <Column id="t2" type="STRING"/>
  440. <Column id="m2" type="STRING"/>
  441. <Column id="p2" type="STRING"/>
  442. <Column id="t3" type="STRING"/>
  443. <Column id="m3" type="STRING"/>
  444. <Column id="p3" type="STRING"/>
  445. <Column id="t4" type="STRING"/>
  446. <Column id="m4" type="STRING"/>
  447. <Column id="p4" type="STRING"/>
  448. <Column id="t5" type="STRING"/>
  449. <Column id="m5" type="STRING"/>
  450. <Column id="p5" type="STRING"/>
  451. <Column id="t6" type="STRING"/>
  452. <Column id="m6" type="STRING"/>
  453. <Column id="p6" type="STRING"/>
  454. <Column id="t7" type="STRING"/>
  455. <Column id="m7" type="STRING"/>
  456. <Column id="p7" type="STRING"/>
  457. <Column id="t8" type="STRING"/>
  458. <Column id="m8" type="STRING"/>
  459. <Column id="p8" type="STRING"/>
  460. <Column id="t9" type="STRING"/>
  461. <Column id="m9" type="STRING"/>
  462. <Column id="p9" type="STRING"/>
  463. <Column id="t10" type="STRING"/>
  464. <Column id="m10" type="STRING"/>
  465. <Column id="p10" type="STRING"/>
  466. <Column id="t11" type="STRING"/>
  467. <Column id="m11" type="STRING"/>
  468. <Column id="p11" type="STRING"/>
  469. <Column id="t12" type="STRING"/>
  470. <Column id="m12" type="STRING"/>
  471. <Column id="p12" type="STRING"/>
  472. </ColumnInfo>
  473. </Dataset>
  474. <Dataset id="ds_grd_yy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  475. <ColumnInfo>
  476. <Column id="chk" type="STRING"/>
  477. <Column id="blodtest" type="STRING"/>
  478. <Column id="d1" type="STRING"/>
  479. <Column id="d2" type="STRING"/>
  480. <Column id="d3" type="STRING"/>
  481. <Column id="d4" type="STRING"/>
  482. <Column id="d5" type="STRING"/>
  483. <Column id="d6" type="STRING"/>
  484. <Column id="d7" type="STRING"/>
  485. <Column id="d8" type="STRING"/>
  486. <Column id="d9" type="STRING"/>
  487. </ColumnInfo>
  488. </Dataset>
  489. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  490. <ColumnInfo>
  491. <Column id="rtnabnflag" type="STRING" size="256"/>
  492. <Column id="cls" type="STRING" size="256"/>
  493. <Column id="stathopefromdd" type="STRING" size="256"/>
  494. <Column id="stathopetodd" type="STRING" size="256"/>
  495. <Column id="perc" type="STRING" size="256"/>
  496. <Column id="code" type="STRING" size="256"/>
  497. <Column id="bloodnm" type="STRING" size="256"/>
  498. <Column id="list" type="STRING" size="256"/>
  499. </ColumnInfo>
  500. <Rows>
  501. <Row>
  502. <Col id="rtnabnflag">1</Col>
  503. <Col id="code">2</Col>
  504. </Row>
  505. </Rows>
  506. </Dataset>
  507. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  508. <ColumnInfo>
  509. <Column id="rtnabnflag" type="STRING" size="256"/>
  510. <Column id="refflag" type="STRING" size="256"/>
  511. <Column id="cls" type="STRING" size="256"/>
  512. <Column id="stathopefromdd" type="STRING" size="256"/>
  513. <Column id="stathopetodd" type="STRING" size="256"/>
  514. <Column id="perc" type="STRING" size="256"/>
  515. <Column id="mon" type="STRING" size="256"/>
  516. <Column id="code" type="STRING" size="256"/>
  517. <Column id="bloodnm" type="STRING" size="256"/>
  518. <Column id="list" type="STRING" size="256"/>
  519. <Column id="dept" type="STRING" size="256"/>
  520. <Column id="res" type="STRING" size="256"/>
  521. <Column id="chk" type="STRING" size="256"/>
  522. </ColumnInfo>
  523. <Rows>
  524. <Row/>
  525. </Rows>
  526. </Dataset>
  527. </Objects>
  528. <Bind>
  529. <BindItem id="item0" compid="group1.ipt_workfromdd" propid="value" datasetid="ds_hidden" columnid="stathopefromdd"/>
  530. <BindItem id="item1" compid="group1.ipt_worktodd" propid="value" datasetid="ds_hidden" columnid="stathopetodd"/>
  531. <BindItem id="item2" compid="group1.combo1" propid="value" datasetid="ds_hidden" columnid="code"/>
  532. </Bind>
  533. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  534. * System Name :
  535. * Job Name :
  536. * Creator :
  537. * Make Date : 2015-05-01
  538. * Description :
  539. *---------------------------------------------------------------------------------------
  540. * Modify Date Modifier Modify Description
  541. *---------------------------------------------------------------------------------------
  542. * 2015-05-01 Live Converter TF->XP
  543. *
  544. *---------------------------------------------------------------------------------------
  545. ****************************************************************************************/
  546. include "com_commonxp::comm_main.xjs";
  547. function SMLBP00320_oninit(obj:Form, e:InitEventInfo)
  548. {
  549. //폼 초기화 함수
  550. frmf_initForm(obj);
  551. }
  552. function SMLBP00320_onload(obj:Form, e:LoadEventInfo)
  553. {
  554. grdf_initGrid(swt_statflag.dd.grd_dd);
  555. grdf_initGrid(swt_statflag.mm.grd_mm);
  556. grdf_initGrid(swt_statflag.yy.grd_yy);
  557. swt_statflag.tabindex = 0;
  558. fMvisible();
  559. }
  560. function fMvisible()
  561. {
  562. if(swt_statflag.tabindex == 0)
  563. {
  564. fSetInit();
  565. group1.ipt_worktodd.visible = false;
  566. group1.caption9.visible = false;
  567. //ds_grd_dd.clearData();
  568. }
  569. if(swt_statflag.tabindex == 1)
  570. {
  571. fSetInit();
  572. group1.ipt_worktodd.visible = false;
  573. group1.caption9.visible = false;
  574. group1.ipt_workfromdd.dateformat = "yyyy";
  575. group1.ipt_workfromdd.editformat = "yyyy";
  576. ds_grd_mm.clearData();
  577. }
  578. if(swt_statflag.tabindex == 2)
  579. {
  580. fSetInit();
  581. group1.ipt_worktodd.visible = true;
  582. group1.caption9.visible = true;
  583. group1.ipt_workfromdd.dateformat = "yyyy";
  584. group1.ipt_workfromdd.editformat = "yyyy";
  585. group1.ipt_worktodd.dateformat = "yyyy";
  586. group1.ipt_worktodd.editformat = "yyyy";
  587. ds_grd_yy.clearData();
  588. }
  589. }
  590. //초기화
  591. function fSetInit()
  592. {
  593. group1.combo1.value = 2;
  594. group1.ipt_workfromdd.value = utlf_getCurrentDate();
  595. group1.ipt_worktodd.value = utlf_getCurrentDate();
  596. group1.ipt_workfromdd.dateformat = "yyyy-MM";
  597. group1.ipt_workfromdd.editformat = "yyyy-MM";
  598. }
  599. //조회
  600. function fSetStat()
  601. {
  602. ds_grd_dd.clearData();
  603. var mons = group1.ipt_workfromdd.value;
  604. var mon = null;
  605. mon = String(mons).substr(4, 2);
  606. ds_send.setColumn(0, "chk", ds_grd_dd.getColumn(0, "chk"));
  607. ds_send.setColumn(0, "mon", mon);
  608. ds_send.setColumn(0, "rtnabnflag", ds_hidden.getColumn(0, "rtnabnflag"));
  609. ds_send.setColumn(0, "cls", ds_hidden.getColumn(0, "cls"));
  610. ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 6));
  611. ds_send.setColumn(0, "stathopetodd", group1.ipt_worktodd.value);
  612. ds_send.setColumn(0, "code", ds_hidden.getColumn(0, "code"));
  613. ds_send.setColumn(0, "bloodnm", ds_hidden.getColumn(0, "bloodnm"));
  614. ds_send.setColumn(0, "perc", ds_hidden.getColumn(0, "perc"));
  615. //if(btn_ddstat.selected == true)
  616. if(swt_statflag.tabindex == 0)
  617. {
  618. ds_send.setColumn(0, "refflag", 1);
  619. var oParam = {};
  620. oParam.id = "TRLBP00802";
  621. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  622. oParam.method = "reqGetRtnbloodList";
  623. oParam.inds = "cond=ds_send";
  624. oParam.outds = "ds_grd_dd=getDDStatList ds_grd_yy=getYYStatList";
  625. oParam.async = false;
  626. //oParam.callback = "cf_TRLBP00802";
  627. tranf_submit(oParam);
  628. // submit("TRLBP00802");
  629. // grd_dd.rowStyle(1,"all","background-color") = "#f7a08b"
  630. // grd_dd.seqrowheader = 0;
  631. // grd_dd.frozenRows = 1;
  632. // grd_dd.frozenCols = 5;
  633. // model.setValue("root/send/list", "");
  634. // model.setValue("root/send/dept", "");
  635. // model.refresh();
  636. ds_send.setColumn(0, "list", "");
  637. ds_send.setColumn(0, "dept", "");
  638. }
  639. else if(swt_statflag.tabindex == 1)
  640. {
  641. fGetMMStat();// 월별통계
  642. }
  643. else if(swt_statflag.tabindex == 2)
  644. {
  645. // fGetYYStat();// 연별통계
  646. }
  647. }
  648. //월별통계
  649. function fGetMMStat()
  650. {
  651. ds_grd_mm.clearData();
  652. ds_send.setColumn(0, "chk", ds_grd_mm.getColumn(0, "chk"));
  653. ds_send.setColumn(0, "rtnabnflag", ds_hidden.getColumn(0, "rtnabnflag"));
  654. ds_send.setColumn(0, "refflag", 2);
  655. ds_send.setColumn(0, "cls", ds_hidden.getColumn(0, "cls"));
  656. // model.setValue("/root/send/stathopefromdd", model.getValue("/root/hidden/stathopefromdd"));
  657. ds_send.setColumn(0, "stathopefromdd", String(group1.ipt_workfromdd.value).substr(0, 4));
  658. // model.setValue("/root/send/stathopetodd", model.getValue("/root/hidden/stathopetodd"));
  659. ds_send.setColumn(0, "stathopetodd", group1.ipt_worktodd.value);
  660. // model.setValue("/root/send/perc", model.getValue("/root/hidden/perc"));
  661. ds_send.setColumn(0, "perc", ds_hidden.getColumn(0, "perc"));
  662. //submit("TRLBP00801");
  663. var oParam = {};
  664. oParam.id = "TRLBP00801";
  665. oParam.service = "refprintmngtapp.BloodBankRefPrintMngt";
  666. oParam.method = "reqGetRtnbloodList";
  667. oParam.inds = "cond=ds_send";
  668. oParam.outds = "ds_grd_mm=getMMStatList";
  669. oParam.async = false;
  670. //oParam.callback = "cf_TRLBP00801";
  671. tranf_submit(oParam);
  672. // grd_mm.rowStyle(2,"all","background-color") = "#f7a08b"
  673. // grd_mm.seqrowheader = 0;
  674. // grd_mm.frozenRows = 1;
  675. // grd_mm.frozenCols = 2;
  676. // model.setValue("root/send/list", "");
  677. // model.setValue("root/send/dept", "");
  678. // model.refresh();
  679. //
  680. //exeReportPreview("RPLBP00200", "XMLFILE", "/root/send", "TRLBP00301", "", "", "", "", "", "", "", "mm");
  681. }
  682. function fList()
  683. { //일별
  684. //if (btn_ddstat.selected == true)
  685. alert(swt_statflag.tabindex);
  686. if (swt_statflag.tabindex == 0)
  687. {
  688. if(ds_send.getColumn(0, "cls") == 2)
  689. {
  690. alert("cls = 2");
  691. var list = "";
  692. var dept = "";
  693. for(i = 0; i < ds_grd_dd.rowposition; i++)
  694. {
  695. if(ds_grd_dd.getColumn(i, "chk") == 1)
  696. {
  697. list = list + "," + ds_grd_dd.getColumn(i, "blodcomcd");
  698. }
  699. }
  700. ds_send.setColumn(0, "list", list);
  701. fSetStat();
  702. }
  703. else if (swt_statflag.tabindex == 0)
  704. {
  705. if(ds_send.getColumn(0, "cls") == 1)
  706. {
  707. alert("cls = 1");
  708. var dept = "";
  709. for(i = 0; i <= ds_grd_dd.rowposition; i++)
  710. {
  711. if(ds_grd_dd.getColumn(i, "chk") == 1)
  712. {
  713. dept = dept + "," + ds_grd_dd.getColumn(i, "blodcomcd");
  714. }
  715. }
  716. ds_send.setColumn(0, "dept", dept);
  717. alert("조회");
  718. fSetStat();
  719. }
  720. }
  721. }
  722. if(swt_statflag.tabindex == 1)
  723. {
  724. if(ds_send.getColumn(0, "cls") == 2)
  725. {
  726. var list = "";
  727. for(i = 0; i <= ds_grd_mm.rowposition; i++)
  728. {
  729. if(ds_grd_mm.getColumn(i, "chk") == 1)
  730. {
  731. list = list + "," + ds_grd_mm.getColumn(i, "blodcomcd");
  732. }
  733. }
  734. ds_send.setColumn(0, "list", list);
  735. fGetMMStat();
  736. }
  737. else if(swt_statflag.tabindex == 1)
  738. {
  739. if(ds_send.getColumn(0, "cls") == 1)
  740. {
  741. var dept = "";
  742. for(i = 0; i <= ds_grd_mm.rowposition; i++)
  743. {
  744. if(ds_grd_mm.getColumn(i , "chk") == 1)
  745. {
  746. dept = dept + "," + ds_grd_mm.getColumn(i, "blodcomcd");
  747. }
  748. }
  749. ds_send.setColumn(0, "dept", dept);
  750. fGetMMStat();
  751. }
  752. }
  753. }
  754. }
  755. function swt_statflag_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  756. {
  757. fMvisible();
  758. }
  759. //조회
  760. function group1_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  761. {
  762. fSetStat();
  763. }
  764. function group1_ipt_workfromdd_onkeyup(obj:Calendar, e:KeyEventInfo)
  765. {
  766. if(e.keycode == 13)
  767. {
  768. fSetStat();
  769. }
  770. }
  771. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  772. {
  773. alert("정리");
  774. fList();
  775. }
  776. //엑셀저장
  777. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  778. {
  779. if (swt_statflag.tabindex == 0)
  780. {
  781. if(ds_grd_dd.rowcount == 0)
  782. {
  783. sysf_messageBox("엑셀 저장할 자료가 없습니다.","E000","");
  784. return;
  785. }
  786. grdf_exportExcel(swt_statflag.dd.grd_dd, "excel", "sheet1", false);
  787. }
  788. else if(swt_statflag.tabindex == 1)
  789. {
  790. if(ds_grd_mm.rowcount == 0)
  791. {
  792. sysf_messageBox("엑셀 저장할 자료가 없습니다.","E000","");
  793. return;
  794. }
  795. grdf_exportExcel(swt_statflag.mm.grd_mm, "excel", "sheet1", false);
  796. }
  797. }
  798. //초기화
  799. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  800. {
  801. SMLBP00320_onload();
  802. }
  803. ]]></Script>
  804. </Form>
  805. </FDL>