SMSDT07300_사회사업연구및교육실적.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT07300" position="absolute 0 0 1202 805" titletext="사회사업연구및교육실적" oninit="SMSDT07300_oninit" onload="SMSDT07300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="사회사업 연구및교육실적" class="tit_1" position="absolute 0 0 230 25"/>
  8. <Static id="caption21" text="사회사업 연구및교육실적" class="tit_2" position="absolute 0 82 232 104"/>
  9. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 99 1195 104" 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="4" text="조회" class="btn1" position="absolute 1123 9 1179 31" anchor="top right" onclick="group4_button2_onclick"/>
  14. <Static id="caption23" text="조회구분 :" class="search_name" position="absolute 15 12 101 29"/>
  15. <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
  16. <Static id="cap1" text="~" position="absolute 413 11 430 31"/>
  17. <Calendar id="ipt_fromdd" taborder="5" class="input_search" position="absolute 326 11 399 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" autoskip="true" onchanged="group4_ipt_fromdd_onchanged"/>
  18. <Calendar id="ipt_todd" taborder="6" class="input_search" position="absolute 439 11 512 30" mask="yyyy-mm" autoselect="true" dateformat="yyyy-MM" editformat="yyyy-MM" onchanged="group4_ipt_todd_onchanged"/>
  19. <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 240 13 324 30"/>
  20. <Combo id="cmb_reqflag" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 10 195 29" onitemchanged="group4_cmb_reqflag_onitemchanged">
  21. <Dataset id="innerdataset">
  22. <ColumnInfo>
  23. <Column id="codecolumn"/>
  24. <Column id="datacolumn"/>
  25. </ColumnInfo>
  26. <Rows>
  27. <Row>
  28. <Col id="codecolumn">1</Col>
  29. <Col id="datacolumn">업무분야별</Col>
  30. </Row>
  31. <Row>
  32. <Col id="codecolumn">2</Col>
  33. <Col id="datacolumn">월별</Col>
  34. </Row>
  35. </Rows>
  36. </Dataset>
  37. </Combo>
  38. </Layout>
  39. </Layouts>
  40. </Div>
  41. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 79 1195 98" anchor="top right" onclick="btn_excel_onclick"/>
  42. <Grid id="grd_brgstincmexpsprescond" class="datagrid2" taborder="4" binddataset="ds_main_brgstincmexpspres_brgstincmexpsprescond" useinputpanel="false" position="absolute 0 103 1195 767" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  43. <Formats>
  44. <Format id="default">
  45. <Columns>
  46. <Column size="132"/>
  47. <Column size="58"/>
  48. <Column size="58"/>
  49. <Column size="63"/>
  50. <Column size="63"/>
  51. <Column size="52"/>
  52. <Column size="53"/>
  53. <Column size="52"/>
  54. <Column size="52"/>
  55. <Column size="52"/>
  56. <Column size="52"/>
  57. <Column size="52"/>
  58. <Column size="52"/>
  59. <Column size="52"/>
  60. <Column size="52"/>
  61. <Column size="46"/>
  62. <Column size="46"/>
  63. <Column size="47"/>
  64. <Column size="47"/>
  65. <Column size="53"/>
  66. <Column size="53"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="24" band="head"/>
  70. <Row size="24" band="head"/>
  71. <Row size="24"/>
  72. </Rows>
  73. <Band id="head">
  74. <Cell rowspan="2" text="구분" taborder="undefined"/>
  75. <Cell col="1" colspan="2" text="사회사업사례집담회" taborder="undefined"/>
  76. <Cell col="3" colspan="2" text="사회사업연구조사활동" taborder="undefined"/>
  77. <Cell col="5" colspan="2" text="사회사업실습교육" taborder="undefined"/>
  78. <Cell col="7" colspan="2" text="사회사업수련교육" taborder="undefined"/>
  79. <Cell col="9" colspan="2" text="사회사업자체교육" taborder="undefined"/>
  80. <Cell col="11" colspan="2" text="사회사업원내교육" taborder="undefined"/>
  81. <Cell col="13" colspan="2" text="사회사업원외교육" taborder="undefined"/>
  82. <Cell col="15" colspan="2" text="연구및교육합계" taborder="undefined"/>
  83. <Cell col="17" colspan="2" text="전월실적" taborder="undefined"/>
  84. <Cell col="19" colspan="2" text="전월대비실적비교" taborder="undefined"/>
  85. <Cell row="1" col="1" text="횟수"/>
  86. <Cell row="1" col="2" text="인원"/>
  87. <Cell row="1" col="3" text="횟수"/>
  88. <Cell row="1" col="4" text="인원"/>
  89. <Cell row="1" col="5" text="횟수"/>
  90. <Cell row="1" col="6" text="인원"/>
  91. <Cell row="1" col="7" text="횟수"/>
  92. <Cell row="1" col="8" text="인원"/>
  93. <Cell row="1" col="9" text="횟수"/>
  94. <Cell row="1" col="10" text="인원"/>
  95. <Cell row="1" col="11" text="횟수"/>
  96. <Cell row="1" col="12" text="인원"/>
  97. <Cell row="1" col="13" text="횟수"/>
  98. <Cell row="1" col="14" text="인원"/>
  99. <Cell row="1" col="15" text="횟수"/>
  100. <Cell row="1" col="16" text="인원"/>
  101. <Cell row="1" col="17" text="횟수"/>
  102. <Cell row="1" col="18" text="인원"/>
  103. <Cell row="1" col="19" text="횟수"/>
  104. <Cell row="1" col="20" text="인원"/>
  105. </Band>
  106. <Band id="body">
  107. <Cell text="bind:cond"/>
  108. <Cell col="1" text="bind:b02cnt"/>
  109. <Cell col="2" text="bind:b02"/>
  110. <Cell col="3" text="bind:b06cnt"/>
  111. <Cell col="4" text="bind:b06"/>
  112. <Cell col="5" text="bind:a05cnt"/>
  113. <Cell col="6" text="bind:a05"/>
  114. <Cell col="7" text="bind:a06cnt"/>
  115. <Cell col="8" text="bind:a06"/>
  116. <Cell col="9" text="bind:a04cnt"/>
  117. <Cell col="10" text="bind:a04"/>
  118. <Cell col="11" text="bind:a02cnt"/>
  119. <Cell col="12" text="bind:a02"/>
  120. <Cell col="13" text="bind:a03cnt"/>
  121. <Cell col="14" text="bind:a03"/>
  122. <Cell col="15" text="bind:cnttotal"/>
  123. <Cell col="16" text="bind:amttotal"/>
  124. <Cell col="17" text="bind:lstachivcnt"/>
  125. <Cell col="18" text="bind:lstachivamt"/>
  126. <Cell col="19" text="bind:lstachivcntcomp" expr="expr:parseInt(cnttotal)-parseInt(lstachivcnt)"/>
  127. <Cell col="20" text="bind:lstachivamtcomp" expr="expr:parseInt(amttotal)-parseInt(lstachivamt)"/>
  128. </Band>
  129. </Format>
  130. </Formats>
  131. </Grid>
  132. <Shape id="line37" class="line_6" position="absolute 0 766 1195 772" anchor="left right bottom"/>
  133. <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 771 1195 793" anchor="right bottom" onclick="btn_search0_onclick"/>
  134. </Layout>
  135. </Layouts>
  136. <Objects>
  137. <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="reqflag" type="STRING" size="256"/>
  140. <Column id="fromdd" type="STRING" size="256"/>
  141. <Column id="todd" type="STRING" size="256"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row>
  145. <Col id="reqflag">1</Col>
  146. <Col id="fromdd"/>
  147. <Col id="todd"/>
  148. </Row>
  149. </Rows>
  150. </Dataset>
  151. <Dataset id="ds_main_brgstincmexpspres_brgstincmexpsprescond" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="cond" type="STRING" size="256" sumtext="구분"/>
  154. <Column id="b02cnt" type="STRING" size="256" sumtext="사회사업사례집담회횟수"/>
  155. <Column id="b02" type="STRING" size="256" sumtext="사회사업사례집담회인원"/>
  156. <Column id="b06cnt" type="STRING" size="256" sumtext="사회사업연구조사활동인원"/>
  157. <Column id="b06" type="STRING" size="256" sumtext="사회사업연구조사활동횟수"/>
  158. <Column id="a05cnt" type="STRING" size="256" sumtext="사회사업실습교육인원"/>
  159. <Column id="a05" type="STRING" size="256" sumtext="사회사업실습교육횟수"/>
  160. <Column id="a06cnt" type="STRING" size="256" sumtext="사회사업수련교육인원"/>
  161. <Column id="a06" type="STRING" size="256" sumtext="사회사업수련교육횟수"/>
  162. <Column id="a04cnt" type="STRING" size="256" sumtext="사회사업자체교육인원"/>
  163. <Column id="a04" type="STRING" size="256" sumtext="사회사업자체교육횟수"/>
  164. <Column id="a02cnt" type="STRING" size="256" sumtext="사회사업원내교육인원"/>
  165. <Column id="a02" type="STRING" size="256" sumtext="사회사업원내교육횟수"/>
  166. <Column id="a03cnt" type="STRING" size="256" sumtext="사회사업원외교육인원"/>
  167. <Column id="a03" type="STRING" size="256" sumtext="사회사업원외교육횟수"/>
  168. <Column id="cnttotal" type="STRING" size="256" sumtext="연구및교육합계횟수"/>
  169. <Column id="amttotal" type="STRING" size="256" sumtext="연구및교육합계인원"/>
  170. <Column id="lstachivcnt" type="STRING" size="256" sumtext="전월실적횟수"/>
  171. <Column id="lstachivamt" type="STRING" size="256" sumtext="전월실적인원"/>
  172. <Column id="lstachivcntcomp" type="STRING" size="256" sumtext="전월실적횟수비교"/>
  173. <Column id="lstachivamtcomp" type="STRING" size="256" sumtext="전월실적인원비교"/>
  174. </ColumnInfo>
  175. </Dataset>
  176. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  177. </Objects>
  178. <Bind>
  179. <BindItem id="item0" compid="group4.cmb_reqflag" propid="value" datasetid="ds_main_search" columnid="reqflag"/>
  180. <BindItem id="item1" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_search" columnid="fromdd"/>
  181. <BindItem id="item2" compid="group4.ipt_todd" propid="value" datasetid="ds_main_search" columnid="todd"/>
  182. </Bind>
  183. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  184. * System Name :
  185. * Job Name :
  186. * Creator :
  187. * Make Date : 2016-05-24
  188. * Description :
  189. *---------------------------------------------------------------------------------------
  190. * Modify Date Modifier Modify Description
  191. *---------------------------------------------------------------------------------------
  192. * 2016-05-24 Live Converter TF->XP
  193. *
  194. *---------------------------------------------------------------------------------------
  195. ****************************************************************************************/
  196. include "com_commonxp::comm_main.xjs";
  197. function SMSDT07300_oninit(obj:Form, e:InitEventInfo)
  198. {
  199. frmf_initForm(obj);
  200. }
  201. function SMSDT07300_onload(obj:Form, e:LoadEventInfo)
  202. {
  203. grdf_initGrid(grd_brgstincmexpsprescond);
  204. fInit();
  205. }
  206. function fInit()
  207. {
  208. group4.caption1.visible = true;
  209. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  210. var CurrentDate = utlf_getCurrentDate();
  211. var CurrentDateYM = String(CurrentDate).substr(0,6);
  212. var LastDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  213. var LastDateYM = LastDate.substr(0,6);
  214. dsf_makeValue(ds_main_search, "fromdd", "string",LastDateYM);
  215. dsf_makeValue(ds_main_search, "todd", "string",LastDateYM);
  216. grd_brgstincmexpsprescond.setFormatColProperty(17, "size", 0);
  217. grd_brgstincmexpsprescond.setFormatColProperty(18, "size", 0);
  218. grd_brgstincmexpsprescond.setFormatColProperty(19, "size", 0);
  219. grd_brgstincmexpsprescond.setFormatColProperty(20, "size", 0);
  220. }
  221. function group4_cmb_reqflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  222. {
  223. if(obj.value == "1")
  224. {
  225. grd_brgstincmexpsprescond.setFormatColProperty(17, "size", 0);
  226. grd_brgstincmexpsprescond.setFormatColProperty(18, "size", 0);
  227. grd_brgstincmexpsprescond.setFormatColProperty(19, "size", 0);
  228. grd_brgstincmexpsprescond.setFormatColProperty(20, "size", 0);
  229. }
  230. else
  231. {
  232. grd_brgstincmexpsprescond.setFormatColProperty(17, "size", 47);
  233. grd_brgstincmexpsprescond.setFormatColProperty(18, "size", 47);
  234. grd_brgstincmexpsprescond.setFormatColProperty(19, "size", 53);
  235. grd_brgstincmexpsprescond.setFormatColProperty(20, "size", 53);
  236. }
  237. fReqBrgstIncmExpsCond();
  238. }
  239. function fReqBrgstIncmExpsCond()
  240. {
  241. ds_send_reqdata.clearData();
  242. var fromdd = ds_main_search.getColumn(0, "fromdd");
  243. var todd = ds_main_search.getColumn(0, "todd");
  244. var reqflag = ds_main_search.getColumn(0, "reqflag");
  245. dsf_makeValue(ds_send_reqdata, "fromdd", "string",fromdd);
  246. dsf_makeValue(ds_send_reqdata, "todd", "string",todd);
  247. dsf_makeValue(ds_send_reqdata, "reqflag", "string",reqflag);
  248. if(utlf_isNull(fromdd))
  249. {
  250. sysf_messageBox("조회시작일자는","I003");
  251. group4.ipt_fromdd.setFocus();
  252. return;
  253. }
  254. if(utlf_isNull(todd))
  255. {
  256. sysf_messageBox("조회종료일자는","I003");
  257. group4.ipt_todd.setFocus();
  258. return;
  259. }
  260. var dateintval = utlf_getDateInterval(fromdd+"01",todd+"31");
  261. if(fromdd > todd)
  262. {
  263. sysf_messageBox("조회시작일보다 큰 조회종료일을 입력하십시요.","I");
  264. group4.ipt_todd.setFocus();
  265. return;
  266. }
  267. if(dateintval > "370")
  268. {
  269. sysf_messageBox("조회기간은 최대 1년까지 할 수 있습니다","I");
  270. group4.ipt_fromdd.setFocus();
  271. return;
  272. }
  273. var oParam = {};
  274. oParam.id = "TRSDT07301";
  275. oParam.service = "stscmcnwapp.SoclEndStats";
  276. oParam.method = "reqGetStdyEducAchiv";
  277. oParam.inds = "req=ds_send_reqdata";
  278. oParam.outds = "ds_main_brgstincmexpspres_brgstincmexpsprescond=brgstincmexpsprescond";
  279. oParam.async = false;
  280. //oParam.callback = "cf_TRSDT07301";
  281. tranf_submit(oParam);
  282. var idxRow = ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount;
  283. var reqflag = ds_main_search.getColumn(0, "reqflag");
  284. for(var i = 0; i < idxRow; i++)
  285. {
  286. var cond = ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(i, "cond");
  287. if(cond == "전기간실적" && i == 0)
  288. {
  289. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  290. }
  291. else
  292. {
  293. if(reqflag == "2")
  294. {
  295. fGetBfResult();
  296. return;
  297. }
  298. }
  299. }
  300. }
  301. function fGetBfResult()
  302. {
  303. if(ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount > 0)
  304. {
  305. var sStat = 0;
  306. var insRow = ds_main_brgstincmexpspres_brgstincmexpsprescond.addRow();
  307. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, "cond", "전기간대비실적비교");
  308. for(var i = 1; i < 17; i++)
  309. {
  310. var bfResult = eval(ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(insRow-1 , i));
  311. var sSum = eval(ds_main_brgstincmexpspres_brgstincmexpsprescond.getColumn(insRow-2, i));
  312. sStat = eval(sSum)- eval(bfResult);
  313. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, i, eval(sStat));
  314. }
  315. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivcnt", "");
  316. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivcntcomp", "");
  317. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, "lstachivcntcomp", "");
  318. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivamt", "");
  319. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow-1, "lstachivamtcomp", "");
  320. ds_main_brgstincmexpspres_brgstincmexpsprescond.setColumn(insRow, "lstachivamtcomp", "");
  321. }
  322. else
  323. {
  324. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  325. }
  326. }
  327. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  328. {
  329. fExcel();
  330. }
  331. function fExcel()
  332. {
  333. if (ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount == 0)
  334. {
  335. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  336. return;
  337. }
  338. grdf_exportExcel(grd_brgstincmexpsprescond, "사회사업연구및교육실적", "SheetName", "true", "", "");
  339. }
  340. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  341. {
  342. fReqBrgstIncmExpsCond();
  343. }
  344. function group4_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  345. {
  346. ds_main_search.setColumn(0, "fromdd", String(obj.value).substr(0,6));
  347. }
  348. function group4_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  349. {
  350. ds_main_search.setColumn(0, "todd", String(obj.value).substr(0,6));
  351. }
  352. function btn_search0_onclick(obj:Button, e:ClickEventInfo)
  353. {
  354. fResetBrgstIncmExps();
  355. }
  356. function fResetBrgstIncmExps()
  357. {
  358. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  359. }]]></Script>
  360. </Form>
  361. </FDL>