SMAES03800_심혈관촬영실월별검사별실적.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAES03800" position="absolute 0 0 1197 771" titletext="검사별 실적" oninit="SMAES03800_oninit" onload="SMAES03800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="검사별 실적" class="tit_2" position="absolute 0 73 200 91"/>
  8. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 89 1195 95" anchor="left top right"/>
  9. <Button id="btn_excsave" taborder="1" text="엑셀저장" class="btn7" position="absolute 1115 67 1195 89" onclick="btn_excsave_onclick" anchor="top right"/>
  10. <Grid id="grd_list" taborder="2" binddataset="ds_main_list" useinputpanel="false" position="absolute 0 94 1195 770" autofittype="col" anchor="all">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="25"/>
  15. <Column size="0"/>
  16. <Column size="300"/>
  17. <Column size="100"/>
  18. <Column size="62"/>
  19. <Column size="62"/>
  20. <Column size="62"/>
  21. <Column size="62"/>
  22. <Column size="62"/>
  23. <Column size="62"/>
  24. <Column size="62"/>
  25. <Column size="62"/>
  26. <Column size="62"/>
  27. <Column size="62"/>
  28. <Column size="62"/>
  29. <Column size="62"/>
  30. <Column size="82"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell rowspan="2" taborder="undefined"/>
  39. <Cell col="1" text="caption1"/>
  40. <Cell col="2" rowspan="2" colspan="2" text="구분" taborder="undefined"/>
  41. <Cell col="4" text="2006년"/>
  42. <Cell col="5" text="2006년"/>
  43. <Cell col="6" text="2006년"/>
  44. <Cell col="7" text="2006년"/>
  45. <Cell col="8" text="2006년"/>
  46. <Cell col="9" text="2006년"/>
  47. <Cell col="10" text="2006년"/>
  48. <Cell col="11" text="2006년"/>
  49. <Cell col="12" text="2006년"/>
  50. <Cell col="13" text="2006년"/>
  51. <Cell col="14" text="2007년"/>
  52. <Cell col="15" text="2007년"/>
  53. <Cell col="16" rowspan="2" text="합계" taborder="undefined"/>
  54. <Cell row="1" col="1" text="caption1"/>
  55. <Cell row="1" col="4" text="3월"/>
  56. <Cell row="1" col="5" text="4월"/>
  57. <Cell row="1" col="6" text="5월"/>
  58. <Cell row="1" col="7" text="6월"/>
  59. <Cell row="1" col="8" text="7월"/>
  60. <Cell row="1" col="9" text="8월"/>
  61. <Cell row="1" col="10" text="9월"/>
  62. <Cell row="1" col="11" text="10월"/>
  63. <Cell row="1" col="12" text="11월"/>
  64. <Cell row="1" col="13" text="12월"/>
  65. <Cell row="1" col="14" text="1월"/>
  66. <Cell row="1" col="15" text="2월"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell celltype="head" text="expr:currow + 1" autosizecol="none"/>
  70. <Cell col="1" text="bind:ord"/>
  71. <Cell col="2" style="align:left middle;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:basecdnm"/>
  72. <Cell col="3" style="align:left middle;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:systkey3"/>
  73. <Cell col="4" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month1"/>
  74. <Cell col="5" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month2"/>
  75. <Cell col="6" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month3"/>
  76. <Cell col="7" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month4"/>
  77. <Cell col="8" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month5"/>
  78. <Cell col="9" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month6"/>
  79. <Cell col="10" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month7"/>
  80. <Cell col="11" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month8"/>
  81. <Cell col="12" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month9"/>
  82. <Cell col="13" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month10"/>
  83. <Cell col="14" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month11"/>
  84. <Cell col="15" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:month12"/>
  85. <Cell col="16" displaytype="number" style="padding:0 10 0 0;background:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);background2:EXPR(ord == &quot;2&quot; ? '#CCFFCC' : ord == &quot;3&quot; ? &quot;#FFFFCC&quot; : &quot;&quot;);font:EXPR(ord == &quot;2&quot; || ord == &quot;3&quot; ? 'arial,9,bold' : '');" text="bind:sumcnt"/>
  86. </Band>
  87. </Format>
  88. </Formats>
  89. </Grid>
  90. <Div id="group1" taborder="3" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
  91. <Layouts>
  92. <Layout>
  93. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1107 10 1113 30" anchor="top right"/>
  94. <Button id="button1" taborder="3" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group1_button1_onclick"/>
  95. <Static id="caption2" text="조회기간 :" class="search_name" position="absolute 10 12 81 29" anchor="default"/>
  96. <Static id="caption5" text="~" class="search_no_b" position="absolute 174 12 186 29" anchor="default"/>
  97. <Static id="caption7" text="검사실 :" class="search_name" position="absolute 310 12 368 29" anchor="default"/>
  98. <Combo id="cmb_excuroomgrp" taborder="6" innerdataset="@ds_init_cmb_lrgcd" codecolumn="cdid" datacolumn="cdnm" position="absolute 371 9 486 30" anchor="default" onitemchanged="group1_cmb_excuroomgrp_onitemchanged"/>
  99. <Combo id="cmb_excuroom" taborder="7" innerdataset="@ds_init_cmb_mdlcd" codecolumn="cdid" datacolumn="cdnm" position="absolute 489 9 604 30" anchor="default"/>
  100. <Static id="caption12" text="구분 :" class="search_name" position="absolute 670 12 715 29" anchor="default"/>
  101. <Radio id="radio1" taborder="8" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 719 11 864 28" anchor="default" onitemchanged="group1_radio1_onitemchanged">
  102. <Dataset id="innerdataset">
  103. <ColumnInfo>
  104. <Column id="codecolumn"/>
  105. <Column id="datacolumn"/>
  106. </ColumnInfo>
  107. <Rows>
  108. <Row>
  109. <Col id="codecolumn">E</Col>
  110. <Col id="datacolumn">촬영건수</Col>
  111. </Row>
  112. <Row>
  113. <Col id="codecolumn">B</Col>
  114. <Col id="datacolumn">부위건수</Col>
  115. </Row>
  116. </Rows>
  117. </Dataset>
  118. </Radio>
  119. <cp_monthCal id="ipt_fromdd" titletext="monthCalendar" taborder="9" text="cp_monthCal00" scrollbars="none" position="absolute 83 11 170 31"/>
  120. <cp_monthCal id="ipt_todd" titletext="monthCalendar" taborder="10" text="cp_monthCal00" scrollbars="none" position="absolute 187 11 274 31"/>
  121. </Layout>
  122. </Layouts>
  123. </Div>
  124. <Static id="caption6" text="검사별 실적" class="tit_1" position="absolute 0 0 200 25"/>
  125. <Shape id="line00" class="line_1" position="absolute 0 88 1195 94" anchor="left top right"/>
  126. <Shape id="line02" class="line_1" position="absolute 0 90 1195 96" anchor="left top right"/>
  127. </Layout>
  128. </Layouts>
  129. <Objects>
  130. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="basecdnm" type="STRING" size="256"/>
  133. <Column id="systkey3" type="STRING" size="256"/>
  134. <Column id="month1" type="STRING" size="256"/>
  135. <Column id="month2" type="STRING" size="256"/>
  136. <Column id="month3" type="STRING" size="256"/>
  137. <Column id="month4" type="STRING" size="256"/>
  138. <Column id="month5" type="STRING" size="256"/>
  139. <Column id="month6" type="STRING" size="256"/>
  140. <Column id="month7" type="STRING" size="256"/>
  141. <Column id="month8" type="STRING" size="256"/>
  142. <Column id="month9" type="STRING" size="256"/>
  143. <Column id="month10" type="STRING" size="256"/>
  144. <Column id="month11" type="STRING" size="256"/>
  145. <Column id="month12" type="STRING" size="256"/>
  146. <Column id="sumcnt" type="STRING" size="256"/>
  147. </ColumnInfo>
  148. <Rows>
  149. <Row>
  150. <Col id="basecdnm"/>
  151. <Col id="systkey3"/>
  152. <Col id="month1"/>
  153. <Col id="month2"/>
  154. <Col id="month3"/>
  155. <Col id="month4"/>
  156. <Col id="month5"/>
  157. <Col id="month6"/>
  158. <Col id="month7"/>
  159. <Col id="month8"/>
  160. <Col id="month9"/>
  161. <Col id="month10"/>
  162. <Col id="month11"/>
  163. <Col id="month12"/>
  164. <Col id="sumcnt"/>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_init_cmb_lrgcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  169. <ColumnInfo>
  170. <Column id="cdnm" type="STRING"/>
  171. <Column id="cdid" type="STRING"/>
  172. </ColumnInfo>
  173. </Dataset>
  174. <Dataset id="ds_init_cmb_mdlcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="cdnm" type="STRING"/>
  177. <Column id="cdid" type="STRING"/>
  178. </ColumnInfo>
  179. </Dataset>
  180. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  181. <ColumnInfo>
  182. <Column id="execfromdd" type="STRING" size="256"/>
  183. <Column id="exectodd" type="STRING" size="256"/>
  184. <Column id="instance1" type="STRING" size="256"/>
  185. <Column id="suppdeptcd" type="STRING" size="256"/>
  186. <Column id="mdlcd" type="STRING" size="256"/>
  187. <Column id="flag" type="STRING" size="256"/>
  188. <Column id="basecdflag" type="STRING" size="256"/>
  189. <Column id="flag2" type="STRING" size="256"/>
  190. <Column id="lrgcd" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row>
  194. <Col id="execfromdd"/>
  195. <Col id="exectodd"/>
  196. <Col id="instance1"/>
  197. <Col id="suppdeptcd"/>
  198. <Col id="mdlcd"/>
  199. <Col id="flag"/>
  200. <Col id="basecdflag"/>
  201. <Col id="flag2"/>
  202. <Col id="lrgcd"/>
  203. </Row>
  204. </Rows>
  205. </Dataset>
  206. </Objects>
  207. <Bind>
  208. <BindItem id="item0" compid="group1.cmb_excuroomgrp" propid="value" datasetid="ds_send" columnid="lrgcd"/>
  209. <BindItem id="item1" compid="group1.cmb_excuroom" propid="value" datasetid="ds_send" columnid="mdlcd"/>
  210. <BindItem id="item2" compid="group1.radio1" propid="value" datasetid="ds_send" columnid="flag"/>
  211. </Bind>
  212. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  213. * System Name :
  214. * Job Name :
  215. * Creator :
  216. * Make Date : 2015-11-13
  217. * Description :
  218. *---------------------------------------------------------------------------------------
  219. * Modify Date Modifier Modify Description
  220. *---------------------------------------------------------------------------------------
  221. * 2015-11-13 Live Converter TF->XP
  222. *
  223. *---------------------------------------------------------------------------------------
  224. ****************************************************************************************/
  225. include "com_commonxp::comm_main.xjs";
  226. include "com_basiccodexp::ZBC001.xjs";
  227. include "ast_examcurexp::AEZ0001.xjs";
  228. var arErrorCode = new HashArray();
  229. var gNum = -1;
  230. /******************************************************************
  231. * Argument :
  232. * Description : 초기화
  233. ******************************************************************/
  234. function SMAES03800_oninit(obj:Form, e:InitEventInfo)
  235. {
  236. frmf_initForm(obj);
  237. }
  238. function SMAES03800_onload(obj:Form, e:LoadEventInfo)
  239. {
  240. lf_aezfSetSuppDeptcd();
  241. ds_send.setColumn(0, "suppdeptcd", frmf_getParameter("AST_DEPTCD"));
  242. var fromdd = utlf_getCurrentDate().substr(0,4) + "01";
  243. var todd = utlf_getCurrentDate().substr(0,6);
  244. ds_send.setColumn(0, "execfromdd", fromdd);
  245. ds_send.setColumn(0, "exectodd", todd);
  246. ds_send.setColumn(0, "flag", "E");
  247. ds_send.setColumn(0, "basecdflag", "R");
  248. //조회기간 달력 set
  249. group1.ipt_fromdd.setData(fromdd);
  250. group1.ipt_todd.setData(todd);
  251. //조회기간 event
  252. group1.ipt_fromdd.setCallEvent("fn_Cal");
  253. group1.ipt_todd.setCallEvent("fn_toCal");
  254. dsf_createDsRow("ds_temp_send",
  255. [{col:"basesuppdeptcd", type:"string", size:256, val:ds_send.getColumn(0, "suppdeptcd")}
  256. ,{col:"flag", type:"string", size:256, val:ds_send.getColumn(0, "basecdflag")}], true);
  257. var oParam = {};
  258. oParam.id = "TRAES01502";
  259. oParam.service = "examcurestatsapp.ImgMediSc";
  260. oParam.method = "reqGetBodyGrpPartComCdList";
  261. oParam.inds = "req=ds_temp_send";
  262. oParam.outds = "ds_init_cmb_lrgcd=item";
  263. oParam.async = false;
  264. //oParam.callback = "cf_TRAES01502";
  265. tranf_submit(oParam);
  266. dsf_addDsItem(ds_init_cmb_lrgcd, "cdid", "cdnm", "전체", "", "above");
  267. setTitle();
  268. }
  269. /******************************************************************
  270. * Argument :
  271. * Description : 조회기간(fromdd) event
  272. ******************************************************************/
  273. function fn_Cal(){
  274. var execfromdd = group1.ipt_fromdd.getData();
  275. var exectodd = group1.ipt_todd.getData();
  276. var execFrom = (execfromdd + "01").toDate();
  277. var execTo = (exectodd + "01").toDate();
  278. var setExecFromdd = "";
  279. if( execFrom > execTo ){
  280. sysf_messageBox("시작일이 종료일보다 클 수 없습니다.", "I");
  281. setExecFromdd = execFrom.getDateFormat("YYYYMM");
  282. ds_send.setColumn(0, "execfromdd", setExecFromdd);
  283. group1.ipt_fromdd.setData(setExecFromdd);
  284. group1.ipt_fromdd.setFocus();
  285. return;
  286. }
  287. if( execFrom < execTo.getAddDate(-11, "M") )
  288. {
  289. sysf_messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  290. execFrom = execTo;
  291. }
  292. setExecFromdd = execFrom.getDateFormat("YYYYMM");
  293. ds_send.setColumn(0, "execfromdd", setExecFromdd);
  294. group1.ipt_fromdd.setData(setExecFromdd);
  295. setTitle();
  296. }
  297. /******************************************************************
  298. * Argument :
  299. * Description : 조회기간(todd) event
  300. ******************************************************************/
  301. function fn_toCal(){
  302. var execfromdd = group1.ipt_fromdd.getData();
  303. var exectodd = group1.ipt_todd.getData();
  304. var execFrom = (execfromdd + "01").toDate();
  305. var execTo = (exectodd + "01").toDate();
  306. var setExecTodd = "";
  307. if( execfromdd > exectodd ){
  308. sysf_messageBox("종료일이 시작일보다 작을 수 없습니다..", "I");
  309. setExecTodd = execTo.getDateFormat("YYYYMM");
  310. ds_send.setColumn(0, "exectodd", setExecTodd);
  311. group1.ipt_todd.setData(setExecTodd);
  312. group1.ipt_todd.setFocus();
  313. return;
  314. }
  315. if( execFrom.getAddDate(11, "M") < execTo )
  316. {
  317. sysf_messageBox("1년이상의 자료는 검색할수 없습니다.", "I");
  318. execTo = execFrom;
  319. }
  320. setExecTodd = execTo.getDateFormat("YYYYMM");
  321. ds_send.setColumn(0, "exectodd", setExecTodd);
  322. group1.ipt_todd.setData(setExecTodd);
  323. setTitle();
  324. }
  325. /******************************************************************
  326. * Argument :
  327. * Description : setTitle
  328. ******************************************************************/
  329. function setTitle() {
  330. ds_main_list.clearData();
  331. // 그리드 초기화
  332. var mergeCol = grd_list.getCellCount("Head");
  333. if( mergeCol != 29 ){
  334. if(gNum >= 0) {
  335. mergeCol = gNum;
  336. } else {
  337. mergeCol = 30 - mergeCol;
  338. }
  339. grd_list.splitContentsCell("Head", 0, 4, 0, mergeCol, true);
  340. }
  341. var stYearMonth = group1.ipt_fromdd.getData() + "01";
  342. var dtYearMonth = stYearMonth.toDate();
  343. var stEndMonth = group1.ipt_todd.getData() + "01";
  344. var dtEndMonth = stEndMonth.toDate();;
  345. var fromYear = dtYearMonth.getDateFormat("YYYY");
  346. var toYear = dtEndMonth.getDateFormat("YYYY");
  347. var colIdx = 17;
  348. var colNum = 4;
  349. for( var i = 0; i < 12; i++ ){
  350. var stYear = dtYearMonth.getDateFormat("YYYY");
  351. var stMonth = dtYearMonth.getDateFormat("MM");
  352. if( dtYearMonth.getDateFormat("YYYYMM") <= dtEndMonth.getDateFormat("YYYYMM") ){
  353. grd_list.setCellProperty("Head", i+3, "text", stYear + "년");
  354. grd_list.setCellProperty("Head", colIdx, "text", stMonth + "월");
  355. grd_list.setFormatColProperty(colNum, "size", 62);
  356. } else {
  357. grd_list.setFormatColProperty(colNum, "size", 0);
  358. }
  359. colIdx = colIdx + 1;
  360. colNum = colNum + 1;
  361. dtYearMonth.getAddDate(1, "M");
  362. }
  363. var stNum = 0;
  364. var dtNum = 0;
  365. var lastCol = 0;
  366. if( fromYear == toYear ){
  367. stNum = utlf_diffMonth(stYearMonth, stEndMonth) + 4;
  368. grd_list.mergeContentsCell("Head" , 0, 4, 0, stNum, 4, false);
  369. } else {
  370. stNum = utlf_diffMonth(stYearMonth, fromYear+"1201") + 5;
  371. dtNum = utlf_diffMonth(toYear+"0101", stEndMonth);
  372. lastCol = stNum + dtNum;
  373. grd_list.mergeContentsCell("Head" , 0, stNum, 0, lastCol, stNum, false);
  374. grd_list.mergeContentsCell("Head" , 0, 4, 0, stNum -1, 4, false);
  375. }
  376. gNum = stNum;
  377. }
  378. /******************************************************************
  379. * Argument :
  380. * Description : 검사실 combo event
  381. ******************************************************************/
  382. function group1_cmb_excuroomgrp_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  383. {
  384. ds_send.setColumn(0, "mdlcd", "");
  385. if( utlf_isNull(ds_send.getColumn(0, "lrgcd")) ) {
  386. dsf_createDsRow("ds_temp_send",
  387. [{col:"basesuppdeptcd", type:"string", size:256, val:ds_send.getColumn(0, "suppdeptcd")}
  388. ,{col:"flag", type:"string", size:256, val:ds_send.getColumn(0, "basecdflag")}], true);
  389. var oParam = {};
  390. oParam.id = "TRAES01502";
  391. oParam.service = "examcurestatsapp.ImgMediSc";
  392. oParam.method = "reqGetBodyGrpPartComCdList";
  393. oParam.inds = "req=ds_temp_send";
  394. oParam.outds = "ds_init_cmb_lrgcd=item";
  395. oParam.async = false;
  396. //oParam.callback = "cf_TRAES01502";
  397. tranf_submit(oParam);
  398. }else {
  399. dsf_createDsRow("ds_temp_send2",
  400. [{col:"basesuppdeptcd", type:"string", size:256, val:ds_send.getColumn(0, "suppdeptcd")}
  401. ,{col:"flag", type:"string", size:256, val:ds_send.getColumn(0, "basecdflag")}
  402. ,{col:"lrgcd", type:"string", size:256, val:ds_send.getColumn(0, "lrgcd")}], true);
  403. var oParam = {};
  404. oParam.id = "TRAES01503";
  405. oParam.service = "examcurestatsapp.ImgMediSc";
  406. oParam.method = "reqGetBodyPartComCdList";
  407. oParam.inds = "req=ds_temp_send2";
  408. oParam.outds = "ds_init_cmb_mdlcd=item";
  409. oParam.async = false;
  410. //oParam.callback = "cf_TRAES01503";
  411. tranf_submit(oParam);
  412. }
  413. }
  414. /******************************************************************
  415. * Argument :
  416. * Description : 구분 radio event
  417. ******************************************************************/
  418. function group1_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  419. {
  420. ds_send.setColumn(0, "flag2", "");
  421. }
  422. /******************************************************************
  423. * Argument :
  424. * Description : 조회 button event
  425. ******************************************************************/
  426. function group1_button1_onclick(obj:Button, e:ClickEventInfo)
  427. {
  428. frmf_openLoadingBar("검사별 실적을 조회 중입니다....");
  429. dsf_setFixVal(ds_send, "systkey6:151");
  430. var oParam = {};
  431. oParam.id = "TRAES03801";
  432. oParam.service = "examcurestatsapp.ImgMediSc";
  433. oParam.method = "reqGetVeslPhoMonthlyExamCount";
  434. oParam.inds = "req=ds_send";
  435. oParam.outds = "ds_main_list=item";
  436. oParam.async = true;
  437. //oParam.callback = "cf_TRAES03801";
  438. tranf_submit(oParam);
  439. frmf_closeLoadingBar() ;//처리중 화면을 close한다.
  440. }
  441. /******************************************************************
  442. * Argument :
  443. * Description : excel 저장
  444. ******************************************************************/
  445. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  446. {
  447. if( ds_main_list.rowcount > 1 ){
  448. grdf_exportExcel(grd_list, "검사별 실적", "검사별 실적", false, "", "user", false);
  449. } else {
  450. sysf_messageBox("조회된 데이터가 ", "I004");
  451. }
  452. }
  453. ]]></Script>
  454. </Form>
  455. </FDL>