SMAES01500_영상의학월별진료과별실적.xfdl 26 KB

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