SMRBP00300_예산승인관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <bugtexecaprv>
  11. <selchk/>
  12. <instcd/>
  13. <unsldd/>
  14. <unslno/>
  15. <unslseqno/>
  16. <bugtmngtdeptcd/>
  17. <bugtmngtdeptnm/>
  18. <acntcd/>
  19. <acntnm/>
  20. <amt/>
  21. <bugtbal/>
  22. <etcnotefact/>
  23. <bugtaprvyn/>
  24. <jobflag/>
  25. <slipyn/>
  26. </bugtexecaprv>
  27. </main>
  28. <send>
  29. <bugtexecaprv/>
  30. </send>
  31. <hidden>
  32. <condition>
  33. <slipfr/>
  34. <slipto/>
  35. <bugtaprvyn>N</bugtaprvyn>
  36. <acntcd/>
  37. <acntnm/>
  38. <instcd/>
  39. <bugtaprvdd/>
  40. </condition>
  41. <slipyn>Y</slipyn>
  42. </hidden>
  43. <init/>
  44. <temp/>
  45. </root>
  46. </instance>
  47. <submission id="TRRBP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/main/bugtexecaprv"/>
  48. <submission id="TXRAD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bugtexecaprv" resultref="/root/main/bugtexecaprv"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. fCheckAuth();
  57. fInitialize();
  58. ]]>
  59. </script>
  60. <script type="javascript">
  61. <![CDATA[
  62. //========================================================================================
  63. //화면 권한 체크
  64. //========================================================================================
  65. function fCheckAuth() {
  66. btn_search.disabled = !checkAuth("R") ;
  67. btn_save.disabled = !checkAuth("X") ;
  68. }
  69. //========================================================================================
  70. //초기화
  71. //========================================================================================
  72. function fInitialize() {
  73. var sToday = getCurrentDate().toString();
  74. model.removenode("/root/main/bugtexecaprv");
  75. model.refresh();
  76. model.setValue("/root/hidden/condition/slipfr", sToday);
  77. model.setValue("/root/hidden/condition/slipto", sToday);
  78. model.setValue("/root/hidden/condition/instcd", getUserInfo("dutplceinstcd"));
  79. model.refresh();
  80. }
  81. //========================================================================================
  82. //각종 코드 Help Open
  83. //========================================================================================
  84. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  85. {
  86. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  87. model.refresh();
  88. }
  89. //========================================================================================
  90. //코드 Validation Check
  91. //========================================================================================
  92. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
  93. {
  94. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  95. {
  96. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  97. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
  98. model.refresh();
  99. model.setFocus(pNextIndex);
  100. }
  101. }
  102. //========================================================================================
  103. //저장 click
  104. //========================================================================================
  105. function fSaveClick() {
  106. var updtdata = getGridUpdateData(grd_bugtexec);
  107. if (updtdata == "") {
  108. messageBox("변경된 데이터가","I004");
  109. return;
  110. }
  111. model.setValue("/root/send/bugtexecaprv",grd_bugtexec.getUpdateData());
  112. if (submit("TXRAD00103")) {
  113. model.setValue("/root/send/bugtexecaprv","");
  114. submit("TRRBP00301");
  115. }
  116. }
  117. ]]>
  118. </script>
  119. </xhtml:head>
  120. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  121. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  122. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">예산승인관리</caption>
  123. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  124. </group>
  125. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  126. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
  127. <group id="group2" style="left:0px; top:10px; width:1194px; height:40px; vertical-align:top; ">
  128. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  129. <caption id="caption9" class="search_name" style="left:10px; top:11px; width:86px; height:17px; ">전표일자 :</caption>
  130. <caption id="caption10" class="search_name" style="left:343px; top:11px; width:86px; height:17px; ">승인구분 :</caption>
  131. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1123px; top:9px; width:56px; height:22px; text-align:left; ">
  132. <caption>조회</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. submit("TRRBP00301");
  136. ]]>
  137. </script>
  138. </button>
  139. <caption id="caption12" class="search_name" style="left:607px; top:11px; width:88px; height:17px; ">계정과목 :</caption>
  140. <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  141. <caption id="caption5" style="left:207px; top:10px; width:15px; height:20px; ">~</caption>
  142. <input id="ipt_slipfr" ref="/root/hidden/condition/slipfr" class="input_s_essential" inputtype="date" style="left:100px; top:10px; width:100px; height:19px; "/>
  143. <input id="ipt_slipto" ref="/root/hidden/condition/slipto" class="input_s_essential" inputtype="date" style="left:225px; top:10px; width:100px; height:19px; "/>
  144. <select1 id="rdo_bugtaprvyn" ref="/root/hidden/condition/bugtaprvyn" class="radio_search" overflow="visible" appearance="full" cellspacing="10" cols="3" style="left:433px; top:10px; width:165px; height:20px; vertical-align:middle; border-style:none; ">
  145. <choices>
  146. <item>
  147. <label>승인</label>
  148. <value>Y</value>
  149. </item>
  150. <item>
  151. <label>미승인</label>
  152. <value>N</value>
  153. </item>
  154. <item>
  155. <label>전체</label>
  156. <value>A</value>
  157. </item>
  158. </choices>
  159. </select1>
  160. <input id="ipt_acntcd" ref="/root/hidden/condition/acntcd" class="input_s_essential" navindex="2" style="left:700px; top:10px; width:100px; height:19px; ">
  161. <script type="javascript" ev:event="onkeypress">
  162. <![CDATA[
  163. if (event.keyCode == "13") {
  164. model.setFocus("btn_search");
  165. }
  166. ]]>
  167. </script>
  168. <script type="javascript" ev:event="xforms-value-changed">
  169. <![CDATA[
  170. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn", "slipyn");
  171. ]]>
  172. </script>
  173. </input>
  174. <button id="btn_acntcd" class="icon_search" style="left:805px; top:13px; width:16px; height:16px; ">
  175. <caption/>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn", "slipyn");
  179. ]]>
  180. </script>
  181. </button>
  182. <input id="ipt_acntnm" ref="/root/hidden/condition/acntnm" class="input_s_essential" navindex="3" style="left:825px; top:10px; width:240px; height:19px; ">
  183. <script type="javascript" ev:event="onkeypress">
  184. <![CDATA[
  185. if (event.keyCode == "13") {
  186. model.setFocus("btn_search");
  187. }
  188. ]]>
  189. </script>
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn", "slipyn");
  193. ]]>
  194. </script>
  195. </input>
  196. <input id="ipt_slipyn" ref="/root/hidden/slipyn" class="input_s_essential" navindex="-1" visibility="hidden" style="left:1075px; top:10px; width:25px; height:19px; "/>
  197. </group>
  198. <caption id="caption2" class="tit_2" style="left:5px; top:65px; width:118px; height:13px; ">예산신청 목록</caption>
  199. <input id="btn_bugtaprvdd" ref="/root/hidden/condition/bugtaprvdd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:860px; top:55px; width:100px; height:19px; "/>
  200. <datagrid id="grd_bugtexec" nodeset="/root/main/bugtexecaprv" caption="선택^기관코드^미결전표정보^미결전표정보^미결전표정보^관리부서코드^관리부서^계정코드^계정과목^신청금액^가용액^적요^예산승인여부^승인구분^전표승인여부" colsep="^" colwidth="39, 0, 80, 45, 32, 0, 176, 0, 161, 100, 100, 330, 85, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:85px; width:1195px; height:654px; ">
  201. <col checkvalue="Y,N" ref="selchk" type="checkbox"/>
  202. <col ref="instcd" visibility="hidden"/>
  203. <col ref="unsldd" format="yyyy-mm-dd"/>
  204. <col ref="unslno"/>
  205. <col ref="unslseqno"/>
  206. <col ref="bugtmngtdeptcd"/>
  207. <col ref="bugtmngtdeptnm"/>
  208. <col ref="acntcd"/>
  209. <col ref="acntnm"/>
  210. <col ref="amt" format="(-)#,###" style="text-align:right; "/>
  211. <col ref="bugtbal" format="(-)#,###" style="text-align:right; "/>
  212. <col ref="etcnotefact"/>
  213. <col ref="bugtaprvyn" style="text-align:center; "/>
  214. <col ref="jobflag"/>
  215. <col ref="slipyn"/>
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. var cur_row = grd_bugtexec.row;
  219. if (grd_bugtexec.col == 1 && model.getValue("/root/main/bugtexecaprv["+cur_row+"]/slipyn") == "Y") {
  220. messageBox("회계 승인된 전표이므로 작업이 불가합니다.\n재무팀 승인취소 후 작업하세요.","I000");
  221. model.setValue("/root/main/bugtexecaprv["+cur_row+"]/selchk","N");
  222. model.refresh();
  223. }
  224. ]]>
  225. </script>
  226. </datagrid>
  227. <button id="btn_allsel" class="btn2_letter4" style="left:1062px; top:60px; width:64px; height:19px; ">
  228. <caption>전체선택</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. var i;
  232. for (i=1; i<grd_bugtexec.rows; i++) {
  233. model.setValue("/root/main/bugtexecaprv["+i+"]/selchk","Y");
  234. grd_bugtexec.addStatus(i,"update");
  235. }
  236. model.refresh();
  237. ]]>
  238. </script>
  239. </button>
  240. <button id="btn_allunsel" class="btn2_letter4" style="left:1128px; top:60px; width:68px; height:19px; ">
  241. <caption>선택취소</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. var i;
  245. for (i=1; i<grd_bugtexec.rows; i++) {
  246. model.setValue("/root/main/bugtexecaprv["+i+"]/selchk","N");
  247. grd_bugtexec.addStatus(i,"update");
  248. }
  249. model.refresh();
  250. ]]>
  251. </script>
  252. </button>
  253. </group>
  254. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  255. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  256. <caption>저장</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. var iFindrow = grd_bugtexec.findRow("Y",1,1);
  260. if (iFindrow == -1) {
  261. messageBox("작업할 항목을 선택하세요.","I000");
  262. return;
  263. }
  264. fSaveClick();
  265. ]]>
  266. </script>
  267. </button>
  268. <line id="line5" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  269. </group>
  270. </xhtml:body>
  271. </xhtml:html>