SMRBP00900_예산집행실적내역총괄(과별).xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>예산집행실적내역총괄(과별)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <datalist>
  12. <instcd/>
  13. <gubn/>
  14. <acntyy/>
  15. <deptcd/>
  16. <depthngnm/>
  17. <supacntnm2/>
  18. <supacntnm3/>
  19. <supacntnm4/>
  20. <acntnm/>
  21. <totalorgbugtamt/>
  22. <totalrevsupmbugtamt/>
  23. <jojungamt/>
  24. <aggregate/>
  25. <actionresult/>
  26. <actionbalance/>
  27. <balance/>
  28. <quarterexecut/>
  29. </datalist>
  30. </list>
  31. </main>
  32. <send>
  33. <retrparams>
  34. <instcd/>
  35. <acntyy/>
  36. <deptcd/>
  37. <depthngnm/>
  38. <bugtflag/>
  39. <quarter/>
  40. <todate/>
  41. </retrparams>
  42. <date/>
  43. <search>
  44. <nm/>
  45. </search>
  46. </send>
  47. <hidden>
  48. </hidden>
  49. <init>
  50. </init>
  51. <temp/>
  52. </root>
  53. </instance>
  54. <submission id="TRRBP00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  55. </model>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  61. <script type="javascript" src="../../../mis/bugtcommonweb/js/RBC001.js"/>
  62. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fQuarterChange();
  66. fCheckAuth();
  67. fInitialize();
  68. btn_search.dispatch("DOMActivate");
  69. ]]>
  70. </script>
  71. <script type="javascript">
  72. <![CDATA[
  73. var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
  74. var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
  75. var Deptcd = getUserInfo("dutplcecd");
  76. var Deptnm = getUserInfo("dutplcenm");
  77. //========================================================================================
  78. //화면 권한 체크
  79. //========================================================================================
  80. function fCheckAuth()
  81. {
  82. btn_search.disabled = !checkAuth("R") ;
  83. }
  84. //========================================================================================
  85. //초기화
  86. //========================================================================================
  87. function fInitialize()
  88. {
  89. model.removenode("/root/main/list/bugtexeclist");
  90. misfComboComCdListMulti("Z0007","cmb_instcd");
  91. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  92. //model.setValue("/root/send/date", getCurrentDate());
  93. model.setValue("/root/send/retrparams/todate", getCurrentDate());
  94. //racfGetCadlYmd("/root/send/date", "/root/temp");
  95. //ipt_acntyy.value = model.getValue("/root/temp/acntyy");
  96. model.setValue("/root/send/retrparams/deptcd", Deptcd);
  97. model.setValue("/root/send/retrparams/depthngnm", Deptnm);
  98. rdo_bugtflag.value = "2"
  99. if(getUserInfo("dutplceinstcd") != "001")
  100. {
  101. cmb_instcd.disabled = true;
  102. }
  103. model.setFocus("ipt_deptcd");
  104. model.refresh();
  105. }
  106. //========================================================================================
  107. //부서코드 Help Open
  108. //========================================================================================
  109. function fOpenPopupDeptHelp(pControl, pInstance)
  110. {
  111. misfOpenPopUpList("11", pControl, "", pInstance);
  112. model.refresh();
  113. }
  114. //========================================================================================
  115. //분기수정
  116. //========================================================================================
  117. function fQuarterChange()
  118. {
  119. if (ipt_acntyy.value >= ipt_acntyy.value.substr(0,4) + "0101" && ipt_acntyy.value <= ipt_acntyy.value.substr(0,4) + "0331"){
  120. model.setValue("/root/send/retrparams/quarter", "1");
  121. }else if (ipt_acntyy.value >= ipt_acntyy.value.substr(0,4) + "0401" && ipt_acntyy.value <= ipt_acntyy.value.substr(0,4) + "0630"){
  122. model.setValue("/root/send/retrparams/quarter", "2");
  123. }else if (ipt_acntyy.value >= ipt_acntyy.value.substr(0,4) + "0701" && ipt_acntyy.value <= ipt_acntyy.value.substr(0,4) + "0930"){
  124. model.setValue("/root/send/retrparams/quarter", "3");
  125. }else if (ipt_acntyy.value >= ipt_acntyy.value.substr(0,4) + "1001" && ipt_acntyy.value <= ipt_acntyy.value.substr(0,4) + "1231"){
  126. model.setValue("/root/send/retrparams/quarter", "4");
  127. }
  128. model.setValue("/root/send/retrparams/acntyy", ipt_acntyy.value.substr(0,4));
  129. model.refresh();
  130. }
  131. //========================================================================================
  132. //각종 코드 Help Open
  133. //========================================================================================
  134. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  135. {
  136. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  137. model.refresh();
  138. }
  139. //========================================================================================
  140. //출력
  141. //========================================================================================
  142. function fPrint()
  143. {
  144. exeReportPreview("RPRBP00901", "XMLSTR");
  145. model.refresh();
  146. }
  147. ]]>
  148. </script>
  149. </xhtml:head>
  150. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  151. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  152. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:250px; height:14px; ">예산집행실적내역총괄(과별)</caption>
  153. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  154. </group>
  155. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  156. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
  157. <group id="group2" style="left:0px; top:10px; width:1194px; height:40px; vertical-align:top; ">
  158. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  159. <caption id="caption9" class="search_name" style="left:280px; top:12px; width:93px; height:17px; ">예산년월 :</caption>
  160. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  161. <caption>조회</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. model.removeNodeset(grd_bugtexecist.nodeset);
  165. model.refresh();
  166. fQuarterChange();
  167. submit("TRRBP00901");
  168. for(var i = 0 ; i < grd_bugtexecist.rows ; i++)
  169. {
  170. if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "0"){
  171. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ff99cc";
  172. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "1"){
  173. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffcc99";
  174. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "2"){
  175. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffff99";
  176. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "3"){
  177. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ccffcc";
  178. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "4"){
  179. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#cc99ff";
  180. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "5"){
  181. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffffff";
  182. }
  183. }
  184. ]]>
  185. </script>
  186. </button>
  187. <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  188. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:11px; width:153px; height:19px; ">
  189. <choices>
  190. <itemset>
  191. <label/>
  192. <value/>
  193. </itemset>
  194. </choices>
  195. </select1>
  196. <caption id="caption8" class="search_name" style="left:14px; top:12px; width:86px; height:17px; ">소속기관 :</caption>
  197. <select1 id="rdo_bugtflag" ref="/root/send/retrparams/bugtflag" navindex="27" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:579px; top:11px; width:206px; height:20px; border-style:none; ">
  198. <choices>
  199. <item>
  200. <label>수입</label>
  201. <value>1</value>
  202. </item>
  203. <item>
  204. <label>비용</label>
  205. <value>2</value>
  206. </item>
  207. <item>
  208. <label>구매</label>
  209. <value>3</value>
  210. </item>
  211. <item>
  212. <label>자본</label>
  213. <value>4</value>
  214. </item>
  215. </choices>
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. btn_search.dispatch("DOMActivate");
  219. ]]>
  220. </script>
  221. </select1>
  222. <caption id="caption5" class="search_name" style="left:490px; top:12px; width:87px; height:17px; ">예산구분 :</caption>
  223. <input id="ipt_acntyy" ref="/root/send/retrparams/todate" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:371px; top:11px; width:100px; height:19px; text-align:center; ">
  224. <script type="javascript" ev:event="xforms-value-changed">
  225. <![CDATA[
  226. btn_search.dispatch("DOMActivate");
  227. ]]>
  228. </script>
  229. </input>
  230. <button id="button4" class="btn2_letter2" style="left:1010px; top:11px; width:42px; height:19px; ">
  231. <caption>찾기</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. var vPrntnmCol = grd_bugtexecist.colRef("depthngnm");
  235. var searchnm = model.getValue("/root/send/search/nm");
  236. var findRow = grd_bugtexecist.findRow(searchnm, 1, vPrntnmCol, false, false);
  237. grd_bugtexecist.row = findRow;
  238. ]]>
  239. </script>
  240. </button>
  241. <caption id="caption1" class="search_name" style="left:810px; top:12px; width:111px; height:17px; ">조 회 :</caption>
  242. <input id="input1" ref="/root/send/search/nm" class="input_s_essential" navindex="2" maxlength="10" style="left:875px; top:11px; width:130px; height:19px; ">
  243. <script type="javascript" ev:event="onkeypress">
  244. <![CDATA[
  245. if(event.keyCode == 13)
  246. {
  247. inputEnterKey("button4", "DOMActivate");
  248. }
  249. ]]>
  250. </script>
  251. </input>
  252. </group>
  253. <caption id="caption2" class="tit_2" style="left:5px; top:65px; width:185px; height:14px; ">예산집행실적내역총괄(과별)</caption>
  254. <datagrid id="grd_bugtexecist" nodeset="/root/main/list/datalist" caption="기관코드^구분^예산연도^부서코드^부서명^계정과목^계정과목^계정과목^계정과목^예산액^추경후예산액^조정후예산액^배정누계^집행실적^집행잔액^배정잔액^집행율|기관코드^구분^예산연도^부서코드^부서명^관^항^목^세목^예산액^추경후예산액^조정후예산액^배정누계^집행실적^집행잔액^배정잔액^집행율" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:80px; width:1190px; height:645px; ">
  255. <col ref="instcd" visibility="hidden"/>
  256. <col ref="gubn" visibility="hidden"/>
  257. <col ref="acntyy" visibility="hidden" style="background-color:#ffffff; "/>
  258. <col ref="deptcd" visibility="hidden" style="background-color:#ffffff; "/>
  259. <col ref="depthngnm"/>
  260. <col ref="supacntnm2"/>
  261. <col ref="supacntnm3"/>
  262. <col ref="supacntnm4"/>
  263. <col ref="acntnm"/>
  264. <col ref="totalorgbugtamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  265. <col ref="totalrevsupmbugtamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  266. <col ref="jojungamt" format="(-)#,###" style="text-align:right; "/>
  267. <col ref="aggregate" format="(-)#,###" style="text-align:right; "/>
  268. <col ref="actionresult" format="(-)#,###" style="text-align:right; "/>
  269. <col ref="actionbalance" format="(-)#,###" style="text-align:right; "/>
  270. <col ref="balance" format="(-)#,###" style="text-align:right; "/>
  271. <col ref="quarterexecut" format="###.##" style="text-align:right; "/>
  272. </datagrid>
  273. <button id="btn_5" class="btn2_letter4" style="left:1125px; top:60px; width:64px; height:19px; text-align:left; ">
  274. <caption>엑셀출력</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  278. grd_bugtexecist.saveExcel(fileName,"SheetName:sheet1");
  279. //radfSaveExcel(grd_exceloutput1);
  280. ]]>
  281. </script>
  282. </button>
  283. </group>
  284. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  285. <line id="line5" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  286. <button id="btn_print" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  287. <caption>출력</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. fPrint();
  291. ]]>
  292. </script>
  293. </button>
  294. </group>
  295. </xhtml:body>
  296. </xhtml:html>