SMSDT06800_사회사업수가실적.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT06800" position="absolute 0 0 1201 790" titletext="사회사업 수가실적" oninit="SMSDT06800_oninit" onload="SMSDT06800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="사회사업 수가실적" class="tit_1" position="absolute 0 0 221 25"/>
  8. <Static id="caption21" text="사회사업 수가실적" class="tit_2" position="absolute 0 78 266 100"/>
  9. <Shape id="line1" class="line_10" position="absolute 0 93 1195 102" anchor="left top right"/>
  10. <Div id="group4" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
  11. <Layouts>
  12. <Layout>
  13. <Button id="button2" taborder="1" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group4_button2_onclick"/>
  14. <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
  15. <Static id="caption1" text="사업년도 :" class="search_name" position="absolute 20 11 104 28"/>
  16. <Calendar id="ipt_entryy" taborder="2" autoselect="true" dateformat="yyyy" editformat="yyyy" class="input_search" position="absolute 120 10 218 29" mask="yyyy" onchanged="group4_ipt_entryy_onchanged"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 75 1195 94" anchor="top right" onclick="btn_excel_onclick"/>
  21. <Grid id="grd_calclist" class="datagrid2" taborder="4" binddataset="ds_main_calcinfo_calclist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 99 1195 758" anchor="all" oncellclick="grd_calclist_oncellclick">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="190" band="left"/>
  26. <Column size="50"/>
  27. <Column size="50"/>
  28. <Column size="50"/>
  29. <Column size="50"/>
  30. <Column size="50"/>
  31. <Column size="50"/>
  32. <Column size="50"/>
  33. <Column size="50"/>
  34. <Column size="50"/>
  35. <Column size="50"/>
  36. <Column size="50"/>
  37. <Column size="50"/>
  38. <Column size="50"/>
  39. <Column size="50"/>
  40. <Column size="50"/>
  41. <Column size="50"/>
  42. <Column size="50"/>
  43. <Column size="50"/>
  44. <Column size="50"/>
  45. <Column size="50"/>
  46. <Column size="50"/>
  47. <Column size="50"/>
  48. <Column size="50"/>
  49. <Column size="50"/>
  50. <Column size="60"/>
  51. <Column size="60"/>
  52. <Column size="80"/>
  53. <Column size="80"/>
  54. <Column size="80"/>
  55. <Column size="80"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="47" band="head"/>
  60. <Row size="24"/>
  61. </Rows>
  62. <Band id="head">
  63. <Cell rowspan="2" text="구분" taborder="undefined"/>
  64. <Cell col="1" colspan="2" text="1월" taborder="undefined"/>
  65. <Cell col="3" colspan="2" text="2월" taborder="undefined"/>
  66. <Cell col="5" colspan="2" text="3월" taborder="undefined"/>
  67. <Cell col="7" colspan="2" text="4월" taborder="undefined"/>
  68. <Cell col="9" colspan="2" text="5월" taborder="undefined"/>
  69. <Cell col="11" colspan="2" text="6월" taborder="undefined"/>
  70. <Cell col="13" colspan="2" text="7월" taborder="undefined"/>
  71. <Cell col="15" colspan="2" text="8월" taborder="undefined"/>
  72. <Cell col="17" colspan="2" text="9월" taborder="undefined"/>
  73. <Cell col="19" colspan="2" text="10월" taborder="undefined"/>
  74. <Cell col="21" colspan="2" text="11월" taborder="undefined"/>
  75. <Cell col="23" colspan="2" text="12월" taborder="undefined"/>
  76. <Cell col="25" colspan="2" text="합계" taborder="undefined"/>
  77. <Cell col="27" colspan="2" text=" 전기간실적" taborder="undefined"/>
  78. <Cell col="29" colspan="2" text="전기간대비실적비교" taborder="undefined"/>
  79. <Cell row="1" col="1" text="건수" taborder="undefined"/>
  80. <Cell row="1" col="2" text="금액" taborder="undefined"/>
  81. <Cell row="1" col="3" text="건수"/>
  82. <Cell row="1" col="4" text="금액"/>
  83. <Cell row="1" col="5" text="건수"/>
  84. <Cell row="1" col="6" text="금액"/>
  85. <Cell row="1" col="7" text="건수"/>
  86. <Cell row="1" col="8" text="금액"/>
  87. <Cell row="1" col="9" text="건수"/>
  88. <Cell row="1" col="10" text="금액"/>
  89. <Cell row="1" col="11" text="건수"/>
  90. <Cell row="1" col="12" text="금액"/>
  91. <Cell row="1" col="13" text="건수"/>
  92. <Cell row="1" col="14" text="금액"/>
  93. <Cell row="1" col="15" text="건수"/>
  94. <Cell row="1" col="16" text="금액"/>
  95. <Cell row="1" col="17" text="건수"/>
  96. <Cell row="1" col="18" text="금액"/>
  97. <Cell row="1" col="19" text="건수"/>
  98. <Cell row="1" col="20" text="금액"/>
  99. <Cell row="1" col="21" text="건수"/>
  100. <Cell row="1" col="22" text="금액"/>
  101. <Cell row="1" col="23" text="건수"/>
  102. <Cell row="1" col="24" text="금액"/>
  103. <Cell row="1" col="25" text="건수"/>
  104. <Cell row="1" col="26" text="금액"/>
  105. <Cell row="1" col="27" text="건수"/>
  106. <Cell row="1" col="28" text="금액"/>
  107. <Cell row="1" col="29" text="건수"/>
  108. <Cell row="1" col="30" text="금액"/>
  109. </Band>
  110. <Band id="body">
  111. <Cell celltype="head" text="bind:cdnm"/>
  112. <Cell col="1" text="bind:cnt1"/>
  113. <Cell col="2" displaytype="number" style="align:center middle;" text="bind:psnno1"/>
  114. <Cell col="3" text="bind:cnt2"/>
  115. <Cell col="4" displaytype="number" style="align:center middle;" text="bind:psnno2"/>
  116. <Cell col="5" text="bind:cnt3"/>
  117. <Cell col="6" displaytype="number" style="align:center middle;" text="bind:psnno3"/>
  118. <Cell col="7" text="bind:cnt4"/>
  119. <Cell col="8" displaytype="number" style="align:center middle;" text="bind:psnno4"/>
  120. <Cell col="9" text="bind:cnt5"/>
  121. <Cell col="10" displaytype="number" style="align:center middle;" text="bind:psnno5"/>
  122. <Cell col="11" text="bind:cnt6"/>
  123. <Cell col="12" displaytype="number" style="align:center middle;" text="bind:psnno6"/>
  124. <Cell col="13" text="bind:cnt7"/>
  125. <Cell col="14" displaytype="number" style="align:center middle;" text="bind:psnno7"/>
  126. <Cell col="15" text="bind:cnt8"/>
  127. <Cell col="16" displaytype="number" style="align:center middle;" text="bind:psnno8"/>
  128. <Cell col="17" text="bind:cnt9"/>
  129. <Cell col="18" displaytype="number" style="align:center middle;" text="bind:psnno9"/>
  130. <Cell col="19" text="bind:cnt10"/>
  131. <Cell col="20" displaytype="number" style="align:center middle;" text="bind:psnno10"/>
  132. <Cell col="21" text="bind:cnt11"/>
  133. <Cell col="22" displaytype="number" style="align:center middle;" text="bind:psnno11"/>
  134. <Cell col="23" text="bind:cnt12"/>
  135. <Cell col="24" displaytype="number" style="align:center middle;" text="bind:psnno12"/>
  136. <Cell col="25" text="bind:totcnt"/>
  137. <Cell col="26" displaytype="number" style="align:center middle;" text="bind:totpsnno"/>
  138. <Cell col="27" text="bind:bfcnt"/>
  139. <Cell col="28" displaytype="number" style="align:center middle;" text="bind:bfpsnno"/>
  140. <Cell col="29" text="bind:cntrate" expr="expr:parseInt(totcnt)-parseInt(bfcnt)"/>
  141. <Cell col="30" displaytype="number" style="align:center middle;" text="bind:psnnorate" expr="expr:parseInt(totpsnno)-parseInt(bfpsnno)"/>
  142. </Band>
  143. </Format>
  144. </Formats>
  145. </Grid>
  146. <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 764 1195 786" onclick="btn_search0_onclick" anchor="right bottom"/>
  147. <Shape id="line37" class="line_6" position="absolute -1 760 1194 766" anchor="left right bottom"/>
  148. </Layout>
  149. </Layouts>
  150. <Objects>
  151. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="entryy" type="STRING" size="256"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row/>
  157. </Rows>
  158. </Dataset>
  159. <Dataset id="ds_main_calcinfo_calclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="dispseq" type="STRING" size="256" sumtext="dispseq"/>
  162. <Column id="cdnm" type="STRING" size="256" sumtext="cdnm"/>
  163. <Column id="cnt3" type="STRING" size="256" sumtext="3월금액"/>
  164. <Column id="psnno3" type="STRING" size="256" sumtext="3월인원수"/>
  165. <Column id="cnt4" type="STRING" size="256" sumtext="4월금액"/>
  166. <Column id="psnno4" type="STRING" size="256" sumtext="4월인원수"/>
  167. <Column id="cnt5" type="STRING" size="256" sumtext="5월금액"/>
  168. <Column id="psnno5" type="STRING" size="256" sumtext="5월인원수"/>
  169. <Column id="cnt6" type="STRING" size="256" sumtext="6월금액"/>
  170. <Column id="psnno6" type="STRING" size="256" sumtext="6월인원수"/>
  171. <Column id="cnt7" type="STRING" size="256" sumtext="7월금액"/>
  172. <Column id="psnno7" type="STRING" size="256" sumtext="7월인원수"/>
  173. <Column id="cnt8" type="STRING" size="256" sumtext="8월금액"/>
  174. <Column id="psnno8" type="STRING" size="256" sumtext="8월인원수"/>
  175. <Column id="cnt9" type="STRING" size="256" sumtext="9월금액"/>
  176. <Column id="psnno9" type="STRING" size="256" sumtext="9월인원수"/>
  177. <Column id="cnt10" type="STRING" size="256" sumtext="10월금액"/>
  178. <Column id="psnno10" type="STRING" size="256" sumtext="10월인원수"/>
  179. <Column id="cnt11" type="STRING" size="256" sumtext="11월금액"/>
  180. <Column id="psnno11" type="STRING" size="256" sumtext="11월인원수"/>
  181. <Column id="cnt12" type="STRING" size="256" sumtext="12월금액"/>
  182. <Column id="psnno12" type="STRING" size="256" sumtext="12월인원수"/>
  183. <Column id="cnt1" type="STRING" size="256" sumtext="1월금액"/>
  184. <Column id="psnno1" type="STRING" size="256" sumtext="1월인원수"/>
  185. <Column id="cnt2" type="STRING" size="256" sumtext="2월금액"/>
  186. <Column id="psnno2" type="STRING" size="256" sumtext="2월인원수"/>
  187. <Column id="totcnt" type="STRING" size="256" sumtext="합계금액"/>
  188. <Column id="totpsnno" type="STRING" size="256" sumtext="합계인원수"/>
  189. <Column id="bfcnt" type="STRING" size="256" sumtext="전월실적금액"/>
  190. <Column id="bfpsnno" type="STRING" size="256" sumtext="전월실적인원수"/>
  191. <Column id="cntrate" type="STRING" size="256" sumtext="전월대비실적비교금액"/>
  192. <Column id="psnnorate" type="STRING" size="256" sumtext="전월대비실적비교인원수"/>
  193. </ColumnInfo>
  194. </Dataset>
  195. </Objects>
  196. <Bind>
  197. <BindItem id="item0" compid="group4.ipt_entryy" propid="value" datasetid="ds_main_cond" columnid="entryy"/>
  198. </Bind>
  199. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  200. * System Name :
  201. * Job Name :
  202. * Creator :
  203. * Make Date : 2016-05-24
  204. * Description :
  205. *---------------------------------------------------------------------------------------
  206. * Modify Date Modifier Modify Description
  207. *---------------------------------------------------------------------------------------
  208. * 2016-05-24 Live Converter TF->XP
  209. *
  210. *---------------------------------------------------------------------------------------
  211. ****************************************************************************************/
  212. include "com_commonxp::comm_main.xjs";
  213. function SMSDT06800_oninit(obj:Form, e:InitEventInfo)
  214. {
  215. frmf_initForm(obj);
  216. }
  217. function SMSDT06800_onload(obj:Form, e:LoadEventInfo)
  218. {
  219. grdf_initGrid(grd_calclist);
  220. fInit();
  221. }
  222. function fInit()
  223. {
  224. ds_main_calcinfo_calclist.clearData();
  225. var currentDate = utlf_getCurrentDate();
  226. var currentYear = String(currentDate).substring(0, 4);
  227. ds_main_cond.setColumn(0, "entryy" ,currentYear);
  228. group4.ipt_entryy.visible = true;
  229. }
  230. function group4_ipt_entryy_onchanged(obj:Calendar, e:ChangeEventInfo)
  231. {
  232. ds_main_cond.setColumn(0, "entryy" ,String(obj.value).substr(0,4));
  233. }
  234. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  235. {
  236. fExcel();
  237. }
  238. function fExcel()
  239. {
  240. if (ds_main_calcinfo_calclist.rowcount == 0)
  241. {
  242. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  243. return;
  244. }
  245. grdf_exportExcel(grd_calclist, "사회사업 수가실적실적", "SheetName", "true", "", "");
  246. }
  247. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  248. {
  249. fGetCalcInfo();
  250. }
  251. function fGetCalcInfo()
  252. {
  253. var entryy = ds_main_cond.getColumn(0, "entryy");
  254. if(utlf_isNull(entryy))
  255. {
  256. sysf_messageBox("조회년도를","C001" );
  257. ds_main_calcinfo_calclist.clearData();
  258. return;
  259. }
  260. group4.ipt_entryy.visible = true;
  261. var oParam = {};
  262. oParam.id = "TRSDT06801";
  263. oParam.service = "stscmcnwapp.SoclEndStats";
  264. oParam.method = "reqGetCalcStat";
  265. oParam.inds = "req=ds_main_cond";
  266. oParam.outds = "ds_main_calcinfo_calclist=calclist";
  267. oParam.async = false;
  268. //oParam.callback = "cf_TRSDT06801";
  269. tranf_submit(oParam);
  270. fStat();
  271. }
  272. function fStat()
  273. {
  274. if(ds_main_calcinfo_calclist.rowcount == 0)
  275. {
  276. return;
  277. }
  278. if(ds_main_calcinfo_calclist.rowcount > 0)
  279. {
  280. var sStat = 0;
  281. var insRow = ds_main_calcinfo_calclist.addRow();
  282. ds_main_calcinfo_calclist.setColumn(insRow, "cdnm", "전년대비실적비교");
  283. for(var i = 2; i <= grd_calclist.getBindCellIndex("Body", "totpsnno"); i++)
  284. {
  285. var bfResult = eval(ds_main_calcinfo_calclist.getColumn(insRow-1 , i));
  286. var sSum = eval(ds_main_calcinfo_calclist.getColumn(insRow-2, i));
  287. sStat = eval(sSum)- eval(bfResult);
  288. ds_main_calcinfo_calclist.setColumn(insRow, i , eval(sStat));
  289. }
  290. ds_main_calcinfo_calclist.setColumn(insRow-1, "cntrate", "");
  291. ds_main_calcinfo_calclist.setColumn(insRow, "cntrate", "");
  292. ds_main_calcinfo_calclist.setColumn(insRow-1, "psnnorate", "");
  293. ds_main_calcinfo_calclist.setColumn(insRow, "psnnorate", "");
  294. }
  295. }
  296. function grd_calclist_oncellclick(obj:Grid, e:GridClickEventInfo)
  297. {
  298. trace(e.cell)
  299. }
  300. function btn_search0_onclick(obj:Button, e:ClickEventInfo)
  301. {
  302. fInit();
  303. }
  304. ]]></Script>
  305. </Form>
  306. </FDL>