SMAES03100_영상의학월별검사실현황.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES03100" position="absolute 0 0 1196 749" titletext="검사실별통계" oninit="SMAES03100_oninit" onload="SMAES03100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="0" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption2" text="대분류 :" class="search_name" position="absolute 246 13 304 30" anchor="default"/>
  11. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 11 1113 31" anchor="top right"/>
  12. <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  13. <Static id="caption3" text="기준년월 :" class="search_name" position="absolute 16 13 87 30" anchor="default"/>
  14. <Combo id="cmb_lrgcd" taborder="4" innerdataset="ds_init_cmb_lrgcd" codecolumn="cdid" datacolumn="cdnm" class="combo_default" position="absolute 309 11 427 30" anchor="default"/>
  15. <Static id="caption11" text="구분 :" class="search_name" position="absolute 480 13 525 30" anchor="default"/>
  16. <Radio id="radio1" taborder="5" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 529 12 669 28" anchor="default">
  17. <Dataset id="innerdataset">
  18. <ColumnInfo>
  19. <Column id="codecolumn"/>
  20. <Column id="datacolumn"/>
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="codecolumn"/>
  25. <Col id="datacolumn">전체</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">I</Col>
  29. <Col id="datacolumn">입원</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">O</Col>
  33. <Col id="datacolumn">외래</Col>
  34. </Row>
  35. </Rows>
  36. </Dataset>
  37. </Radio>
  38. <Static id="caption4" text="분류 :" class="search_name" position="absolute 715 13 760 30" anchor="default"/>
  39. <Radio id="rdo_partflag" taborder="6" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 764 12 898 28" anchor="default">
  40. <Dataset id="innerdataset">
  41. <ColumnInfo>
  42. <Column id="codecolumn"/>
  43. <Column id="datacolumn"/>
  44. </ColumnInfo>
  45. <Rows>
  46. <Row>
  47. <Col id="codecolumn"/>
  48. <Col id="datacolumn">전체</Col>
  49. </Row>
  50. <Row>
  51. <Col id="codecolumn">R</Col>
  52. <Col id="datacolumn">영상</Col>
  53. </Row>
  54. <Row>
  55. <Col id="codecolumn">S</Col>
  56. <Col id="datacolumn">건진</Col>
  57. </Row>
  58. </Rows>
  59. </Dataset>
  60. </Radio>
  61. <cp_monthCal id="input2" titletext="monthCalendar" taborder="7" text="cp_monthCal00" scrollbars="none" position="absolute 89 10 189 31"/>
  62. </Layout>
  63. </Layouts>
  64. </Div>
  65. <Tab id="switch1" taborder="2" tabindex="0" position="absolute 0 72 1195 741" onchanged="switch1_onchanged" anchor="left top right">
  66. <Tabpages>
  67. <Tabpage id="case1" text="일별" style="anchor:default;margin:0 0 0 0;">
  68. <Layouts>
  69. <Layout>
  70. <Grid id="grd_daylist" taborder="0" binddataset="ds_main_list" useinputpanel="false" position="absolute 0 2 1195 645" cellsizingtype="col" anchor="all">
  71. <Formats>
  72. <Format id="default">
  73. <Columns>
  74. <Column size="120" band="left"/>
  75. <Column size="38" band="left"/>
  76. <Column size="43"/>
  77. <Column size="43"/>
  78. <Column size="43"/>
  79. <Column size="43"/>
  80. <Column size="43"/>
  81. <Column size="43"/>
  82. <Column size="43"/>
  83. <Column size="43"/>
  84. <Column size="43"/>
  85. <Column size="43"/>
  86. <Column size="43"/>
  87. <Column size="43"/>
  88. <Column size="43"/>
  89. <Column size="43"/>
  90. <Column size="43"/>
  91. <Column size="43"/>
  92. <Column size="43"/>
  93. <Column size="43"/>
  94. <Column size="43"/>
  95. <Column size="43"/>
  96. <Column size="43"/>
  97. <Column size="43"/>
  98. <Column size="43"/>
  99. <Column size="43"/>
  100. <Column size="43"/>
  101. <Column size="43"/>
  102. <Column size="43"/>
  103. <Column size="43"/>
  104. <Column size="43"/>
  105. <Column size="43"/>
  106. <Column size="43"/>
  107. <Column size="60"/>
  108. </Columns>
  109. <Rows>
  110. <Row size="24" band="head"/>
  111. <Row size="24"/>
  112. </Rows>
  113. <Band id="head">
  114. <Cell colspan="2" text="구분" taborder="undefined"/>
  115. <Cell col="2" text="1일"/>
  116. <Cell col="3" text="2일"/>
  117. <Cell col="4" text="3일"/>
  118. <Cell col="5" text="4일"/>
  119. <Cell col="6" text="5일"/>
  120. <Cell col="7" text="6일"/>
  121. <Cell col="8" text="7일"/>
  122. <Cell col="9" text="8일"/>
  123. <Cell col="10" text="9일"/>
  124. <Cell col="11" text="10일"/>
  125. <Cell col="12" text="11일"/>
  126. <Cell col="13" text="12일"/>
  127. <Cell col="14" text="13일"/>
  128. <Cell col="15" text="14일"/>
  129. <Cell col="16" text="15일"/>
  130. <Cell col="17" text="16일"/>
  131. <Cell col="18" text="17일"/>
  132. <Cell col="19" text="18일"/>
  133. <Cell col="20" text="19일"/>
  134. <Cell col="21" text="20일"/>
  135. <Cell col="22" text="21일"/>
  136. <Cell col="23" text="22일"/>
  137. <Cell col="24" text="23일"/>
  138. <Cell col="25" text="24일"/>
  139. <Cell col="26" text="25일"/>
  140. <Cell col="27" text="26일"/>
  141. <Cell col="28" text="27일"/>
  142. <Cell col="29" text="28일"/>
  143. <Cell col="30" text="29일"/>
  144. <Cell col="31" text="30일"/>
  145. <Cell col="32" text="31일"/>
  146. <Cell col="33" text="합계"/>
  147. </Band>
  148. <Band id="body">
  149. <Cell style="align:left middle;" text="bind:systkey1" suppress="1" suppressalign="middle"/>
  150. <Cell col="1" text="bind:systkey2"/>
  151. <Cell col="2" displaytype="number" text="bind:item01"/>
  152. <Cell col="3" displaytype="number" text="bind:item02"/>
  153. <Cell col="4" displaytype="number" text="bind:item03"/>
  154. <Cell col="5" displaytype="number" text="bind:item04"/>
  155. <Cell col="6" displaytype="number" text="bind:item05"/>
  156. <Cell col="7" displaytype="number" text="bind:item06"/>
  157. <Cell col="8" displaytype="number" text="bind:item07"/>
  158. <Cell col="9" displaytype="number" text="bind:item08"/>
  159. <Cell col="10" displaytype="number" text="bind:item09"/>
  160. <Cell col="11" displaytype="number" text="bind:item10"/>
  161. <Cell col="12" displaytype="number" text="bind:item11"/>
  162. <Cell col="13" displaytype="number" text="bind:item12"/>
  163. <Cell col="14" displaytype="number" text="bind:item13"/>
  164. <Cell col="15" displaytype="number" text="bind:item14"/>
  165. <Cell col="16" displaytype="number" text="bind:item15"/>
  166. <Cell col="17" displaytype="number" text="bind:item16"/>
  167. <Cell col="18" displaytype="number" text="bind:item17"/>
  168. <Cell col="19" displaytype="number" text="bind:item18"/>
  169. <Cell col="20" displaytype="number" text="bind:item19"/>
  170. <Cell col="21" displaytype="number" text="bind:item20"/>
  171. <Cell col="22" displaytype="number" text="bind:item21"/>
  172. <Cell col="23" displaytype="number" text="bind:item22"/>
  173. <Cell col="24" displaytype="number" text="bind:item23"/>
  174. <Cell col="25" displaytype="number" text="bind:item24"/>
  175. <Cell col="26" displaytype="number" text="bind:item25"/>
  176. <Cell col="27" displaytype="number" text="bind:item26"/>
  177. <Cell col="28" displaytype="number" text="bind:item27"/>
  178. <Cell col="29" displaytype="number" text="bind:item28"/>
  179. <Cell col="30" displaytype="number" text="bind:item29"/>
  180. <Cell col="31" displaytype="number" text="bind:item30"/>
  181. <Cell col="32" displaytype="number" text="bind:item31"/>
  182. <Cell col="33" displaytype="number" text="bind:total"/>
  183. </Band>
  184. </Format>
  185. </Formats>
  186. </Grid>
  187. </Layout>
  188. </Layouts>
  189. </Tabpage>
  190. <Tabpage id="case2" text="월별" style="anchor:default;margin:0 0 0 0;">
  191. <Layouts>
  192. <Layout>
  193. <Grid id="grd_monthlist" taborder="0" binddataset="ds_main_list" useinputpanel="false" position="absolute 0 2 1194 645" cellsizingtype="col" autofittype="col" anchor="all">
  194. <Formats>
  195. <Format id="default">
  196. <Columns>
  197. <Column size="120"/>
  198. <Column size="38"/>
  199. <Column size="70"/>
  200. <Column size="70"/>
  201. <Column size="70"/>
  202. <Column size="70"/>
  203. <Column size="70"/>
  204. <Column size="70"/>
  205. <Column size="70"/>
  206. <Column size="70"/>
  207. <Column size="70"/>
  208. <Column size="70"/>
  209. <Column size="70"/>
  210. <Column size="70"/>
  211. <Column size="92"/>
  212. </Columns>
  213. <Rows>
  214. <Row size="24" band="head"/>
  215. <Row size="24" band="head"/>
  216. <Row size="24"/>
  217. </Rows>
  218. <Band id="head">
  219. <Cell rowspan="2" colspan="2" text="구분" taborder="undefined"/>
  220. <Cell col="2" colspan="12" text="2006년" taborder="undefined"/>
  221. <Cell col="14" rowspan="2" text="합계" taborder="undefined"/>
  222. <Cell row="1" col="2" text="1월"/>
  223. <Cell row="1" col="3" text="2월"/>
  224. <Cell row="1" col="4" text="3월"/>
  225. <Cell row="1" col="5" text="4월"/>
  226. <Cell row="1" col="6" text="5월"/>
  227. <Cell row="1" col="7" text="6월"/>
  228. <Cell row="1" col="8" text="7월"/>
  229. <Cell row="1" col="9" text="8월"/>
  230. <Cell row="1" col="10" text="9월"/>
  231. <Cell row="1" col="11" text="10월"/>
  232. <Cell row="1" col="12" text="11월"/>
  233. <Cell row="1" col="13" text="12월"/>
  234. </Band>
  235. <Band id="body">
  236. <Cell text="bind:systkey1" suppress="1" suppressalign="middle"/>
  237. <Cell col="1" text="bind:systkey2"/>
  238. <Cell col="2" displaytype="number" text="bind:item01"/>
  239. <Cell col="3" displaytype="number" text="bind:item02"/>
  240. <Cell col="4" displaytype="number" text="bind:item03"/>
  241. <Cell col="5" displaytype="number" text="bind:item04"/>
  242. <Cell col="6" displaytype="number" text="bind:item05"/>
  243. <Cell col="7" displaytype="number" text="bind:item06"/>
  244. <Cell col="8" displaytype="number" text="bind:item07"/>
  245. <Cell col="9" displaytype="number" text="bind:item08"/>
  246. <Cell col="10" displaytype="number" text="bind:item09"/>
  247. <Cell col="11" displaytype="number" text="bind:item10"/>
  248. <Cell col="12" displaytype="number" text="bind:item11"/>
  249. <Cell col="13" displaytype="number" text="bind:item12"/>
  250. <Cell col="14" displaytype="number" text="bind:total"/>
  251. </Band>
  252. </Format>
  253. </Formats>
  254. </Grid>
  255. </Layout>
  256. </Layouts>
  257. </Tabpage>
  258. </Tabpages>
  259. </Tab>
  260. <Static id="caption6" text="검사실별통계" class="tit_1" position="absolute 0 0 200 25"/>
  261. <Button id="button2" taborder="1" text="엑셀저장" class="btn7" position="absolute 1116 72 1195 94" onclick="button2_onclick" anchor="top right"/>
  262. </Layout>
  263. </Layouts>
  264. <Objects>
  265. <Dataset id="ds_init_cmb_lrgcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  266. <ColumnInfo>
  267. <Column id="cdnm" type="STRING"/>
  268. <Column id="cdid" type="STRING"/>
  269. </ColumnInfo>
  270. </Dataset>
  271. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  272. <ColumnInfo>
  273. <Column id="systkey1" type="STRING"/>
  274. <Column id="systkey2" type="STRING"/>
  275. <Column id="item01" type="STRING"/>
  276. <Column id="item02" type="STRING"/>
  277. <Column id="item03" type="STRING"/>
  278. <Column id="item04" type="STRING"/>
  279. <Column id="item05" type="STRING"/>
  280. <Column id="item06" type="STRING"/>
  281. <Column id="item07" type="STRING"/>
  282. <Column id="item08" type="STRING"/>
  283. <Column id="item09" type="STRING"/>
  284. <Column id="item10" type="STRING"/>
  285. <Column id="item11" type="STRING"/>
  286. <Column id="item12" type="STRING"/>
  287. <Column id="item13" type="STRING"/>
  288. <Column id="item14" type="STRING"/>
  289. <Column id="item15" type="STRING"/>
  290. <Column id="item16" type="STRING"/>
  291. <Column id="item17" type="STRING"/>
  292. <Column id="item18" type="STRING"/>
  293. <Column id="item19" type="STRING"/>
  294. <Column id="item20" type="STRING"/>
  295. <Column id="item21" type="STRING"/>
  296. <Column id="item22" type="STRING"/>
  297. <Column id="item23" type="STRING"/>
  298. <Column id="item24" type="STRING"/>
  299. <Column id="item25" type="STRING"/>
  300. <Column id="item26" type="STRING"/>
  301. <Column id="item27" type="STRING"/>
  302. <Column id="item28" type="STRING"/>
  303. <Column id="item29" type="STRING"/>
  304. <Column id="item30" type="STRING"/>
  305. <Column id="item31" type="STRING"/>
  306. <Column id="total" type="STRING"/>
  307. </ColumnInfo>
  308. </Dataset>
  309. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  310. <ColumnInfo>
  311. <Column id="srchdate" type="STRING" size="256"/>
  312. <Column id="instance1" type="STRING" size="256"/>
  313. <Column id="suppdeptcd" type="STRING" size="256"/>
  314. <Column id="ioflag" type="STRING" size="256"/>
  315. <Column id="partflag" type="STRING" size="256"/>
  316. <Column id="lrgcd" type="STRING" size="256"/>
  317. <Column id="basecdflag" type="STRING" size="256"/>
  318. <Column id="srchflag" type="STRING" size="256"/>
  319. </ColumnInfo>
  320. <Rows>
  321. <Row>
  322. <Col id="srchdate"/>
  323. <Col id="instance1"/>
  324. <Col id="suppdeptcd"/>
  325. <Col id="ioflag"/>
  326. <Col id="partflag"/>
  327. <Col id="lrgcd"/>
  328. <Col id="basecdflag"/>
  329. <Col id="srchflag"/>
  330. </Row>
  331. </Rows>
  332. </Dataset>
  333. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  334. <ColumnInfo>
  335. <Column id="instance1" type="STRING" size="256"/>
  336. </ColumnInfo>
  337. <Rows>
  338. <Row/>
  339. </Rows>
  340. </Dataset>
  341. </Objects>
  342. <Bind>
  343. <BindItem id="item0" compid="grp_sea.cmb_lrgcd" propid="value" datasetid="ds_send" columnid="lrgcd"/>
  344. <BindItem id="item1" compid="grp_sea.radio1" propid="value" datasetid="ds_send" columnid="ioflag"/>
  345. <BindItem id="item2" compid="grp_sea.rdo_partflag" propid="value" datasetid="ds_send" columnid="partflag"/>
  346. </Bind>
  347. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  348. * System Name :
  349. * Job Name :
  350. * Creator :
  351. * Make Date : 2015-11-13
  352. * Description :
  353. *---------------------------------------------------------------------------------------
  354. * Modify Date Modifier Modify Description
  355. *---------------------------------------------------------------------------------------
  356. * 2015-11-13 Live Converter TF->XP
  357. *
  358. *---------------------------------------------------------------------------------------
  359. ****************************************************************************************/
  360. include "com_commonxp::comm_main.xjs";
  361. include "com_basiccodexp::ZBC001.xjs";
  362. include "ast_examcurexp::AEZ0001.xjs";
  363. var arErrorCode = new HashArray();
  364. /******************************************************************
  365. * Argument :
  366. * Description : 초기화
  367. ******************************************************************/
  368. function SMAES03100_oninit(obj:Form, e:InitEventInfo)
  369. {
  370. frmf_initForm(obj);
  371. }
  372. function SMAES03100_onload(obj:Form, e:LoadEventInfo)
  373. {
  374. lf_aezfSetSuppDeptcd();
  375. ds_send_globalinstance.setColumn(0, "instance1", frmf_getParameter("AST_DEPTCD"));
  376. var fromdd = utlf_getCurrentDate();
  377. ds_send.setColumn(0, "suppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
  378. ds_send.setColumn(0, "srchdate", fromdd);
  379. ds_send.setColumn(0, "ioflag", "");
  380. ds_send.setColumn(0, "basecdflag", "R");
  381. //조회기간 달력 set
  382. grp_sea.input2.setData(fromdd);
  383. //조회기간 event
  384. grp_sea.input2.setCallEvent("fn_Cal");
  385. dsf_createDsRow("ds_temp_send",
  386. [{col:"basesuppdeptcd", type:"string", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
  387. ,{col:"flag", type:"string", size:256, val:ds_send.getColumn(0, "basecdflag")}], true);
  388. var oParam = {};
  389. oParam.id = "TRAES01502";
  390. oParam.service = "examcurestatsapp.ImgMediSc";
  391. oParam.method = "reqGetBodyGrpPartComCdList";
  392. oParam.inds = "req=ds_temp_send";
  393. oParam.outds = "ds_init_cmb_lrgcd=item";
  394. oParam.async = false;
  395. //oParam.callback = "cf_TRAES01502";
  396. tranf_submit(oParam);
  397. dsf_addDsItem(ds_init_cmb_lrgcd, "cdid", "cdnm", "전체", "", "above");
  398. setTitle();
  399. }
  400. /******************************************************************
  401. * Argument :
  402. * Description : 조회기간(srchdate) event
  403. ******************************************************************/
  404. function fn_Cal(){
  405. var srchdate = grp_sea.input2.getData();
  406. srchdate = srchdate.substr(0, 6);
  407. ds_send.setColumn(0, "srchdate", srchdate);
  408. setTitle();
  409. }
  410. /******************************************************************
  411. * Argument :
  412. * Description : setTitle()
  413. ******************************************************************/
  414. function setTitle(){
  415. var stSrchYear = grp_sea.input2.getData();
  416. var dtSrchYear = stSrchYear.substr(0, 4);
  417. //dtSrchYear = dtSrchYear.toDate().getDateFormat("YYYY");
  418. var baseDate = stSrchYear + "01";
  419. var sDayCnt = baseDate.toDate().getMonthDay();
  420. switch1.case2.grd_monthlist.setCellProperty("Head", 1, "text", dtSrchYear + "년");
  421. if( sDayCnt > 30 ){
  422. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item29"), "size", 40);
  423. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item30"), "size", 40);
  424. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item31"), "size", 40);
  425. } else if( sDayCnt < 29 ){
  426. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item29"), "size", 0);
  427. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item30"), "size", 0);
  428. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item31"), "size", 0);
  429. } else {
  430. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item29"), "size", 40);
  431. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item30"), "size", 40);
  432. switch1.case1.grd_daylist.setFormatColProperty(switch1.case1.grd_daylist.getBindCellIndex("body", "item31"), "size", 0);
  433. }
  434. }
  435. /******************************************************************
  436. * Argument :
  437. * Description : 조회 button event
  438. ******************************************************************/
  439. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  440. {
  441. frmf_openLoadingBar("검사별통계을 조회 중입니다....");
  442. // 검사별실적 통계 조회
  443. getimgSytsStatsCaseList();
  444. frmf_closeLoadingBar() ;//처리중 화면을 close한다.
  445. }
  446. /******************************************************************
  447. * Argument :
  448. * Description : 검사별통계을 조회하는 함수
  449. ******************************************************************/
  450. function getimgSytsStatsCaseList(){
  451. if( switch1.tabindex == 0 ) { // 일별
  452. ds_send.setColumn(0, "srchflag","D");
  453. } else if( switch1.tabindex == 1 ) { // 월별
  454. ds_send.setColumn(0, "srchflag","M");
  455. }
  456. ds_main_list.clearData();
  457. dsf_createDsRow("ds_req", [
  458. {col:"ioflag", type:"STRING", size:256, val:ds_send.getColumn(0,"ioflag")}
  459. , {col:"srchdate", type:"STRING", size:256, val:ds_send.getColumn(0,"srchdate").substring(0,6)}
  460. , {col:"lrgcd", type:"STRING", size:256, val:ds_send.getColumn(0,"lrgcd")}
  461. , {col:"suppdeptcd", type:"STRING", size:256, val:ds_send.getColumn(0,"suppdeptcd")}
  462. , {col:"partflag", type:"STRING", size:256, val:ds_send.getColumn(0,"partflag")}
  463. , {col:"srchflag", type:"STRING", size:256, val:ds_send.getColumn(0,"srchflag")}
  464. ]);
  465. var oParam = {};
  466. oParam.id = "TRAES03101";
  467. oParam.service = "examcurestatsapp.ImgMediSc";
  468. oParam.method = "reqGetMmEaxmCaseList";
  469. oParam.inds = "req=ds_req";
  470. oParam.outds = "ds_main_list=item";
  471. oParam.async = false;
  472. oParam.callback = "cf_TRAES03101";
  473. tranf_submit(oParam);
  474. }
  475. function cf_TRAES03101(sSvcId, nErrorCode, sErrorMsg) {
  476. arErrorCode.push(sSvcId, nErrorCode);
  477. ds_main_list.updateColID("excuroomnm", "systkey1");
  478. ds_main_list.updateColID("nm", "systkey2");
  479. }
  480. /******************************************************************
  481. * Argument :
  482. * Description : Tab button event
  483. ******************************************************************/
  484. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  485. {
  486. ds_main_list.clearData();
  487. // 검사별실적 통계 조회
  488. getimgSytsStatsCaseList();
  489. }
  490. /******************************************************************
  491. * Argument :
  492. * Description : excel 저장
  493. ******************************************************************/
  494. function button2_onclick(obj:Button, e:ClickEventInfo)
  495. {
  496. if( ds_main_list.rowcount > 1 ){
  497. if( switch1.tabindex == 0 ){
  498. grdf_exportExcel(switch1.case1.grd_daylist, "검사실별통계(일별)", "검사실별통계(일별)", false, "", "user", false);
  499. } else {
  500. grdf_exportExcel(switch1.case2.grd_monthlist, "검사실별통계(월별)", "검사실별통계(월별)", false, "", "user", false);
  501. }
  502. } else {
  503. sysf_messageBox("조회된 데이터가 ", "I004");
  504. }
  505. }
  506. ]]></Script>
  507. </Form>
  508. </FDL>