SMRBP00800_분기별예산배정내역서.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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. <instcd/>
  13. <gubn/>
  14. <acntyy/>
  15. <deptcd/>
  16. <supacntnm2/>
  17. <supacntnm3/>
  18. <supacntnm4/>
  19. <acntnm/>
  20. <totalorgbugtamt/>
  21. <orgbugtamt1/>
  22. <orgbugtamt2/>
  23. <orgbugtamt3/>
  24. <orgbugtamt4/>
  25. <balance/>
  26. <revsupmbugtamt1/>
  27. <revsupmbugtamt2/>
  28. <revsupmbugtamt3/>
  29. <revsupmbugtamt4/>
  30. <aggregate/>
  31. </datalist>
  32. </list>
  33. </main>
  34. <send>
  35. <retrparams>
  36. <instcd/>
  37. <acntyy/>
  38. <deptcd/>
  39. <depthngnm/>
  40. <bugtflag/>
  41. <quarter/>
  42. </retrparams>
  43. <date/>
  44. <search>
  45. <nm/>
  46. </search>
  47. </send>
  48. <hidden>
  49. </hidden>
  50. <init>
  51. <baseinfo>
  52. <quarter>
  53. <cd>1</cd>
  54. <nm>1분기</nm>
  55. </quarter>
  56. <quarter>
  57. <cd>2</cd>
  58. <nm>2분기</nm>
  59. </quarter>
  60. <quarter>
  61. <cd>3</cd>
  62. <nm>3분기</nm>
  63. </quarter>
  64. <quarter>
  65. <cd>4</cd>
  66. <nm>4분기</nm>
  67. </quarter>
  68. </baseinfo>
  69. </init>
  70. <temp/>
  71. </root>
  72. </instance>
  73. <submission id="TRRBP00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  74. </model>
  75. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  79. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  80. <script type="javascript" src="../../../mis/bugtcommonweb/js/RBC001.js"/>
  81. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. fCheckAuth();
  85. fInitialize();
  86. ]]>
  87. </script>
  88. <script type="javascript">
  89. <![CDATA[
  90. var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
  91. var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
  92. var Deptcd = getUserInfo("dutplcecd");
  93. var Deptnm = getUserInfo("dutplcenm");
  94. //========================================================================================
  95. //화면 권한 체크
  96. //========================================================================================
  97. function fCheckAuth()
  98. {
  99. btn_search.disabled = !checkAuth("R") ;
  100. }
  101. //========================================================================================
  102. //초기화
  103. //========================================================================================
  104. function fInitialize()
  105. {
  106. model.removenode("/root/main/list/bugtexeclist");
  107. misfComboComCdListMulti("Z0007","cmb_instcd");
  108. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  109. model.setValue("/root/send/date", getCurrentDate());
  110. racfGetCadlYmd("/root/send/date", "/root/temp");
  111. /*if (getCurrentDate().substr(4,4) >='0101' && getCurrentDate().substr(4,4) <='0331'){
  112. model.setValue("/root/send/retrparams/quarter", "1");
  113. }else if (getCurrentDate().substr(4,4) >='0401' && getCurrentDate().substr(4,4) <='0630'){
  114. model.setValue("/root/send/retrparams/quarter", "2");
  115. }else if (getCurrentDate().substr(4,4) >='0701' && getCurrentDate().substr(4,4) <='0930'){
  116. model.setValue("/root/send/retrparams/quarter", "3");
  117. }else if (getCurrentDate().substr(4,4) >='1001' && getCurrentDate().substr(4,4) <='1231'){
  118. model.setValue("/root/send/retrparams/quarter", "4");
  119. } */
  120. ipt_acntyy.value = model.getValue("/root/temp/acntyy");
  121. model.setValue("/root/send/retrparams/deptcd", Deptcd);
  122. model.setValue("/root/send/retrparams/depthngnm", Deptnm);
  123. rdo_bugtflag.value = "2"
  124. if(getUserInfo("dutplceinstcd") != "001")
  125. {
  126. cmb_instcd.disabled = true;
  127. }
  128. model.setFocus("ipt_deptcd");
  129. model.refresh();
  130. }
  131. //========================================================================================
  132. //부서코드 Help Open
  133. //========================================================================================
  134. function fOpenPopupDeptHelp(pControl, pInstance)
  135. {
  136. misfOpenPopUpList("11", pControl, "", pInstance);
  137. model.refresh();
  138. }
  139. //========================================================================================
  140. //각종 코드 Help Open
  141. //========================================================================================
  142. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  143. {
  144. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  145. model.refresh();
  146. }
  147. //========================================================================================
  148. //출력
  149. //========================================================================================
  150. function fPrint()
  151. {
  152. exeReportPreview("RPRBP00801", "XMLSTR");
  153. model.refresh();
  154. }
  155. ]]>
  156. </script>
  157. </xhtml:head>
  158. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:250px; height:14px; ">분기별예산배정내역서</caption>
  161. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  162. </group>
  163. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  164. <line id="line1" class="line_1" style="x1:0px; y1:110px; x2:1195px; y2:110px; "/>
  165. <group id="group2" style="left:0px; top:10px; width:1194px; height:70px; vertical-align:top; ">
  166. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  167. <caption id="caption9" class="search_name" style="left:365px; top:10px; width:86px; height:17px; ">예산년도 :</caption>
  168. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1123px; top:24px; width:56px; height:22px; text-align:left; ">
  169. <caption>조회</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. model.removeNodeset(grd_bugtexecist.nodeset);
  173. model.refresh();
  174. submit("TRRBP00801");
  175. for(var i = 0 ; i < grd_bugtexecist.rows ; i++)
  176. {
  177. if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "0"){
  178. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ff99cc";
  179. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "1"){
  180. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffcc99";
  181. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "2"){
  182. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffff99";
  183. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "3"){
  184. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ccffcc";
  185. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "4"){
  186. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#cc99ff";
  187. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "5"){
  188. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffffff";
  189. }
  190. }
  191. ]]>
  192. </script>
  193. </button>
  194. <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  195. <input id="ipt_acntyy" ref="/root/send/retrparams/acntyy" class="input_s_essential" navindex="2" style="left:455px; top:9px; width:100px; height:19px; text-align:center; "/>
  196. <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; ">
  197. <choices>
  198. <itemset>
  199. <label/>
  200. <value/>
  201. </itemset>
  202. </choices>
  203. </select1>
  204. <caption id="caption8" class="search_name" style="left:14px; top:12px; width:86px; height:17px; ">소속기관 :</caption>
  205. <select1 id="rdo_bugtflag" ref="/root/send/retrparams/bugtflag" navindex="27" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:454px; top:39px; width:206px; height:20px; border-style:none; ">
  206. <choices>
  207. <item>
  208. <label>수입</label>
  209. <value>1</value>
  210. </item>
  211. <item>
  212. <label>비용</label>
  213. <value>2</value>
  214. </item>
  215. <item>
  216. <label>구매</label>
  217. <value>3</value>
  218. </item>
  219. <item>
  220. <label>자본</label>
  221. <value>4</value>
  222. </item>
  223. </choices>
  224. <script type="javascript" ev:event="xforms-value-changed">
  225. <![CDATA[
  226. btn_search.dispatch("DOMActivate");
  227. ]]>
  228. </script>
  229. </select1>
  230. <caption id="caption5" class="search_name" style="left:365px; top:40px; width:87px; height:17px; ">예산구분 :</caption>
  231. <input id="ipt_depthngnm" ref="/root/send/retrparams/depthngnm" class="input_s_essential" disabled="false" navindex="3" imemode="hangul" style="left:183px; top:39px; width:150px; height:19px; ">
  232. <script type="javascript" ev:event="onkeypress">
  233. <![CDATA[
  234. racfBugtDeptValidCheck("deptcd,depthngnm", "name");
  235. if(event.keyCode == 13)
  236. {
  237. btn_search.dispatch("DOMActivate");
  238. }
  239. ]]>
  240. </script>
  241. <script type="javascript" ev:event="xforms-value-changed">
  242. <![CDATA[
  243. racfBugtDeptValidCheck("deptcd,depthngnm", "name");
  244. if(ipt_deptcd.value != "" && ipt_depthngnm.value != "")
  245. {
  246. btn_search.dispatch("DOMActivate");
  247. }
  248. ]]>
  249. </script>
  250. </input>
  251. <button id="btn_depthelp" class="icon_search" disabled="false" style="left:162px; top:39px; width:16px; height:16px; ">
  252. <caption/>
  253. <script type="javascript" ev:event="DOMActivate">
  254. <![CDATA[
  255. fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm");
  256. if(ipt_deptcd.value != "" &&ipt_depthngnm.value != "")
  257. {
  258. btn_search.dispatch("DOMActivate");
  259. }
  260. ]]>
  261. </script>
  262. </button>
  263. <caption id="caption3" class="search_name" style="left:14px; top:40px; width:107px; height:17px; ">부서 :</caption>
  264. <input id="ipt_deptcd" ref="/root/send/retrparams/deptcd" class="input_s_essential" disabled="false" navindex="2" maxlength="10" style="left:78px; top:39px; width:80px; height:19px; ">
  265. <script type="javascript" ev:event="onkeypress">
  266. <![CDATA[
  267. if(event.keyCode == 13)
  268. {
  269. model.setFocus("ipt_depthngnm");
  270. }
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. racfBugtDeptValidCheck("deptcd,depthngnm", "code");
  276. if(ipt_deptcd.value != "" &&ipt_depthngnm.value != "")
  277. {
  278. btn_search.dispatch("DOMActivate");
  279. }
  280. ]]>
  281. </script>
  282. </input>
  283. <caption id="caption1" class="search_name" visibility="hidden" style="left:665px; top:11px; width:86px; height:17px; ">예산분기 :</caption>
  284. <select1 id="cmb_quarter" ref="/root/send/retrparams/quarter" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:755px; top:10px; width:74px; height:19px; text-align:center; vertical-align:middle; ">
  285. <choices>
  286. <itemset nodeset="/root/init/baseinfo/quarter">
  287. <label ref="nm"/>
  288. <value ref="cd"/>
  289. </itemset>
  290. </choices>
  291. <script type="javascript" ev:event="xforms-value-changed">
  292. <![CDATA[
  293. /* if (cmb_quarter.value == '1'){
  294. ipt_fromym.value = ipt_acntyy.value + '01';
  295. ipt_toym.value = ipt_acntyy.value + '03';
  296. }else if (cmb_quarter.value == '2'){
  297. ipt_fromym.value = ipt_acntyy.value + '04';
  298. ipt_toym.value = ipt_acntyy.value + '06';
  299. }
  300. else if (cmb_quarter.value == '3'){
  301. ipt_fromym.value = ipt_acntyy.value + '07';
  302. ipt_toym.value = ipt_acntyy.value + '09';
  303. }
  304. else if (cmb_quarter.value == '4'){
  305. ipt_fromym.value = ipt_acntyy.value + '10';
  306. ipt_toym.value = ipt_acntyy.value + '12';
  307. }*/
  308. btn_search.dispatch("DOMActivate");
  309. ]]>
  310. </script>
  311. </select1>
  312. <button id="button4" class="btn2_letter2" style="left:915px; top:39px; width:42px; height:19px; ">
  313. <caption>찾기</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. var vPrntnmCol = grd_bugtexecist.colRef("acntnm");
  317. var searchnm = model.getValue("/root/send/search/nm");
  318. var findRow = grd_bugtexecist.findRow(searchnm, 1, vPrntnmCol, false, false);
  319. grd_bugtexecist.row = findRow;
  320. ]]>
  321. </script>
  322. </button>
  323. <caption id="caption7" class="search_name" style="left:690px; top:40px; width:111px; height:17px; ">조 회 :</caption>
  324. <input id="input1" ref="/root/send/search/nm" class="input_s_essential" navindex="2" maxlength="10" style="left:780px; top:39px; width:130px; height:19px; ">
  325. <script type="javascript" ev:event="onkeypress">
  326. <![CDATA[
  327. if(event.keyCode == 13)
  328. {
  329. inputEnterKey("button4", "DOMActivate");
  330. }
  331. ]]>
  332. </script>
  333. </input>
  334. </group>
  335. <caption id="caption2" class="tit_2" style="left:5px; top:95px; width:159px; height:14px; ">분기별예산배정내역서</caption>
  336. <datagrid id="grd_bugtexecist" nodeset="/root/main/list/datalist" caption="기관코드^구분^예산연도^부서코드^계정과목^계정과목^계정과목^계정과목^예산액^분기별 배정^분기별 배정^분기별 배정^분기별 배정^배정잔액^예산조정(추가,감액,전용)^예산조정(추가,감액,전용)^예산조정(추가,감액,전용)^예산조정(추가,감액,전용)^배정누계|기관코드^구분^예산연도^부서코드^관^항^목^세목^예산액^1/4 분기^2/4 분기^3/4 분기^4/4 분기^배정잔액^1/4 분기^2/4 분기^3/4 분기^4/4 분기^배정누계" colsep="^" colwidth="100, 100, 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:115px; width:1190px; height:585px; ">
  337. <col ref="instcd" visibility="hidden"/>
  338. <col ref="gubn" visibility="hidden"/>
  339. <col ref="acntyy" visibility="hidden"/>
  340. <col ref="deptcd" visibility="hidden"/>
  341. <col ref="supacntnm2"/>
  342. <col ref="supacntnm3"/>
  343. <col ref="supacntnm4"/>
  344. <col ref="acntnm"/>
  345. <col ref="totalorgbugtamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  346. <col ref="orgbugtamt1" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  347. <col ref="orgbugtamt2" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  348. <col ref="orgbugtamt3" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  349. <col ref="orgbugtamt4" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  350. <col ref="balance" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  351. <col ref="revsupmbugtamt1" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  352. <col ref="revsupmbugtamt2" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  353. <col ref="revsupmbugtamt3" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  354. <col ref="revsupmbugtamt4" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  355. <col ref="aggregate" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  356. </datagrid>
  357. <button id="btn_5" class="btn2_letter4" style="left:1125px; top:90px; width:64px; height:19px; text-align:left; ">
  358. <caption>엑셀출력</caption>
  359. <script type="javascript" ev:event="DOMActivate">
  360. <![CDATA[
  361. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  362. grd_bugtexecist.saveExcel(fileName,"SheetName:sheet1");
  363. //radfSaveExcel(grd_exceloutput1);
  364. ]]>
  365. </script>
  366. </button>
  367. </group>
  368. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  369. <line id="line5" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  370. <button id="btn_print" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  371. <caption>출력</caption>
  372. <script type="javascript" ev:event="DOMActivate">
  373. <![CDATA[
  374. fPrint();
  375. ]]>
  376. </script>
  377. </button>
  378. </group>
  379. </xhtml:body>
  380. </xhtml:html>