SMLPS00800_검사진료과별통계.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPS00800" position="absolute 0 0 1199 749" titletext="검사/진료과별통계" oninit="SMLPS00800_oninit" onload="SMLPS00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 1102 63 1194 85" anchor="top right" onclick="button13_onclick"/>
  8. <Static id="caption6" text="검사/진료과별통계" class="tit_1" position="absolute 0 0 140 25" anchor="left top"/>
  9. <Static id="caption4" text="접수 검사/진료과 목록" class="tit_2" position="absolute 5 70 162 87" anchor="left top"/>
  10. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 86 1194 92" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  11. <Grid id="grd_statsinfolist" class="datagrid2" taborder="2" binddataset="ds_grd_statsinfolist" useinputpanel="false" position="absolute 0 90 1194 743" autofittype="col" anchor="all" autosizingtype="row" extendsizetype="row">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="0"/>
  16. <Column size="40"/>
  17. <Column size="50"/>
  18. <Column size="63"/>
  19. <Column size="50"/>
  20. <Column size="31"/>
  21. <Column size="31"/>
  22. <Column size="31"/>
  23. <Column size="31"/>
  24. <Column size="31"/>
  25. <Column size="31"/>
  26. <Column size="31"/>
  27. <Column size="31"/>
  28. <Column size="31"/>
  29. <Column size="31"/>
  30. <Column size="31"/>
  31. <Column size="31"/>
  32. <Column size="31"/>
  33. <Column size="31"/>
  34. <Column size="31"/>
  35. <Column size="31"/>
  36. <Column size="31"/>
  37. <Column size="31"/>
  38. <Column size="31"/>
  39. <Column size="31"/>
  40. <Column size="31"/>
  41. <Column size="31"/>
  42. <Column size="31"/>
  43. <Column size="31"/>
  44. <Column size="31"/>
  45. <Column size="31"/>
  46. <Column size="31"/>
  47. <Column size="31"/>
  48. <Column size="31"/>
  49. <Column size="31"/>
  50. <Column size="31"/>
  51. <Column size="31"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="26" band="head"/>
  55. <Row size="24"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell text="구분코드"/>
  59. <Cell col="1"/>
  60. <Cell col="2" text="검사실"/>
  61. <Cell col="3" text="검사명"/>
  62. <Cell col="4" text="진료과"/>
  63. <Cell col="5" text="01"/>
  64. <Cell col="6" text="02"/>
  65. <Cell col="7" text="03"/>
  66. <Cell col="8" text="04"/>
  67. <Cell col="9" text="05"/>
  68. <Cell col="10" text="06"/>
  69. <Cell col="11" text="07"/>
  70. <Cell col="12" text="08"/>
  71. <Cell col="13" text="09"/>
  72. <Cell col="14" text="10"/>
  73. <Cell col="15" text="11"/>
  74. <Cell col="16" text="12"/>
  75. <Cell col="17" text="13"/>
  76. <Cell col="18" text="14"/>
  77. <Cell col="19" text="15"/>
  78. <Cell col="20" text="16"/>
  79. <Cell col="21" text="17"/>
  80. <Cell col="22" text="18"/>
  81. <Cell col="23" text="19"/>
  82. <Cell col="24" text="20"/>
  83. <Cell col="25" text="21"/>
  84. <Cell col="26" text="22"/>
  85. <Cell col="27" text="23"/>
  86. <Cell col="28" text="24"/>
  87. <Cell col="29" text="25"/>
  88. <Cell col="30" text="26"/>
  89. <Cell col="31" text="27"/>
  90. <Cell col="32" text="28"/>
  91. <Cell col="33" text="29"/>
  92. <Cell col="34" text="30"/>
  93. <Cell col="35" text="31"/>
  94. <Cell col="36" text="총&#10;건수"/>
  95. </Band>
  96. <Band id="body">
  97. <Cell text="bind:workflagcd"/>
  98. <Cell col="1" text="expr:currow + 1"/>
  99. <Cell col="2" style="padding:5 5 5 5;" text="bind:testcd" wordwrap="char" autosizerow="limitmin"/>
  100. <Cell col="3" style="padding:5 5 5 5;" class="text_center" text="bind:resncnts" wordwrap="char" autosizerow="limitmin"/>
  101. <Cell col="4" style="padding:5 5 5 5;" class="text_center" text="bind:testnm" wordwrap="char" autosizerow="limitmin"/>
  102. <Cell col="5" class="text_right" text="bind:day01"/>
  103. <Cell col="6" class="text_right" text="bind:day02"/>
  104. <Cell col="7" class="text_right" text="bind:day03"/>
  105. <Cell col="8" class="text_right" text="bind:day04"/>
  106. <Cell col="9" class="text_right" text="bind:day05"/>
  107. <Cell col="10" class="text_right" text="bind:day06"/>
  108. <Cell col="11" class="text_right" text="bind:day07"/>
  109. <Cell col="12" class="text_right" text="bind:day08"/>
  110. <Cell col="13" class="text_right" text="bind:day09"/>
  111. <Cell col="14" class="text_right" text="bind:day10"/>
  112. <Cell col="15" class="text_right" text="bind:day11"/>
  113. <Cell col="16" class="text_right" text="bind:day12"/>
  114. <Cell col="17" class="text_right" text="bind:day13"/>
  115. <Cell col="18" class="text_right" text="bind:day14"/>
  116. <Cell col="19" class="text_right" text="bind:day15"/>
  117. <Cell col="20" class="text_right" text="bind:day16"/>
  118. <Cell col="21" class="text_right" text="bind:day17"/>
  119. <Cell col="22" class="text_right" text="bind:day18"/>
  120. <Cell col="23" class="text_right" text="bind:day19"/>
  121. <Cell col="24" class="text_right" text="bind:day20"/>
  122. <Cell col="25" class="text_right" text="bind:day21"/>
  123. <Cell col="26" class="text_right" text="bind:day22"/>
  124. <Cell col="27" class="text_right" text="bind:day23"/>
  125. <Cell col="28" class="text_right" text="bind:day24"/>
  126. <Cell col="29" class="text_right" text="bind:day25"/>
  127. <Cell col="30" class="text_right" text="bind:day26"/>
  128. <Cell col="31" class="text_right" text="bind:day27"/>
  129. <Cell col="32" class="text_right" text="bind:day28"/>
  130. <Cell col="33" class="text_right" text="bind:day29"/>
  131. <Cell col="34" class="text_right" text="bind:day30"/>
  132. <Cell col="35" class="text_right" text="bind:day31"/>
  133. <Cell col="36" class="text_right" text="bind:daytot"/>
  134. </Band>
  135. </Format>
  136. </Formats>
  137. </Grid>
  138. <Div id="grp_sea" taborder="3" class="div_SA" position="absolute 0 25 1195 60" anchor="left top right">
  139. <Layouts>
  140. <Layout>
  141. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1103 9 1109 31" anchor="top right"/>
  142. <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 11 10 84 27" anchor="left top"/>
  143. <Static id="caption5" text="~" class="search_no_b" position="absolute 198 10 210 27" anchor="left top"/>
  144. <Button id="btn_sea" taborder="8" text="조회" class="btn1" position="absolute 1121 9 1177 31" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  145. <Calendar id="ipt_cnclfromdd" taborder="9" class="input_s_essential" position="absolute 86 8 194 27" mask="yyyy-mm-dd" anchor="left top" onchanged="grp_sea_ipt_cnclfromdd_onchanged"/>
  146. <Calendar id="ipt_cncltodd" taborder="10" class="input_s_essential" position="absolute 212 8 320 27" mask="yyyy-mm-dd" anchor="left top" onkeyup="grp_sea_ipt_cncltodd_onkeyup"/>
  147. <Static id="caption1" text="검색방법 :" class="search_name" position="absolute 322 9 393 27" anchor="left top"/>
  148. <Static id="caption3" text="표시조건 :" class="search_name" position="absolute 462 9 534 27" anchor="left top"/>
  149. <Static id="caption7" text="검사구분 :" class="search_name" position="absolute 603 10 674 26" anchor="top right"/>
  150. <Combo id="cbo_refmthdcd" taborder="11" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 396 8 458 27" anchor="left top" onitemchanged="grp_sea_cbo_refmthdcd_onitemchanged">
  151. <Dataset id="innerdataset">
  152. <ColumnInfo>
  153. <Column id="codecolumn"/>
  154. <Column id="datacolumn"/>
  155. </ColumnInfo>
  156. <Rows>
  157. <Row>
  158. <Col id="codecolumn">0</Col>
  159. <Col id="datacolumn">일별</Col>
  160. </Row>
  161. <Row>
  162. <Col id="codecolumn">1</Col>
  163. <Col id="datacolumn">월별</Col>
  164. </Row>
  165. <Row>
  166. <Col id="codecolumn">2</Col>
  167. <Col id="datacolumn">년별</Col>
  168. </Row>
  169. </Rows>
  170. </Dataset>
  171. </Combo>
  172. <Static id="caption8" text="통계구분 :" class="search_name" position="absolute 899 11 972 28" anchor="top right"/>
  173. <Combo id="cbo_statsflagcd" taborder="12" innerdataset="ds_init_cbo_statsflagcd" codecolumn="resncd" datacolumn="resncnts" position="absolute 976 9 1095 28" anchor="top right"/>
  174. <Combo id="cbo_testflagcd" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 676 8 742 27" anchor="top right">
  175. <Dataset id="innerdataset">
  176. <ColumnInfo>
  177. <Column id="codecolumn"/>
  178. <Column id="datacolumn"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row>
  182. <Col id="codecolumn">0</Col>
  183. <Col id="datacolumn">내부</Col>
  184. </Row>
  185. <Row>
  186. <Col id="codecolumn">1</Col>
  187. <Col id="datacolumn">수탁</Col>
  188. </Row>
  189. <Row>
  190. <Col id="codecolumn">2</Col>
  191. <Col id="datacolumn">위탁</Col>
  192. </Row>
  193. </Rows>
  194. </Dataset>
  195. </Combo>
  196. <Combo id="cbo_dispcondcd" taborder="14" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 538 8 598 27" anchor="left top">
  197. <Dataset id="innerdataset">
  198. <ColumnInfo>
  199. <Column id="codecolumn"/>
  200. <Column id="datacolumn"/>
  201. </ColumnInfo>
  202. <Rows>
  203. <Row>
  204. <Col id="codecolumn">0</Col>
  205. <Col id="datacolumn">접수</Col>
  206. </Row>
  207. <Row>
  208. <Col id="codecolumn">1</Col>
  209. <Col id="datacolumn">업무</Col>
  210. </Row>
  211. <Row>
  212. <Col id="codecolumn">2</Col>
  213. <Col id="datacolumn">완료</Col>
  214. </Row>
  215. </Rows>
  216. </Dataset>
  217. </Combo>
  218. <Combo id="combo1" taborder="15" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 827 9 893 28" anchor="top right" value="0" text="입원" index="0">
  219. <Dataset id="innerdataset">
  220. <ColumnInfo>
  221. <Column id="codecolumn"/>
  222. <Column id="datacolumn"/>
  223. </ColumnInfo>
  224. <Rows>
  225. <Row>
  226. <Col id="codecolumn">0</Col>
  227. <Col id="datacolumn">입원</Col>
  228. </Row>
  229. <Row>
  230. <Col id="codecolumn">1</Col>
  231. <Col id="datacolumn">외래</Col>
  232. </Row>
  233. <Row>
  234. <Col id="codecolumn">Z</Col>
  235. <Col id="datacolumn">전체</Col>
  236. </Row>
  237. </Rows>
  238. </Dataset>
  239. </Combo>
  240. <Static id="caption9" text="환자구분 :" class="search_name" position="absolute 751 10 823 28" anchor="top right"/>
  241. </Layout>
  242. </Layouts>
  243. </Div>
  244. </Layout>
  245. </Layouts>
  246. <Objects>
  247. <Dataset id="ds_grd_statsinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  248. <ColumnInfo>
  249. <Column id="workflagcd" type="STRING"/>
  250. <Column id="testcd" type="STRING"/>
  251. <Column id="resncnts" type="STRING"/>
  252. <Column id="testnm" type="STRING"/>
  253. <Column id="day01" type="STRING"/>
  254. <Column id="day02" type="STRING"/>
  255. <Column id="day03" type="STRING"/>
  256. <Column id="day04" type="STRING"/>
  257. <Column id="day05" type="STRING"/>
  258. <Column id="day06" type="STRING"/>
  259. <Column id="day07" type="STRING"/>
  260. <Column id="day08" type="STRING"/>
  261. <Column id="day09" type="STRING"/>
  262. <Column id="day10" type="STRING"/>
  263. <Column id="day11" type="STRING"/>
  264. <Column id="day12" type="STRING"/>
  265. <Column id="day13" type="STRING"/>
  266. <Column id="day14" type="STRING"/>
  267. <Column id="day15" type="STRING"/>
  268. <Column id="day16" type="STRING"/>
  269. <Column id="day17" type="STRING"/>
  270. <Column id="day18" type="STRING"/>
  271. <Column id="day19" type="STRING"/>
  272. <Column id="day20" type="STRING"/>
  273. <Column id="day21" type="STRING"/>
  274. <Column id="day22" type="STRING"/>
  275. <Column id="day23" type="STRING"/>
  276. <Column id="day24" type="STRING"/>
  277. <Column id="day25" type="STRING"/>
  278. <Column id="day26" type="STRING"/>
  279. <Column id="day27" type="STRING"/>
  280. <Column id="day28" type="STRING"/>
  281. <Column id="day29" type="STRING"/>
  282. <Column id="day30" type="STRING"/>
  283. <Column id="day31" type="STRING"/>
  284. <Column id="daytot" type="STRING"/>
  285. </ColumnInfo>
  286. </Dataset>
  287. <Dataset id="ds_init_cbo_statsflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  288. <ColumnInfo>
  289. <Column id="resncnts" type="STRING"/>
  290. <Column id="resncd" type="STRING"/>
  291. </ColumnInfo>
  292. </Dataset>
  293. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  294. <ColumnInfo>
  295. <Column id="sysdd" type="STRING" size="256"/>
  296. <Column id="systm" type="STRING" size="256"/>
  297. </ColumnInfo>
  298. </Dataset>
  299. <Dataset id="ds_mdlcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="choi" type="STRING" size="256"/>
  302. <Column id="instcd" type="STRING" size="256"/>
  303. <Column id="baseflagcd" type="STRING" size="256"/>
  304. <Column id="resncd" type="STRING" size="256"/>
  305. <Column id="resncnts" type="STRING" size="256"/>
  306. <Column id="mdlflagcd" type="STRING" size="256"/>
  307. </ColumnInfo>
  308. <Rows>
  309. <Row>
  310. <Col id="mdlflagcd"/>
  311. <Col id="baseflagcd">84</Col>
  312. </Row>
  313. </Rows>
  314. </Dataset>
  315. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  316. <ColumnInfo>
  317. <Column id="acptfromdd" type="STRING" size="256"/>
  318. <Column id="acpttodd" type="STRING" size="256"/>
  319. <Column id="refmthdcd" type="STRING" size="256"/>
  320. <Column id="seaval" type="STRING" size="256"/>
  321. <Column id="dispcondcd" type="STRING" size="256"/>
  322. <Column id="testflagcd" type="STRING" size="256"/>
  323. <Column id="statsworkflagcd" type="STRING" size="256"/>
  324. </ColumnInfo>
  325. <Rows>
  326. <Row>
  327. <Col id="refmthdcd">0</Col>
  328. </Row>
  329. </Rows>
  330. </Dataset>
  331. <Dataset id="ds_resncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  332. <ColumnInfo>
  333. <Column id="choi" type="STRING" size="256"/>
  334. <Column id="instcd" type="STRING" size="256"/>
  335. <Column id="baseflagcd" type="STRING" size="256"/>
  336. <Column id="resncd" type="STRING" size="256"/>
  337. <Column id="resncnts" type="STRING" size="256"/>
  338. </ColumnInfo>
  339. <Rows>
  340. <Row>
  341. <Col id="baseflagcd">84</Col>
  342. </Row>
  343. </Rows>
  344. </Dataset>
  345. </Objects>
  346. <Bind>
  347. <BindItem id="item0" compid="grp_sea.ipt_cnclfromdd" propid="value" datasetid="ds_hidden" columnid="acptfromdd"/>
  348. <BindItem id="item1" compid="grp_sea.ipt_cncltodd" propid="value" datasetid="ds_hidden" columnid="acpttodd"/>
  349. <BindItem id="item2" compid="grp_sea.cbo_refmthdcd" propid="value" datasetid="ds_hidden" columnid="refmthdcd"/>
  350. <BindItem id="item3" compid="grp_sea.cbo_dispcondcd" propid="value" datasetid="ds_hidden" columnid="dispcondcd"/>
  351. <BindItem id="item4" compid="grp_sea.cbo_testflagcd" propid="value" datasetid="ds_hidden" columnid="testflagcd"/>
  352. <BindItem id="item5" compid="grp_sea.cbo_statsflagcd" propid="value" datasetid="ds_hidden" columnid="statsworkflagcd"/>
  353. </Bind>
  354. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  355. * System Name :
  356. * Job Name :
  357. * Creator :
  358. * Make Date : 2015-11-13
  359. * Description :
  360. *---------------------------------------------------------------------------------------
  361. * Modify Date Modifier Modify Description
  362. *---------------------------------------------------------------------------------------
  363. * 2015-11-13 Live Converter TF->XP
  364. *
  365. *---------------------------------------------------------------------------------------
  366. ****************************************************************************************/
  367. include "com_commonxp::comm_main.xjs";
  368. function SMLPS00800_oninit(obj:Form, e:InitEventInfo)
  369. {
  370. frmf_initForm(obj);
  371. }
  372. function SMLPS00800_onload(obj:Form, e:LoadEventInfo)
  373. {
  374. grdf_initGrid(grd_statsinfolist);
  375. fExeInitialize();
  376. }
  377. function fExeInitialize()
  378. {
  379. var iNodeCnt = 0;
  380. ds_grd_statsinfolist.clearData();
  381. // 시스템일자 조회
  382. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  383. var oParam = {};
  384. oParam.id = "TRLPZ00102";
  385. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  386. oParam.method = "reqGetSystemDateTimeInformation";
  387. oParam.inds = "refData=ds_send";
  388. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  389. oParam.async = false;
  390. //oParam.callback = "cf_TRLPZ00102";
  391. tranf_submit(oParam);
  392. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  393. ,{col : "delflagcd", val : "0"}
  394. ,{col : "baseflagcd", val : "ZA"}
  395. ,{col : "resncd", val : "01"}]);
  396. var oParam = {};
  397. oParam.id = "TRLPC02802";
  398. oParam.service = "plgybaseinfomngtapp.BaseFlagCode";
  399. oParam.method = "reqGetMdlCdList";
  400. oParam.inds = "refData=ds_send";
  401. oParam.outds = "ds_init_cbo_statsflagcd=baseflagcdinfo";
  402. oParam.async = false;
  403. //oParam.callback = "cf_TRLPC02802";
  404. tranf_submit(oParam);
  405. // 전체조회용 Instance생성
  406. iNodeCnt = Number(ds_mdlcdinfo.rowcount + 1);
  407. ds_mdlcdinfo.setColumn(iNodeCnt, "resncd", "ZZZZ");
  408. ds_mdlcdinfo.setColumn(iNodeCnt, "resncnts", "전체");
  409. ds_mdlcdinfo.setColumn(iNodeCnt, "baseflagcd", "ZA");
  410. // 초기값 설정
  411. ds_hidden.setColumn(0, "seaval", ""); // 검색값
  412. ds_hidden.setColumn(0, "acptfromdd", utlf_getCurrentDate()); // 접수일자(From)
  413. ds_hidden.setColumn(0, "acpttodd", utlf_getCurrentDate()); // 접수일자(To)
  414. ds_hidden.setColumn(0, "refmthdcd", "0"); // 검색방법(일별)
  415. ds_hidden.setColumn(0, "dispcondcd", "0"); // 표시조건(접수)
  416. ds_hidden.setColumn(0, "testflagcd", "0"); // 검사구분코드(내부)
  417. ds_hidden.setColumn(0, "statsworkflagcd", "0101");
  418. fExeRadioChange();
  419. }
  420. //조회
  421. function fGetStatsInfoList()
  422. {
  423. ds_grd_statsinfolist.clearData();
  424. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  425. ,{col : "acptfromdd", val : ds_hidden.getColumn(0, "acptfromdd")}
  426. ,{col : "acpttodd", val : ds_hidden.getColumn(0, "acpttodd")}
  427. ,{col : "refmthdcd", val : ds_hidden.getColumn(0, "refmthdcd")}
  428. ,{col : "dispcondcd", val : ds_hidden.getColumn(0, "dispcondcd")}
  429. ,{col : "testflagcd", val : ds_hidden.getColumn(0, "testflagcd")}
  430. ,{col : "patflagcd", val : grp_sea.combo1.value}
  431. ,{col : "statsworkflagcd", val : ds_hidden.getColumn(0, "statsworkflagcd")}
  432. ,{col : "scrnno", val : "40"}
  433. ,{col : "baseflagcd", val : "84"}]);
  434. var oParam = {};
  435. oParam.id = "TRLPS00101";
  436. oParam.service = "plgystatsmngtapp.StatsMngtRef";
  437. oParam.method = "reqGetTestStats";
  438. oParam.inds = "refData=ds_send";
  439. oParam.outds = "ds_grd_statsinfolist=reflist";
  440. oParam.async = false;
  441. //oParam.callback = "cf_TRLPS00101";
  442. tranf_submit(oParam);
  443. }
  444. function fExeRadioChange()
  445. {
  446. for(var i = 17; i <= 35; i++)
  447. {
  448. grd_statsinfolist.setFormatColProperty(i, "size", 31);
  449. }
  450. var iFromNo = 0;
  451. var iToNo = 0;
  452. var iWidth = 0;
  453. var bState = false;
  454. var k = 0;
  455. var iYear = 0;
  456. var sFromDD = grp_sea.ipt_cnclfromdd.value;
  457. sFromDD_d = sFromDD.toFormatString("%Y%m%d");
  458. var sToDD = grp_sea.ipt_cnclfromdd.value;
  459. sToDD_d = sToDD.toFormatString("%Y%m%d");
  460. if(grp_sea.cbo_refmthdcd.value == "0")
  461. {
  462. iFromNo = 5;
  463. iToNo = ds_grd_statsinfolist.colcount;
  464. iWidth = 31;
  465. bState = false;
  466. sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  467. for(var i = 1; i <= 31; i++)
  468. {
  469. grd_statsinfolist.setCellProperty("head", 4+i, "text", i);
  470. }
  471. }
  472. else if(grp_sea.cbo_refmthdcd.value == "1")
  473. {
  474. iFromNo = 17;
  475. iToNo = 35;
  476. iWidth = 75;
  477. bState = true;
  478. sText = "구분코드^검사코드^검사실^검사항목^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  479. for(var i = 1; i <= 31; i++)
  480. {
  481. grd_statsinfolist.setCellProperty("head", 4+i, "text", i);
  482. if (i > 12)
  483. {
  484. grd_statsinfolist.setFormatColProperty(4+i, "size", 0);
  485. }
  486. }
  487. }
  488. else
  489. {
  490. iFromNo = 25;
  491. iToNo = 35;
  492. iWidth = 47;
  493. bState = true;
  494. for (var iNo = toNumber(sFromDD_d.substr(0,4)); iNo <= toNumber(sFromDD_d.substr(0,4)) + 20; iNo++)
  495. {
  496. grd_statsinfolist.setCellProperty("head", 5+k, "text", iNo);
  497. k++;
  498. }
  499. for(var j = 25; j <= 35; j++)
  500. {
  501. grd_statsinfolist.setFormatColProperty(j, "size", 0);
  502. }
  503. }
  504. ds_grd_statsinfolist.clearData();
  505. }
  506. //엑셀
  507. function fExeSaveToExcel()
  508. {
  509. var sTitle = "";
  510. switch (grp_sea.cbo_refmthdcd.value)
  511. {
  512. case "0" : sTitle = "검사항목별 (일별) 통계";
  513. break;
  514. case "1" : sTitle = "검사항목별 (월별) 통계";
  515. break;
  516. case "2" : sTitle = "검사항목별 (년별) 통계";
  517. break;
  518. }
  519. grdf_exportExcel(grd_statsinfolist, sTitle, "sheet1", false);
  520. }
  521. //조회
  522. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  523. {
  524. fGetStatsInfoList();
  525. }
  526. function grp_sea_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  527. {
  528. if(e.keycode == 13)
  529. {
  530. fGetStatsInfoList();
  531. }
  532. }
  533. //엑셀
  534. function button13_onclick(obj:Button, e:ClickEventInfo)
  535. {
  536. fExeSaveToExcel();
  537. }
  538. function grp_sea_cbo_refmthdcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  539. {
  540. fExeRadioChange();
  541. }
  542. function grp_sea_ipt_cnclfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  543. {
  544. fExeRadioChange();
  545. }
  546. ]]></Script>
  547. </Form>
  548. </FDL>