SMAES04600_기능검사실통계(분기별).xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES04600" position="absolute 0 0 1256 805" titletext="기능검사실 통계(분기별)" oninit="model1_oninit" onload="SMAES04600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="기능검사실 통계(분기별)" class="tit_2" position="absolute 0 77 200 97" positiontype="position"/>
  8. <Shape id="line1" class="line_1" position="absolute 0 65 1195 65" linetype="horizontal" positiontype="position"/>
  9. <Div id="grp_sea" taborder="1" style="align:center top;" position="absolute 0 25 1256 67" class="div_SA" anchor="left top right" positiontype="position">
  10. <Layouts>
  11. <Layout>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1110 4 1110 26" anchor="default" positiontype="position"/>
  13. <Button id="btn_sea" taborder="1" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" positiontype="position" onclick="btn_sea_onclick"/>
  14. <Static id="caption9" text="검사실" class="search_name" position="absolute 354 10 415 30" anchor="default" visible="true" positiontype="position"/>
  15. <Combo id="cmb_excuroom" taborder="2" position="absolute 415 10 571 30" anchor="default" class="input_essential" visible="true" positiontype="position" innerdataset="@ds_init_cmb_initexcuroom" codecolumn="basecd" datacolumn="basecdflagdesc"/>
  16. <Static id="caption8" text="구분" class="search_name" visible="false" position="absolute 579 10 627 30" anchor="default" positiontype="position"/>
  17. <Radio id="ioflag" taborder="3" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 627 10 772 30" anchor="default" index="0" value="A" positiontype="position">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn" size="256"/>
  21. <Column id="datacolumn" size="256"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">A</Col>
  26. <Col id="datacolumn">전체</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">I</Col>
  30. <Col id="datacolumn">입원</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">O</Col>
  34. <Col id="datacolumn">외래</Col>
  35. </Row>
  36. </Rows>
  37. </Dataset>
  38. </Radio>
  39. <Static id="caption2" text="조회년도" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  40. <Combo id="cmb_qurt" taborder="6" position="absolute 245 10 346 30" anchor="default" class="input_essential" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_cmb_qurt" onitemchanged="grp_sea_cmb_qurt_onitemchanged"/>
  41. <Static id="caption3" text="조회분기" class="search_name" position="absolute 171 10 245 30" anchor="default" positiontype="position"/>
  42. <Spin id="ipt_toyear" taborder="7" class="input_essential" position="absolute 82 10 163 30" anchor="default"/>
  43. </Layout>
  44. </Layouts>
  45. </Div>
  46. <Button id="btn_excsave" taborder="2" text="엑셀저장" onlbuttonup="btn_excsave_onlbuttonup" class="btn2" position="absolute 1188 74 1256 94" anchor="top right" positiontype="position" onclick="btn_excsave_onclick"/>
  47. <Grid id="grd_list" taborder="3" useinputpanel="false" position="absolute 0 97 1256 805" style="align:center middle;" autofittype="col" anchor="all" binddataset="ds_grid_grd_list" positiontype="position" onheadclick="grd_list_onheadclick" cellsizingtype="col" oncolresized="grd_list_oncolresized">
  48. <Formats>
  49. <Format id="default">
  50. <Columns>
  51. <Column size="30"/>
  52. <Column size="87"/>
  53. <Column size="314"/>
  54. <Column size="42"/>
  55. <Column size="42"/>
  56. <Column size="42"/>
  57. <Column size="42"/>
  58. <Column size="42"/>
  59. <Column size="42"/>
  60. <Column size="42"/>
  61. <Column size="42"/>
  62. <Column size="42"/>
  63. <Column size="54"/>
  64. <Column size="54"/>
  65. <Column size="54"/>
  66. <Column size="54"/>
  67. <Column size="54"/>
  68. <Column size="54"/>
  69. <Column size="54"/>
  70. </Columns>
  71. <Rows>
  72. <Row size="24" band="head"/>
  73. <Row size="24" band="head"/>
  74. <Row size="24"/>
  75. <Row size="24" band="summ"/>
  76. </Rows>
  77. <Band id="head">
  78. <Cell rowspan="2"/>
  79. <Cell col="1" rowspan="2" text="검사코드"/>
  80. <Cell col="2" rowspan="2" text="검사명"/>
  81. <Cell col="3" colspan="3" text="3월"/>
  82. <Cell col="6" colspan="3" text="4월"/>
  83. <Cell col="9" colspan="3" text="5월"/>
  84. <Cell col="12" colspan="3" text="1/4분기"/>
  85. <Cell col="15" colspan="2" text="전분기대비"/>
  86. <Cell col="17" colspan="2" text="전년동분기대비"/>
  87. <Cell row="1" col="3" text="입원"/>
  88. <Cell row="1" col="4" text="외래"/>
  89. <Cell row="1" col="5" text="계"/>
  90. <Cell row="1" col="6" text="입원"/>
  91. <Cell row="1" col="7" text="외래"/>
  92. <Cell row="1" col="8" text="계"/>
  93. <Cell row="1" col="9" text="입원"/>
  94. <Cell row="1" col="10" text="외래"/>
  95. <Cell row="1" col="11" text="계"/>
  96. <Cell row="1" col="12" text="입원"/>
  97. <Cell row="1" col="13" text="외래"/>
  98. <Cell row="1" col="14" text="계"/>
  99. <Cell row="1" col="15" text="합계"/>
  100. <Cell row="1" col="16" text="증감"/>
  101. <Cell row="1" col="17" text="합계"/>
  102. <Cell row="1" col="18" text="증감"/>
  103. </Band>
  104. <Band id="body">
  105. <Cell expr="expr:currow + 1"/>
  106. <Cell col="1" style="align:left;" text="bind:prcpcd"/>
  107. <Cell col="2" style="align:left;" text="bind:prcpnm" wordwrap="char"/>
  108. <Cell col="3" displaytype="number" text="bind:imonth01" mask="#,##0"/>
  109. <Cell col="4" displaytype="number" text="bind:omonth01" mask="#,##0"/>
  110. <Cell col="5" displaytype="number" text="bind:smonth01" mask="#,##0"/>
  111. <Cell col="6" displaytype="number" text="bind:imonth02" mask="#,##0"/>
  112. <Cell col="7" displaytype="number" text="bind:omonth02" mask="#,##0"/>
  113. <Cell col="8" displaytype="number" text="bind:smonth02" mask="#,##0"/>
  114. <Cell col="9" displaytype="number" text="bind:imonth03" mask="#,##0"/>
  115. <Cell col="10" displaytype="number" text="bind:omonth03" mask="#,##0"/>
  116. <Cell col="11" displaytype="number" text="bind:smonth03" mask="#,##0"/>
  117. <Cell col="12" displaytype="number" text="bind:iqurt01" mask="#,##0"/>
  118. <Cell col="13" displaytype="number" text="bind:oqurt01" mask="#,##0"/>
  119. <Cell col="14" displaytype="number" text="bind:squrt01" mask="#,##0"/>
  120. <Cell col="15" displaytype="number" text="bind:prequrtsum" mask="#,##0"/>
  121. <Cell col="16" displaytype="number" text="bind:prequrtrate" mask="###.0%"/>
  122. <Cell col="17" displaytype="number" text="bind:preyearqurtsum" mask="#,##0"/>
  123. <Cell col="18" displaytype="number" text="bind:preyearqurtrate" mask="###.0%"/>
  124. </Band>
  125. <Band id="summary">
  126. <Cell/>
  127. <Cell col="1" colspan="2" text="총계"/>
  128. <Cell col="3" text="expr:getSum(&quot;imonth01&quot;)"/>
  129. <Cell col="4" text="expr:getSum(&quot;omonth01&quot;)"/>
  130. <Cell col="5" text="expr:getSum(&quot;smonth01&quot;)"/>
  131. <Cell col="6" text="expr:getSum(&quot;imonth02&quot;)"/>
  132. <Cell col="7" text="expr:getSum(&quot;omonth02&quot;)"/>
  133. <Cell col="8" text="expr:getSum(&quot;smonth02&quot;)"/>
  134. <Cell col="9" text="expr:getSum(&quot;imonth03&quot;)"/>
  135. <Cell col="10" text="expr:getSum(&quot;omonth03&quot;)"/>
  136. <Cell col="11" text="expr:getSum(&quot;smonth03&quot;)"/>
  137. <Cell col="12" text="expr:getSum(&quot;iqurt01&quot;)"/>
  138. <Cell col="13" text="expr:getSum(&quot;oqurt01&quot;)"/>
  139. <Cell col="14" text="expr:getSum(&quot;squrt01&quot;)"/>
  140. <Cell col="15" text="expr:getSum(&quot;prequrtsum&quot;)"/>
  141. <Cell col="16" displaytype="number" style="align:right middle;" text="expr:getSum(&quot;prequrtsum&quot;)==0?0:(getSum(&quot;squrt01&quot;) - getSum(&quot;prequrtsum&quot;)) / (getSum(&quot;prequrtsum&quot;)) * 100" mask="#,##0%"/>
  142. <Cell col="17" text="expr:getSum(&quot;preyearqurtsum&quot;)"/>
  143. <Cell col="18" displaytype="number" text="expr:getSum(&quot;preyearqurtsum&quot;)==0?0:(getSum(&quot;squrt01&quot;) - getSum(&quot;preyearqurtsum&quot;)) / getSum(&quot;preyearqurtsum&quot;) * 100" mask="#,##0%"/>
  144. </Band>
  145. </Format>
  146. </Formats>
  147. </Grid>
  148. <Static id="caption6" text="기능검사실 통계(분기별)" class="tit_1" position="absolute 0 3 200 28" positiontype="position"/>
  149. </Layout>
  150. </Layouts>
  151. <Objects>
  152. <Dataset id="ds_grid_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  153. <ColumnInfo>
  154. <Column id="prcpcd" type="STRING"/>
  155. <Column id="prcpnm" type="STRING"/>
  156. <Column id="imonth01" type="STRING"/>
  157. <Column id="omonth01" type="STRING"/>
  158. <Column id="smonth01" type="STRING"/>
  159. <Column id="imonth02" type="STRING"/>
  160. <Column id="omonth02" type="STRING"/>
  161. <Column id="smonth02" type="STRING"/>
  162. <Column id="imonth03" type="STRING"/>
  163. <Column id="omonth03" type="STRING"/>
  164. <Column id="smonth03" type="STRING"/>
  165. <Column id="iqurt01" type="STRING"/>
  166. <Column id="oqurt01" type="STRING"/>
  167. <Column id="squrt01" type="STRING"/>
  168. <Column id="prequrtsum" type="STRING"/>
  169. <Column id="prequrtrate" type="STRING"/>
  170. <Column id="preyearqurtsum" type="STRING"/>
  171. <Column id="preyearqurtrate" type="STRING"/>
  172. </ColumnInfo>
  173. </Dataset>
  174. <Dataset id="ds_cmb_reqparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  177. <Column id="rbasecdflag" type="STRING" size="256"/>
  178. <Column id="ebasecdflag" type="STRING" size="256"/>
  179. <Column id="largeclass" type="STRING" size="256"/>
  180. <Column id="cdgrupid" type="STRING" size="256"/>
  181. <Column id="centflag" type="STRING" size="256"/>
  182. <Column id="basecdcnts" type="STRING" size="256"/>
  183. <Column id="suppflag" type="STRING" size="256"/>
  184. <Column id="baseroomopenyn" type="STRING" size="256"/>
  185. <Column id="screenflag" type="STRING" size="256"/>
  186. </ColumnInfo>
  187. <Rows>
  188. <Row/>
  189. </Rows>
  190. </Dataset>
  191. <Dataset id="ds_init_cmb_initexcuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  192. <ColumnInfo>
  193. <Column id="basecd" type="STRING" size="256"/>
  194. <Column id="basecdflagdesc" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_cmb_qurt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  198. <ColumnInfo>
  199. <Column id="label" type="STRING" size="256"/>
  200. <Column id="value" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. <Rows>
  203. <Row>
  204. <Col id="label">1분기</Col>
  205. <Col id="value">1</Col>
  206. </Row>
  207. <Row>
  208. <Col id="label">2분기</Col>
  209. <Col id="value">2</Col>
  210. </Row>
  211. <Row>
  212. <Col id="label">3분기</Col>
  213. <Col id="value">3</Col>
  214. </Row>
  215. <Row>
  216. <Col id="label">4분기</Col>
  217. <Col id="value">4</Col>
  218. </Row>
  219. </Rows>
  220. </Dataset>
  221. </Objects>
  222. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  223. * System Name : KU2.0
  224. * Job Name :
  225. * File Name : SMAES04600_기능검사실통계(분기별).xfdl
  226. * Creator :
  227. * Make Date : 2016-03-25
  228. *
  229. * Description :
  230. *---------------------------------------------------------------------------------------
  231. ****************************************************************************************/
  232. //=======================================================================================
  233. // xjs Include
  234. //---------------------------------------------------------------------------------------
  235. include "com_commonxp::comm_main.xjs";
  236. include "com_basiccodexp::ZBC001.xjs";
  237. include "ast_examcurexp::AEZ0001.xjs";
  238. function f_TRAEA01115(){//검사실combo
  239. ds_cmb_reqparam.setColumn(0, "basesuppdeptcd", suppdeptcd);
  240. ds_cmb_reqparam.setColumn(0, "rbasecdflag", "R");
  241. ds_cmb_reqparam.setColumn(0, "ebasecdflag", "E");
  242. ds_cmb_reqparam.setColumn(0, "largeclass", "M4");
  243. ds_cmb_reqparam.setColumn(0, "cdgrupid", "A0486");
  244. ds_cmb_reqparam.setColumn(0, "centflag", "");
  245. ds_cmb_reqparam.setColumn(0, "baseroomopenyn", "N");
  246. var oParam = new Object();
  247. oParam.id = "TRAEA01115";
  248. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  249. oParam.method = "reqGetInitFuncExamCureRoomList";
  250. oParam.inds = "reqparam=ds_cmb_reqparam";
  251. oParam.outds ="ds_init_cmb_initexcuroom=initexcuroom";
  252. oParam.async = false;
  253. oParam.callback = "cbf_TRAEA01115";
  254. tranf_submit(oParam);
  255. }
  256. function cbf_TRAEA01115(sSvcId, objErrorCode, objErrorMsg){
  257. frmf_addComboItem("grp_sea.cmb_excuroom", "--전체--", "", ""); //검사실
  258. grp_sea.cmb_excuroom.index = 0;
  259. }
  260. function f_TRAES04601(){//조회
  261. dsf_createDsRow("ds_req",
  262. [{col:"srchyyyy", val:grp_sea.ipt_toyear.value}
  263. ,{col:"srchqurt", val:grp_sea.cmb_qurt.value}
  264. ,{col:"excuroomcd", val:grp_sea.cmb_excuroom.value}
  265. ,{col:"suppdeptcd", val:suppdeptcd}
  266. ,{col:"ioflag", val:grp_sea.ioflag.value}
  267. ,{col:"screenflag", val:ds_cmb_reqparam.getColumn(0, "screenflag")}
  268. ]);
  269. var oParam = new Object();
  270. oParam.id = "TRAES04601";
  271. oParam.service = "examcurestatsapp.FuntExam";
  272. oParam.method = "reqGetFuntExamStatsQurtList";
  273. oParam.inds = "req=ds_req";
  274. oParam.outds ="ds_grid_grd_list=item";
  275. oParam.async = false;
  276. oParam.callback = "cbf_TRAES04601";
  277. tranf_submit(oParam);
  278. }
  279. function cbf_TRAES04601(sSvcId, objErrorCode, objErrorMsg){
  280. }
  281. //---------------------------------------------------------------------------------------
  282. //=======================================================================================
  283. // Event
  284. //---------------------------------------------------------------------------------------
  285. /****************************************************************************************
  286. * Components :
  287. * Components ID : SMAES04600
  288. * Event : onload
  289. * Argument : 01.obj : Object Event has occurred
  290. * : 02.e : Event Object
  291. * Description :
  292. ****************************************************************************************/
  293. function SMAES04600_onload(obj:Form, e:LoadEventInfo)
  294. {
  295. frmf_initForm(obj); // 화면공통
  296. lf_aezfSetSuppDeptcd();
  297. // 검사실
  298. f_TRAEA01115();
  299. var tempto1 = utlf_getCurrentDate().substr(0,4);
  300. grp_sea.ipt_toyear.value = tempto1;
  301. grp_sea.cmb_qurt.index = 0;
  302. }
  303. /****************************************************************************************
  304. * Components :
  305. * Components ID : btn_sea
  306. * Event : onclick
  307. * Argument : 01.obj : Object Event has occurred
  308. * : 02.e : Event Object
  309. * Description :
  310. ****************************************************************************************/
  311. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  312. {
  313. f_TRAES04601();
  314. }
  315. /****************************************************************************************
  316. * Components :
  317. * Components ID : btn_excsave
  318. * Event : onclick
  319. * Argument : 01.obj : Object Event has occurred
  320. * : 02.e : Event Object
  321. * Description :
  322. ****************************************************************************************/
  323. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  324. {
  325. if(ds_grid_grd_list.rowcount <= 0){
  326. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  327. return;
  328. }else{
  329. grdf_exportExcel(grd_list, "기능검사실통계(분기별)", "sheet1");
  330. }
  331. }
  332. /****************************************************************************************
  333. * Components :
  334. * Components ID : cmb_qurt
  335. * Event : onitemchanged
  336. * Argument : 01.obj : Object Event has occurred
  337. * : 02.e : Event Object
  338. * Description : 조회분기에 따른 그리드 헤더 정보 변경
  339. ****************************************************************************************/
  340. function grp_sea_cmb_qurt_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  341. {
  342. if(grp_sea.cmb_qurt.index == 0){
  343. grd_list.setCellProperty("head",3,"text","3월");
  344. grd_list.setCellProperty("head",4,"text","4월");
  345. grd_list.setCellProperty("head",5,"text","5월");
  346. grd_list.setCellProperty("head",6,"text","1/4분기");
  347. }else if(grp_sea.cmb_qurt.index == 1){
  348. grd_list.setCellProperty("head",3,"text","6월");
  349. grd_list.setCellProperty("head",4,"text","7월");
  350. grd_list.setCellProperty("head",5,"text","8월");
  351. grd_list.setCellProperty("head",6,"text","2/4분기");
  352. }else if(grp_sea.cmb_qurt.index == 2){
  353. grd_list.setCellProperty("head",3,"text","9월");
  354. grd_list.setCellProperty("head",4,"text","10월");
  355. grd_list.setCellProperty("head",5,"text","11월");
  356. grd_list.setCellProperty("head",6,"text","3/4분기");
  357. }else if(grp_sea.cmb_qurt.index == 3){
  358. grd_list.setCellProperty("head",3,"text","12월");
  359. grd_list.setCellProperty("head",4,"text","1월");
  360. grd_list.setCellProperty("head",5,"text","2월");
  361. grd_list.setCellProperty("head",6,"text","4/4분기");
  362. }
  363. }
  364. function grd_list_oncolresized(obj:Grid, e:GridSizeChangedEventInfo)
  365. {
  366. if(e.newvalue == 0){
  367. obj.setRealColSize(e.subindex, 1);
  368. }
  369. }
  370. ]]></Script>
  371. </Form>
  372. </FDL>