SMRBP01100_예산조정총괄.xrw 15 KB

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