SMRBP00700_예산집행실적총괄.xrw 13 KB

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