SMRBP00400_예산실적대비표.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  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. <bugtexeclist/>
  12. </list>
  13. </main>
  14. <send>
  15. <retrparams>
  16. <instcd/>
  17. <acntyy/>
  18. <retrkind>dept</retrkind>
  19. <acntcd/>
  20. <acntnm/>
  21. </retrparams>
  22. <date/>
  23. <retrprarms2>
  24. <instcd/>
  25. <mngtcd>%</mngtcd>
  26. </retrprarms2>
  27. </send>
  28. <hidden>
  29. </hidden>
  30. <init>
  31. <code>
  32. <codelist/>
  33. </code>
  34. </init>
  35. <temp/>
  36. </root>
  37. </instance>
  38. <submission id="TRRBP00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  39. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrprarms2" resultref="/root/init/code/codelist"/>
  40. </model>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  46. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fCheckAuth();
  50. fInitialize();
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
  56. var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
  57. //========================================================================================
  58. //화면 권한 체크
  59. //========================================================================================
  60. function fCheckAuth()
  61. {
  62. btn_search.disabled = !checkAuth("R") ;
  63. }
  64. //========================================================================================
  65. //초기화
  66. //========================================================================================
  67. function fInitialize()
  68. {
  69. model.removenode("/root/main/list/bugtexeclist");
  70. misfComboComCdListMulti("Z0007","cmb_instcd");
  71. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  72. model.setValue("/root/send/date", getCurrentDate());
  73. racfGetCadlYmd("/root/send/date", "/root/temp");
  74. ipt_acntyy.value = model.getValue("/root/temp/acntyy");
  75. if(getUserInfo("dutplceinstcd") != "001")
  76. {
  77. cmb_instcd.disabled = true;
  78. }
  79. model.setValue("/root/send/retrprarms2/instcd", getUserInfo("dutplceinstcd"));
  80. submit("TRRAZ00001");
  81. for (i=1; i<=instance1.selectNodes("root/init/code/code/codelist").length; i++)
  82. {
  83. cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
  84. if (cdgbn == "acntdept")
  85. {
  86. acntdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  87. }
  88. else if (cdgbn == "bugtdept")
  89. {
  90. bugtdept = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  91. }
  92. }
  93. rdo_retrkind.dispatch("xforms-value-changed");
  94. model.setFocus("ipt_acntnm");
  95. model.refresh();
  96. }
  97. //========================================================================================
  98. //각종 코드 Help Open
  99. //========================================================================================
  100. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  101. {
  102. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  103. model.refresh();
  104. }
  105. //========================================================================================
  106. //코드 Validation Check
  107. //========================================================================================
  108. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
  109. {
  110. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  111. {
  112. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  113. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
  114. model.refresh();
  115. model.setFocus(pNextIndex);
  116. }
  117. }
  118. function fPrint()
  119. {
  120. exeReportPreview("RPRBP00401", "XMLSTR");
  121. model.refresh();
  122. }
  123. ]]>
  124. </script>
  125. </xhtml:head>
  126. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  127. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  128. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">예산집행실적총괄(월별)</caption>
  129. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  130. </group>
  131. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  132. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
  133. <group id="group2" style="left:0px; top:10px; width:1194px; height:40px; vertical-align:top; ">
  134. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  135. <caption id="caption9" class="search_name" style="left:270px; top:11px; width:86px; height:17px; ">예산년도 :</caption>
  136. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  137. <caption>조회</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. if(rdo_retrkind.value == "dept" && !(getUserInfo("dutplcecd") == model.getValue(ipt_acntcd.attribute("ref"))
  141. || radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_acntcd.attribute("ref")), 'BUGTSEARCHYN') == "Y"
  142. || getUserInfo("dutplcecd") == bugtdept) )
  143. {
  144. messageBox("조회권한이 없습니다.", "I000");
  145. }
  146. else
  147. {
  148. model.removeNodeset(grd_bugtexecist.nodeset);
  149. model.refresh();
  150. submit("TRRBP00401");
  151. grd_bugtexecist.rebuildStyle();
  152. grd_bugtexecist.rowStyle(grd_bugtexecist.rows - 1, "data", "background-color") = "#ffff99";
  153. }
  154. for(var i = grd_bugtexecist.fixedRows ; i < grd_bugtexecist.rows ; i++)
  155. {
  156. if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("acntcd")) == "99999999")
  157. {
  158. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ccffcc";
  159. }
  160. if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("deptcd")) == "9999999999")
  161. {
  162. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffff99";
  163. }
  164. }
  165. ]]>
  166. </script>
  167. </button>
  168. <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  169. <input id="ipt_acntcd" ref="/root/send/retrparams/acntcd" class="input_s_essential" navindex="5" maxlength="10" style="left:707px; top:11px; width:85px; height:19px; text-align:center; ">
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. if(rdo_retrkind.value == "dept")
  173. {
  174. racfDeptValidCheck("acntcd,acntnm");
  175. }
  176. else if(rdo_retrkind.value == "acnt")
  177. {
  178. racfAcntValidCheck("acntcd,acntnm");
  179. }
  180. else if(rdo_retrkind.value == "projectid")
  181. {
  182. }
  183. ]]>
  184. </script>
  185. </input>
  186. <button id="btn_acntcd" class="icon_search" style="left:796px; top:13px; width:16px; height:16px; ">
  187. <caption/>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. if(rdo_retrkind.value == "dept")
  191. {
  192. fOpenPopupHelp("11", ipt_acntcd, "acntcd,acntnm", "", cmb_instcd.value, "instcd");
  193. }
  194. else if(rdo_retrkind.value == "acnt")
  195. {
  196. fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", cmb_instcd.value, "instcd");
  197. }
  198. else if(rdo_retrkind.value == "projectid")
  199. {
  200. // fOpenPopupHelp("02", ipt_acntcd, "acntcd,acntnm", "", cmb_instcd.value, "instcd");
  201. }
  202. ]]>
  203. </script>
  204. </button>
  205. <input id="ipt_acntnm" ref="/root/send/retrparams/acntnm" class="input_s_essential" navindex="4" imemode="hangul" style="left:815px; top:11px; width:185px; height:19px; ">
  206. <script type="javascript" ev:event="onkeypress">
  207. <![CDATA[
  208. if (event.keyCode == "13")
  209. {
  210. if(rdo_retrkind.value == "dept")
  211. {
  212. racfDeptValidCheck("acntcd,acntnm");
  213. }
  214. else if(rdo_retrkind.value == "acnt")
  215. {
  216. racfAcntValidCheck("acntcd,acntnm");
  217. }
  218. else if(rdo_retrkind.value == "projectid")
  219. {
  220. }
  221. btn_search.dispatch("DOMActivate");
  222. }
  223. ]]>
  224. </script>
  225. <script type="javascript" ev:event="xforms-value-changed">
  226. <![CDATA[
  227. if(rdo_retrkind.value == "dept")
  228. {
  229. racfDeptValidCheck("acntcd,acntnm");
  230. }
  231. else if(rdo_retrkind.value == "acnt")
  232. {
  233. racfAcntValidCheck("acntcd,acntnm");
  234. }
  235. else if(rdo_retrkind.value == "projectid")
  236. {
  237. }
  238. ]]>
  239. </script>
  240. </input>
  241. <input id="ipt_acntyy" ref="/root/send/retrparams/acntyy" class="input_s_essential" navindex="2" style="left:360px; top:11px; width:100px; height:19px; text-align:center; "/>
  242. <select1 id="rdo_retrkind" ref="/root/send/retrparams/retrkind" navindex="3" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:498px; top:12px; width:209px; height:20px; border-style:none; ">
  243. <choices>
  244. <item>
  245. <label>부서별</label>
  246. <value>dept</value>
  247. </item>
  248. <item>
  249. <label>계정별</label>
  250. <value>acnt</value>
  251. </item>
  252. <item>
  253. <label>Project 별</label>
  254. <value>project</value>
  255. </item>
  256. </choices>
  257. <script type="javascript" ev:event="xforms-value-changed">
  258. <![CDATA[
  259. if(rdo_retrkind.value == "dept")
  260. {
  261. ipt_acntcd.attribute("maxlength") = 10;
  262. model.setValue(ipt_acntcd.attribute("ref"), getUserInfo("dutplcecd"));
  263. model.setValue(ipt_acntnm.attribute("ref"), getUserInfo("dutplcenm"));
  264. }
  265. else if(rdo_retrkind.value == "acnt")
  266. {
  267. ipt_acntcd.attribute("maxlength") = 8;
  268. }
  269. else if(rdo_retrkind.value == "project")
  270. {
  271. ipt_acntcd.attribute("maxlength") = 20;
  272. }
  273. ]]>
  274. </script>
  275. </select1>
  276. <caption id="caption1" class="search_name" style="left:475px; top:11px; width:15px; height:17px; "/>
  277. <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; ">
  278. <choices>
  279. <itemset>
  280. <label/>
  281. <value/>
  282. </itemset>
  283. </choices>
  284. </select1>
  285. <caption id="caption8" class="search_name" style="left:14px; top:12px; width:86px; height:17px; ">소속기관 :</caption>
  286. </group>
  287. <caption id="caption2" class="tit_2" style="left:5px; top:65px; width:159px; height:14px; ">예산집행실적총괄(월별)</caption>
  288. <datagrid id="grd_bugtexecist" nodeset="/root/main/list/bugtexeclist" caption="기관코드^기관명^예산년도^부서코드^부 서^계정코드^계정과목^예산금액^조정금액^추경금액^예산합계^실적합계^잔액^3월 실적^4월 실적^5월 실적^6월 실적^7월 실적^8월 실적^9월 실적^10월 실적^11월 실적^12월 실적^1월 실적^2월 실적" colsep="^" colwidth="0, 0, 0, 0, 120, 0, 140, 90, 90, 90, 80, 90, 90, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" dataheight="25" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:85px; width:1195px; height:651px; ">
  289. <col ref="instcd" visibility="hidden"/>
  290. <col ref="instnm" visibility="hidden"/>
  291. <col ref="acntyy" visibility="hidden"/>
  292. <col ref="deptcd" visibility="hidden"/>
  293. <col ref="deptnm"/>
  294. <col ref="acntcd" visibility="hidden"/>
  295. <col ref="acntnm"/>
  296. <col ref="orgbugtamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  297. <col ref="updtamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  298. <col ref="revsupmbugtamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  299. <col ref="bugtsumamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  300. <col ref="execsum" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  301. <col ref="balamt" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  302. <col ref="mar" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  303. <col ref="apr" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  304. <col ref="may" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  305. <col ref="jun" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  306. <col ref="jul" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  307. <col ref="aug" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  308. <col ref="sep" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  309. <col ref="oct" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  310. <col ref="nov" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  311. <col ref="dec" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  312. <col ref="jan" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  313. <col ref="feb" format="(-)#,###" style="text-align:right; padding-right:1; "/>
  314. </datagrid>
  315. <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:55px; width:64px; height:19px; text-align:left; ">
  316. <caption>엑셀출력</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. var sInstnm = "[" + cmb_instcd.label + "]";
  320. var sAcntyy = model.getValue(ipt_acntyy.attribute("ref")) + "회계년도";
  321. var sTitle = "예산실적 대비표 " + sInstnm + sAcntyy;
  322. grd_bugtexecist.rebuild();
  323. misfSaveExcel(grd_bugtexecist, sTitle);
  324. ]]>
  325. </script>
  326. </button>
  327. </group>
  328. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  329. <line id="line5" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  330. <button id="btn_print" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  331. <caption>출력</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. fPrint();
  335. ]]>
  336. </script>
  337. </button>
  338. </group>
  339. </xhtml:body>
  340. </xhtml:html>