SMSDT05000_사회사업집단의료실천활동실적.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT05000" position="absolute 0 0 1198 792" titletext="집단의료사회사업실천활동실적" oninit="SMSDT05000_oninit" onload="SMSDT05000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="swt_groupmediinfo" taborder="2" tabindex="0" class="tab_Normal" position="absolute 0 99 1195 759" anchor="all">
  8. <Tabpages>
  9. <Tabpage id="case_month">
  10. <Layouts>
  11. <Layout>
  12. <Grid id="grd_groupmedilist" class="datagrid2" taborder="0" binddataset="ds_main_groupmediinfo_groupmedilist" useinputpanel="false" position="absolute 0 0 1195 626" autoenter="select" cellsizingtype="col" anchor="all" autofittype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="147"/>
  17. <Column size="30"/>
  18. <Column size="30"/>
  19. <Column size="30"/>
  20. <Column size="30"/>
  21. <Column size="30"/>
  22. <Column size="30"/>
  23. <Column size="30"/>
  24. <Column size="30"/>
  25. <Column size="30"/>
  26. <Column size="30"/>
  27. <Column size="30"/>
  28. <Column size="30"/>
  29. <Column size="30"/>
  30. <Column size="30"/>
  31. <Column size="30"/>
  32. <Column size="30"/>
  33. <Column size="30"/>
  34. <Column size="30"/>
  35. <Column size="30"/>
  36. <Column size="30"/>
  37. <Column size="30"/>
  38. <Column size="30"/>
  39. <Column size="30"/>
  40. <Column size="30"/>
  41. <Column size="50"/>
  42. <Column size="49"/>
  43. <Column size="50"/>
  44. <Column size="50"/>
  45. <Column size="60"/>
  46. <Column size="60"/>
  47. </Columns>
  48. <Rows>
  49. <Row size="24" band="head"/>
  50. <Row size="24" band="head"/>
  51. <Row size="24" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell rowspan="3" text="구분" taborder="undefined"/>
  56. <Cell col="1" colspan="2" text="1월" taborder="undefined"/>
  57. <Cell col="3" colspan="2" text="2월" taborder="undefined"/>
  58. <Cell col="5" colspan="2" text="3월" taborder="undefined"/>
  59. <Cell col="7" colspan="2" text="4월" taborder="undefined"/>
  60. <Cell col="9" colspan="2" text="5월" taborder="undefined"/>
  61. <Cell col="11" colspan="2" text="6월" taborder="undefined"/>
  62. <Cell col="13" colspan="2" text="7월" taborder="undefined"/>
  63. <Cell col="15" colspan="2" text="8월" taborder="undefined"/>
  64. <Cell col="17" colspan="2" text="9월" taborder="undefined"/>
  65. <Cell col="19" colspan="2" text="10월" taborder="undefined"/>
  66. <Cell col="21" colspan="2" text="11월" taborder="undefined"/>
  67. <Cell col="23" colspan="2" text="12월" taborder="undefined"/>
  68. <Cell col="25" colspan="2" text="합계" taborder="undefined"/>
  69. <Cell col="27" colspan="2" text=" 전기간실적" taborder="undefined"/>
  70. <Cell col="29" colspan="2" text="전기간대비실적비교" taborder="undefined"/>
  71. <Cell row="1" col="1" rowspan="2" text="건수" taborder="undefined"/>
  72. <Cell row="1" col="2" rowspan="2" text="인원" taborder="undefined"/>
  73. <Cell row="1" col="3" rowspan="2" text="건수" taborder="undefined"/>
  74. <Cell row="1" col="4" rowspan="2" text="인원" taborder="undefined"/>
  75. <Cell row="1" col="5" rowspan="2" text="건수" taborder="undefined"/>
  76. <Cell row="1" col="6" rowspan="2" text="인원" taborder="undefined"/>
  77. <Cell row="1" col="7" rowspan="2" text="건수" taborder="undefined"/>
  78. <Cell row="1" col="8" rowspan="2" text="인원" taborder="undefined"/>
  79. <Cell row="1" col="9" rowspan="2" text="건수" taborder="undefined"/>
  80. <Cell row="1" col="10" rowspan="2" text="인원" taborder="undefined"/>
  81. <Cell row="1" col="11" rowspan="2" text="건수" taborder="undefined"/>
  82. <Cell row="1" col="12" rowspan="2" text="인원" taborder="undefined"/>
  83. <Cell row="1" col="13" rowspan="2" text="건수" taborder="undefined"/>
  84. <Cell row="1" col="14" rowspan="2" text="인원" taborder="undefined"/>
  85. <Cell row="1" col="15" rowspan="2" text="건수" taborder="undefined"/>
  86. <Cell row="1" col="16" rowspan="2" text="인원" taborder="undefined"/>
  87. <Cell row="1" col="17" rowspan="2" text="건수" taborder="undefined"/>
  88. <Cell row="1" col="18" rowspan="2" text="인원" taborder="undefined"/>
  89. <Cell row="1" col="19" rowspan="2" text="건수" taborder="undefined"/>
  90. <Cell row="1" col="20" rowspan="2" text="인원" taborder="undefined"/>
  91. <Cell row="1" col="21" rowspan="2" text="건수" taborder="undefined"/>
  92. <Cell row="1" col="22" rowspan="2" text="인원" taborder="undefined"/>
  93. <Cell row="1" col="23" rowspan="2" text="건수" taborder="undefined"/>
  94. <Cell row="1" col="24" rowspan="2" text="인원" taborder="undefined"/>
  95. <Cell row="1" col="25" rowspan="2" text="건수" taborder="undefined"/>
  96. <Cell row="1" col="26" rowspan="2" text="인원" taborder="undefined"/>
  97. <Cell row="1" col="27" rowspan="2" text="건수" taborder="undefined"/>
  98. <Cell row="1" col="28" rowspan="2" text="인원" taborder="undefined"/>
  99. <Cell row="1" col="29" rowspan="2" text="건수" taborder="undefined"/>
  100. <Cell row="1" col="30" rowspan="2" text="인원" taborder="undefined"/>
  101. </Band>
  102. <Band id="body">
  103. <Cell text="bind:cdnm"/>
  104. <Cell col="1" text="bind:cnt1"/>
  105. <Cell col="2" text="bind:psnno1"/>
  106. <Cell col="3" text="bind:cnt2"/>
  107. <Cell col="4" text="bind:psnno2"/>
  108. <Cell col="5" text="bind:cnt3"/>
  109. <Cell col="6" text="bind:psnno3"/>
  110. <Cell col="7" text="bind:cnt4"/>
  111. <Cell col="8" text="bind:psnno4"/>
  112. <Cell col="9" text="bind:cnt5"/>
  113. <Cell col="10" text="bind:psnno5"/>
  114. <Cell col="11" text="bind:cnt6"/>
  115. <Cell col="12" text="bind:psnno6"/>
  116. <Cell col="13" text="bind:cnt7"/>
  117. <Cell col="14" text="bind:psnno7"/>
  118. <Cell col="15" text="bind:cnt8"/>
  119. <Cell col="16" text="bind:psnno8"/>
  120. <Cell col="17" text="bind:cnt9"/>
  121. <Cell col="18" text="bind:psnno9"/>
  122. <Cell col="19" text="bind:cnt10"/>
  123. <Cell col="20" text="bind:psnno10"/>
  124. <Cell col="21" text="bind:cnt11"/>
  125. <Cell col="22" text="bind:psnno11"/>
  126. <Cell col="23" text="bind:cnt12"/>
  127. <Cell col="24" text="bind:psnno12"/>
  128. <Cell col="25" text="bind:totcnt"/>
  129. <Cell col="26" text="bind:totpsnno"/>
  130. <Cell col="27" text="bind:bfcnt"/>
  131. <Cell col="28" text="bind:bfpsnno"/>
  132. <Cell col="29" text="bind:cntrate" expr="expr:parseInt(totcnt)-parseInt(bfcnt)"/>
  133. <Cell col="30" text="bind:psnnorate" expr="expr:parseInt(totpsnno)-parseInt(bfpsnno)"/>
  134. </Band>
  135. </Format>
  136. </Formats>
  137. </Grid>
  138. </Layout>
  139. </Layouts>
  140. </Tabpage>
  141. <Tabpage id="case_work">
  142. <Layouts>
  143. <Layout>
  144. <Grid id="datagrid1" class="datagrid2" taborder="0" binddataset="ds_main_groupmediworkinfo_groupmediworklist" useinputpanel="false" position="absolute 0 0 1195 642" autoenter="select" cellsizingtype="col" anchor="all">
  145. <Formats>
  146. <Format id="default">
  147. <Columns>
  148. <Column size="188"/>
  149. <Column size="80"/>
  150. <Column size="80"/>
  151. <Column size="80"/>
  152. <Column size="80"/>
  153. <Column size="80"/>
  154. <Column size="80"/>
  155. <Column size="80"/>
  156. <Column size="80"/>
  157. <Column size="80"/>
  158. <Column size="80"/>
  159. <Column size="100"/>
  160. <Column size="100"/>
  161. </Columns>
  162. <Rows>
  163. <Row size="24" band="head"/>
  164. <Row size="24" band="head"/>
  165. <Row size="24" band="head"/>
  166. <Row size="24"/>
  167. </Rows>
  168. <Band id="head">
  169. <Cell rowspan="3" text="구분" taborder="undefined"/>
  170. <Cell col="1" colspan="2" text="일반의료" taborder="undefined"/>
  171. <Cell col="3" colspan="2" text="재활의료" taborder="undefined"/>
  172. <Cell col="5" colspan="2" text="정신의료" taborder="undefined"/>
  173. <Cell col="7" colspan="2" text="장기이식" taborder="undefined"/>
  174. <Cell col="9" colspan="2" text="호스피스" taborder="undefined"/>
  175. <Cell col="11" colspan="2" text="합계" taborder="undefined"/>
  176. <Cell row="1" col="1" rowspan="2" text="건수" taborder="undefined"/>
  177. <Cell row="1" col="2" rowspan="2" text="인원" taborder="undefined"/>
  178. <Cell row="1" col="3" rowspan="2" text="건수" taborder="undefined"/>
  179. <Cell row="1" col="4" rowspan="2" text="인원" taborder="undefined"/>
  180. <Cell row="1" col="5" rowspan="2" text="건수" taborder="undefined"/>
  181. <Cell row="1" col="6" rowspan="2" text="인원" taborder="undefined"/>
  182. <Cell row="1" col="7" rowspan="2" text="건수" taborder="undefined"/>
  183. <Cell row="1" col="8" rowspan="2" text="인원" taborder="undefined"/>
  184. <Cell row="1" col="9" rowspan="2" text="건수" taborder="undefined"/>
  185. <Cell row="1" col="10" rowspan="2" text="인원" taborder="undefined"/>
  186. <Cell row="1" col="11" rowspan="2" text="건수" taborder="undefined"/>
  187. <Cell row="1" col="12" rowspan="2" text="인원" taborder="undefined"/>
  188. </Band>
  189. <Band id="body">
  190. <Cell text="bind:cdnm"/>
  191. <Cell col="1" text="bind:cnt1"/>
  192. <Cell col="2" text="bind:psnno1"/>
  193. <Cell col="3" text="bind:cnt2"/>
  194. <Cell col="4" text="bind:psnno2"/>
  195. <Cell col="5" text="bind:cnt3"/>
  196. <Cell col="6" text="bind:psnno3"/>
  197. <Cell col="7" text="bind:cnt4"/>
  198. <Cell col="8" text="bind:psnno4"/>
  199. <Cell col="9" text="bind:cnt5"/>
  200. <Cell col="10" text="bind:psnno5"/>
  201. <Cell col="11" text="bind:totcnt"/>
  202. <Cell col="12" text="bind:totpsnno"/>
  203. </Band>
  204. </Format>
  205. </Formats>
  206. </Grid>
  207. </Layout>
  208. </Layouts>
  209. </Tabpage>
  210. </Tabpages>
  211. </Tab>
  212. <Static id="caption6" text="사회사업 집단의료사회사업 실천활동 실적" class="tit_1" position="absolute 0 0 321 25"/>
  213. <Div id="group4" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1195 65">
  214. <Layouts>
  215. <Layout>
  216. <Calendar id="ipt_fromdd" taborder="8" autoselect="true" autoskip="true" class="input_search" position="absolute 328 11 402 30" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" editformat="yyyy-MM"/>
  217. <Button id="button2" taborder="4" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="group4_button2_onclick"/>
  218. <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 11 101 28" anchor="default"/>
  219. <Shape id="line2" linetype="vertical" position="absolute 1110 10 1116 32" anchor="top right"/>
  220. <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 244 12 328 29" anchor="default"/>
  221. <Combo id="cmb_sumflag" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 11 220 30" anchor="default" onitemchanged="group4_cmb_sumflag_onitemchanged">
  222. <Dataset id="innerdataset">
  223. <ColumnInfo>
  224. <Column id="codecolumn"/>
  225. <Column id="datacolumn"/>
  226. </ColumnInfo>
  227. <Rows>
  228. <Row>
  229. <Col id="codecolumn">1</Col>
  230. <Col id="datacolumn">월별</Col>
  231. </Row>
  232. <Row>
  233. <Col id="codecolumn">2</Col>
  234. <Col id="datacolumn">업무분야별</Col>
  235. </Row>
  236. </Rows>
  237. </Dataset>
  238. </Combo>
  239. <Edit id="ipt_entryy" taborder="6" position="absolute 328 11 383 30" anchor="default" autoskip="true" autoselect="true"/>
  240. <Static id="cap1" text="~" position="absolute 409 10 434 30" anchor="default"/>
  241. <Calendar id="ipt_todd" taborder="7" class="input_search" position="absolute 430 11 501 30" mask="yyyy-mm" anchor="default" autoselect="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM"/>
  242. </Layout>
  243. </Layouts>
  244. </Div>
  245. <Shape id="line1" class="line_10" position="absolute 0 105 1195 116" anchor="left top right"/>
  246. <Static id="caption21" text="사회사업 집단의료사회사업 실천활동 실적" class="tit_2" position="absolute 0 91 274 113"/>
  247. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 88 1195 107" anchor="top right" onclick="btn_excel_onclick"/>
  248. <Shape id="line37" class="line_6" position="absolute 0 754 1195 760" anchor="left right bottom"/>
  249. <Button id="btn_search0" taborder="4" text="초기화" class="btn4" position="absolute 1127 759 1195 781" anchor="right bottom" onclick="btn_search0_onclick"/>
  250. </Layout>
  251. </Layouts>
  252. <Objects>
  253. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="fromdd" type="STRING" size="256"/>
  256. <Column id="todd" type="STRING" size="256"/>
  257. <Column id="sumflag" type="STRING" size="256"/>
  258. <Column id="entryy" type="STRING" size="256"/>
  259. </ColumnInfo>
  260. <Rows>
  261. <Row>
  262. <Col id="fromdd"/>
  263. <Col id="todd"/>
  264. <Col id="sumflag">1</Col>
  265. <Col id="entryy"/>
  266. </Row>
  267. </Rows>
  268. </Dataset>
  269. <Dataset id="ds_main_groupmediinfo_groupmedilist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  270. <ColumnInfo>
  271. <Column id="dispseq" type="STRING" size="256" sumtext="dispseq"/>
  272. <Column id="cdnm" type="STRING" size="256" sumtext="cdnm"/>
  273. <Column id="usernm" type="STRING" size="256" sumtext="usernm"/>
  274. <Column id="userdispseq" type="STRING" size="256" sumtext="userdispseq"/>
  275. <Column id="cnt1" type="STRING" size="256" sumtext="1월건수"/>
  276. <Column id="psnno1" type="STRING" size="256" sumtext="1월인원수"/>
  277. <Column id="cnt2" type="STRING" size="256" sumtext="2월건수"/>
  278. <Column id="psnno2" type="STRING" size="256" sumtext="2월인원수"/>
  279. <Column id="cnt3" type="STRING" size="256" sumtext="3월건수"/>
  280. <Column id="psnno3" type="STRING" size="256" sumtext="3월인원수"/>
  281. <Column id="cnt4" type="STRING" size="256" sumtext="4월건수"/>
  282. <Column id="psnno4" type="STRING" size="256" sumtext="4월인원수"/>
  283. <Column id="cnt5" type="STRING" size="256" sumtext="5월건수"/>
  284. <Column id="psnno5" type="STRING" size="256" sumtext="5월인원수"/>
  285. <Column id="cnt6" type="STRING" size="256" sumtext="6월건수"/>
  286. <Column id="psnno6" type="STRING" size="256" sumtext="6월인원수"/>
  287. <Column id="cnt7" type="STRING" size="256" sumtext="7월건수"/>
  288. <Column id="psnno7" type="STRING" size="256" sumtext="7월인원수"/>
  289. <Column id="cnt8" type="STRING" size="256" sumtext="8월건수"/>
  290. <Column id="psnno8" type="STRING" size="256" sumtext="8월인원수"/>
  291. <Column id="cnt9" type="STRING" size="256" sumtext="9월건수"/>
  292. <Column id="psnno9" type="STRING" size="256" sumtext="9월인원수"/>
  293. <Column id="cnt10" type="STRING" size="256" sumtext="10월건수"/>
  294. <Column id="psnno10" type="STRING" size="256" sumtext="10월인원수"/>
  295. <Column id="cnt11" type="STRING" size="256" sumtext="11월건수"/>
  296. <Column id="psnno11" type="STRING" size="256" sumtext="11월인원수"/>
  297. <Column id="cnt12" type="STRING" size="256" sumtext="12월건수"/>
  298. <Column id="psnno12" type="STRING" size="256" sumtext="12월인원수"/>
  299. <Column id="totcnt" type="STRING" size="256" sumtext="합계건수"/>
  300. <Column id="totpsnno" type="STRING" size="256" sumtext="합계인원수"/>
  301. <Column id="bfcnt" type="STRING" size="256" sumtext="전월실적건수"/>
  302. <Column id="bfpsnno" type="STRING" size="256" sumtext="전월실적인원수"/>
  303. <Column id="cntrate" type="STRING" size="256" sumtext="전월대비실적비교건수"/>
  304. <Column id="psnnorate" type="STRING" size="256" sumtext="전월대비실적비교인원수"/>
  305. </ColumnInfo>
  306. </Dataset>
  307. <Dataset id="ds_main_groupmediworkinfo_groupmediworklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  308. <ColumnInfo>
  309. <Column id="dispseq" type="STRING" size="256" sumtext="dispseq"/>
  310. <Column id="cdnm" type="STRING" size="256" sumtext="cdnm"/>
  311. <Column id="usernm" type="STRING" size="256" sumtext="usernm"/>
  312. <Column id="userdispseq" type="STRING" size="256" sumtext="userdispseq"/>
  313. <Column id="cnt1" type="STRING" size="256" sumtext="일반의료건수"/>
  314. <Column id="psnno1" type="STRING" size="256" sumtext="일반의료인원수"/>
  315. <Column id="cnt2" type="STRING" size="256" sumtext="재활의료건수"/>
  316. <Column id="psnno2" type="STRING" size="256" sumtext="재활의료인원수"/>
  317. <Column id="cnt3" type="STRING" size="256" sumtext="정신의료건수"/>
  318. <Column id="psnno3" type="STRING" size="256" sumtext="정신의료인원수"/>
  319. <Column id="cnt4" type="STRING" size="256" sumtext="장기이식건수"/>
  320. <Column id="psnno4" type="STRING" size="256" sumtext="장기이식인원수"/>
  321. <Column id="cnt5" type="STRING" size="256" sumtext="호스피스건수"/>
  322. <Column id="psnno5" type="STRING" size="256" sumtext="호스피스인원수"/>
  323. <Column id="totcnt" type="STRING" size="256" sumtext="합계건수"/>
  324. <Column id="totpsnno" type="STRING" size="256" sumtext="합계인원수"/>
  325. </ColumnInfo>
  326. </Dataset>
  327. </Objects>
  328. <Bind>
  329. <BindItem id="item0" compid="group4.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  330. <BindItem id="item1" compid="group4.ipt_entryy" propid="value" datasetid="ds_main_cond" columnid="entryy"/>
  331. <BindItem id="item2" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  332. </Bind>
  333. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  334. * System Name :
  335. * Job Name :
  336. * Creator :
  337. * Make Date : 2016-05-24
  338. * Description :
  339. *---------------------------------------------------------------------------------------
  340. * Modify Date Modifier Modify Description
  341. *---------------------------------------------------------------------------------------
  342. * 2016-05-24 Live Converter TF->XP
  343. *
  344. *---------------------------------------------------------------------------------------
  345. ****************************************************************************************/
  346. include "com_commonxp::comm_main.xjs";
  347. function SMSDT05000_oninit(obj:Form, e:InitEventInfo)
  348. {
  349. frmf_initForm(obj);
  350. }
  351. function SMSDT05000_onload(obj:Form, e:LoadEventInfo)
  352. {
  353. grdf_initGrid(swt_groupmediinfo.case_month.grd_groupmedilist);
  354. grdf_initGrid(swt_groupmediinfo.case_work.datagrid1);
  355. fInit();
  356. swt_groupmediinfo.tabindex = 0;
  357. }
  358. function fInit()
  359. {
  360. ds_main_groupmediinfo_groupmedilist.clearData();
  361. group4.cmb_sumflag.index = 0;
  362. var currentDate = utlf_getCurrentDate();
  363. var currentYear = String(currentDate).substring(0, 4);
  364. var LastDate = currentDate.toDate().getAddDate(-1,"M").getDateFormat();
  365. var LastDateYM = String(LastDate).substr(0,6);
  366. ds_main_cond.setColumn(0, "entryy" ,currentYear);
  367. ds_main_cond.setColumn(0, "fromdd" ,LastDateYM);
  368. ds_main_cond.setColumn(0, "todd" ,LastDateYM);
  369. group4.ipt_fromdd.visible = false;
  370. group4.ipt_todd.visible = false;
  371. group4.ipt_entryy.visible = true;
  372. group4.cap1.visible = false;
  373. }
  374. function group4_cmb_sumflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  375. {
  376. fGetGroupMediInfo();
  377. }
  378. function fGetGroupMediInfo()
  379. {
  380. if(group4.cmb_sumflag.value == '1')
  381. {
  382. swt_groupmediinfo.tabindex = 0;
  383. group4.ipt_entryy.visible = true;
  384. group4.ipt_fromdd.visible = false;
  385. group4.ipt_todd.visible = false;
  386. group4.cap1.visible = false;
  387. var entryy = ds_main_cond.getColumn(0, "entryy");
  388. if(utlf_isNull(entryy))
  389. {
  390. sysf_messageBox("조회년도를","C001" );
  391. group4.ipt_entryy.setFocus();
  392. ds_main_groupmediinfo_groupmedilist.clearData();
  393. return;
  394. }
  395. var oParam = {};
  396. oParam.id = "TRSDT05001";
  397. oParam.service = "stscmcnwapp.SoclEndStats";
  398. oParam.method = "reqGetGroupMediInfo";
  399. oParam.inds = "req=ds_main_cond";
  400. oParam.outds = "ds_main_groupmediinfo_groupmedilist=groupmedilist";
  401. oParam.async = false;
  402. //oParam.callback = "cf_TRSDT05001";
  403. tranf_submit(oParam);
  404. fStat();
  405. }
  406. else if(group4.cmb_sumflag.value == '2')
  407. {
  408. swt_groupmediinfo.tabindex = 1;
  409. group4.ipt_entryy.visible = false;
  410. group4.ipt_fromdd.visible = true;
  411. group4.ipt_todd.visible = true;
  412. group4.cap1.visible = true;
  413. var fromdd = ds_main_cond.getColumn(0, "fromdd") +"01";
  414. var todd = ds_main_cond.getColumn(0, "todd")+ "31";
  415. var fdate = ds_main_cond.getColumn(0, "fromdd");
  416. var todate = ds_main_cond.getColumn(0, "todd");
  417. var dateintval = utlf_getDateInterval(fromdd,todd);
  418. if(utlf_isNull(fdate))
  419. {
  420. sysf_messageBox("조회시작일자는","I003");
  421. group4.ipt_fromdd.setFocus();
  422. return;
  423. }
  424. if(utlf_isNull(todate))
  425. {
  426. sysf_messageBox("조회종료일자는","I003");
  427. group4.ipt_todd.setFocus();
  428. return;
  429. }
  430. if(fdate>todate)
  431. {
  432. sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
  433. group4.ipt_todd.setFocus();
  434. return;
  435. }
  436. if(dateintval>370)
  437. {
  438. sysf_messageBox("조회기간은 최대1년까지 할 수 있습니다.","I");
  439. group4.ipt_todd.setFocus();
  440. return;
  441. }
  442. var oParam = {};
  443. oParam.id = "TRSDT05001";
  444. oParam.service = "stscmcnwapp.SoclEndStats";
  445. oParam.method = "reqGetGroupMediWorkInfo";
  446. oParam.inds = "req=ds_main_cond";
  447. oParam.outds = "ds_main_groupmediworkinfo_groupmediworklist=groupmediworklist";
  448. oParam.async = false;
  449. //oParam.callback = "cf_TRSDT05001";
  450. tranf_submit(oParam);
  451. }
  452. }
  453. function fStat()
  454. {
  455. if(ds_main_groupmediinfo_groupmedilist.rowcount == 0)
  456. {
  457. return;
  458. }
  459. if(ds_main_groupmediinfo_groupmedilist.rowcount > 1)
  460. {
  461. var sStat = 0;
  462. var insRow = ds_main_groupmediinfo_groupmedilist.addRow();
  463. ds_main_groupmediinfo_groupmedilist.setColumn(insRow, "cdnm", "전월대비실적비교");
  464. for(var i = 4; i < 30; i++)
  465. {
  466. var bfResult = eval(ds_main_groupmediinfo_groupmedilist.getColumn(insRow-1 , i));
  467. var sSum = eval(ds_main_groupmediinfo_groupmedilist.getColumn(insRow-2, i));
  468. sStat = eval(sSum)- eval(bfResult);
  469. ds_main_groupmediinfo_groupmedilist.setColumn(insRow, i, eval(sStat));
  470. }
  471. ds_main_groupmediinfo_groupmedilist.setColumn(insRow-1, "cntrate", "");
  472. ds_main_groupmediinfo_groupmedilist.setColumn(insRow, "cntrate", "");
  473. ds_main_groupmediinfo_groupmedilist.setColumn(insRow-1, "psnnorate", "");
  474. ds_main_groupmediinfo_groupmedilist.setColumn(insRow, "psnnorate", "");
  475. }
  476. }
  477. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  478. {
  479. fGetGroupMediInfo();
  480. }
  481. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  482. {
  483. fExcel();
  484. }
  485. function fExcel()
  486. {
  487. if(ds_main_groupmediinfo_groupmedilist.rowcount == 0)
  488. {
  489. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  490. return;
  491. }
  492. grdf_exportExcel(swt_groupmediinfo.case_month.grd_groupmedilist, "사회사업 집단의료사회사업실천활동실적", "SheetName", "true", "", "");
  493. }
  494. function btn_search0_onclick(obj:Button, e:ClickEventInfo)
  495. {
  496. fInit();
  497. }
  498. ]]></Script>
  499. </Form>
  500. </FDL>