SMAES00300_기능검사실통계(월별).xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES00300" position="absolute 0 0 1256 805" titletext="기능검사실 통계(월별)" oninit="model1_oninit" onload="SMAES00300_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. <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"/>
  10. <Grid id="grd_list" taborder="3" useinputpanel="false" position="absolute 0 97 1256 805" anchor="all" autofittype="col" binddataset="ds_grid_grd_list" positiontype="position" cellsizingtype="col" oncolresized="grd_list_oncolresized">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="30"/>
  15. <Column size="93"/>
  16. <Column size="270"/>
  17. <Column size="44"/>
  18. <Column size="44"/>
  19. <Column size="44"/>
  20. <Column size="44"/>
  21. <Column size="44"/>
  22. <Column size="44"/>
  23. <Column size="44"/>
  24. <Column size="44"/>
  25. <Column size="44"/>
  26. <Column size="44"/>
  27. <Column size="44"/>
  28. <Column size="44"/>
  29. <Column size="70"/>
  30. <Column size="70"/>
  31. <Column size="60"/>
  32. <Column size="60"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. <Row size="24" band="summ"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" text="검사코드"/>
  42. <Cell col="2" text="검사명"/>
  43. <Cell col="3" text="1월"/>
  44. <Cell col="4" text="2월"/>
  45. <Cell col="5" text="3월"/>
  46. <Cell col="6" text="4월"/>
  47. <Cell col="7" text="5월"/>
  48. <Cell col="8" text="6월"/>
  49. <Cell col="9" text="7월"/>
  50. <Cell col="10" text="8월"/>
  51. <Cell col="11" text="9월"/>
  52. <Cell col="12" text="10월"/>
  53. <Cell col="13" text="11월"/>
  54. <Cell col="14" text="12월"/>
  55. <Cell col="15" text="합계"/>
  56. <Cell col="16" text="비교기간"/>
  57. <Cell col="17" text="증감"/>
  58. <Cell col="18" text="증감율"/>
  59. </Band>
  60. <Band id="body">
  61. <Cell expr="expr:currow + 1"/>
  62. <Cell col="1" style="align:left;" text="bind:prcpcd"/>
  63. <Cell col="2" style="align:left;" text="bind:prcpnm" wordwrap="char"/>
  64. <Cell col="3" displaytype="number" text="bind:month01" mask="#,##0"/>
  65. <Cell col="4" displaytype="number" text="bind:month02" mask="#,##0"/>
  66. <Cell col="5" displaytype="number" text="bind:month03" mask="#,##0"/>
  67. <Cell col="6" displaytype="number" text="bind:month04" mask="#,##0"/>
  68. <Cell col="7" displaytype="number" text="bind:month05" mask="#,##0"/>
  69. <Cell col="8" displaytype="number" text="bind:month06" mask="#,##0"/>
  70. <Cell col="9" displaytype="number" text="bind:month07" mask="#,##0"/>
  71. <Cell col="10" displaytype="number" text="bind:month08" mask="#,##0"/>
  72. <Cell col="11" displaytype="number" text="bind:month09" mask="#,##0"/>
  73. <Cell col="12" displaytype="number" text="bind:month10" mask="#,##0"/>
  74. <Cell col="13" displaytype="number" text="bind:month11" mask="#,##0"/>
  75. <Cell col="14" displaytype="number" text="bind:month12" mask="#,##0"/>
  76. <Cell col="15" displaytype="number" text="bind:monthsum" mask="#,##0"/>
  77. <Cell col="16" displaytype="number" text="bind:compare" mask="#,##0"/>
  78. <Cell col="17" displaytype="number" text="bind:variation" mask="#,##0"/>
  79. <Cell col="18" displaytype="text" style="align:right middle;" text="bind:comparerate"/>
  80. </Band>
  81. <Band id="summary">
  82. <Cell/>
  83. <Cell col="1" colspan="2" text="합계"/>
  84. <Cell col="3" text="expr:getSum(&quot;month01&quot;)"/>
  85. <Cell col="4" text="expr:getSum(&quot;month02&quot;)"/>
  86. <Cell col="5" text="expr:getSum(&quot;month03&quot;)"/>
  87. <Cell col="6" text="expr:getSum(&quot;month04&quot;)"/>
  88. <Cell col="7" text="expr:getSum(&quot;month05&quot;)"/>
  89. <Cell col="8" text="expr:getSum(&quot;month06&quot;)"/>
  90. <Cell col="9" text="expr:getSum(&quot;month07&quot;)"/>
  91. <Cell col="10" text="expr:getSum(&quot;month08&quot;)"/>
  92. <Cell col="11" text="expr:getSum(&quot;month09&quot;)"/>
  93. <Cell col="12" text="expr:getSum(&quot;month10&quot;)"/>
  94. <Cell col="13" text="expr:getSum(&quot;month11&quot;)"/>
  95. <Cell col="14" text="expr:getSum(&quot;month12&quot;)"/>
  96. <Cell col="15" text="expr:getSum(&quot;monthsum&quot;)"/>
  97. <Cell col="16" displaytype="number" text="expr:getSum(&quot;compare&quot;)" mask="9,999"/>
  98. <Cell col="17" displaytype="number" text="expr:getSum(&quot;variation&quot;)" mask="9,999"/>
  99. <Cell col="18" displaytype="number" text="expr:getSum(&quot;compare&quot;) == 0?0:(getSum(&quot;monthsum&quot;) - getSum(&quot;compare&quot;)) / getSum(&quot;compare&quot;) *100" mask="999,9%"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Static id="caption6" text="기능검사실 통계(월별)" class="tit_1" position="absolute 0 3 200 28" positiontype="position"/>
  105. <Div id="grp_sea" taborder="4" style="align:center top;" class="div_SA" position="absolute 0 28 1256 70" anchor="left top right" positiontype="position">
  106. <Layouts>
  107. <Layout>
  108. <Static id="caption2" text="조회기간" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  109. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1110 4 1110 26" anchor="default" positiontype="position"/>
  110. <Button id="btn_sea" taborder="14" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
  111. <Calendar id="ipt_todd" taborder="15" class="input_essential" position="absolute 198 10 298 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  112. <Static id="caption5" text="~" position="absolute 182 10 198 30" anchor="default" style="align:center;" class="search_no_b" positiontype="position"/>
  113. <Calendar id="ipt_fromdd" taborder="16" class="input_essential" position="absolute 82 10 182 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  114. <Static id="caption3" text="비교기간" class="search_name" position="absolute 322 10 396 30" anchor="default" positiontype="position"/>
  115. <Calendar id="ipt_compto" taborder="17" class="input_essential" position="absolute 512 10 612 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  116. <Static id="caption4" text="~" position="absolute 496 10 512 30" anchor="default" style="align:center;" class="search_no_b" positiontype="position"/>
  117. <Calendar id="ipt_compfrom" taborder="18" class="input_essential" position="absolute 396 10 496 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position"/>
  118. <Static id="caption7" text="검사실" class="search_name" position="absolute 636 10 697 30" anchor="default"/>
  119. <Combo id="cmb_excuroom" taborder="19" class="input_essential" position="absolute 697 10 812 30" anchor="default" innerdataset="@ds_init_cmb_initexcuroom" codecolumn="basecd" datacolumn="basecdflagdesc" positiontype="position"/>
  120. <Static id="caption00" text="구분" class="search_name" position="absolute 836 10 884 30" anchor="default"/>
  121. <Radio id="ioflag" taborder="20" columncount="3" rowcount="0" codecolumn="value" datacolumn="label" position="absolute 884 10 1029 30" anchor="default" index="0" value="A" innerdataset="@ds_ioflag" onitemclick="grp_sea_ioflag_onitemclick" positiontype="position">
  122. <Radio id="ioflag" taborder="20" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 884 10 1029 30" anchor="default" index="0" value="A" positiontype="position">
  123. <Dataset id="innerdataset">
  124. <ColumnInfo>
  125. <Column id="codecolumn" size="256"/>
  126. <Column id="datacolumn" size="256"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row>
  130. <Col id="codecolumn">A</Col>
  131. <Col id="datacolumn">전체</Col>
  132. </Row>
  133. <Row>
  134. <Col id="codecolumn">I</Col>
  135. <Col id="datacolumn">입원</Col>
  136. </Row>
  137. <Row>
  138. <Col id="codecolumn">O</Col>
  139. <Col id="datacolumn">외래</Col>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. </Radio>
  144. </Radio>
  145. </Layout>
  146. </Layouts>
  147. </Div>
  148. </Layout>
  149. </Layouts>
  150. <Objects>
  151. <Dataset id="ds_grid_grd_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="prcpcd" type="STRING"/>
  154. <Column id="prcpnm" type="STRING"/>
  155. <Column id="month01" type="STRING"/>
  156. <Column id="month02" type="STRING"/>
  157. <Column id="month03" type="STRING"/>
  158. <Column id="month04" type="STRING"/>
  159. <Column id="month05" type="STRING"/>
  160. <Column id="month06" type="STRING"/>
  161. <Column id="month07" type="STRING"/>
  162. <Column id="month08" type="STRING"/>
  163. <Column id="month09" type="STRING"/>
  164. <Column id="month10" type="STRING"/>
  165. <Column id="month11" type="STRING"/>
  166. <Column id="month12" type="STRING"/>
  167. <Column id="monthsum" type="STRING"/>
  168. <Column id="compare" type="STRING"/>
  169. <Column id="variation" type="STRING"/>
  170. <Column id="comparerate" type="STRING"/>
  171. </ColumnInfo>
  172. </Dataset>
  173. <Dataset id="ds_cmb_reqparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  176. <Column id="rbasecdflag" type="STRING" size="256"/>
  177. <Column id="ebasecdflag" type="STRING" size="256"/>
  178. <Column id="largeclass" type="STRING" size="256"/>
  179. <Column id="cdgrupid" type="STRING" size="256"/>
  180. <Column id="centflag" type="STRING" size="256"/>
  181. <Column id="basecdcnts" type="STRING" size="256"/>
  182. <Column id="suppflag" type="STRING" size="256"/>
  183. <Column id="baseroomopenyn" type="STRING" size="256"/>
  184. <Column id="screenflag" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. <Rows>
  187. <Row/>
  188. </Rows>
  189. </Dataset>
  190. <Dataset id="ds_init_cmb_initexcuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="basecd" type="STRING" size="256"/>
  193. <Column id="basecdflagdesc" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_init_cmb_initexecrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="basecd" type="STRING" size="256"/>
  199. <Column id="basecdflagdesc" type="STRING" size="256"/>
  200. <Column id="equaluserid" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. </Dataset>
  203. <Dataset id="ds_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="label" type="STRING" size="256"/>
  206. <Column id="value" type="STRING" size="256"/>
  207. </ColumnInfo>
  208. <Rows>
  209. <Row>
  210. <Col id="label">전체</Col>
  211. <Col id="value">A</Col>
  212. </Row>
  213. <Row>
  214. <Col id="label">입원</Col>
  215. <Col id="value">I</Col>
  216. </Row>
  217. <Row>
  218. <Col id="label">외래</Col>
  219. <Col id="value">O</Col>
  220. </Row>
  221. </Rows>
  222. </Dataset>
  223. </Objects>
  224. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  225. * System Name : KU2.0
  226. * Job Name :
  227. * File Name :
  228. * Creator :
  229. * Make Date : 2016-03-25
  230. *
  231. * Description :
  232. ****************************************************************************************/
  233. //=======================================================================================
  234. // xjs Include
  235. //---------------------------------------------------------------------------------------
  236. include "com_commonxp::comm_main.xjs";
  237. include "com_basiccodexp::ZBC001.xjs";
  238. include "ast_examcurexp::AEZ0001.xjs";
  239. function f_TRAEA01115(){//검사실combo
  240. ds_cmb_reqparam.setColumn(0, "basesuppdeptcd", suppdeptcd);
  241. ds_cmb_reqparam.setColumn(0, "rbasecdflag", "R");
  242. ds_cmb_reqparam.setColumn(0, "ebasecdflag", "E");
  243. ds_cmb_reqparam.setColumn(0, "largeclass", "M4");
  244. ds_cmb_reqparam.setColumn(0, "cdgrupid", "A0486");
  245. ds_cmb_reqparam.setColumn(0, "centflag", "");
  246. ds_cmb_reqparam.setColumn(0, "baseroomopenyn", "N");
  247. var oParam = new Object();
  248. oParam.id = "TRAEA01115";
  249. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  250. oParam.method = "reqGetInitFuncExamCureRoomList";
  251. oParam.inds = "reqparam=ds_cmb_reqparam";
  252. oParam.outds ="ds_init_cmb_initexcuroom=initexcuroom";
  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_TRAES00301(){//조회
  261. dsf_createDsRow("ds_req",
  262. [{col:"execfromdd", val:grp_sea.ipt_fromdd.value}
  263. ,{col:"exectodd", val:grp_sea.ipt_todd.value}
  264. ,{col:"comparefromdd", val:grp_sea.ipt_compfrom.value}
  265. ,{col:"comparetodd", val:grp_sea.ipt_compto.value}
  266. ,{col:"excuroomcd", val:grp_sea.cmb_excuroom.value}
  267. ,{col:"suppdeptcd", val:suppdeptcd}
  268. ,{col:"ioflag", val:grp_sea.ioflag.value}
  269. ,{col:"screenflag", val:ds_cmb_reqparam.getColumn(0, "screenflag")}
  270. ]);
  271. var oParam = new Object();
  272. oParam.id = "TRAES00301";
  273. oParam.service = "examcurestatsapp.FuntExam";
  274. oParam.method = "reqGetFuntExamStatsMMList";
  275. oParam.inds = "req=ds_req";
  276. oParam.outds ="ds_grid_grd_list=item";
  277. oParam.callback = "cbf_TRAES00301";
  278. tranf_submit(oParam);
  279. }
  280. function cbf_TRAES00301(sSvcId, objErrorCode, objErrorMsg){
  281. for(var i=0; i<ds_grid_grd_list.rowcount; i++){
  282. var temp = ds_grid_grd_list.getColumn(i,"comparerate");
  283. if(utlf_isNull(temp)){
  284. ds_grid_grd_list.setColumn(i,"comparerate", "%");
  285. }else{
  286. ds_grid_grd_list.setColumn(i,"comparerate",temp+"%");
  287. }
  288. }
  289. grd_list.updateToDataset();
  290. }
  291. /****************************************************************************************
  292. * Components :
  293. * Components ID : SMAES00300
  294. * Event : onload
  295. * Argument : 01.obj : Object Event has occurred
  296. * : 02.e : Event Object
  297. * Description :
  298. ****************************************************************************************/
  299. function SMAES00300_onload(obj:Form, e:LoadEventInfo)
  300. {
  301. frmf_initForm(obj); // 화면공통
  302. lf_aezfSetSuppDeptcd();
  303. // 검사실/실시자 조회
  304. f_TRAEA01115();
  305. var fromdd = utlf_getCurrentDate().substr(0,4) + "0101"
  306. var todd = utlf_getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
  307. var comparefromdd = utlf_getCurrentDate().substr(0,6).toDate().getAddDate(-1,"Y").getDateFormat("YYYY") + "0101";
  308. var comparetodd = comparefromdd.substr(0,4) + todd.substr(4,4);
  309. grp_sea.ipt_fromdd.value = fromdd;
  310. grp_sea.ipt_todd.value = todd;
  311. grp_sea.ipt_compfrom.value = comparefromdd;
  312. grp_sea.ipt_compto.value = comparetodd;
  313. }
  314. /****************************************************************************************
  315. * Components :
  316. * Components ID : btn_sea
  317. * Event : onclick
  318. * Argument : 01.obj : Object Event has occurred
  319. * : 02.e : Event Object
  320. * Description :
  321. ****************************************************************************************/
  322. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  323. {
  324. f_TRAES00301();
  325. }
  326. /****************************************************************************************
  327. * Components :
  328. * Components ID : btn_excsave
  329. * Event : onclick
  330. * Argument : 01.obj : Object Event has occurred
  331. * : 02.e : Event Object
  332. * Description : 엑셀저장
  333. ****************************************************************************************/
  334. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  335. {
  336. if(ds_grid_grd_list.rowcount <= 0){
  337. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  338. return;
  339. }else{
  340. grdf_exportExcel(grd_list, "기능검사실통계(월별)", "sheet1");
  341. }
  342. }
  343. function grd_list_oncolresized(obj:Grid, e:GridSizeChangedEventInfo)
  344. {
  345. if(e.newvalue == 0){
  346. obj.setRealColSize(e.subindex, 1);
  347. }
  348. }
  349. ]]></Script>
  350. </Form>
  351. </FDL>