SMRBP01500_당초예산등록(예산요구부기별).xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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. <acntcd/>
  13. <acntnm/>
  14. <orgbugtamt/>
  15. <revsupmbugtamt/>
  16. <aggregate/>
  17. <balance/>
  18. </datalist>
  19. </list>
  20. </main>
  21. <send>
  22. <retrparams>
  23. <instcd/>
  24. <acntyy/>
  25. <deptcd/>
  26. <depthngnm/>
  27. <bugtflag/>
  28. <acntcd/>
  29. <acntnm/>
  30. </retrparams>
  31. <date/>
  32. </send>
  33. <hidden>
  34. </hidden>
  35. <init>
  36. <combo1>
  37. <deptcdcmb>
  38. <deptcd/>
  39. <deptnm/>
  40. </deptcdcmb>
  41. </combo1>
  42. <combo2>
  43. <acntcmb>
  44. <acntcd/>
  45. <acntnm/>
  46. </acntcmb>
  47. </combo2>
  48. </init>
  49. <temp/>
  50. </root>
  51. </instance>
  52. <submission id="TRRBP01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  53. <submission id="TRRAD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/init/combo1"/>
  54. <submission id="TRRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/init/combo2"/>
  55. </model>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  61. <script type="javascript" src="../../../mis/bugtcommonweb/js/RBC001.js"/>
  62. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fCheckAuth();
  66. fInitialize();
  67. ]]>
  68. </script>
  69. <script type="javascript">
  70. <![CDATA[
  71. var acntdept = ""; //재무팀 부서코드 default 값 "4030100000"
  72. var bugtdept = ""; //기획팀 부서코드 default 값 "4060100000"
  73. var Deptcd = getUserInfo("dutplcecd");
  74. var Deptnm = getUserInfo("dutplcenm");
  75. //========================================================================================
  76. //화면 권한 체크
  77. //========================================================================================
  78. function fCheckAuth()
  79. {
  80. btn_search.disabled = !checkAuth("R") ;
  81. }
  82. //========================================================================================
  83. //초기화
  84. //========================================================================================
  85. function fInitialize()
  86. {
  87. model.removenode("/root/main/list/bugtexeclist");
  88. misfComboComCdListMulti("Z0007","cmb_instcd");
  89. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  90. model.setValue("/root/send/date", getCurrentDate());
  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. submit("TRRAD01501");
  101. addComboItem("ipt_deptcd","--전체--","","above");
  102. model.setFocus("ipt_deptcd");
  103. model.refresh();
  104. }
  105. //========================================================================================
  106. //부서코드 Help Open
  107. //========================================================================================
  108. function fOpenPopupDeptHelp(pControl, pInstance)
  109. {
  110. misfOpenPopUpList("11", pControl, "", pInstance);
  111. model.refresh();
  112. }
  113. //========================================================================================
  114. //코드 Validation Check
  115. //========================================================================================
  116. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
  117. {
  118. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  119. {
  120. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  121. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
  122. model.refresh();
  123. model.setFocus(pNextIndex);
  124. }
  125. }
  126. //========================================================================================
  127. //각종 코드 Help Open
  128. //========================================================================================
  129. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  130. {
  131. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  132. model.refresh();
  133. }
  134. //========================================================================================
  135. //출력
  136. //========================================================================================
  137. function fPrint()
  138. {
  139. exeReportPreview("RPRBP01401", "XMLSTR");
  140. model.refresh();
  141. }
  142. ]]>
  143. </script>
  144. </xhtml:head>
  145. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  146. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  147. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:250px; height:14px; ">당초예산등록</caption>
  148. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  149. </group>
  150. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  151. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  152. <group id="group2" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
  153. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  154. <caption id="caption9" class="search_name" style="left:305px; top:10px; width:86px; height:17px; ">예산년도 :</caption>
  155. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. model.removeNodeset(grd_bugtexecist.nodeset);
  160. submit("TRRBP01501");
  161. for(var i = 0 ; i < grd_bugtexecist.rows ; i++)
  162. {
  163. if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "0"){
  164. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ff99cc";
  165. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "1"){
  166. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffcc99";
  167. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "2"){
  168. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffff99";
  169. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "3"){
  170. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ccffcc";
  171. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "4"){
  172. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#cc99ff";
  173. }else if(grd_bugtexecist.valueMatrix(i, grd_bugtexecist.colRef("gubn")) == "5"){
  174. grd_bugtexecist.rowStyle(i, "all", "background-color") = "#ffffff";
  175. }
  176. }
  177. grd_bugtexecist.subtotalPosition = "below";
  178. grd_bugtexecist.multiTotals = true;
  179. grd_bugtexecist.subtotal("clear",0,0);
  180. grd_bugtexecist.subtotal("sum", -1, grd_bugtexecist.colRef("orgbugtamt"), "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ",grd_bugtexecist.colRef("acntcd"), "합계");
  181. grd_bugtexecist.subtotal("sum", -1, grd_bugtexecist.colRef("revsupmbugtamt"), "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ",grd_bugtexecist.colRef("acntcd"), "합계");
  182. grd_bugtexecist.subtotal("sum", -1, grd_bugtexecist.colRef("aggregate"), "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ",grd_bugtexecist.colRef("acntcd"), "합계");
  183. grd_bugtexecist.subtotal("sum", -1, grd_bugtexecist.colRef("balance"), "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ",grd_bugtexecist.colRef("acntcd"), "합계");
  184. ]]>
  185. </script>
  186. </button>
  187. <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
  188. <input id="ipt_acntyy" ref="/root/send/retrparams/acntyy" class="input_s_essential" navindex="2" style="left:395px; top:9px; width:100px; height:19px; text-align:center; "/>
  189. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:9px; width:153px; height:19px; ">
  190. <choices>
  191. <itemset>
  192. <label/>
  193. <value/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <caption id="caption8" class="search_name" style="left:14px; top:10px; width:86px; height:17px; ">소속기관 :</caption>
  198. <select1 id="rdo_bugtflag" ref="/root/send/retrparams/bugtflag" navindex="27" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:779px; top:9px; width:206px; height:20px; border-style:none; ">
  199. <choices>
  200. <item>
  201. <label>수입</label>
  202. <value>1</value>
  203. </item>
  204. <item>
  205. <label>비용</label>
  206. <value>2</value>
  207. </item>
  208. <item>
  209. <label>구매</label>
  210. <value>3</value>
  211. </item>
  212. <item>
  213. <label>자본</label>
  214. <value>4</value>
  215. </item>
  216. </choices>
  217. <script type="javascript" ev:event="xforms-value-changed">
  218. <![CDATA[
  219. btn_search.dispatch("DOMActivate");
  220. ]]>
  221. </script>
  222. </select1>
  223. <caption id="caption5" class="search_name" style="left:690px; top:10px; width:87px; height:17px; ">예산구분 :</caption>
  224. <caption id="caption1" class="search_name" style="left:690px; top:37px; width:111px; height:17px; ">예산계정 :</caption>
  225. <caption id="caption3" class="search_name" style="left:305px; top:37px; width:111px; height:17px; ">예산부서 :</caption>
  226. <select1 id="ipt_deptcd" ref="/root/send/retrparams/deptcd" navindex="3" appearance="minimal" style="left:395px; top:36px; width:200px; height:19px; ">
  227. <choices>
  228. <itemset nodeset="/root/init/combo1/deptcdcmb">
  229. <label ref="deptnm"/>
  230. <value ref="deptcd"/>
  231. </itemset>
  232. </choices>
  233. <script type="javascript" ev:event="xforms-value-changed">
  234. <![CDATA[
  235. model.resetInstanceNode("/root/send/retrparams/acntcd");
  236. submit("TRRAD01503");
  237. //Popup();
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </select1>
  242. <select1 id="ipt_acntcd" ref="/root/send/retrparams/acntcd" navindex="3" appearance="minimal" style="left:779px; top:36px; width:200px; height:19px; ">
  243. <choices>
  244. <itemset nodeset="/root/init/combo2/acntcmb">
  245. <label ref="acntnm"/>
  246. <value ref="acntcd"/>
  247. </itemset>
  248. </choices>
  249. <script type="javascript" ev:event="xforms-value-changed">
  250. <![CDATA[
  251. btn_search.dispatch("DOMActivate");
  252. ]]>
  253. </script>
  254. </select1>
  255. </group>
  256. <caption id="caption2" class="tit_2" style="left:5px; top:80px; width:147px; height:13px; ">당초예산등록</caption>
  257. <datagrid id="grd_bugtexecist" nodeset="/root/main/list/datalist" caption="예산과목^예산과목명^예산액^추경예산^배정누계^배정잔액" colsep="^" colwidth="150, 300, 150, 150, 150, 150" mergecellsfixedrows="bycolrec" rowheader="select" rowsep="|" style="left:0px; top:100px; width:1195px; height:620px; ">
  258. <col ref="acntcd"/>
  259. <col ref="acntnm"/>
  260. <col ref="orgbugtamt" format="(-)#,###" style="text-align:right; "/>
  261. <col ref="revsupmbugtamt" format="(-)#,###" style="text-align:right; "/>
  262. <col ref="aggregate" format="(-)#,###" style="text-align:right; "/>
  263. <col ref="balance" format="(-)#,###" style="text-align:right; "/>
  264. </datagrid>
  265. </group>
  266. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  267. <line id="line5" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  268. <button id="btn_print" class="btn4_letter2" visibility="hidden" style="left:1136px; top:3px; width:56px; height:22px; ">
  269. <caption>출력</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. fPrint();
  273. ]]>
  274. </script>
  275. </button>
  276. </group>
  277. </xhtml:body>
  278. </xhtml:html>