SMRBP01400_예산배정내역과별총괄.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <acntyy/>
  13. <deptcd/>
  14. <deptnm/>
  15. <bugtflag/>
  16. <supacntnm2/>
  17. <supacntnm3/>
  18. <supacntnm4/>
  19. <acntnm/>
  20. <totalorgbugtamt/>
  21. <totalrevsupmbugtamt/>
  22. <aggregate/>
  23. <jojungamt/>
  24. <balance/>
  25. <gubn/>
  26. </datalist>
  27. <datatotal>
  28. <totalorgbugttot/>
  29. <totalrevsupmbugttot/>
  30. <balancetot/>
  31. <jojungtot/>
  32. <aggregatetot/>
  33. </datatotal>
  34. </list>
  35. </main>
  36. <main1>
  37. <titleform>
  38. <deptnm/>
  39. <deptcd/>
  40. </titleform>
  41. <list>
  42. <deptlist>
  43. <col1/>
  44. <col2/>
  45. <col3/>
  46. <col4/>
  47. <col5/>
  48. <col6/>
  49. <col7/>
  50. <col8/>
  51. <col9/>
  52. <col10/>
  53. <col11/>
  54. <col12/>
  55. <col13/>
  56. <col14/>
  57. </deptlist>
  58. </list>
  59. </main1>
  60. <send>
  61. <retrparams>
  62. <instcd/>
  63. <acntyy/>
  64. <deptcd/>
  65. <depthngnm/>
  66. <bugtflag/>
  67. </retrparams>
  68. <date/>
  69. <search>
  70. <nm/>
  71. </search>
  72. </send>
  73. <hidden>
  74. </hidden>
  75. <init>
  76. </init>
  77. <temp/>
  78. </root>
  79. </instance>
  80. <submission id="TRRBP01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  81. <submission id="TRRBP01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main1"/>
  82. </model>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  87. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  88. <script type="javascript" src="../../../mis/bugtcommonweb/js/RBC001.js"/>
  89. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. fCheckAuth();
  93. fInitialize();
  94. ]]>
  95. </script>
  96. <script type="javascript">
  97. <![CDATA[
  98. var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
  99. var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
  100. var Deptcd = getUserInfo("dutplcecd");
  101. var Deptnm = getUserInfo("dutplcenm");
  102. //========================================================================================
  103. //화면 권한 체크
  104. //========================================================================================
  105. function fCheckAuth()
  106. {
  107. btn_search.disabled = !checkAuth("R") ;
  108. }
  109. //========================================================================================
  110. //초기화
  111. //========================================================================================
  112. function fInitialize()
  113. {
  114. model.removenode("/root/main/list/bugtexeclist");
  115. misfComboComCdListMulti("Z0007","cmb_instcd");
  116. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  117. model.setValue("/root/send/date", getCurrentDate());
  118. racfGetCadlYmd("/root/send/date", "/root/temp");
  119. ipt_acntyy.value = model.getValue("/root/temp/acntyy");
  120. model.setValue("/root/send/retrparams/deptcd", Deptcd);
  121. model.setValue("/root/send/retrparams/depthngnm", Deptnm);
  122. rdo_bugtflag.value = "2"
  123. if(getUserInfo("dutplceinstcd") != "001")
  124. {
  125. cmb_instcd.disabled = true;
  126. }
  127. model.setFocus("ipt_deptcd");
  128. model.refresh();
  129. }
  130. //========================================================================================
  131. //부서코드 Help Open
  132. //========================================================================================
  133. function fOpenPopupDeptHelp(pControl, pInstance)
  134. {
  135. misfOpenPopUpList("11", pControl, "", pInstance);
  136. model.refresh();
  137. }
  138. //========================================================================================
  139. //캡션셋팅
  140. //========================================================================================
  141. function fDeptList()
  142. {
  143. submit("TRRBP01402");
  144. var icnt = parseInt(getNodesetCount("/root/main1/titleform/deptnm")) + 1;
  145. /* var scaption = "기관코드^구분^예산연도^부서코드^예산구분^관^항^목^세목^예산액^추경예산액^배정잔액";
  146. var k = 0;
  147. for (var i = 1; i < icnt; i++){
  148. scaption = scaption + "^" + model.getValue("/root/main1/titleform["+ i +"]/deptnm");
  149. k = parseInt(k) + 1;
  150. }
  151. if (k < 15){
  152. for (var i = parseInt(k + 1); i < 15; i++){
  153. scaption = scaption + "^" + "";
  154. }
  155. }
  156. scaption = scaption + "^" + "배정누계";
  157. grd_bugtexecist.caption = scaption; */
  158. for (var i = 1; i < icnt; i++){
  159. model.makeValue("/root/main1/list/deptlist/col1", model.getValue("/root/main1/titleform["+ 1 +"]/deptnm"));
  160. model.makeValue("/root/main1/list/deptlist/col2", model.getValue("/root/main1/titleform["+ 2 +"]/deptnm"));
  161. model.makeValue("/root/main1/list/deptlist/col3", model.getValue("/root/main1/titleform["+ 3 +"]/deptnm"));
  162. model.makeValue("/root/main1/list/deptlist/col4", model.getValue("/root/main1/titleform["+ 4 +"]/deptnm"));
  163. model.makeValue("/root/main1/list/deptlist/col5", model.getValue("/root/main1/titleform["+ 5 +"]/deptnm"));
  164. model.makeValue("/root/main1/list/deptlist/col6", model.getValue("/root/main1/titleform["+ 6 +"]/deptnm"));
  165. model.makeValue("/root/main1/list/deptlist/col7", model.getValue("/root/main1/titleform["+ 7 +"]/deptnm"));
  166. model.makeValue("/root/main1/list/deptlist/col8", model.getValue("/root/main1/titleform["+ 8 +"]/deptnm"));
  167. model.makeValue("/root/main1/list/deptlist/col9", model.getValue("/root/main1/titleform["+ 9 +"]/deptnm"));
  168. model.makeValue("/root/main1/list/deptlist/col10", model.getValue("/root/main1/titleform["+ 10 +"]/deptnm"));
  169. model.makeValue("/root/main1/list/deptlist/col11", model.getValue("/root/main1/titleform["+ 11 +"]/deptnm"));
  170. model.makeValue("/root/main1/list/deptlist/col12", model.getValue("/root/main1/titleform["+ 12 +"]/deptnm"));
  171. model.makeValue("/root/main1/list/deptlist/col13", model.getValue("/root/main1/titleform["+ 13 +"]/deptnm"));
  172. model.makeValue("/root/main1/list/deptlist/col14", model.getValue("/root/main1/titleform["+ 14 +"]/deptnm"));
  173. }
  174. }
  175. //========================================================================================
  176. //각종 코드 Help Open
  177. //========================================================================================
  178. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  179. {
  180. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  181. model.refresh();
  182. }
  183. //========================================================================================
  184. //출력
  185. //========================================================================================
  186. function fPrint()
  187. {
  188. exeReportPreview("RPRBP01401", "XMLSTR");
  189. model.refresh();
  190. }
  191. ]]>
  192. </script>
  193. </xhtml:head>
  194. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  195. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  196. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:250px; height:14px; ">예산배정총괄(과별)</caption>
  197. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  198. </group>
  199. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  200. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
  201. <group id="group2" style="left:0px; top:10px; width:1194px; height:40px; vertical-align:top; ">
  202. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  203. <caption id="caption9" class="search_name" style="left:280px; top:12px; width:86px; height:17px; ">예산년도 :</caption>
  204. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  205. <caption>조회</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. model.removeNodeset(grd_bugtexecist.nodeset);
  209. model.removeNodeset("/root/main/list/datatotal"); //2011.06.14 박준범 추가 - 총합계 nodeset
  210. fDeptList();
  211. submit("TRRBP01401");
  212. for(var i = 0 ; i < grd_bugtexecist.rows ; i++)
  213. {
  214. if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "0"){
  215. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ff99cc";
  216. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "1"){
  217. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffcc99";
  218. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "2"){
  219. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffff99";
  220. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "3"){
  221. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ccffcc";
  222. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "4"){
  223. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#cc99ff";
  224. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "5"){
  225. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffffff";
  226. }
  227. }
  228. ]]>
  229. </script>
  230. </button>
  231. <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  232. <input id="ipt_acntyy" ref="/root/send/retrparams/acntyy" class="input_s_essential" navindex="2" style="left:370px; top:11px; width:100px; height:19px; text-align:center; "/>
  233. <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; ">
  234. <choices>
  235. <itemset>
  236. <label/>
  237. <value/>
  238. </itemset>
  239. </choices>
  240. </select1>
  241. <caption id="caption8" class="search_name" style="left:14px; top:12px; width:86px; height:17px; ">소속기관 :</caption>
  242. <select1 id="rdo_bugtflag" ref="/root/send/retrparams/bugtflag" navindex="27" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:584px; top:11px; width:206px; height:20px; border-style:none; ">
  243. <choices>
  244. <item>
  245. <label>수입</label>
  246. <value>1</value>
  247. </item>
  248. <item>
  249. <label>비용</label>
  250. <value>2</value>
  251. </item>
  252. <item>
  253. <label>구매</label>
  254. <value>3</value>
  255. </item>
  256. <item>
  257. <label>자본</label>
  258. <value>4</value>
  259. </item>
  260. </choices>
  261. <script type="javascript" ev:event="xforms-value-changed">
  262. <![CDATA[
  263. btn_search.dispatch("DOMActivate");
  264. ]]>
  265. </script>
  266. </select1>
  267. <caption id="caption5" class="search_name" style="left:495px; top:12px; width:87px; height:17px; ">예산구분 :</caption>
  268. <button id="button4" class="btn2_letter2" style="left:1025px; top:11px; width:42px; height:19px; ">
  269. <caption>찾기</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. var vPrntnmCol = grd_bugtexecist.colRef("acntnm");
  273. var searchnm = model.getValue("/root/send/search/nm");
  274. var findRow = grd_bugtexecist.findRow(searchnm, 1, vPrntnmCol, false, false);
  275. grd_bugtexecist.row = findRow;
  276. ]]>
  277. </script>
  278. </button>
  279. <caption id="caption1" class="search_name" style="left:820px; top:12px; width:111px; height:17px; ">조 회 :</caption>
  280. <input id="input1" ref="/root/send/search/nm" class="input_s_essential" navindex="2" maxlength="10" style="left:890px; top:11px; width:130px; height:19px; ">
  281. <script type="javascript" ev:event="onkeypress">
  282. <![CDATA[
  283. if(event.keyCode == 13)
  284. {
  285. inputEnterKey("button4", "DOMActivate");
  286. }
  287. ]]>
  288. </script>
  289. </input>
  290. </group>
  291. <caption id="caption2" class="tit_2" style="left:5px; top:65px; width:147px; height:14px; ">예산배정총괄(과별)</caption>
  292. <datagrid id="grd_bugtexecist" nodeset="/root/main/list/datalist" caption="예산연도^부서코드^부서명^예산구분^관^항^목^세목^예산액^추경후예산액^배정액^배정잔액^조정후배정액^구분^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23^caption24^caption25^caption26^caption27^caption28^caption29^caption30^배정누계" colsep="^" colwidth="100, 100, 100, 100, 120, 120, 120, 183, 100, 100, 100, 100, 100, 100" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:85px; width:1194px; height:620px; ">
  293. <col ref="acntyy" visibility="hidden"/>
  294. <col ref="deptcd" visibility="hidden"/>
  295. <col ref="deptnm" style="vertical-align:top; padding-top:3; "/>
  296. <col ref="bugtflag" visibility="hidden"/>
  297. <col ref="supacntnm2" style="vertical-align:top; padding-top:3; "/>
  298. <col ref="supacntnm3" style="vertical-align:top; padding-top:3; "/>
  299. <col ref="supacntnm4" style="vertical-align:top; padding-top:3; "/>
  300. <col ref="acntnm"/>
  301. <col ref="totalorgbugtamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  302. <col ref="totalrevsupmbugtamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  303. <col ref="aggregate" format="(-)#,###" style="text-align:right; "/>
  304. <col ref="balance" format="(-)#,###" style="text-align:right; "/>
  305. <col ref="jojungamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  306. <col ref="gubn" visibility="hidden"/>
  307. </datagrid>
  308. <button id="btn_5" class="btn2_letter4" style="left:1125px; top:60px; width:64px; height:19px; text-align:left; ">
  309. <caption>엑셀출력</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  313. grd_bugtexecist.saveExcel(fileName,"SheetName:sheet1");
  314. //radfSaveExcel(grd_exceloutput1);
  315. ]]>
  316. </script>
  317. </button>
  318. <caption id="caption7" class="cell_1" style="left:25px; top:713px; width:55px; height:23px; vertical-align:middle; ">예산액 :</caption>
  319. <output id="output2" ref="/root/main/list/datatotal/totalorgbugttot" class="output_fix" format="(-)#,###" style="left:80px; top:715px; width:150px; height:19px; text-align:right; "/>
  320. <caption id="caption3" class="cell_1" style="left:245px; top:713px; width:80px; height:23px; vertical-align:middle; ">추경후예산 :</caption>
  321. <output id="output1" ref="/root/main/list/datatotal/totalrevsupmbugttot" class="output_fix" format="(-)#,###" style="left:325px; top:715px; width:150px; height:19px; text-align:right; "/>
  322. <caption id="caption10" class="cell_1" style="left:490px; top:713px; width:55px; height:23px; vertical-align:middle; ">배정액 :</caption>
  323. <output id="output3" ref="/root/main/list/datatotal/aggregatetot" class="output_fix" format="(-)#,###" style="left:545px; top:715px; width:150px; height:19px; text-align:right; "/>
  324. <caption id="caption11" class="cell_1" style="left:710px; top:713px; width:65px; height:23px; vertical-align:middle; ">배정잔액 :</caption>
  325. <output id="output4" ref="/root/main/list/datatotal/balancetot" class="output_fix" format="(-)#,###" style="left:775px; top:715px; width:150px; height:19px; text-align:right; "/>
  326. <output id="output5" ref="/root/main/list/datatotal/jojungtot" class="output_fix" format="(-)#,###" style="left:1025px; top:715px; width:150px; height:19px; text-align:right; "/>
  327. <caption id="caption12" class="cell_1" style="left:945px; top:713px; width:79px; height:23px; vertical-align:middle; ">조정후배정 :</caption>
  328. </group>
  329. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  330. <line id="line5" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  331. <button id="btn_print" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  332. <caption>출력</caption>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. fPrint();
  336. ]]>
  337. </script>
  338. </button>
  339. </group>
  340. </xhtml:body>
  341. </xhtml:html>