SMLLS01100_부서별통계.xfdl 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLS01100" position="absolute 0 0 1211 810" titletext="부서별 통계" onload="SMLLS01100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="swt_statflag" class="sw_box" position="absolute 0 132 1208 805" anchor="all" positiontype="position" onchanged="swt_statflag_onchanged" visible="true">
  8. <Tabpages>
  9. <Tabpage id="dd" text="일별 통계">
  10. <Layouts>
  11. <Layout width="1216" height="646">
  12. <Grid id="grd_dd" position="absolute 0 0 1207 646" style="align:center middle;" anchor="all" positiontype="position" onclick="grd_dd_onclick" binddataset="ds_grid_grd_dd" oncellclick="swt_statflag_dd_grd_dd_oncellclick" cellsizingtype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="30" band="left"/>
  17. <Column size="100" band="left"/>
  18. <Column size="200" band="left"/>
  19. <Column size="80" band="left"/>
  20. <Column size="60"/>
  21. <Column size="60"/>
  22. <Column size="60"/>
  23. <Column size="60"/>
  24. <Column size="60"/>
  25. <Column size="60"/>
  26. <Column size="60"/>
  27. <Column size="60"/>
  28. <Column size="60"/>
  29. <Column size="60"/>
  30. <Column size="60"/>
  31. <Column size="60"/>
  32. <Column size="60"/>
  33. <Column size="60"/>
  34. <Column size="60"/>
  35. <Column size="60"/>
  36. <Column size="60"/>
  37. <Column size="60"/>
  38. <Column size="60"/>
  39. <Column size="60"/>
  40. <Column size="60"/>
  41. <Column size="60"/>
  42. <Column size="60"/>
  43. <Column size="60"/>
  44. <Column size="60"/>
  45. <Column size="60"/>
  46. <Column size="60"/>
  47. <Column size="60"/>
  48. <Column size="60"/>
  49. <Column size="60"/>
  50. <Column size="60"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="24" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell/>
  58. <Cell col="1" text="부서"/>
  59. <Cell col="2" text="검사항목"/>
  60. <Cell col="3" text="Total"/>
  61. <Cell col="4" text="01"/>
  62. <Cell col="5" text="02"/>
  63. <Cell col="6" text="03"/>
  64. <Cell col="7" text="04"/>
  65. <Cell col="8" text="05"/>
  66. <Cell col="9" text="06"/>
  67. <Cell col="10" text="07"/>
  68. <Cell col="11" text="08"/>
  69. <Cell col="12" text="09"/>
  70. <Cell col="13" text="10"/>
  71. <Cell col="14" text="11"/>
  72. <Cell col="15" text="12"/>
  73. <Cell col="16" text="13"/>
  74. <Cell col="17" text="14"/>
  75. <Cell col="18" text="15"/>
  76. <Cell col="19" text="16"/>
  77. <Cell col="20" text="17"/>
  78. <Cell col="21" text="18"/>
  79. <Cell col="22" text="19"/>
  80. <Cell col="23" text="20"/>
  81. <Cell col="24" text="21"/>
  82. <Cell col="25" text="22"/>
  83. <Cell col="26" text="23"/>
  84. <Cell col="27" text="24"/>
  85. <Cell col="28" text="25"/>
  86. <Cell col="29" text="26"/>
  87. <Cell col="30" text="27"/>
  88. <Cell col="31" text="28"/>
  89. <Cell col="32" text="29"/>
  90. <Cell col="33" text="30"/>
  91. <Cell col="34" text="31"/>
  92. </Band>
  93. <Band id="body">
  94. <Cell celltype="head" expr="expr:currow+1"/>
  95. <Cell col="1" text="bind:sectnm"/>
  96. <Cell col="2" style="align:left middle;" text="bind:tclsscrnnm"/>
  97. <Cell col="3" style="align:right middle;" text="bind:total"/>
  98. <Cell col="4" style="align:right middle;" text="bind:d01"/>
  99. <Cell col="5" style="align:right middle;" text="bind:d02"/>
  100. <Cell col="6" style="align:right middle;" text="bind:d03"/>
  101. <Cell col="7" style="align:right middle;" text="bind:d04"/>
  102. <Cell col="8" style="align:right middle;" text="bind:d05"/>
  103. <Cell col="9" style="align:right middle;" text="bind:d06"/>
  104. <Cell col="10" style="align:right middle;" text="bind:d07"/>
  105. <Cell col="11" style="align:right middle;" text="bind:d08"/>
  106. <Cell col="12" style="align:right middle;" text="bind:d09"/>
  107. <Cell col="13" style="align:right middle;" text="bind:d10"/>
  108. <Cell col="14" style="align:right middle;" text="bind:d11"/>
  109. <Cell col="15" style="align:right middle;" text="bind:d12"/>
  110. <Cell col="16" style="align:right middle;" text="bind:d13"/>
  111. <Cell col="17" style="align:right middle;" text="bind:d14"/>
  112. <Cell col="18" style="align:right middle;" text="bind:d15"/>
  113. <Cell col="19" style="align:right middle;" text="bind:d16"/>
  114. <Cell col="20" style="align:right middle;" text="bind:d17"/>
  115. <Cell col="21" style="align:right middle;" text="bind:d18"/>
  116. <Cell col="22" style="align:right middle;" text="bind:d19"/>
  117. <Cell col="23" style="align:right middle;" text="bind:d20"/>
  118. <Cell col="24" style="align:right middle;" text="bind:d21"/>
  119. <Cell col="25" style="align:right middle;" text="bind:d22"/>
  120. <Cell col="26" style="align:right middle;" text="bind:d23"/>
  121. <Cell col="27" style="align:right middle;" text="bind:d24"/>
  122. <Cell col="28" style="align:right middle;" text="bind:d25"/>
  123. <Cell col="29" style="align:right middle;" text="bind:d26"/>
  124. <Cell col="30" style="align:right middle;" text="bind:d27"/>
  125. <Cell col="31" style="align:right middle;" text="bind:d28"/>
  126. <Cell col="32" style="align:right middle;" text="bind:d29"/>
  127. <Cell col="33" style="align:right middle;" text="bind:d30"/>
  128. <Cell col="34" style="align:right middle;" text="bind:d31"/>
  129. </Band>
  130. </Format>
  131. </Formats>
  132. </Grid>
  133. </Layout>
  134. </Layouts>
  135. </Tabpage>
  136. <Tabpage id="mm" text="월별 통계">
  137. <Layouts>
  138. <Layout>
  139. <Grid id="grd_mm" position="absolute 0 0 1208 646" style="align:center middle;" anchor="all" positiontype="position" onclick="grd_mm_onclick" autofittype="col" binddataset="ds_grid_grd_mm" oncellclick="swt_statflag_mm_grd_mm_oncellclick">
  140. <Formats>
  141. <Format id="default">
  142. <Columns>
  143. <Column size="30"/>
  144. <Column size="100"/>
  145. <Column size="200"/>
  146. <Column size="80"/>
  147. <Column size="60"/>
  148. <Column size="60"/>
  149. <Column size="60"/>
  150. <Column size="60"/>
  151. <Column size="60"/>
  152. <Column size="60"/>
  153. <Column size="60"/>
  154. <Column size="60"/>
  155. <Column size="60"/>
  156. <Column size="60"/>
  157. <Column size="60"/>
  158. <Column size="60"/>
  159. </Columns>
  160. <Rows>
  161. <Row size="24" band="head"/>
  162. <Row size="24"/>
  163. </Rows>
  164. <Band id="head">
  165. <Cell/>
  166. <Cell col="1" text="부서"/>
  167. <Cell col="2" text="검사항목"/>
  168. <Cell col="3" text="Total"/>
  169. <Cell col="4" text="01"/>
  170. <Cell col="5" text="02"/>
  171. <Cell col="6" text="03"/>
  172. <Cell col="7" text="04"/>
  173. <Cell col="8" text="05"/>
  174. <Cell col="9" text="06"/>
  175. <Cell col="10" text="07"/>
  176. <Cell col="11" text="08"/>
  177. <Cell col="12" text="09"/>
  178. <Cell col="13" text="10"/>
  179. <Cell col="14" text="11"/>
  180. <Cell col="15" text="12"/>
  181. </Band>
  182. <Band id="body">
  183. <Cell celltype="head" expr="currow+1"/>
  184. <Cell col="1" text="bind:sectnm"/>
  185. <Cell col="2" style="align:left middle;" text="bind:tclsscrnnm"/>
  186. <Cell col="3" style="align:right middle;" text="bind:total"/>
  187. <Cell col="4" style="align:right middle;" text="bind:d01"/>
  188. <Cell col="5" style="align:right middle;" text="bind:d02"/>
  189. <Cell col="6" style="align:right middle;" text="bind:d03"/>
  190. <Cell col="7" style="align:right middle;" text="bind:d04"/>
  191. <Cell col="8" style="align:right middle;" text="bind:d05"/>
  192. <Cell col="9" style="align:right middle;" text="bind:d06"/>
  193. <Cell col="10" style="align:right middle;" text="bind:d07"/>
  194. <Cell col="11" style="align:right middle;" text="bind:d08"/>
  195. <Cell col="12" style="align:right middle;" text="bind:d09"/>
  196. <Cell col="13" style="align:right middle;" text="bind:d10"/>
  197. <Cell col="14" style="align:right middle;" text="bind:d11"/>
  198. <Cell col="15" style="align:right middle;" text="bind:d12"/>
  199. </Band>
  200. </Format>
  201. </Formats>
  202. </Grid>
  203. </Layout>
  204. </Layouts>
  205. </Tabpage>
  206. <Tabpage id="yy" text="연별 통계">
  207. <Layouts>
  208. <Layout>
  209. <Grid id="grd_yy" position="absolute 0 0 1208 646" anchor="all" positiontype="position" onclick="grd_yy_onclick" autofittype="none" binddataset="ds_grid_grd_yy" oncellclick="swt_statflag_yy_grd_yy_oncellclick">
  210. <Formats>
  211. <Format id="default">
  212. <Columns>
  213. <Column size="30"/>
  214. <Column size="100"/>
  215. <Column size="200"/>
  216. <Column size="80"/>
  217. <Column size="80"/>
  218. <Column size="80"/>
  219. <Column size="80"/>
  220. <Column size="80"/>
  221. <Column size="80"/>
  222. <Column size="80"/>
  223. <Column size="80"/>
  224. <Column size="80"/>
  225. <Column size="80"/>
  226. <Column size="80"/>
  227. </Columns>
  228. <Rows>
  229. <Row size="24" band="head"/>
  230. <Row size="24"/>
  231. </Rows>
  232. <Band id="head">
  233. <Cell/>
  234. <Cell col="1" text="부서"/>
  235. <Cell col="2" text="검사항목"/>
  236. <Cell col="3" text="Total"/>
  237. <Cell col="4" displaytype="normal" text="expr:lf_column(4)"/>
  238. <Cell col="5" text="expr:lf_column(5)"/>
  239. <Cell col="6" text="expr:lf_column(6)"/>
  240. <Cell col="7" text="expr:lf_column(7)"/>
  241. <Cell col="8" text="expr:lf_column(8)"/>
  242. <Cell col="9" text="expr:lf_column(9)"/>
  243. <Cell col="10" text="expr:lf_column(10)"/>
  244. <Cell col="11" text="expr:lf_column(11)"/>
  245. <Cell col="12" text="expr:lf_column(12.)"/>
  246. <Cell col="13" text="expr:lf_column(13)"/>
  247. </Band>
  248. <Band id="body">
  249. <Cell celltype="head" expr="currow+1"/>
  250. <Cell col="1" text="bind:sectnm"/>
  251. <Cell col="2" text="bind:tclsscrnnm"/>
  252. <Cell col="3" style="align:right middle;" text="bind:total"/>
  253. <Cell col="4" style="align:right middle;" text="bind:d01"/>
  254. <Cell col="5" style="align:right middle;" text="bind:d02"/>
  255. <Cell col="6" style="align:right middle;" text="bind:d03"/>
  256. <Cell col="7" style="align:right middle;" text="bind:d04"/>
  257. <Cell col="8" style="align:right middle;" text="bind:d05"/>
  258. <Cell col="9" style="align:right middle;" text="bind:d06"/>
  259. <Cell col="10" style="align:right middle;" text="bind:d07"/>
  260. <Cell col="11" style="align:right middle;" text="bind:d08"/>
  261. <Cell col="12" text="bind:d09"/>
  262. <Cell col="13" style="align:right middle;" text="bind:d10"/>
  263. </Band>
  264. </Format>
  265. </Formats>
  266. </Grid>
  267. </Layout>
  268. </Layouts>
  269. </Tabpage>
  270. </Tabpages>
  271. </Tab>
  272. <Static id="caption6" class="tit_1" position="absolute 0 0 106 25" anchor="default" positiontype="position" text="검사 통계"/>
  273. <Shape id="line2" class="line_2" position="absolute 0 25 1195 25" anchor="default" positiontype="position" linetype="horizontal"/>
  274. <Edit id="output4" taborder="11" readonly="true" position="absolute 704 30 769 50" mask="#,###" visible="true" positiontype="position"/>
  275. <Static id="caption11" text="총수혈환자수" class="cell_1" position="absolute 605 28 700 52" style="align:center middle;" visible="true" positiontype="position"/>
  276. <Edit id="output3" taborder="12" readonly="true" position="absolute 537 30 602 50" mask="#,###" visible="true" positiontype="position"/>
  277. <Static id="caption10" text="총수혈건수" class="cell_1" position="absolute 454 28 534 52" style="align:center middle;" visible="true" positiontype="position"/>
  278. <Edit id="output2" taborder="13" readonly="true" position="absolute 386 30 451 50" mask="#,###" visible="true" positiontype="position"/>
  279. <Static id="caption8" text="총환자수" class="cell_1" position="absolute 303 28 383 52" style="align:center middle;" visible="true" positiontype="position"/>
  280. <Edit id="output1" taborder="14" readonly="true" position="absolute 235 30 300 50" mask="#,###" visible="true" positiontype="position"/>
  281. <Static id="caption2" text="총바코드수" class="cell_1" position="absolute 152 28 232 52" style="align:center middle;" visible="true" positiontype="position"/>
  282. <Edit id="output26" taborder="15" readonly="true" position="absolute 84 30 149 50" mask="" visible="true" positiontype="position"/>
  283. <Static id="caption101" text="총검사건수" class="cell_1" position="absolute 1 28 81 52" style="align:center middle;" visible="true" positiontype="position"/>
  284. <Div id="grp_sea" anchor="left top right" taborder="16" style="align:center top;" class="div_SA2" position="absolute 0 55 1208 122">
  285. <Layouts>
  286. <Layout>
  287. <Static id="caption5" text="입원/외래" class="search_name" position="absolute 8 35 102 55" anchor="default" visible="true" positiontype="position"/>
  288. <Combo id="combo2" taborder="1" position="absolute 94 10 186 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position">
  289. <Dataset id="innerdataset">
  290. <ColumnInfo>
  291. <Column id="codecolumn" size="256"/>
  292. <Column id="datacolumn" size="256"/>
  293. </ColumnInfo>
  294. <Rows>
  295. <Row>
  296. <Col id="codecolumn">1</Col>
  297. <Col id="datacolumn">보고일</Col>
  298. </Row>
  299. <Row>
  300. <Col id="codecolumn">2</Col>
  301. <Col id="datacolumn">접수일</Col>
  302. </Row>
  303. </Rows>
  304. </Dataset>
  305. </Combo>
  306. <Combo id="cmb_rtnabnflag" taborder="2" position="absolute 94 35 187 55" anchor="default" visible="true" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position">
  307. <Dataset id="innerdataset">
  308. <ColumnInfo>
  309. <Column id="codecolumn" size="256"/>
  310. <Column id="datacolumn" size="256"/>
  311. </ColumnInfo>
  312. <Rows>
  313. <Row>
  314. <Col id="codecolumn">0</Col>
  315. <Col id="datacolumn">-전체-</Col>
  316. </Row>
  317. <Row>
  318. <Col id="codecolumn">I</Col>
  319. <Col id="datacolumn">입원</Col>
  320. </Row>
  321. <Row>
  322. <Col id="codecolumn">O</Col>
  323. <Col id="datacolumn">외래</Col>
  324. </Row>
  325. <Row>
  326. <Col id="codecolumn">E</Col>
  327. <Col id="datacolumn">응급</Col>
  328. </Row>
  329. <Row>
  330. <Col id="codecolumn">S</Col>
  331. <Col id="datacolumn">건진</Col>
  332. </Row>
  333. </Rows>
  334. </Dataset>
  335. </Combo>
  336. <Static id="caption4" text="통계 희망일" class="search_name" position="absolute 210 10 299 30" anchor="default" positiontype="position"/>
  337. <CheckBox id="checkbox1" taborder="3" text="검사항목 제외" truevalue="Y" position="absolute 210 35 312 55" anchor="default" positiontype="position"/>
  338. <Static id="caption9" text="~" class="search_no_b" visible="false" position="absolute 372 10 388 30" style="align:center middle;font:Dotum,9;" anchor="default" positiontype="position"/>
  339. <Calendar id="ipt_workfromdd" taborder="4" class="input_search" position="absolute 301 10 371 30" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" positiontype="position"/>
  340. <Calendar id="ipt_worktodd" taborder="6" class="input_search" visible="true" position="absolute 387 10 457 30" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" positiontype="position"/>
  341. <Static id="caption12" text=".... :" class="search_name" visible="false" position="absolute 430 35 540 52" anchor="default" positiontype="position"/>
  342. <Static id="caption1" text="부서" class="search_name" position="absolute 481 10 543 30" anchor="default" positiontype="position"/>
  343. <Combo id="combo1" taborder="7" position="absolute 528 10 650 30" anchor="default" innerdataset="@ds_init_lb0111" codecolumn="cd" datacolumn="nm" index="-1" positiontype="position"/>
  344. <Radio id="radio2" taborder="8" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 674 10 839 30" style="align:center middle;" anchor="default" positiontype="position">
  345. <Dataset id="innerdataset">
  346. <ColumnInfo>
  347. <Column id="codecolumn" size="256"/>
  348. <Column id="datacolumn" size="256"/>
  349. </ColumnInfo>
  350. <Rows>
  351. <Row>
  352. <Col id="codecolumn">T</Col>
  353. <Col id="datacolumn">검사</Col>
  354. </Row>
  355. <Row>
  356. <Col id="codecolumn">P</Col>
  357. <Col id="datacolumn">환자</Col>
  358. </Row>
  359. <Row>
  360. <Col id="codecolumn">B</Col>
  361. <Col id="datacolumn">바코드</Col>
  362. </Row>
  363. </Rows>
  364. </Dataset>
  365. </Radio>
  366. <Static id="caption3" text="|" position="absolute 847 10 862 30" style="align:center middle;" anchor="default" positiontype="position"/>
  367. <Radio id="radio1" taborder="9" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 870 10 1015 30" anchor="default" onitemclick="grp_sea_radio1_onitemclick" positiontype="position">
  368. <Dataset id="innerdataset">
  369. <ColumnInfo>
  370. <Column id="codecolumn" size="256"/>
  371. <Column id="datacolumn" size="256"/>
  372. </ColumnInfo>
  373. <Rows>
  374. <Row>
  375. <Col id="codecolumn">D</Col>
  376. <Col id="datacolumn">주간</Col>
  377. </Row>
  378. <Row>
  379. <Col id="codecolumn">N</Col>
  380. <Col id="datacolumn">야간</Col>
  381. </Row>
  382. <Row>
  383. <Col id="codecolumn">A</Col>
  384. <Col id="datacolumn">All</Col>
  385. </Row>
  386. </Rows>
  387. </Dataset>
  388. </Radio>
  389. <Button id="btn_ref" taborder="10" text="조회" class="btn1" position="absolute 1141 10 1197 32" anchor="top right" onclick="grp_sea_btn_ref_onclick" positiontype="position"/>
  390. <Static id="caption13" text="통계기준일" class="search_name" position="absolute 8 10 107 30" anchor="default" positiontype="position"/>
  391. </Layout>
  392. </Layouts>
  393. </Div>
  394. <Button id="btn_excel" taborder="17" text="EXCEL저장" class="btn7" position="absolute 1106 130 1208 152" anchor="top right" onclick="btn_excel_onclick"/>
  395. </Layout>
  396. </Layouts>
  397. <Objects>
  398. <Dataset id="ds_grid_grd_dd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  399. <ColumnInfo>
  400. <Column id="sectnm" type="STRING"/>
  401. <Column id="tclsscrnnm" type="STRING"/>
  402. <Column id="total" type="STRING"/>
  403. <Column id="d01" type="STRING"/>
  404. <Column id="d02" type="STRING"/>
  405. <Column id="d03" type="STRING"/>
  406. <Column id="d04" type="STRING"/>
  407. <Column id="d05" type="STRING"/>
  408. <Column id="d06" type="STRING"/>
  409. <Column id="d07" type="STRING"/>
  410. <Column id="d08" type="STRING"/>
  411. <Column id="d09" type="STRING"/>
  412. <Column id="d10" type="STRING"/>
  413. <Column id="d11" type="STRING"/>
  414. <Column id="d12" type="STRING"/>
  415. <Column id="d13" type="STRING"/>
  416. <Column id="d14" type="STRING"/>
  417. <Column id="d15" type="STRING"/>
  418. <Column id="d16" type="STRING"/>
  419. <Column id="d17" type="STRING"/>
  420. <Column id="d18" type="STRING"/>
  421. <Column id="d19" type="STRING"/>
  422. <Column id="d20" type="STRING"/>
  423. <Column id="d21" type="STRING"/>
  424. <Column id="d22" type="STRING"/>
  425. <Column id="d23" type="STRING"/>
  426. <Column id="d24" type="STRING"/>
  427. <Column id="d25" type="STRING"/>
  428. <Column id="d26" type="STRING"/>
  429. <Column id="d27" type="STRING"/>
  430. <Column id="d28" type="STRING"/>
  431. <Column id="d29" type="STRING"/>
  432. <Column id="d30" type="STRING"/>
  433. <Column id="d31" type="STRING"/>
  434. </ColumnInfo>
  435. </Dataset>
  436. <Dataset id="ds_grid_grd_mm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  437. <ColumnInfo>
  438. <Column id="sectnm" type="STRING"/>
  439. <Column id="tclsscrnnm" type="STRING"/>
  440. <Column id="total" type="STRING"/>
  441. <Column id="d01" type="STRING"/>
  442. <Column id="d02" type="STRING"/>
  443. <Column id="d03" type="STRING"/>
  444. <Column id="d04" type="STRING"/>
  445. <Column id="d05" type="STRING"/>
  446. <Column id="d06" type="STRING"/>
  447. <Column id="d07" type="STRING"/>
  448. <Column id="d08" type="STRING"/>
  449. <Column id="d09" type="STRING"/>
  450. <Column id="d10" type="STRING"/>
  451. <Column id="d11" type="STRING"/>
  452. <Column id="d12" type="STRING"/>
  453. </ColumnInfo>
  454. </Dataset>
  455. <Dataset id="ds_grid_grd_yy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  456. <ColumnInfo>
  457. <Column id="sectnm" type="STRING"/>
  458. <Column id="tclsscrnnm" type="STRING"/>
  459. <Column id="total" type="STRING"/>
  460. <Column id="d01" type="STRING"/>
  461. <Column id="d02" type="STRING"/>
  462. <Column id="d03" type="STRING"/>
  463. <Column id="d04" type="STRING"/>
  464. <Column id="d05" type="STRING"/>
  465. <Column id="d06" type="STRING"/>
  466. <Column id="d07" type="STRING"/>
  467. <Column id="d08" type="STRING"/>
  468. <Column id="d09" type="STRING"/>
  469. <Column id="d10" type="STRING"/>
  470. </ColumnInfo>
  471. </Dataset>
  472. <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  473. <ColumnInfo>
  474. <Column id="cd" type="STRING" size="256"/>
  475. <Column id="nm" type="STRING" size="256"/>
  476. </ColumnInfo>
  477. </Dataset>
  478. <Dataset id="ds_grid_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  479. <ColumnInfo>
  480. <Column id="sectcd" type="STRING" size="256"/>
  481. <Column id="workgbn" type="STRING" size="256"/>
  482. <Column id="cntgbn" type="STRING" size="256"/>
  483. <Column id="itemgbn" type="STRING" size="256"/>
  484. <Column id="ioflag" type="STRING" size="256"/>
  485. <Column id="statshopefromdd" type="STRING" size="256"/>
  486. <Column id="statshopetodd" type="STRING" size="256"/>
  487. <Column id="refflag" type="STRING" size="256"/>
  488. <Column id="ddstandard" type="STRING" size="256"/>
  489. <Column id="panelgbn" type="STRING" size="256"/>
  490. </ColumnInfo>
  491. </Dataset>
  492. <Dataset id="ds_cond_total" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  493. <ColumnInfo>
  494. <Column id="totaltest" type="STRING" size="256"/>
  495. <Column id="totalbcno" type="STRING" size="256"/>
  496. <Column id="totalpid" type="STRING" size="256"/>
  497. <Column id="totalblood" type="STRING" size="256"/>
  498. <Column id="totaltranspid" type="STRING" size="256"/>
  499. </ColumnInfo>
  500. </Dataset>
  501. <Dataset id="ds_cond_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  502. <ColumnInfo>
  503. <Column id="refdd" type="STRING" size="256"/>
  504. <Column id="refflag" type="STRING" size="256"/>
  505. <Column id="sectcd" type="STRING" size="256"/>
  506. <Column id="workgbn" type="STRING" size="256"/>
  507. <Column id="cntgbn" type="STRING" size="256"/>
  508. <Column id="itemgbn" type="STRING" size="256"/>
  509. <Column id="ioflag" type="STRING" size="256"/>
  510. <Column id="ddstandard" type="STRING" size="256"/>
  511. </ColumnInfo>
  512. </Dataset>
  513. </Objects>
  514. <Bind/>
  515. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  516. * System Name :
  517. * Job Name :
  518. * Creator :
  519. * Make Date : 2015-11-13
  520. * Description :
  521. *---------------------------------------------------------------------------------------
  522. * Modify Date Modifier Modify Description
  523. *---------------------------------------------------------------------------------------
  524. * 2015-11-13 Live Converter TF->XP
  525. *
  526. *---------------------------------------------------------------------------------------
  527. ****************************************************************************************/
  528. include "com_commonxp::comm_main.xjs";
  529. include "lis_commonxp::LLZ001.xjs";
  530. function SMLLS01100_onload(obj:Form, e:LoadEventInfo)
  531. {
  532. frmf_initForm(obj); // 화면공통
  533. lf_initDataSet();
  534. lf_setInit();
  535. }
  536. function lf_initDataSet(){
  537. lf_getDbDeptcd("0000|0111|");
  538. }
  539. //화면 open시 초기화
  540. function lf_setInit() {
  541. grp_sea.combo2.value ="1";
  542. grp_sea.ipt_workfromdd.value= utlf_getCurrentDate();
  543. grp_sea.ipt_worktodd.value=utlf_getCurrentDate();
  544. grp_sea.combo1.value="00";
  545. grp_sea.cmb_rtnabnflag.value="0";
  546. grp_sea.radio2.value="T";
  547. grp_sea.radio1.value="A";
  548. grp_sea.caption9.visible = false;
  549. grp_sea.ipt_worktodd.visible = false;
  550. }
  551. function lf_checkSaerch(){
  552. var sFromdd = new String(grp_sea.ipt_workfromdd.value);
  553. var sTodd = new String(grp_sea.ipt_worktodd.value);
  554. var fromdd = sFromdd.substring(0,4);
  555. var todd = sTodd.substring(0,4);
  556. if(swt_statflag.tabindex == "2"){ //연별 통계 조회시 10년 이내로 조회
  557. if(todd - fromdd > 9){
  558. sysf_messageBox("10년 이내로 조회 가능합니다\n조회기간을 다시 선택하세요", "I");
  559. return;
  560. }
  561. }
  562. if(sFromdd > sTodd){
  563. sysf_messageBox("통계 희망일 시작시간이 종료시간보다 작아야 합니다. ", "I");
  564. return;
  565. }
  566. lf_getStats(); // 조회
  567. }
  568. //통계희망일, 검사시행부서, 장비, 조회구분(일,월,연) 에 따른 조회 --- 2008-12-12
  569. function lf_getStats() {
  570. ds_grid_send_data.addRow();
  571. ds_grid_send_data.setColumn(0,"sectcd",grp_sea.combo1.value); //계코드 부서콤보
  572. ds_grid_send_data.setColumn(0,"workgbn",grp_sea.radio1.value); //근무구분 D주간 N야간 ΟAll
  573. ds_grid_send_data.setColumn(0,"cntgbn",grp_sea.radio2.value); // T검사 P환자 B바코드
  574. ds_grid_send_data.setColumn(0,"itemgbn",grp_sea.checkbox1.value); //검사항목제외
  575. ds_grid_send_data.setColumn(0,"ioflag",grp_sea.cmb_rtnabnflag.value); //입원/외래구분 I, O, E, S
  576. ds_grid_send_data.setColumn(0,"statshopefromdd",grp_sea.ipt_workfromdd.value); //통계희망시작일
  577. ds_grid_send_data.setColumn(0,"statshopetodd",grp_sea.ipt_worktodd.value); //통계희망종료일
  578. ds_grid_send_data.setColumn(0,"ddstandard",grp_sea.combo2.value); //통계기준일 1= 접수일 2=보고일
  579. if(swt_statflag.tabindex == "0"){
  580. ds_grid_send_data.setColumn(0,"refflag","dd");
  581. var oParam = {};
  582. oParam.id = "TRLLS01101";
  583. oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
  584. oParam.method = "reqGetSectTestStats";
  585. oParam.inds = "cond=ds_grid_send_data";
  586. oParam.outds = "ds_grid_grd_dd=getSectTestStats ds_=getSectTestStatsTotal ds_=getSectTestStatsTotalB";
  587. oParam.async = false;
  588. tranf_submit(oParam);
  589. lf_changeColor(); // row 색 변경
  590. }else if(swt_statflag.tabindex == "1"){
  591. ds_grid_send_data.setColumn(0,"refflag","mm");
  592. var oParam = {};
  593. oParam.id = "TRLLS01103";
  594. oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
  595. oParam.method = "reqGetSectTestmmStats";
  596. oParam.inds = "cond=ds_grid_send_data";
  597. oParam.outds = "ds_grid_grd_mm=getSectTestmmStats ds_=getSectTestStatsTotal ds_=getSectTestStatsTotalB";
  598. oParam.async = false;
  599. tranf_submit(oParam);
  600. lf_changeColor(); // row 색 변경
  601. }else{
  602. lf_setyygrid();
  603. var sFromdd = new String(grp_sea.ipt_workfromdd.value);
  604. var sTodd = new String(grp_sea.ipt_worktodd.value);
  605. var fromdd = sFromdd.substring(0,4);
  606. var todd = sTodd.substring(0,4);
  607. ds_grid_send_data.setColumn(0,"statshopefromdd",fromdd); //통계희망시작일
  608. ds_grid_send_data.setColumn(0,"statshopetodd",todd); //통계희망종료일
  609. ds_grid_send_data.setColumn(0,"refflag","yy");
  610. var oParam = {};
  611. oParam.id = "TRLLS01104";
  612. oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
  613. oParam.method = "reqGetSectTestyy1Stats";
  614. oParam.inds = "cond=ds_grid_send_data";
  615. oParam.outds = "ds_grid_grd_yy=getSectTestyyStats ds_=getSectTestStatsTotal ds_=getSectTestStatsTotalB";
  616. oParam.async = false;
  617. tranf_submit(oParam);
  618. lf_changeColor(); // row 색 변경
  619. }
  620. }
  621. //종료된 데이타 색깔 바꾸기
  622. function lf_changeColor(){
  623. var i =0;
  624. var j =0;
  625. // 일별통계
  626. if(swt_statflag.tabindex == "0"){
  627. ds_grid_grd_dd.addColumn("checkcolor","String");
  628. if (ds_grid_grd_dd.rowcount == 0) return;
  629. var sExpr = "EXPR(checkcolor)";
  630. //Row색깔 투입
  631. ds_grid_grd_dd.updatecontrol = false ;
  632. for(j=0; j < ds_grid_grd_dd.rowcount; j++){
  633. if(ds_grid_grd_dd.getColumn(j,"tclsscrnnm") == "소계" && grp_sea.checkbox1.value != "Y"){
  634. ds_grid_grd_dd.setColumn(j, "checkcolor", "#B2EBF4");
  635. }else if (ds_grid_grd_dd.getColumn(j,"tclsscrnnm") == "부서계") {
  636. ds_grid_grd_dd.setColumn(j, "checkcolor", "#E4F7BA");
  637. }else if(ds_grid_grd_dd.getColumn(j,"tclsscrnnm") == "부서합계"){
  638. ds_grid_grd_dd.setColumn(j, "checkcolor", "#E4F7BA");
  639. }else if(ds_grid_grd_dd.getColumn(j,"sectnm") == "합계"){
  640. ds_grid_grd_dd.setColumn(j, "checkcolor", "#73EDFF");
  641. }else{
  642. ds_grid_grd_dd.setColumn(j, "checkcolor", "default");
  643. }
  644. ds_grid_grd_dd.setRowType(j,"1");
  645. }
  646. ds_grid_grd_dd.updatecontrol = true ;
  647. //색깔변경
  648. for (i=0; i < swt_statflag.dd.grd_dd.getCellCount('Head'); i++ ) {
  649. swt_statflag.dd.grd_dd.setCellProperty("Body",i,"background", sExpr);
  650. swt_statflag.dd.grd_dd.setCellProperty("Body",i,"background2", sExpr);
  651. }
  652. swt_statflag.dd.grd_dd.setCellProperty("Body",3,"background", "#ffe79d");
  653. swt_statflag.dd.grd_dd.setCellProperty("Body",3,"background2", "#ffe79d");
  654. //월별통계
  655. }else if(swt_statflag.tabindex == "1"){
  656. ds_grid_grd_mm.addColumn("checkcolor","String");
  657. if (ds_grid_grd_mm.rowcount == 0) return;
  658. var sExpr = "EXPR(checkcolor)";
  659. //Row색깔 투입
  660. ds_grid_grd_mm.updatecontrol = false ;
  661. for(j=0; j < ds_grid_grd_mm.rowcount; j++){
  662. if(ds_grid_grd_mm.getColumn(j,"tclsscrnnm") == "소계" && grp_sea.checkbox1.value != "Y"){
  663. ds_grid_grd_mm.setColumn(j, "checkcolor", "#B2EBF4");
  664. }else if (ds_grid_grd_mm.getColumn(j,"tclsscrnnm") == "부서계") {
  665. ds_grid_grd_mm.setColumn(j, "checkcolor", "#E4F7BA");
  666. }else if(ds_grid_grd_mm.getColumn(j,"tclsscrnnm") == "부서합계"){
  667. ds_grid_grd_mm.setColumn(j, "checkcolor", "#E4F7BA");
  668. }else if(ds_grid_grd_mm.getColumn(j,"sectnm") == "합계"){
  669. ds_grid_grd_mm.setColumn(j, "checkcolor", "#73EDFF");
  670. }else{
  671. ds_grid_grd_mm.setColumn(j, "checkcolor", "default");
  672. }
  673. ds_grid_grd_mm.setRowType(j,"1");
  674. }
  675. ds_grid_grd_mm.updatecontrol = true ;
  676. //색깔변경
  677. for (i=0; i < swt_statflag.mm.grd_mm.getCellCount('Head'); i++ ) {
  678. swt_statflag.mm.grd_mm.setCellProperty("Body",i,"background", sExpr);
  679. swt_statflag.mm.grd_mm.setCellProperty("Body",i,"background2", sExpr);
  680. }
  681. //연별통계
  682. }else if(swt_statflag.tabindex == "2"){
  683. ds_grid_grd_yy.addColumn("checkcolor","String");
  684. if (ds_grid_grd_yy.rowcount == 0) return;
  685. var sExpr = "EXPR(checkcolor)";
  686. //Row색깔 투입
  687. ds_grid_grd_yy.updatecontrol = false ;
  688. for(j=0; j < ds_grid_grd_yy.rowcount; j++){
  689. if(ds_grid_grd_yy.getColumn(j,"tclsscrnnm") == "소계" && grp_sea.checkbox1.value != "Y"){
  690. ds_grid_grd_yy.setColumn(j, "checkcolor", "#B2EBF4");
  691. }else if (ds_grid_grd_yy.getColumn(j,"tclsscrnnm") == "부서계") {
  692. ds_grid_grd_yy.setColumn(j, "checkcolor", "#E4F7BA");
  693. }else if(ds_grid_grd_yy.getColumn(j,"tclsscrnnm") == "부서합계"){
  694. ds_grid_grd_yy.setColumn(j, "checkcolor", "#E4F7BA");
  695. }else if(ds_grid_grd_yy.getColumn(j,"sectnm") == "합계"){
  696. ds_grid_grd_yy.setColumn(j, "checkcolor", "#73EDFF");
  697. }else{
  698. ds_grid_grd_yy.setColumn(j, "checkcolor", "default");
  699. }
  700. ds_grid_grd_yy.setRowType(j,"1");
  701. }
  702. ds_grid_grd_yy.updatecontrol = true ;
  703. //색깔변경
  704. for (i=0; i < swt_statflag.yy.grd_yy.getCellCount('Head'); i++ ) {
  705. swt_statflag.yy.grd_yy.setCellProperty("Body",i,"background", sExpr);
  706. swt_statflag.yy.grd_yy.setCellProperty("Body",i,"background2", sExpr);
  707. }
  708. }
  709. }
  710. //switch 버튼 클릭시 그리드 초기화
  711. function lf_gridInit() {
  712. if(swt_statflag.tabindex == "0" || swt_statflag.tabindex == "1" ){ //일별, 월별
  713. grp_sea.ipt_workfromdd.dateformat = "yyyy-MM";
  714. grp_sea.ipt_workfromdd.editformat = "yyyy-MM";
  715. grp_sea.ipt_worktodd.dateformat = "yyyy-MM";
  716. grp_sea.ipt_worktodd.editformat = "yyyy-MM"
  717. grp_sea.caption9.visible = false;
  718. grp_sea.ipt_worktodd.visible = false;
  719. grp_sea.ipt_workfromdd.value = utlf_getCurrentDate();
  720. }else{ //년도별
  721. grp_sea.caption9.visible = true;
  722. grp_sea.ipt_worktodd.visible = true;
  723. grp_sea.ipt_workfromdd.dateformat = "yyyy";
  724. grp_sea.ipt_workfromdd.editformat = "yyyy";
  725. grp_sea.ipt_worktodd.dateformat = "yyyy";
  726. grp_sea.ipt_worktodd.editformat = "yyyy";
  727. grp_sea.ipt_workfromdd.value = utlf_getCurrentDate();
  728. grp_sea.ipt_worktodd.value = utlf_getCurrentDate();
  729. lf_setyytitle();
  730. }
  731. }
  732. // 연도별 선택시 2014년도 컬럼 외 년도는 size 0
  733. function lf_setyytitle(){
  734. for (var i=5 ; i<=13 ; i++){
  735. swt_statflag.yy.grd_yy.setFormatColProperty(i,"size",0);
  736. }
  737. }
  738. // 연별조회시 그리드 타이틀 설정
  739. function lf_setyygrid(){
  740. var sFromdd = new String(grp_sea.ipt_workfromdd.value);
  741. var sTodd = new String(grp_sea.ipt_worktodd.value);
  742. var fromdd = sFromdd.substring(0,4);
  743. var todd = sTodd.substring(0,4);
  744. var i = 4;
  745. for (var j=0 ; j<todd-fromdd+1; j++){ // 5번째컬럼부터 조회되는 년도 컬럼 size 80
  746. swt_statflag.yy.grd_yy.setFormatColProperty(i,"size",80);
  747. i++;
  748. }
  749. for (var k = todd-fromdd ; k<9; k++){ // 조회되지 않는 컬럼 size 0
  750. swt_statflag.yy.grd_yy.setFormatColProperty(i,"size",0);
  751. i++;
  752. }
  753. }
  754. // 그리드 선택시 총검사건수, 총바코드수, 총환자수, 총수혈건수, 총수혈환자수 조회 2008-12-12
  755. function lf_getSelectTotacnts(){
  756. ds_cond_send_data.clearData();
  757. ds_cond_send_data.addRow();
  758. var sFromdd = new String(grp_sea.ipt_workfromdd.value);
  759. var fromdd = sFromdd.substring(0,6);
  760. if(swt_statflag.tabindex == "0"){
  761. var fromdd = sFromdd.substring(0,6);
  762. var DD = swt_statflag.dd.grd_dd.currentcol - 3;
  763. if(DD<10){
  764. var s = utlf_lPad(DD,"2","0");
  765. var dd = utlf_lPad(s,"3",fromdd);
  766. }else if(DD>=10){
  767. var dd = utlf_lPad(DD,"3",fromdd);
  768. }
  769. ds_cond_send_data.setColumn(0,"refdd",dd);
  770. ds_cond_send_data.setColumn(0,"refflag","dd");
  771. }else if(swt_statflag.tabindex == "1"){
  772. var fromdd = sFromdd.substring(0,4);
  773. var MM = swt_statflag.mm.grd_mm.currentcol - 3;
  774. if(MM<10){
  775. var s = utlf_lPad(MM,"2","0");
  776. var mm = utlf_lPad(s,"3",fromdd);
  777. }else if(MM>=10){
  778. var mm = utlf_lPad(MM,"3",fromdd);
  779. }
  780. ds_cond_send_data.setColumn(0,"refdd",mm);
  781. ds_cond_send_data.setColumn(0,"refflag","mm");
  782. }else if(swt_statflag.tabindex == "2"){
  783. var yy = lf_column(swt_statflag.yy.grd_yy.currentcol);
  784. ds_cond_send_data.setColumn(0,"refdd",yy);
  785. ds_cond_send_data.setColumn(0,"refflag","yy");
  786. }
  787. ds_cond_send_data.setColumn(0,"sectcd",grp_sea.combo1.value); //계코드 부서콤보
  788. ds_cond_send_data.setColumn(0,"workgbn",grp_sea.radio1.value); //근무구분 D주간 N야간 ΟAll
  789. ds_cond_send_data.setColumn(0,"cntgbn",grp_sea.radio2.value); // T검사 P환자 B바코드
  790. ds_cond_send_data.setColumn(0,"itemgbn",grp_sea.checkbox1.value); //검사항목제외
  791. ds_cond_send_data.setColumn(0,"ioflag",grp_sea.cmb_rtnabnflag.value); //입원/외래구분 I, O, E, S
  792. ds_cond_send_data.setColumn(0,"ddstandard",grp_sea.combo2.value); //통계기준일 1= 접수일 2=보고일
  793. var oParam = {};
  794. oParam.id = "TRLLS01105";
  795. oParam.service = "statsmngtapp.GeneralTestStatsRefMngt";
  796. oParam.method = "reqGetSelectTotacnts";
  797. oParam.inds = "cond=ds_cond_send_data";
  798. oParam.outds = "ds_cond_total=getSelectTotacnts";
  799. oParam.async = false;
  800. tranf_submit(oParam);
  801. // 총검사건수
  802. if(ds_cond_total.getColumn(0,"totaltest") != null){
  803. output26.value= utlf_setComma(ds_cond_total.getColumn(0,"totaltest"));
  804. }else{
  805. output26.value = " " ;
  806. }
  807. // 총바코드수
  808. if(ds_cond_total.getColumn(0,"totalbcno") != null){
  809. output1.value= utlf_setComma(ds_cond_total.getColumn(0,"totalbcno"));
  810. }else{
  811. output1.value = " ";
  812. }
  813. // 총환자수
  814. if(ds_cond_total.getColumn(0,"totalpid") != null){
  815. output2.value= utlf_setComma(ds_cond_total.getColumn(0,"totalpid"));
  816. }else{
  817. output2.value = " ";
  818. }
  819. //총수혈건수
  820. if(ds_cond_total.getColumn(0,"totalblood") != null){
  821. output3.value= utlf_setComma(ds_cond_total.getColumn(0,"totalblood"));
  822. }else{
  823. output3.value = " ";
  824. }
  825. //총수혈환자수
  826. if(ds_cond_total.getColumn(0,"totaltranspid") != null){
  827. output4.value= utlf_setComma(ds_cond_total.getColumn(0,"totaltranspid"));
  828. }else{
  829. output4.value= " ";
  830. }
  831. }
  832. //엑셀저장
  833. function lf_exeSaveToExcel() {
  834. if(swt_statflag.tabindex == "0"){
  835. grdf_exportExcel(swt_statflag.dd.grd_dd, lf_lisGetTitle(this), "sheet1", false);
  836. }else if(swt_statflag.tabindex == "1"){
  837. grdf_exportExcel(swt_statflag.mm.grd_mm, lf_lisGetTitle(this), "sheet1", false);
  838. }else if(swt_statflag.tabindex == "2"){
  839. grdf_exportExcel(swt_statflag.yy.grd_yy, lf_lisGetTitle(this), "sheet1", false);
  840. }
  841. }
  842. // 그리드 선택시 Column 색 변화
  843. function lf_columnColorChange(){
  844. lf_changeColor();
  845. var col = 0;
  846. if(swt_statflag.tabindex == "0"){
  847. col = swt_statflag.dd.grd_dd.currentcol;
  848. swt_statflag.dd.grd_dd.setCellProperty("Body",col,"background", "lavender");
  849. swt_statflag.dd.grd_dd.setCellProperty("Body",col,"background2", "lavender");
  850. }else if(swt_statflag.tabindex == "1"){
  851. col = swt_statflag.mm.grd_mm.currentcol;
  852. swt_statflag.mm.grd_mm.setCellProperty("Body",col,"background", "lavender");
  853. swt_statflag.mm.grd_mm.setCellProperty("Body",col,"background2", "lavender");
  854. }else if(swt_statflag.tabindex == "1"){
  855. col = swt_statflag.yy.grd_yy.currentcol;
  856. swt_statflag.yy.grd_yy.setCellProperty("Body",col,"background", "lavender");
  857. swt_statflag.yy.grd_yy.setCellProperty("Body",col,"background2", "lavender");
  858. }
  859. lf_getSelectTotacnts();
  860. }
  861. // 연별 통계 조회시 그리드 컬럼명 변경
  862. function lf_column(curcol){
  863. var sFrom = new String(grp_sea.ipt_workfromdd.value);
  864. var fromdd = sFrom.substring(0,4);
  865. var yy = fromdd- 4 + curcol; // 컬럼 title
  866. return yy;
  867. }
  868. //조회
  869. function grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  870. {
  871. lf_checkSaerch();
  872. }
  873. // 탭 선택시
  874. function swt_statflag_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  875. {
  876. lf_gridInit();
  877. lf_checkSaerch();
  878. }
  879. // 일별 통계 그리드 클릭시 색변화, 총검사건수, 총바코드수 등 가져오기
  880. function swt_statflag_dd_grd_dd_oncellclick(obj:Grid, e:GridClickEventInfo)
  881. {
  882. lf_columnColorChange();
  883. }
  884. // 월별 통계 그리드 클릭시 색변화, 총검사건수, 총바코드수 등 가져오기
  885. function swt_statflag_mm_grd_mm_oncellclick(obj:Grid, e:GridClickEventInfo)
  886. {
  887. lf_columnColorChange();
  888. }
  889. // 연별 통계 그리드 클릭시 색변화, 총검사건수, 총바코드수 등 가져오기
  890. function swt_statflag_yy_grd_yy_oncellclick(obj:Grid, e:GridClickEventInfo)
  891. {
  892. lf_columnColorChange();
  893. }
  894. //엑셀 저장
  895. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  896. {
  897. lf_exeSaveToExcel();
  898. }
  899. ]]></Script>
  900. </Form>
  901. </FDL>