SMMNH04300_예산안관리.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  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. <init>
  10. <A00008>
  11. <cdid/>
  12. <cdnm/>
  13. </A00008>
  14. <A00010>
  15. <cdid/>
  16. <cdnm/>
  17. </A00010>
  18. <A00011>
  19. <cdid/>
  20. <cdnm/>
  21. </A00011>
  22. <A00012>
  23. <cdid/>
  24. <cdnm/>
  25. </A00012>
  26. <A00013>
  27. <cdid/>
  28. <cdnm/>
  29. </A00013>
  30. <supitemcd>
  31. <cdid/>
  32. <cdnm/>
  33. </supitemcd>
  34. <remove/>
  35. </init>
  36. <main>
  37. <bugtlist>
  38. <supitemcd/>
  39. <supitemnm/>
  40. <infitemcd/>
  41. <infitemnm/>
  42. <bugtetc/>
  43. <inbugtamt/>
  44. <outbugtamt/>
  45. <bugtconyn/>
  46. <inexflag/>
  47. </bugtlist>
  48. <bugtdetl>
  49. <mngtyy/>
  50. <inexflag/>
  51. <bugtdd/>
  52. <supitemcd/>
  53. <infitemcd/>
  54. <bugtamt/>
  55. <bugtetc/>
  56. <bugtconyn/>
  57. <status/>
  58. </bugtdetl>
  59. </main>
  60. <send>
  61. </send>
  62. <hidden>
  63. </hidden>
  64. <temp>
  65. <mngtyy/>
  66. <fromdd/>
  67. <todd/>
  68. <srchflag>1</srchflag>
  69. <title/>
  70. <recdd/>
  71. <chrgnm/>
  72. <chairnm/>
  73. </temp>
  74. </root>
  75. </instance>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  82. <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH00001.js"/>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. fGetCodeList( new Array("A00008","A00010","A00011","A00012","A00013"), new Array("/root/init","/root/init","/root/init","/root/init","/root/init"));//호스피스 코드 조회
  86. fRemoveNode(new Array("A00008","A00010","A00011","A00012","A00013"));//콤보 공백 제거
  87. getdate = getCurrentDate();
  88. cmb_payyy.value = getdate.substring(0,4);
  89. ipt_fromdd.value = getCurrentDate();
  90. ipt_todd.value = getCurrentDate();
  91. ]]>
  92. </script>
  93. <submission id="TRMNH04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/supitemcd"/>
  94. <submission id="TRMNH04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bugtlist"/>
  95. <submission id="TRMNH04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bugtdetl"/>
  96. <submission id="TXMNH04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  97. <submission id="TXMNH04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  98. <submission id="TRMNH00001" mediatype="application/x-www-form-urlencoded" method="post"/>
  99. </model>
  100. <script type="javascript">
  101. <![CDATA[
  102. function supitemcd() {
  103. model.removeNodeset("/root/init/supitemcd");
  104. cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/remove";
  105. model.removenode("/root/send");
  106. model.makeValue("/root/send/inexflag", model.getValue("/root/main/bugtdetl/inexflag"));
  107. submit("TRMNH04301");
  108. }
  109. function fSave(flag) {
  110. model.setValue("/root/main/bugtdetl/status",flag);
  111. model.removenode("/root/send");
  112. model.makeValue("/root/send/mngtyy", model.getValue("/root/main/bugtdetl/mngtyy"));
  113. model.makeValue("/root/send/inexflag", model.getValue("/root/main/bugtdetl/inexflag"));
  114. model.makeValue("/root/send/bugtdd", model.getValue("/root/main/bugtdetl/bugtdd"));
  115. var supitemcd = model.getValue("/root/main/bugtdetl/supitemcd");
  116. model.makeValue("/root/send/supitemcd",supitemcd.substr(0,2));
  117. var infitemcd = model.getValue("/root/main/bugtdetl/infitemcd");
  118. if(infitemcd== ""){
  119. infitemcd ="00";
  120. }
  121. model.makeValue("/root/send/infitemcd", infitemcd);
  122. model.makeValue("/root/send/bugtamt", model.getValue("/root/main/bugtdetl/bugtamt"));
  123. model.makeValue("/root/send/bugtetc", model.getValue("/root/main/bugtdetl/bugtetc"));
  124. model.makeValue("/root/send/status", model.getValue("/root/main/bugtdetl/status"));
  125. submit("TXMNH04301");
  126. }
  127. function fSearch() {
  128. model.removeNodeset("/root/main/bugtlist");
  129. model.resetInstanceNode("/root/main/bugtdetl");
  130. model.removenode("/root/send");
  131. model.makeValue("/root/send/mngtyy", model.getValue("/root/temp/mngtyy"));
  132. model.makeValue("/root/send/srchflag", model.getValue("/root/temp/srchflag"));
  133. model.makeValue("/root/send/fromdd", model.getValue("/root/temp/fromdd"));
  134. model.makeValue("/root/send/todd", model.getValue("/root/temp/todd"));
  135. submit("TRMNH04302");
  136. cmb_mngtyy.disabled = false;
  137. rdo_inexflag.disabled = false;
  138. cmb_supitemcd.disabled = false;
  139. cmb_infitemcd.disabled = false;
  140. }
  141. function fClicedGrid() {
  142. model.removeNodeset("/root/main/bugtdetl");
  143. model.removenode("/root/send");
  144. model.makeValue("/root/send/mngtyy", model.getValue("/root/temp/mngtyy"));
  145. model.makeValue("/root/send/inexflag", model.getValue("/root/main/bugtlist["+grd_incmexpslist.row+"]/inexflag"));
  146. model.makeValue("/root/send/supitemcd", model.getValue("/root/main/bugtlist["+grd_incmexpslist.row+"]/supitemcd"));
  147. model.makeValue("/root/send/infitemcd", model.getValue("/root/main/bugtlist["+grd_incmexpslist.row+"]/infitemcd"));
  148. submit("TRMNH04303");
  149. supitemcd();
  150. cmb_supitemcd.dispatch("xforms-value-changed");
  151. cmb_mngtyy.disabled = true;
  152. rdo_inexflag.disabled = true;
  153. cmb_supitemcd.disabled = true;
  154. cmb_infitemcd.disabled = true;
  155. }
  156. function fClear() {
  157. model.resetInstanceNode("/root/main/bugtdetl");
  158. cmb_mngtyy.disabled = false;
  159. rdo_inexflag.disabled = false;
  160. cmb_supitemcd.disabled = false;
  161. cmb_infitemcd.disabled = false;
  162. model.refresh();
  163. }
  164. function fCnfm() {
  165. if(messageBox("","Q002") != 6) return;
  166. var xCntPath = "/root/main/bugtlist";
  167. var cnfmamt ="";
  168. var sCntData =
  169. "mngtyy"
  170. + "▦inexflag"
  171. + "▦supitemcd"
  172. + "▦infitemcd"
  173. + "▦cnfmamt"
  174. + "▦cnfmdd"
  175. + "▩" ;
  176. for(i=1; i < grd_incmexpslist.rows; i++){
  177. if( model.getValue(xCntPath + "["+ i + "]/bugtconyn") =="N" ){
  178. if(model.getValue(xCntPath + "["+ i + "]/inexflag") =="01"){
  179. cnfmamt = model.getValue(xCntPath + "["+ i + "]/inbugtamt" )
  180. }else{
  181. cnfmamt = model.getValue(xCntPath + "["+ i + "]/outbugtamt" )
  182. }
  183. sCntData +=
  184. cmb_payyy.value
  185. + "▦" + model.getValue(xCntPath + "["+ i + "]/inexflag")
  186. + "▦" + model.getValue(xCntPath + "["+ i + "]/supitemcd")
  187. + "▦" + model.getValue(xCntPath + "["+ i + "]/infitemcd")
  188. + "▦" + cnfmamt
  189. + "▦" + getCurrentDate()
  190. + "▩" ;
  191. }
  192. }
  193. model.removenode("/root/send");
  194. model.makeNode("/root/send");
  195. model.makeValue("/root/send/sCntData" ,sCntData );
  196. submit("TXMNH04302");
  197. fSearch();
  198. }
  199. ]]>
  200. </script>
  201. </xhtml:head>
  202. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  203. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  204. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:181px; height:14px; ">예산안관리</caption>
  205. </group>
  206. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:697px; ">
  207. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:40px; vertical-align:top; ">
  208. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  209. <button id="button1" class="btn1_letter2" style="left:1063px; top:7px; width:56px; height:22px; ">
  210. <caption>조회</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. fSearch();
  214. ]]>
  215. </script>
  216. </button>
  217. <line id="line13" class="line_4" style="x1:1047px; y1:7px; x2:1047px; y2:29px; "/>
  218. <caption id="caption3" class="search_name" style="left:15px; top:10px; width:91px; height:17px; ">조회구분 :</caption>
  219. <select1 id="rdo_srchflag" ref="/root/temp/srchflag" appearance="full" cellspacing="100" cols="2" overflow="visible" style="left:100px; top:13px; width:260px; height:13px; border-style:none; ">
  220. <choices>
  221. <item>
  222. <label>관리연도</label>
  223. <value>1</value>
  224. </item>
  225. <item>
  226. <label>예산산정일</label>
  227. <value>2</value>
  228. </item>
  229. </choices>
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. var srchflag = model.getValue(rdo_srchflag.attribute("ref"));
  233. if(srchflag == "1") {
  234. cmb_payyy.disabled = false;
  235. ipt_fromdd.disabled = true;
  236. ipt_todd.disabled = true;
  237. } else {
  238. cmb_payyy.disabled = true;
  239. ipt_fromdd.disabled = false;
  240. ipt_todd.disabled = false;
  241. }
  242. ]]>
  243. </script>
  244. </select1>
  245. <select1 id="cmb_payyy" ref="/root/temp/mngtyy" class="combo_search" appearance="minimal" style="left:170px; top:11px; width:89px; height:19px; ">
  246. <choices>
  247. <item>
  248. <label>2000년</label>
  249. <value>2000</value>
  250. </item>
  251. <item>
  252. <label>2001년</label>
  253. <value>2001</value>
  254. </item>
  255. <item>
  256. <label>2002년</label>
  257. <value>2002</value>
  258. </item>
  259. <item>
  260. <label>2003년</label>
  261. <value>2003</value>
  262. </item>
  263. <item>
  264. <label>2004년</label>
  265. <value>2004</value>
  266. </item>
  267. <item>
  268. <label>2005년</label>
  269. <value>2005</value>
  270. </item>
  271. <item>
  272. <label>2006년</label>
  273. <value>2006</value>
  274. </item>
  275. <item>
  276. <label>2007년</label>
  277. <value>2007</value>
  278. </item>
  279. <item>
  280. <label>2008년</label>
  281. <value>2008</value>
  282. </item>
  283. <item>
  284. <label>2009년</label>
  285. <value>2009</value>
  286. </item>
  287. <item>
  288. <label>2010년</label>
  289. <value>2010</value>
  290. </item>
  291. <item>
  292. <label>2011년</label>
  293. <value>2011</value>
  294. </item>
  295. <item>
  296. <label>2012년</label>
  297. <value>2012</value>
  298. </item>
  299. <item>
  300. <label>2013년</label>
  301. <value>2013</value>
  302. </item>
  303. <item>
  304. <label>2014년</label>
  305. <value>2014</value>
  306. </item>
  307. <item>
  308. <label>2015년</label>
  309. <value>2015</value>
  310. </item>
  311. <item>
  312. <label>2016년</label>
  313. <value>2016</value>
  314. </item>
  315. <item>
  316. <label>2017년</label>
  317. <value>2017</value>
  318. </item>
  319. <item>
  320. <label>2018년</label>
  321. <value>2018</value>
  322. </item>
  323. <item>
  324. <label>2019년</label>
  325. <value>2019</value>
  326. </item>
  327. <item>
  328. <label>2020년</label>
  329. <value>2020</value>
  330. </item>
  331. </choices>
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. fSearch()
  335. ]]>
  336. </script>
  337. </select1>
  338. <caption id="caption4" class="search_no_b" style="left:450px; top:9px; width:12px; height:17px; ">~</caption>
  339. <input id="ipt_todd" ref="/root/temp/todd" class="input_default" disabled="true" navindex="2" inputtype="date" style="left:465px; top:10px; width:83px; height:19px; ">
  340. <script type="javascript" ev:event="xforms-value-changed">
  341. <![CDATA[
  342. if(ipt_todd.value.substr(0,4) != cmb_payyy.value ){
  343. messageBox("관리년도 범위를 벗어 났습니다.", "E");
  344. ipt_todd.value =getCurrentDate();
  345. }
  346. ]]>
  347. </script>
  348. </input>
  349. <input id="ipt_fromdd" ref="/root/temp/fromdd" class="input_default" disabled="true" navindex="1" inputtype="date" style="left:362px; top:10px; width:86px; height:19px; ">
  350. <script type="javascript" ev:event="xforms-value-changed">
  351. <![CDATA[
  352. if(ipt_fromdd.value.substr(0,4) != cmb_payyy.value ){
  353. messageBox("관리년도 범위를 벗어 났습니다.", "E");
  354. ipt_fromdd.value =getCurrentDate();
  355. }
  356. ]]>
  357. </script>
  358. </input>
  359. <button id="button6" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  360. <caption>엑셀</caption>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. var fileName = window.fileDialog("save", ",", false, "예산안관리", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  364. grd_incmexpslist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false;rowhiddenextend:false;");
  365. ]]>
  366. </script>
  367. </button>
  368. </group>
  369. <datagrid id="grd_incmexpslist" nodeset="/root/main/bugtlist" scroll="auto" caption="예산산정일^caption1^항목분류^상세항목^상세항목^비고^수입^지출^확정여부^" colsep="^" colwidth="100, 6, 143, 6, 100, 325, 191, 181, 116, 21" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:80px; width:1194px; height:510px; text-align:center; ">
  370. <col ref="bugtdd" format="yyyy-mm-dd"/>
  371. <col ref="supitemcd" visibility="hidden"/>
  372. <col ref="supitemnm" style="text-align:center; "/>
  373. <col ref="infitemcd" visibility="hidden"/>
  374. <col ref="infitemnm" style="text-align:center; "/>
  375. <col ref="bugtetc" style="text-align:left; "/>
  376. <col ref="inbugtamt" format="#,###"/>
  377. <col ref="outbugtamt" format="#,###"/>
  378. <col ref="bugtconyn" style="text-align:center; "/>
  379. <col ref="inexflag" visibility="hidden"/>
  380. <script type="javascript" ev:event="onclick">
  381. <![CDATA[
  382. if(isDataCell()){
  383. fClicedGrid();
  384. }
  385. ]]>
  386. </script>
  387. <script type="javascript" ev:event="onaftersort">
  388. <![CDATA[
  389. grd_incmexpslist.gridToInstance();
  390. ]]>
  391. </script>
  392. </datagrid>
  393. <caption id="caption2" class="tit_2" style="left:5px; top:58px; width:139px; height:14px; ">예산안 내역리스트</caption>
  394. <line id="line2" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  395. <button id="button15" class="btn2_letter3" style="left:1049px; top:594px; width:53px; height:19px; ">
  396. <caption>초기화</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. fClear();
  400. ]]>
  401. </script>
  402. </button>
  403. <button id="button2" class="btn5_letter2" style="left:1148px; top:594px; width:42px; height:19px; ">
  404. <caption>삭제</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. if(model.getValue("/root/main/bugtdetl/status")=="update"){
  408. fSave("delete");
  409. }
  410. fSearch();
  411. ]]>
  412. </script>
  413. </button>
  414. <button id="btn_incmexpssave" class="btn5_letter2" style="left:1104px; top:594px; width:46px; height:19px; ">
  415. <caption>저장</caption>
  416. <script type="javascript" ev:event="DOMActivate">
  417. <![CDATA[
  418. if(model.getValue("/root/main/bugtdetl/status")=="update"){
  419. fSave("update");
  420. }else{
  421. fSave("insert");
  422. }
  423. fSearch();
  424. ]]>
  425. </script>
  426. </button>
  427. <caption id="caption15" class="tit_2" style="left:3px; top:599px; width:133px; height:14px; ">예산안금액 등록</caption>
  428. <line id="line4" class="line_1" style="x1:2px; y1:614px; x2:1193px; y2:614px; "/>
  429. <input id="ipt_bugtetc" ref="/root/main/bugtdetl/bugtetc" class="input_default" navindex="12" style="left:176px; top:671px; width:594px; height:19px; "/>
  430. <caption id="caption1" class="cell_1" style="left:2px; top:669px; width:172px; height:23px; text-align:center; vertical-align:middle; ">비고</caption>
  431. <line id="line7" class="line_3" style="x1:0px; y1:693px; x2:1194px; y2:693px; "/>
  432. <line id="line6" class="line_2" style="x1:2px; y1:668px; x2:1194px; y2:668px; "/>
  433. <line id="line8" class="line_2" style="x1:0px; y1:643px; x2:1194px; y2:643px; "/>
  434. <caption id="caption5" class="cell_1" style="left:2px; top:619px; width:172px; height:23px; text-align:center; vertical-align:middle; ">관리연도</caption>
  435. <caption id="caption8" class="cell_1" style="left:387px; top:620px; width:172px; height:23px; text-align:center; vertical-align:middle; ">수입(지출)구분</caption>
  436. <caption id="caption12" class="cell_1" style="left:772px; top:620px; width:172px; height:23px; text-align:center; vertical-align:middle; ">예산상정일자</caption>
  437. <select1 id="rdo_inexflag" ref="/root/main/bugtdetl/inexflag" navindex="21" appearance="full" cols="3" overflow="visible" style="left:561px; top:621px; width:209px; height:20px; border-style:none; ">
  438. <choices>
  439. <item>
  440. <label>수입</label>
  441. <value>01</value>
  442. </item>
  443. <item>
  444. <label>지출</label>
  445. <value>02</value>
  446. </item>
  447. </choices>
  448. <script type="javascript" ev:event="xforms-value-changed">
  449. <![CDATA[
  450. supitemcd();
  451. ]]>
  452. </script>
  453. </select1>
  454. <caption id="caption18" class="cell_1" style="left:2px; top:644px; width:172px; height:23px; text-align:center; vertical-align:middle; ">항목분류</caption>
  455. <caption id="caption19" class="cell_1" style="left:387px; top:645px; width:172px; height:23px; text-align:center; vertical-align:middle; ">상세항목</caption>
  456. <caption id="caption20" class="cell_1" style="left:772px; top:670px; width:172px; height:23px; text-align:center; vertical-align:middle; ">확정여부</caption>
  457. <output id="opt_bugtconyn" ref="/root/main/bugtdetl/bugtconyn" class="output_fix" style="left:946px; top:671px; width:245px; height:19px; "/>
  458. <select1 id="cmb_infitemcd" ref="/root/main/bugtdetl/infitemcd" class="combo_default" appearance="minimal" style="left:561px; top:646px; width:209px; height:19px; ">
  459. <choices>
  460. <itemset nodeset="/root/init/remove">
  461. <label ref="cdnm"/>
  462. <value ref="cdid"/>
  463. </itemset>
  464. </choices>
  465. </select1>
  466. <input id="ipt_bugtdd" ref="/root/main/bugtdetl/bugtdd" class="input_default" inputtype="date" style="left:946px; top:621px; width:245px; height:19px; ">
  467. <script type="javascript" ev:event="xforms-value-changed">
  468. <![CDATA[
  469. if(ipt_bugtdd.value.substr(0,4) != cmb_mngtyy.value ){
  470. messageBox("예산상정일자가 관리년도 범위를 벗어났습니다." , "E");
  471. ipt_bugtdd.value = "";
  472. return;
  473. }
  474. ]]>
  475. </script>
  476. </input>
  477. <input id="ipt_bugtamt" ref="/root/main/bugtdetl/bugtamt" class="input_default" maxlength="10" format="#,###,###,###" style="left:946px; top:646px; width:245px; height:19px; "/>
  478. <caption id="caption7" class="cell_1" style="left:772px; top:645px; width:172px; height:23px; text-align:center; vertical-align:middle; ">예산금액</caption>
  479. <button id="button3" class="btn2_letter6" style="left:1107px; top:55px; width:86px; height:19px; ">
  480. <caption>예산안 확정</caption>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. fCnfm();
  484. ]]>
  485. </script>
  486. </button>
  487. <select1 id="cmb_supitemcd" ref="/root/main/bugtdetl/supitemcd" class="combo_default" appearance="minimal" style="left:176px; top:646px; width:209px; height:19px; ">
  488. <choices>
  489. <itemset nodeset="/root/init/supitemcd">
  490. <label ref="cdnm"/>
  491. <value ref="cdid"/>
  492. </itemset>
  493. </choices>
  494. <script type="javascript" ev:event="xforms-value-changed">
  495. <![CDATA[
  496. var supitemcd = model.getValue("/root/main/bugtdetl/supitemcd");
  497. var leng = supitemcd.length;
  498. if(leng > 2){
  499. var supgrup = supitemcd.substr(leng-5,leng);
  500. }
  501. if(supgrup == '00008')
  502. cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00008";
  503. else if(supgrup == '00010')
  504. cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00010";
  505. else if(supgrup == '00011')
  506. cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00011";
  507. else if(supgrup == '00012')
  508. cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00012";
  509. else if(supgrup == '00013')
  510. cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/A00013";
  511. else
  512. cmb_infitemcd.choices.itemset.attribute("nodeset") = "/root/init/remove";
  513. cmb_infitemcd.refresh();
  514. ]]>
  515. </script>
  516. </select1>
  517. <select1 id="cmb_mngtyy" ref="/root/main/bugtdetl/mngtyy" class="combo_search" appearance="minimal" style="left:176px; top:621px; width:209px; height:19px; ">
  518. <choices>
  519. <item>
  520. <label>2000년</label>
  521. <value>2000</value>
  522. </item>
  523. <item>
  524. <label>2001년</label>
  525. <value>2001</value>
  526. </item>
  527. <item>
  528. <label>2002년</label>
  529. <value>2002</value>
  530. </item>
  531. <item>
  532. <label>2003년</label>
  533. <value>2003</value>
  534. </item>
  535. <item>
  536. <label>2004년</label>
  537. <value>2004</value>
  538. </item>
  539. <item>
  540. <label>2005년</label>
  541. <value>2005</value>
  542. </item>
  543. <item>
  544. <label>2006년</label>
  545. <value>2006</value>
  546. </item>
  547. <item>
  548. <label>2007년</label>
  549. <value>2007</value>
  550. </item>
  551. <item>
  552. <label>2008년</label>
  553. <value>2008</value>
  554. </item>
  555. <item>
  556. <label>2009년</label>
  557. <value>2009</value>
  558. </item>
  559. <item>
  560. <label>2010년</label>
  561. <value>2010</value>
  562. </item>
  563. <item>
  564. <label>2011년</label>
  565. <value>2011</value>
  566. </item>
  567. <item>
  568. <label>2012년</label>
  569. <value>2012</value>
  570. </item>
  571. <item>
  572. <label>2013년</label>
  573. <value>2013</value>
  574. </item>
  575. <item>
  576. <label>2014년</label>
  577. <value>2014</value>
  578. </item>
  579. <item>
  580. <label>2015년</label>
  581. <value>2015</value>
  582. </item>
  583. <item>
  584. <label>2016년</label>
  585. <value>2016</value>
  586. </item>
  587. <item>
  588. <label>2017년</label>
  589. <value>2017</value>
  590. </item>
  591. <item>
  592. <label>2018년</label>
  593. <value>2018</value>
  594. </item>
  595. <item>
  596. <label>2019년</label>
  597. <value>2019</value>
  598. </item>
  599. <item>
  600. <label>2020년</label>
  601. <value>2020</value>
  602. </item>
  603. </choices>
  604. <script type="javascript" ev:event="xforms-value-changed">
  605. <![CDATA[
  606. ]]>
  607. </script>
  608. </select1>
  609. <button id="button4" class="btn2_letter8" style="left:997px; top:55px; width:108px; height:19px; ">
  610. <caption>회계연도 예산안</caption>
  611. <script type="javascript" ev:event="DOMActivate">
  612. <![CDATA[
  613. group2.visible = true;
  614. ipt_recdd.value = getCurrentDate();
  615. ]]>
  616. </script>
  617. </button>
  618. <group id="group2" visibility="hidden" style="left:865px; top:70px; width:185px; height:170px; background-color:#87CEFA; ">
  619. <button id="button5" class="btn5_letter2" navindex="36" style="left:118px; top:140px; width:42px; height:19px; ">
  620. <caption>닫기</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. group2.visible = false;
  624. ]]>
  625. </script>
  626. </button>
  627. <button id="button9" class="btn5_letter2" navindex="35" style="left:75px; top:140px; width:42px; height:19px; ">
  628. <caption>확인</caption>
  629. <script type="javascript" ev:event="DOMActivate">
  630. <![CDATA[
  631. var totcnt = 1;
  632. var incnt = 1;
  633. var outcnt = 1;
  634. var inbugtamt = 0;
  635. var outbugtamt = 0;
  636. var supitemnm ="";
  637. var infitemnm = "";
  638. var bugtetc = "";
  639. var totinamt = 0;
  640. var totoutamt = 0;
  641. var rowCnt = 23;
  642. model.removeNodeset("/root/tmp/printlist");
  643. for(var i = grd_incmexpslist.fixedRows; i < grd_incmexpslist.rows; i++) {
  644. inbugtamt = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("inbugtamt"));
  645. outbugtamt = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("outbugtamt"));
  646. supitemnm = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("supitemnm"));
  647. infitemnm = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("infitemnm"));
  648. bugtetc = grd_incmexpslist.valueMatrix(i, grd_incmexpslist.colRef("bugtetc"));
  649. if(inbugtamt != "" && inbugtamt != null) {
  650. if(totcnt == incnt) {
  651. model.makeValue("/root/tmp/printlist[" + totcnt + "]/supitemnm", supitemnm);
  652. model.makeValue("/root/tmp/printlist[" + totcnt + "]/infitemnm", infitemnm);
  653. model.makeValue("/root/tmp/printlist[" + totcnt + "]/inbugtamt", inbugtamt);
  654. model.makeValue("/root/tmp/printlist[" + totcnt + "]/bugtetc", bugtetc);
  655. totcnt ++;
  656. incnt ++;
  657. } else {
  658. model.makeValue("/root/tmp/printlist[" + incnt + "]/supitemnm", supitemnm);
  659. model.makeValue("/root/tmp/printlist[" + incnt + "]/infitemnm", infitemnm);
  660. model.makeValue("/root/tmp/printlist[" + incnt + "]/inbugtamt", inbugtamt);
  661. model.makeValue("/root/tmp/printlist[" + incnt + "]/bugtetc", bugtetc);
  662. incnt++;
  663. }
  664. totinamt += parseInt(inbugtamt);
  665. }
  666. if(outbugtamt != "" && outbugtamt != null) {
  667. if(totcnt == outcnt) {
  668. model.makeValue("/root/tmp/printlist[" + totcnt + "]/supitemnm1", supitemnm);
  669. model.makeValue("/root/tmp/printlist[" + totcnt + "]/infitemnm1", infitemnm);
  670. model.makeValue("/root/tmp/printlist[" + totcnt + "]/outbugtamt", outbugtamt);
  671. model.makeValue("/root/tmp/printlist[" + totcnt + "]/bugtetc1", bugtetc);
  672. totcnt ++;
  673. outcnt ++;
  674. } else {
  675. model.makeValue("/root/tmp/printlist[" + outcnt + "]/supitemnm1", supitemnm);
  676. model.makeValue("/root/tmp/printlist[" + outcnt + "]/infitemnm1", infitemnm);
  677. model.makeValue("/root/tmp/printlist[" + outcnt + "]/outbugtamt", outbugtamt);
  678. model.makeValue("/root/tmp/printlist[" + outcnt + "]/bugtetc1", bugtetc);
  679. outcnt++;
  680. }
  681. totoutamt += parseInt(outbugtamt);
  682. }
  683. }
  684. var result = parseInt(totcnt / rowCnt);
  685. var cnt = getNodesetCount("/root/tmp/printlist");
  686. if(result == 0 || totcnt == rowCnt) {
  687. for(var i = cnt; i < rowCnt; i++) {
  688. grd_printlist.addRow();
  689. }
  690. } else {
  691. for(var i = cnt; i < rowCnt*(result+1); i++) {
  692. grd_printlist.addRow(false);
  693. }
  694. }
  695. model.makeValue("/root/tmp/totinamt", totinamt);
  696. model.makeValue("/root/tmp/totoutamt", totoutamt);
  697. model.makeValue("/root/tmp/title", model.getValue("/root/temp/title"));
  698. model.makeValue("/root/tmp/recdd", model.getValue("/root/temp/recdd"));
  699. model.makeValue("/root/tmp/chrgnm", model.getValue("/root/temp/chrgnm"));
  700. model.makeValue("/root/tmp/chairnm", model.getValue("/root/temp/chairnm"));
  701. exeReportPreview("RPMNH04300", "XMLSTR");
  702. group2.visible = false;
  703. ]]>
  704. </script>
  705. </button>
  706. <caption id="caption9" style="left:10px; top:10px; width:87px; height:20px; font-family:돋움체; font-weight:bold; ">예산안 타이틀</caption>
  707. <caption id="caption10" style="left:10px; top:60px; width:80px; height:20px; font-family:돋움체; font-weight:bold; ">작성일자 :</caption>
  708. <input id="ipt_recdd" ref="/root/temp/recdd" navindex="31" inputtype="date" style="left:82px; top:60px; width:95px; height:19px; "/>
  709. <caption id="caption11" style="left:10px; top:85px; width:80px; height:20px; font-family:돋움체; font-weight:bold; ">담 당 자 :</caption>
  710. <caption id="caption13" style="left:10px; top:110px; width:80px; height:20px; font-family:돋움체; font-weight:bold; ">위 원 장 :</caption>
  711. <input id="ipt_chrgnm" ref="/root/temp/chrgnm" navindex="33" style="left:82px; top:85px; width:95px; height:19px; "/>
  712. <input id="ipr_chairnm" ref="/root/temp/chairnm" navindex="34" style="left:82px; top:112px; width:95px; height:19px; "/>
  713. <input id="ipt_title" ref="/root/temp/title" navindex="30" style="left:10px; top:30px; width:167px; height:19px; "/>
  714. </group>
  715. <datagrid id="grd_printlist" nodeset="/root/tmp/printlist" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:510px; top:185px; width:350px; height:150px; ">
  716. <col ref="supitemnm"/>
  717. <col ref="infitemnm"/>
  718. <col ref="outbugtamt"/>
  719. </datagrid>
  720. </group>
  721. </xhtml:body>
  722. </xhtml:html>