SMSDT07500_사회사업자선회부서별가입실적.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMSDT07500" position="absolute 0 0 1199 798" titletext="사회사업자선회부서별가입실적" oninit="SMSDT07500_oninit" onload="SMSDT07500_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 79 232 101"/>
  9. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 93 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="3" 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 280 13 366 30"/>
  15. <Shape id="line2" linetype="vertical" position="absolute 1110 9 1116 31" anchor="top right"/>
  16. <Calendar id="ipt_fromdd" taborder="4" autoselect="true" dateformat="yyyy-MM" editformat="yyyy-MM" class="input_search" position="absolute 102 11 175 30" mask="yyyy-mm" onchanged="group4_ipt_fromdd_onchanged"/>
  17. <Static id="caption1" text="조회일자:" class="search_name" position="absolute 10 13 110 30"/>
  18. <Combo id="cmb_instcd" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 375 11 500 30" onitemchanged="group4_cmb_instcd_onitemchanged">
  19. <Dataset id="innerdataset">
  20. <ColumnInfo>
  21. <Column id="codecolumn"/>
  22. <Column id="datacolumn"/>
  23. </ColumnInfo>
  24. <Rows>
  25. <Row>
  26. <Col id="codecolumn">%</Col>
  27. <Col id="datacolumn">전체</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">001</Col>
  31. <Col id="datacolumn">중앙의료원</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">103</Col>
  35. <Col id="datacolumn">성의교정</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">011</Col>
  39. <Col id="datacolumn">성모병원</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">012</Col>
  43. <Col id="datacolumn">강남성모병원</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">013</Col>
  47. <Col id="datacolumn">의정부성모병원</Col>
  48. </Row>
  49. </Rows>
  50. </Dataset>
  51. </Combo>
  52. </Layout>
  53. </Layouts>
  54. </Div>
  55. <Button id="btn_excel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 76 1195 95" anchor="top right" onclick="btn_excel_onclick"/>
  56. <Grid id="grd_brgstincmexpsprescond" class="datagrid2" taborder="4" binddataset="ds_main_brgstincmexpspres_brgstincmexpsprescond" useinputpanel="false" position="absolute 0 100 1195 764" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  57. <Formats>
  58. <Format id="default">
  59. <Columns>
  60. <Column size="178"/>
  61. <Column size="269"/>
  62. <Column size="132"/>
  63. <Column size="141"/>
  64. <Column size="141"/>
  65. <Column size="152"/>
  66. <Column size="152"/>
  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" rowspan="2" text="부서명" taborder="undefined"/>
  76. <Cell col="2" rowspan="2" text="교직원수" taborder="undefined"/>
  77. <Cell col="3" rowspan="2" text="자선회가입교직원수" taborder="undefined"/>
  78. <Cell col="4" rowspan="2" text="자선회교직원가입률" taborder="undefined"/>
  79. <Cell col="5" rowspan="2" text="자선회교직원기부액" taborder="undefined"/>
  80. <Cell col="6" rowspan="2" text="부서1인당기부액" taborder="undefined"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell text="bind:instnm" suppress="1" suppressalign="middle,over"/>
  84. <Cell col="1" style="align:left middle;" text="bind:deptnm"/>
  85. <Cell col="2" displaytype="number" style="align:center middle;" text="bind:emplno"/>
  86. <Cell col="3" displaytype="number" style="align:center middle;" text="bind:entcnt"/>
  87. <Cell col="4" style="align:center middle;" text="bind:entrate"/>
  88. <Cell col="5" displaytype="number" text="bind:deduamt"/>
  89. <Cell col="6" displaytype="number" text="bind:deduavg"/>
  90. </Band>
  91. </Format>
  92. </Formats>
  93. </Grid>
  94. <Shape id="line37" class="line_6" position="absolute 0 763 1195 769" anchor="left right bottom"/>
  95. <Button id="btn_search0" taborder="5" text="초기화" class="btn4" position="absolute 1127 767 1195 789" anchor="right bottom" onclick="btn_search0_onclick"/>
  96. </Layout>
  97. </Layouts>
  98. <Objects>
  99. <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="instcd" type="STRING" size="256"/>
  102. <Column id="fromdd" type="STRING" size="256"/>
  103. <Column id="fromentryy" type="STRING" size="256"/>
  104. <Column id="fromendyy" type="STRING" size="256"/>
  105. <Column id="toendyy" type="STRING" size="256"/>
  106. <Column id="toentryy" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row>
  110. <Col id="instcd">%</Col>
  111. <Col id="fromdd"/>
  112. <Col id="fromentryy"/>
  113. <Col id="fromendyy"/>
  114. <Col id="toendyy"/>
  115. <Col id="toentryy"/>
  116. </Row>
  117. </Rows>
  118. </Dataset>
  119. <Dataset id="ds_main_brgstincmexpspres_brgstincmexpsprescond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  120. <ColumnInfo>
  121. <Column id="cls" type="STRING" size="256" sumtext="순서"/>
  122. <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="순서"/>
  123. <Column id="instnm" type="STRING" size="256" sumtext="기관명"/>
  124. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  125. <Column id="emplno" type="STRING" size="256" sumtext="교직원수"/>
  126. <Column id="entcnt" type="STRING" size="256" sumtext="자선회가입교직원수"/>
  127. <Column id="entrate" type="STRING" size="256" sumtext="자선회교직원가입률"/>
  128. <Column id="deduamt" type="STRING" size="256" sumtext="자선회교직원기부액"/>
  129. <Column id="deduavg" type="STRING" size="256" sumtext="부서1인당기부액"/>
  130. </ColumnInfo>
  131. </Dataset>
  132. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  133. </Objects>
  134. <Bind>
  135. <BindItem id="item0" compid="group4.ipt_fromdd" propid="value" datasetid="ds_main_search" columnid="fromdd"/>
  136. <BindItem id="item1" compid="group4.cmb_instcd" propid="value" datasetid="ds_main_search" columnid="instcd"/>
  137. </Bind>
  138. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  139. * System Name :
  140. * Job Name :
  141. * Creator :
  142. * Make Date : 2016-05-24
  143. * Description :
  144. *---------------------------------------------------------------------------------------
  145. * Modify Date Modifier Modify Description
  146. *---------------------------------------------------------------------------------------
  147. * 2016-05-24 Live Converter TF->XP
  148. *
  149. *---------------------------------------------------------------------------------------
  150. ****************************************************************************************/
  151. include "com_commonxp::comm_main.xjs";
  152. function SMSDT07500_oninit(obj:Form, e:InitEventInfo)
  153. {
  154. frmf_initForm(obj);
  155. }
  156. function SMSDT07500_onload(obj:Form, e:LoadEventInfo)
  157. {
  158. grdf_initGrid(grd_brgstincmexpsprescond);
  159. fInit();
  160. }
  161. function fInit()
  162. {
  163. group4.caption1.visible = true;
  164. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  165. var CurrentDate = utlf_getCurrentDate();
  166. var CurrentDateYM = String(CurrentDate).substr(0,6);
  167. var LastDate = CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
  168. var LastDateYM = String(LastDate).substr(0,6);
  169. dsf_makeValue(ds_main_search, "fromdd", "string",LastDateYM);
  170. dsf_makeValue(ds_main_search, "todd", "string",LastDateYM);
  171. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  172. if(dutplceinstcd=='103')
  173. {
  174. group4.cmb_instcd.index = 2;
  175. group4.cmb_instcd.enable = false;
  176. }
  177. else if(dutplceinstcd == '011')
  178. {
  179. group4.cmb_instcd.index = 3;
  180. group4.cmb_instcd.enable = false;
  181. }
  182. else if(dutplceinstcd == '013')
  183. {
  184. group4.cmb_instcd.index = 5;
  185. group4.cmb_instcd.enable = false;
  186. }
  187. else if(dutplceinstcd == '001')
  188. {
  189. group4.cmb_instcd.index = 1;
  190. group4.cmb_instcd.enable = true;
  191. }
  192. else
  193. {
  194. group4.cmb_instcd.index = 4;
  195. group4.cmb_instcd.enable = true;
  196. }
  197. }
  198. function group4_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  199. {
  200. ds_main_search.setColumn(0, "fromdd", String(obj.value).substr(0,6));
  201. }
  202. function group4_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  203. {
  204. fReqBrgstIncmExpsCond();
  205. }
  206. function fReqBrgstIncmExpsCond()
  207. {
  208. ds_send_reqdata.clearData();
  209. var fromdd = ds_main_search.getColumn(0, "fromdd");
  210. var instcd = ds_main_search.getColumn(0, "instcd");
  211. dsf_makeValue(ds_send_reqdata, "fromdd", "string",fromdd);
  212. dsf_makeValue(ds_send_reqdata, "instcd", "string",instcd);
  213. if(utlf_isNull(fromdd))
  214. {
  215. sysf_messageBox("조회시작일자는","I003");
  216. group4.ipt_fromdd.setFocus();
  217. return;
  218. }
  219. var oParam = {};
  220. oParam.id = "TRSDT07501";
  221. oParam.service = "stscmcnwapp.SoclEndStats";
  222. oParam.method = "reqGetCharityDeptAchiv";
  223. oParam.inds = "req=ds_send_reqdata";
  224. oParam.outds = "ds_main_brgstincmexpspres_brgstincmexpsprescond=brgstincmexpsprescond";
  225. oParam.async = false;
  226. //oParam.callback = "cf_TRSDT07501";
  227. tranf_submit(oParam);
  228. }
  229. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  230. {
  231. fExcel();
  232. }
  233. function fExcel()
  234. {
  235. if (ds_main_brgstincmexpspres_brgstincmexpsprescond.rowcount == 0)
  236. {
  237. sysf_messageBox("엑셀파일로 저장할 리스트 내역이", "I004");
  238. return;
  239. }
  240. grdf_exportExcel(grd_brgstincmexpsprescond, "사회사업자선회부서별가입실적", "SheetName", "true", "", "");
  241. }
  242. function group4_button2_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. fReqBrgstIncmExpsCond();
  245. }
  246. function btn_search0_onclick(obj:Button, e:ClickEventInfo)
  247. {
  248. fResetBrgstIncmExps();
  249. }
  250. function fResetBrgstIncmExps()
  251. {
  252. ds_main_brgstincmexpspres_brgstincmexpsprescond.clearData();
  253. }]]></Script>
  254. </Form>
  255. </FDL>