SMAES06600_재활근전도월별통계.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES06600" position="absolute 0 0 1198 768" titletext="재활근전도 기능검사실 통계(월별)" oninit="SMAES06600_oninit" onload="SMAES06600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="재활근전도 기능검사실 통계(월별)" class="tit_2" position="absolute 0 73 255 90"/>
  8. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 89 1195 95" anchor="left top right"/>
  9. <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 25 1195 61" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 15 11 87 28" anchor="default"/>
  13. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 7 1113 29" anchor="top right"/>
  14. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1125 8 1181 30" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  15. <Calendar id="ipt_todd" taborder="4" class="input_default" position="absolute 199 8 284 29" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  16. <Static id="caption5" text="~" class="search_no_b" position="absolute 182 11 194 28" anchor="default"/>
  17. <Calendar id="ipt_fromdd" taborder="5" class="input_default" position="absolute 90 8 175 29" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  18. <Static id="caption9" text="검사실 :" class="search_name" position="absolute 620 11 678 28" anchor="default"/>
  19. <Combo id="cmb_excuroomcd" taborder="6" innerdataset="@ds_init_cmb_initexcuroomcd" codecolumn="excuroomcd" datacolumn="excuroomnm" position="absolute 684 8 799 29" anchor="default"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Button id="btn_excsave" taborder="2" text="엑셀저장" class="btn7" position="absolute 1118 66 1195 88" anchor="top right" onclick="btn_excsave_onclick"/>
  24. <Grid id="grd_list" taborder="3" binddataset="ds_main_list" useinputpanel="false" position="absolute 0 94 1195 764" autofittype="col" cellsizingtype="col" anchor="all">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25"/>
  29. <Column size="270"/>
  30. <Column size="44"/>
  31. <Column size="44"/>
  32. <Column size="44"/>
  33. <Column size="44"/>
  34. <Column size="44"/>
  35. <Column size="44"/>
  36. <Column size="44"/>
  37. <Column size="44"/>
  38. <Column size="44"/>
  39. <Column size="44"/>
  40. <Column size="44"/>
  41. <Column size="44"/>
  42. <Column size="70"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24" band="head"/>
  46. <Row size="24"/>
  47. <Row size="24" band="summ"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell/>
  51. <Cell col="1" text="검사실명"/>
  52. <Cell col="2" text="1월"/>
  53. <Cell col="3" text="2월"/>
  54. <Cell col="4" text="3월"/>
  55. <Cell col="5" text="4월"/>
  56. <Cell col="6" text="5월"/>
  57. <Cell col="7" text="6월"/>
  58. <Cell col="8" text="7월"/>
  59. <Cell col="9" text="8월"/>
  60. <Cell col="10" text="9월"/>
  61. <Cell col="11" text="10월"/>
  62. <Cell col="12" text="11월"/>
  63. <Cell col="13" text="12월"/>
  64. <Cell col="14" text="합계"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell celltype="head" text="expr:currow+1"/>
  68. <Cell col="1" style="align:left middle;" text="bind:prcpnm"/>
  69. <Cell col="2" displaytype="number" text="bind:month01"/>
  70. <Cell col="3" displaytype="number" text="bind:month02"/>
  71. <Cell col="4" displaytype="number" text="bind:month03"/>
  72. <Cell col="5" displaytype="number" text="bind:month04"/>
  73. <Cell col="6" displaytype="number" text="bind:month05"/>
  74. <Cell col="7" displaytype="number" text="bind:month06"/>
  75. <Cell col="8" displaytype="number" text="bind:month07"/>
  76. <Cell col="9" displaytype="number" text="bind:month08"/>
  77. <Cell col="10" displaytype="number" text="bind:month09"/>
  78. <Cell col="11" displaytype="number" text="bind:month10"/>
  79. <Cell col="12" displaytype="number" text="bind:month11"/>
  80. <Cell col="13" displaytype="number" text="bind:month12"/>
  81. <Cell col="14" displaytype="number" text="bind:monthsum"/>
  82. </Band>
  83. <Band id="summary">
  84. <Cell colspan="2" style="align:center middle;background:#99ff99ff;" text="합 계" taborder="undefined"/>
  85. <Cell col="2" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month01&quot;)"/>
  86. <Cell col="3" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month02&quot;)"/>
  87. <Cell col="4" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month03&quot;)"/>
  88. <Cell col="5" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month04&quot;)"/>
  89. <Cell col="6" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month05&quot;)"/>
  90. <Cell col="7" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month06&quot;)"/>
  91. <Cell col="8" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month07&quot;)"/>
  92. <Cell col="9" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month08&quot;)"/>
  93. <Cell col="10" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month09&quot;)"/>
  94. <Cell col="11" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month10&quot;)"/>
  95. <Cell col="12" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month11&quot;)"/>
  96. <Cell col="13" displaytype="number" style="background:#99ff99;" text="expr:getSum(&quot;month12&quot;)"/>
  97. <Cell col="14" displaytype="number" style="background:#99ff99;"/>
  98. </Band>
  99. </Format>
  100. </Formats>
  101. </Grid>
  102. <Static id="caption6" text="재활근전도 기능검사실 통계(월별)" class="tit_1" position="absolute 0 0 230 25"/>
  103. <Shape id="line00" class="line_1" position="absolute 0 90 1195 96" anchor="left top right"/>
  104. <Shape id="line02" class="line_1" position="absolute 0 88 1195 94" anchor="left top right"/>
  105. </Layout>
  106. </Layouts>
  107. <Objects>
  108. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="prcpnm" type="STRING"/>
  111. <Column id="month01" type="STRING"/>
  112. <Column id="month02" type="STRING"/>
  113. <Column id="month03" type="STRING"/>
  114. <Column id="month04" type="STRING"/>
  115. <Column id="month05" type="STRING"/>
  116. <Column id="month06" type="STRING"/>
  117. <Column id="month07" type="STRING"/>
  118. <Column id="month08" type="STRING"/>
  119. <Column id="month09" type="STRING"/>
  120. <Column id="month10" type="STRING"/>
  121. <Column id="month11" type="STRING"/>
  122. <Column id="month12" type="STRING"/>
  123. <Column id="monthsum" type="STRING"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="execfromdd" type="STRING" size="256"/>
  129. <Column id="exectodd" type="STRING" size="256"/>
  130. <Column id="comparefromdd" type="STRING" size="256"/>
  131. <Column id="comparetodd" type="STRING" size="256"/>
  132. <Column id="excuroomcd" type="STRING" size="256"/>
  133. <Column id="suppdeptcd" type="STRING" size="256"/>
  134. <Column id="ioflag" type="STRING" size="256"/>
  135. </ColumnInfo>
  136. <Rows>
  137. <Row>
  138. <Col id="execfromdd"/>
  139. <Col id="exectodd"/>
  140. <Col id="comparefromdd"/>
  141. <Col id="comparetodd"/>
  142. <Col id="excuroomcd"/>
  143. <Col id="suppdeptcd"/>
  144. <Col id="ioflag">A</Col>
  145. </Row>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="instance1" type="STRING" size="256"/>
  151. </ColumnInfo>
  152. <Rows>
  153. <Row/>
  154. </Rows>
  155. </Dataset>
  156. <Dataset id="ds_init_cmb_initexcuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  157. <Dataset id="ds_init_cmb_initexcuroomcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="excuroomnm" type="STRING"/>
  160. <Column id="excuroomcd" type="STRING"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. </Objects>
  164. <Bind>
  165. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="execfromdd"/>
  166. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="exectodd"/>
  167. <BindItem id="item2" compid="grp_sea.cmb_excuroomcd" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
  168. </Bind>
  169. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  170. * System Name :
  171. * Job Name :
  172. * Creator :
  173. * Make Date : 2015-11-13
  174. * Description :
  175. *---------------------------------------------------------------------------------------
  176. * Modify Date Modifier Modify Description
  177. *---------------------------------------------------------------------------------------
  178. * 2015-11-13 Live Converter TF->XP
  179. *
  180. *---------------------------------------------------------------------------------------
  181. ****************************************************************************************/
  182. include "com_commonxp::comm_main.xjs";
  183. include "com_basiccodexp::ZBC001.xjs";
  184. include "ast_examcurexp::AEZ0001.xjs";
  185. /******************************************************************
  186. * Argument :
  187. * Description : 초기화
  188. ******************************************************************/
  189. function SMAES06600_oninit(obj:Form, e:InitEventInfo)
  190. {
  191. frmf_initForm(obj);
  192. }
  193. function SMAES06600_onload(obj:Form, e:LoadEventInfo)
  194. {
  195. //재활의학과 근전도용
  196. ds_send_globalinstance.setColumn(0, "instance1", '2220000000');
  197. dsf_createDsRow("ds_temp_globalinstance",
  198. [{col:"basesuppdeptcd", type:"string", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
  199. , {col:"rbasecdflag", type:"string", size:256, val:"R"}
  200. , {col:"ebasecdflag", type:"string", size:256, val:"E"}
  201. , {col:"largeclass", type:"string", size:256, val:"M4"}
  202. , {col:"cdgrupid", type:"string", size:256, val:"A0486"}
  203. , {col:"centflag", type:"string", size:256, val:""}], true);
  204. var oParam = {};
  205. oParam.id = "TRAEA01115";
  206. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  207. oParam.method = "reqGetInitFuncExamCureRoomList";
  208. oParam.inds = "reqparam=ds_temp_globalinstance";
  209. oParam.outds = "ds_init_cmb_initexcuroom=initexcuroom ds_init_cmb_initexcuroomcd=initexcuroomcd";
  210. oParam.async = false;
  211. //oParam.callback = "cf_TRAEA01115";
  212. tranf_submit(oParam);
  213. var fromdd = utlf_getCurrentDate().substr(0,4) + "0101"
  214. var todd = utlf_getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
  215. dsf_addDsItem(ds_init_cmb_initexcuroomcd, "excuroomcd", "excuroomnm", "--전체--", "", "above");
  216. ds_main_list.clearData();
  217. ds_send.setColumn(0, "execfromdd", fromdd);
  218. ds_send.setColumn(0, "exectodd", todd);
  219. }
  220. /******************************************************************
  221. * Argument :
  222. * Description : 조회 button event
  223. ******************************************************************/
  224. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  225. {
  226. ds_send.setColumn(0, "suppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
  227. var oParam = {};
  228. oParam.id = "TRAES06601";
  229. oParam.service = "examcurestatsapp.FuntExam";
  230. oParam.method = "reqGetFuntExamStatsRHList";
  231. oParam.inds = "req=ds_send";
  232. oParam.outds = "ds_main_list=item";
  233. oParam.async = false;
  234. //oParam.callback = "cf_TRAES06601";
  235. tranf_submit(oParam);
  236. }
  237. /******************************************************************
  238. * Argument :
  239. * Description : Excel button event
  240. ******************************************************************/
  241. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  242. {
  243. if( ds_main_list.rowcount > 0 ){
  244. grdf_exportExcel(grd_list, "재활근전도 기능검사실 통계(월별)", "재활근전도 기능검사실 통계(월별)", false, "", "user", false);
  245. } else {
  246. sysf_messageBox("조회된 데이터가 ", "I004");
  247. }
  248. }
  249. ]]></Script>
  250. </Form>
  251. </FDL>