SMRFC00919_년도별자산현황.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRFC00919" position="absolute 0 0 1200 756" titletext="년도별자산현황" oninit="SMRFC00919_oninit" onload="SMRFC00919_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="년도별 자산현황" class="tit_1" position="absolute 0 0 186 25"/>
  8. <Shape id="line14" class="line_6" position="absolute 0 38 1195 44" anchor="left top right"/>
  9. <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1127 17 1195 39" anchor="top right" onclick="btn_init_onclick"/>
  10. <Div id="group5" anchor="left top right" taborder="2" class="div_SA2" position="absolute 0 42 1195 102">
  11. <Layouts>
  12. <Layout>
  13. <Edit id="ipt_mngtdeptcd_search" taborder="21" class="input_search" position="absolute 95 32 180 51" onkeyup="group5_ipt_mngtdeptcd_search_onkeyup"/>
  14. <Button id="btn_mngtdeptcd_search" taborder="22" class="icon_search" position="absolute 184 33 200 49" onclick="group5_btn_mngtdeptcd_search_onclick"/>
  15. <Edit id="ipt_mngtdeptnm_search" taborder="23" class="input_search" position="absolute 203 32 400 51" onkeyup="group5_ipt_mngtdeptnm_search_onkeyup"/>
  16. <Static id="cap_possndd_search" text="취득일자 :" class="search_name" position="absolute 486 6 580 23"/>
  17. <Calendar id="ipt_possnfrdd_search" taborder="24" class="input_default" position="absolute 576 4 674 23" mask="yyyy-mm-dd"/>
  18. <Button id="btn_search" taborder="25" text="조회" class="btn1" position="absolute 1120 19 1176 41" anchor="top right" onclick="group5_btn_search_onclick"/>
  19. <Static id="cap_instcd_search" text="기관코드 :" class="search_name" position="absolute 7 6 108 23"/>
  20. <Combo id="cmb_instcd_search" taborder="26" class="combo_essential" enable="false" position="absolute 95 4 290 23"/>
  21. <Shape id="line12" linetype="vertical" class="line_4" position="absolute 1102 6 1108 52" anchor="top right"/>
  22. <Calendar id="ipt_possntodd_search" taborder="27" class="input_default" position="absolute 699 4 797 23" mask="yyyy-mm-dd"/>
  23. <Static id="caption2" text="~" position="absolute 681 5 696 25"/>
  24. <Static id="cap_installplcecd" text="운용부서 :" class="search_name" position="absolute 7 32 83 49"/>
  25. <Combo id="cmb_deptflag_search" taborder="28" position="absolute 937 4 1017 23"/>
  26. <Static id="caption1" text="부서구분 :" class="search_name" position="absolute 847 6 963 23"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Shape id="line16" linetype="vertical" class="line_1" position="absolute 0 193 1190 194"/>
  31. <Tab id="switch1" taborder="4" tabindex="0" position="absolute 0 120 1195 750" class="tab_Normal" anchor="all">
  32. <Tabpages>
  33. <Tabpage id="case_fixasetlist">
  34. <Layouts>
  35. <Layout>
  36. <Grid id="grd_fixasetlist" class="datagrid2" taborder="0" binddataset="ds_main_list_fixaset_fixasetlist" useinputpanel="false" position="absolute 0 0 1195 601" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
  37. <Formats>
  38. <Format id="default">
  39. <Columns>
  40. <Column size="26"/>
  41. <Column size="70"/>
  42. <Column size="70"/>
  43. <Column size="70"/>
  44. <Column size="75"/>
  45. <Column size="60"/>
  46. <Column size="45"/>
  47. <Column size="60"/>
  48. <Column size="70"/>
  49. <Column size="70"/>
  50. <Column size="75"/>
  51. <Column size="60"/>
  52. <Column size="60"/>
  53. <Column size="70"/>
  54. <Column size="70"/>
  55. <Column size="75"/>
  56. <Column size="60"/>
  57. <Column size="60"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="24" band="head"/>
  61. <Row size="24" band="head"/>
  62. <Row size="24" band="head"/>
  63. <Row size="24"/>
  64. <Row size="24" band="summ"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell rowspan="3" taborder="undefined"/>
  68. <Cell col="1" rowspan="3" text="년도/분류" taborder="undefined"/>
  69. <Cell col="2" colspan="6" text="컴퓨터" taborder="undefined"/>
  70. <Cell col="8" colspan="5" text="모니터" taborder="undefined"/>
  71. <Cell col="13" colspan="5" text="프린터" taborder="undefined"/>
  72. <Cell row="1" col="2" colspan="3" text="정리" taborder="undefined"/>
  73. <Cell row="1" col="5" text="미비"/>
  74. <Cell row="1" col="6" rowspan="2" text="노트북" taborder="undefined"/>
  75. <Cell row="1" col="7" rowspan="2" text="계" taborder="undefined"/>
  76. <Cell row="1" col="8" colspan="3" text="정리" taborder="undefined"/>
  77. <Cell row="1" col="11" text="미비"/>
  78. <Cell row="1" col="12" rowspan="2" text="계" taborder="undefined"/>
  79. <Cell row="1" col="13" colspan="3" text="정리" taborder="undefined"/>
  80. <Cell row="1" col="16" text="미비"/>
  81. <Cell row="1" col="17" rowspan="2" text="계" taborder="undefined"/>
  82. <Cell row="2" col="2" text="10.01(정상)"/>
  83. <Cell row="2" col="3" text="10.05(기금)"/>
  84. <Cell row="2" col="4" text="10.91(CDIS)"/>
  85. <Cell row="2" col="5" text="03.11"/>
  86. <Cell row="2" col="8" text="10.02(정상)"/>
  87. <Cell row="2" col="9" text="10.05(기금)"/>
  88. <Cell row="2" col="10" text="10.91(CDIS)"/>
  89. <Cell row="2" col="11" text="03.26"/>
  90. <Cell row="2" col="13" text="10.03(정상)"/>
  91. <Cell row="2" col="14" text="10.05(기금)"/>
  92. <Cell row="2" col="15" text="10.91(CDIS)"/>
  93. <Cell row="2" col="16" text="03.09"/>
  94. </Band>
  95. <Band id="body">
  96. <Cell celltype="head" expr="currow+1"/>
  97. <Cell col="1" style="align:center middle;" text="bind:year"/>
  98. <Cell col="2" style="align:center middle;" text="bind:com1_qty"/>
  99. <Cell col="3" style="align:center middle;" text="bind:com2_qty"/>
  100. <Cell col="4" style="align:center middle;" text="bind:com3_qty"/>
  101. <Cell col="5" style="align:center middle;" text="bind:com4_qty"/>
  102. <Cell col="6" style="align:center middle;" text="bind:com5_qty"/>
  103. <Cell col="7" displaytype="number" style="align:center middle;" text="bind:comt_qty"/>
  104. <Cell col="8" style="align:center middle;" text="bind:mon1_qty"/>
  105. <Cell col="9" style="align:center middle;" text="bind:mon2_qty"/>
  106. <Cell col="10" style="align:center middle;" text="bind:mon3_qty"/>
  107. <Cell col="11" style="align:center middle;" text="bind:mon4_qty"/>
  108. <Cell col="12" displaytype="number" style="align:center middle;" text="bind:mont_qty"/>
  109. <Cell col="13" style="align:center middle;" text="bind:prt1_qty"/>
  110. <Cell col="14" style="align:center middle;" text="bind:prt2_qty"/>
  111. <Cell col="15" style="align:center middle;" text="bind:prt3_qty"/>
  112. <Cell col="16" style="align:center middle;" text="bind:prt4_qty"/>
  113. <Cell col="17" displaytype="number" style="align:center middle;" text="bind:prtt_qty"/>
  114. </Band>
  115. <Band id="summary">
  116. <Cell style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;"/>
  117. <Cell col="1" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="총계"/>
  118. <Cell col="2" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('com1_qty')"/>
  119. <Cell col="3" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('com2_qty')"/>
  120. <Cell col="4" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('com3_qty')"/>
  121. <Cell col="5" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('com4_qty')"/>
  122. <Cell col="6" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('com5_qty')"/>
  123. <Cell col="7" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('comt_qty')"/>
  124. <Cell col="8" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('mon1_qty')"/>
  125. <Cell col="9" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('mon2_qty')"/>
  126. <Cell col="10" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('mon3_qty')"/>
  127. <Cell col="11" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('mon4_qty')"/>
  128. <Cell col="12" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('mont_qty')"/>
  129. <Cell col="13" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('prt1_qty')"/>
  130. <Cell col="14" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('prt2_qty')"/>
  131. <Cell col="15" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('prt3_qty')"/>
  132. <Cell col="16" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('prt4_qty')"/>
  133. <Cell col="17" displaytype="number" style="align:center middle;background:#99ccffff;background2:#99ccffff;font:arial,9,bold;" text="expr:getSum('prtt_qty')"/>
  134. </Band>
  135. </Format>
  136. </Formats>
  137. </Grid>
  138. </Layout>
  139. </Layouts>
  140. </Tabpage>
  141. <Tabpage id="case_fixasetmodel"/>
  142. </Tabpages>
  143. </Tab>
  144. <Button id="btn_excel" taborder="3" text="Excel 저장" class="btn5" position="absolute 1120 110 1195 129" anchor="top right" onclick="btn_excel_onclick"/>
  145. </Layout>
  146. </Layouts>
  147. <Objects>
  148. <Dataset id="ds_send_fixasetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_fixasetlist_oncolumnchanged">
  149. <ColumnInfo>
  150. <Column id="instcd" type="STRING" size="256"/>
  151. <Column id="mngtdeptcd" type="STRING" size="256"/>
  152. <Column id="mngtdeptnm" type="STRING" size="256"/>
  153. <Column id="possnfrdd" type="STRING" size="256"/>
  154. <Column id="possntodd" type="STRING" size="256"/>
  155. <Column id="deptflag" type="STRING" size="256"/>
  156. <Column id="mdlcd" type="STRING" size="256"/>
  157. <Column id="smlcd" type="STRING" size="256"/>
  158. <Column id="possndd" type="STRING" size="256"/>
  159. <Column id="gubun" type="STRING" size="256"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row>
  163. <Col id="instcd"/>
  164. <Col id="mngtdeptcd"/>
  165. <Col id="mngtdeptnm"/>
  166. <Col id="possnfrdd"/>
  167. <Col id="possntodd"/>
  168. <Col id="deptflag"/>
  169. <Col id="mdlcd"/>
  170. <Col id="smlcd"/>
  171. <Col id="possndd"/>
  172. <Col id="gubun"/>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_main_list_fixaset_fixasetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="year" type="STRING" size="256" sumtext="년도 "/>
  179. <Column id="com1_qty" type="STRING" size="256" sumtext="컴퓨터10.01 "/>
  180. <Column id="com2_qty" type="STRING" size="256" sumtext="컴퓨터10.05 "/>
  181. <Column id="com3_qty" type="STRING" size="256" sumtext="컴퓨터10.91 "/>
  182. <Column id="com4_qty" type="STRING" size="256" sumtext="컴퓨터03.11 "/>
  183. <Column id="com5_qty" type="STRING" size="256" sumtext="노트북 "/>
  184. <Column id="comt_qty" type="STRING" size="256" sumtext="컴퓨터계 "/>
  185. <Column id="mon1_qty" type="STRING" size="256" sumtext="모니터10.02 "/>
  186. <Column id="mon2_qty" type="STRING" size="256" sumtext="모니터10.05 "/>
  187. <Column id="mon3_qty" type="STRING" size="256" sumtext="모니터10.91 "/>
  188. <Column id="mon4_qty" type="STRING" size="256" sumtext="모니터03.26 "/>
  189. <Column id="mont_qty" type="STRING" size="256" sumtext="모니터계 "/>
  190. <Column id="prt1_qty" type="STRING" size="256" sumtext="프린터10.03 "/>
  191. <Column id="prt2_qty" type="STRING" size="256" sumtext="프린터10.05 "/>
  192. <Column id="prt3_qty" type="STRING" size="256" sumtext="프린터10.91 "/>
  193. <Column id="prt4_qty" type="STRING" size="256" sumtext="프린터03.09 "/>
  194. <Column id="prtt_qty" type="STRING" size="256" sumtext="프린터계 "/>
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_main_fixasetdet_fixasettmplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  198. </Objects>
  199. <Bind>
  200. <BindItem id="item0" compid="group5.cmb_instcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="instcd"/>
  201. <BindItem id="item1" compid="group5.ipt_mngtdeptcd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="mngtdeptcd"/>
  202. <BindItem id="item2" compid="group5.ipt_mngtdeptnm_search" propid="value" datasetid="ds_send_fixasetlist" columnid="mngtdeptnm"/>
  203. <BindItem id="item3" compid="group5.ipt_possnfrdd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="possnfrdd"/>
  204. <BindItem id="item4" compid="group5.ipt_possntodd_search" propid="value" datasetid="ds_send_fixasetlist" columnid="possntodd"/>
  205. <BindItem id="item5" compid="group5.cmb_deptflag_search" propid="value" datasetid="ds_send_fixasetlist" columnid="deptflag"/>
  206. </Bind>
  207. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  208. * System Name :
  209. * Job Name :
  210. * Creator :
  211. * Make Date : 2017-06-19
  212. * Description :
  213. *---------------------------------------------------------------------------------------
  214. * Modify Date Modifier Modify Description
  215. *---------------------------------------------------------------------------------------
  216. * 2017-06-19 Live Converter TF->XP
  217. *
  218. *---------------------------------------------------------------------------------------
  219. ****************************************************************************************/
  220. include "com_commonxp::comm_main.xjs";
  221. include "mis_miscommonxp::MIS.xjs";
  222. function SMRFC00919_oninit(obj:Form, e:InitEventInfo)
  223. {
  224. frmf_initForm(obj);
  225. }
  226. function SMRFC00919_onload(obj:Form, e:LoadEventInfo)
  227. {
  228. grdf_initGrid(switch1.case_fixasetlist.grd_fixasetlist);
  229. fInitialize();
  230. }
  231. function fInitialize()
  232. {
  233. misfGridInit(switch1.case_fixasetlist.grd_fixasetlist);
  234. misfComboComCdListMulti("C0048,R0480", "group5.cmb_instcd_search,group5.cmb_deptflag_search");
  235. frmf_addComboItem("group5.cmb_deptflag_search", "전체", "", "above" );
  236. ds_send_fixasetlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
  237. ds_main_fixasetdet_fixasettmplist.clearData();
  238. ds_main_list_fixaset_fixasetlist.clearData();
  239. //misfMsterDetailSet(grd_fixasetlist, null, "TRRFC00919", "Y" , "byrow");
  240. var curdate = utlf_getCurrentDate();
  241. group5.ipt_possnfrdd_search.value = "20040101";
  242. group5.ipt_possntodd_search.value = curdate;
  243. }
  244. function ds_send_fixasetlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  245. {
  246. if(e.columnid == "mngtdeptcd")
  247. {
  248. group5.ipt_mngtdeptnm_search.setFocus();
  249. misfSearchDept(group5.ipt_mngtdeptnm_search);
  250. }
  251. }
  252. function group5_ipt_mngtdeptcd_search_onkeyup(obj:Edit, e:KeyEventInfo)
  253. {
  254. if(e.keycode == 13)
  255. {
  256. obj.updateToDataset();
  257. }
  258. }
  259. function group5_ipt_mngtdeptnm_search_onkeyup(obj:Edit, e:KeyEventInfo)
  260. {
  261. if(e.keycode == 13)
  262. {
  263. obj.updateToDataset();
  264. group5.btn_search.click();
  265. }
  266. }
  267. function group5_btn_mngtdeptcd_search_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. misfOpenPopUpList("02", group5.ipt_mngtdeptcd_search,"","mngtdeptcd,mngtdeptnm");
  270. }
  271. function group5_btn_search_onclick(obj:Button, e:ClickEventInfo)
  272. {
  273. var mngtdeptcd = ds_send_fixasetlist.getColumn(0, "mngtdeptcd");
  274. var deptflag = ds_send_fixasetlist.getColumn(0, "deptflag");
  275. if (utlf_isNull(mngtdeptcd))
  276. {
  277. ds_send_fixasetlist.setColumn(0, "mngtdeptcd",'%%');
  278. }
  279. if(utlf_isNull(deptflag))
  280. {
  281. ds_send_fixasetlist.setColumn(0, "deptflag",'%%');
  282. }
  283. misfGridInit(switch1.case_fixasetlist.grd_fixasetlist);
  284. var oParam = {};
  285. oParam.id = "TXRFC00919";
  286. oParam.service = "purcbaseapp.PurcBaseMngt";
  287. oParam.method = "reqGetYearFixAsetList";
  288. oParam.inds = "req=ds_send_fixasetlist";
  289. oParam.outds = "";
  290. oParam.async = false;
  291. //oParam.callback = "cf_TXRFC00919";
  292. tranf_submit(oParam);
  293. var oParam = {};
  294. oParam.id = "TRRFC00919";
  295. oParam.service = "purcbaseapp.PurcBaseMngt";
  296. oParam.method = "reqGetYearRfcmrepList";
  297. oParam.inds = "req=ds_send_fixasetlist";
  298. oParam.outds = "ds_main_list_fixaset_fixasetlist=fixasetlist";
  299. oParam.async = false;
  300. //oParam.callback = "cf_TRRFC00919";
  301. tranf_submit(oParam);
  302. if(ds_main_list_fixaset_fixasetlist.rowcount > 0)
  303. {
  304. ds_main_list_fixaset_fixasetlist.rowposition = 0;
  305. }
  306. else
  307. {
  308. ds_main_fixasetdet_fixasettmplist.clearData();
  309. }
  310. }
  311. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  312. {
  313. fInitialize();
  314. }
  315. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. if( ds_main_list_fixaset_fixasetlist.rowcount > 0)
  318. {
  319. var fileName = "년도별 자산현황_" + utlf_getCurrentDate();
  320. grdf_exportExcel(switch1.case_fixasetlist.grd_fixasetlist, fileName, "Sheet", "true", "", "");
  321. }
  322. else
  323. {
  324. sysf_messageBox("저장 데이터가","I004");
  325. }
  326. }
  327. ]]></Script>
  328. </Form>
  329. </FDL>