SMRBC00400_부서별세목계정관리.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. <main>
  10. <dept>
  11. <deptlist>
  12. <deptcd/>
  13. <depthngnm/>
  14. </deptlist>
  15. </dept>
  16. <acnt>
  17. <deptacntlist>
  18. <deptcd/>
  19. <acntcd/>
  20. <acntnm/>
  21. <bugtcd/>
  22. <bugtnm/>
  23. <acntcdbugtcd/>
  24. <bugtuseyn/>
  25. <bugtprntseq/>
  26. </deptacntlist>
  27. </acnt>
  28. </main>
  29. <send>
  30. <condition>
  31. <deptcd/>
  32. <depthngnm/>
  33. <bugtflag>2</bugtflag>
  34. </condition>
  35. <deptacntlist/>
  36. <search>
  37. <deptcd/>
  38. <bugtflag/>
  39. </search>
  40. </send>
  41. <init/>
  42. <hidden/>
  43. <temp/>
  44. <source>
  45. <defaultvalue/>
  46. </source>
  47. </root>
  48. </instance>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. fResetForm();
  55. misfMsterDetailSet(grd_deptinfo, null, "TRRBC00401", "N");
  56. misfMsterDetailSet(grd_acntinfo, grd_deptinfo, "TRRBC00402", "Y");
  57. btn_search.dispatch("DOMActivate");
  58. ]]>
  59. </script>
  60. <script type="javascript">
  61. <![CDATA[
  62. //========================================================================================
  63. //화면 로드시 초기화 함수
  64. //========================================================================================
  65. function fResetForm()
  66. {
  67. model.removenode("/root/main/dept/deptlist");
  68. model.removenode("/root/main/acnt/deptacntlist");
  69. model.refresh();
  70. }
  71. //========================================================================================
  72. //부서코드 Help Open
  73. //========================================================================================
  74. function fOpenPopupDeptHelp(pControl, pInstance)
  75. {
  76. misfOpenPopUpList("02", pControl, "", pInstance);
  77. model.refresh();
  78. }
  79. ]]>
  80. </script>
  81. <submission id="TRRBC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/dept"/>
  82. <submission id="TRRBC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/acnt"/>
  83. <submission id="TXRBC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  84. </model>
  85. </xhtml:head>
  86. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  87. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  88. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">부서별 세목계정관리</caption>
  89. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  90. </group>
  91. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  92. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:385px; y2:70px; "/>
  93. <line id="line2" class="line_1" style="x1:390px; y1:70px; x2:1194px; y2:70px; "/>
  94. <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  95. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  96. <caption id="caption7" class="search_name" style="left:11px; top:9px; width:85px; height:17px; ">부 서 :</caption>
  97. <line id="line3" class="line_4" style="x1:1107px; y1:0px; x2:1107px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  98. <input id="ipt_deptcd" ref="/root/send/condition/deptcd" class="input_s_essential" navindex="2" style="left:99px; top:8px; width:76px; height:19px; ">
  99. <script type="javascript" ev:event="xforms-value-changed">
  100. <![CDATA[
  101. // misfValidationCheck("02", "", "deptcd,depthngnm");
  102. // model.refresh();
  103. ]]>
  104. </script>
  105. <script type="javascript" ev:event="onkeypress">
  106. <![CDATA[
  107. if(event.keyCode == 13)
  108. {
  109. ipt_deptcd.value = ipt_deptcd.currentText;
  110. misfValidationCheck("02", "", "deptcd,depthngnm");
  111. model.refresh();
  112. }
  113. ]]>
  114. </script>
  115. </input>
  116. <input id="ipt_depthngnm" ref="/root/send/condition/depthngnm" class="input_s_essential" navindex="3" style="left:200px; top:8px; width:150px; height:19px; ">
  117. <script type="javascript" ev:event="xforms-value-changed">
  118. <![CDATA[
  119. ]]>
  120. </script>
  121. <script type="javascript" ev:event="onkeypress">
  122. <![CDATA[
  123. if(event.keyCode == 13)
  124. {
  125. ipt_depthngnm.value = ipt_depthngnm.currentText;
  126. misfValidationCheck("02", "", "deptcd,depthngnm");
  127. model.refresh();
  128. }
  129. ]]>
  130. </script>
  131. </input>
  132. <button id="btn_depthelp" class="icon_search" style="left:179px; top:11px; width:16px; height:16px; ">
  133. <caption/>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm");
  137. ]]>
  138. </script>
  139. </button>
  140. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  141. <caption>조회</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. misfMsterDetailRetrieve();
  145. grd_deptinfo.row = grd_deptinfo.fixedRows;
  146. grd_deptinfo.col = grd_deptinfo.colRef("depthngnm");
  147. ]]>
  148. </script>
  149. </button>
  150. <select1 id="rdo_bugtflag" ref="/root/send/condition/bugtflag" navindex="27" overflow="visible" appearance="full" cellspacing="20" cols="4" style="left:484px; top:10px; width:271px; height:20px; border-style:none; ">
  151. <choices>
  152. <item>
  153. <label>수입</label>
  154. <value>1</value>
  155. </item>
  156. <item>
  157. <label>비용</label>
  158. <value>2</value>
  159. </item>
  160. <item>
  161. <label>구매</label>
  162. <value>3</value>
  163. </item>
  164. <item>
  165. <label>자본</label>
  166. <value>4</value>
  167. </item>
  168. </choices>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. btn_search.dispatch("DOMActivate");
  172. ]]>
  173. </script>
  174. </select1>
  175. <caption id="caption1" class="search_name" style="left:395px; top:10px; width:87px; height:17px; ">예산구분 :</caption>
  176. </group>
  177. <caption id="caption8" class="tit_2" style="left:395px; top:55px; width:117px; height:13px; ">계정정보</caption>
  178. <caption id="caption9" class="tit_2" style="left:5px; top:55px; width:117px; height:13px; ">부서정보</caption>
  179. <button id="btn_excel" class="btn2_letter2" style="left:1038px; top:50px; width:42px; height:19px; text-align:left; ">
  180. <caption>엑셀</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. misfSaveExcel(grd_acntinfo);
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="btn_rowadd" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
  188. <caption>행추가</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. if(grd_deptinfo.rows > 1)
  192. {
  193. misfGridIUD(grd_acntinfo, "A");
  194. }
  195. else
  196. {
  197. messageBox("세목계정을 추가 가능한 부서가", "I004");
  198. return false;
  199. }
  200. ]]>
  201. </script>
  202. </button>
  203. <datagrid id="grd_deptinfo" nodeset="/root/main/dept/deptlist" caption="예산구분^부서코드^부서명" colsep="^" colwidth="0, 100, 244" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:385px; height:663px; ">
  204. <col ref="bugtflag"/>
  205. <col ref="deptcd"/>
  206. <col ref="depthngnm"/>
  207. <script type="javascript" ev:event="onrowchanged">
  208. <![CDATA[
  209. misfMsterDetailRetrieve();
  210. misfSetReadOnlyCol(grd_acntinfo, "acntcd", true);
  211. ]]>
  212. </script>
  213. </datagrid>
  214. <datagrid id="grd_acntinfo" nodeset="/root/main/acnt/deptacntlist" caption="부서코드^예산구분^항코드^항^목코드^목^계정과목^계정과목^예산구분^예산코드^예산과목^계정코드예산코드^예산사용^예산출력순서" colsep="^" colwidth="36, 52, 40, 100, 40, 110, 95, 200, 0, 35, 70, 95, 62, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:389px; top:75px; width:804px; height:663px; ">
  215. <col ref="deptcd" visibility="hidden"/>
  216. <col ref="bugtflag" visibility="hidden"/>
  217. <col ref="supacntcd3" visibility="hidden"/>
  218. <col ref="supacntnm3"/>
  219. <col ref="supacntcd4" visibility="hidden"/>
  220. <col ref="supacntnm4"/>
  221. <col ref="acntcd" type="inputbutton"/>
  222. <col ref="acntnm"/>
  223. <col ref="bugtflag" visibility="hidden"/>
  224. <col ref="bugtcd" visibility="hidden"/>
  225. <col ref="bugtnm" visibility="hidden"/>
  226. <col ref="acntcdbugtcd" visibility="hidden"/>
  227. <col checkvalue="Y,N" ref="bugtuseyn" type="checkbox"/>
  228. <col ref="bugtprntseq" type="input"/>
  229. <script type="javascript" ev:event="onbuttonclick">
  230. <![CDATA[
  231. misfOpenPopUpList("10", grd_acntinfo, "", "supacntcd3,supacntnm3,supacntcd4,supacntnm4,acntcd,acntnm,bugtflag,bugtcd,bugtnm,acntcdbugtcd");
  232. grd_acntinfo.valueMatrix(grd_acntinfo.row, grd_acntinfo.colRef("bugtuseyn")) = "Y";
  233. misfCheckDupData(grd_acntinfo, grd_acntinfo.colRef("acntcd"));
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </datagrid>
  238. <button id="btn_grddel" class="btn2_letter3" style="left:1137px; top:50px; width:53px; height:19px; ">
  239. <caption>행삭제</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. misfGridIUD(grd_acntinfo, "D");
  243. ]]>
  244. </script>
  245. </button>
  246. </group>
  247. <group id="group2" scroll="auto" style="left:0px; top:23px; width:1195px; height:27px; ">
  248. <line id="line5" class="line_6" style="x1:0px; y1:24px; x2:1194px; y2:24px; "/>
  249. <button id="btn_copy" class="btn4_letter2" disabled="false" visibility="hidden" style="left:1073px; top:3px; width:56px; height:22px; ">
  250. <caption>복사</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. ]]>
  254. </script>
  255. </button>
  256. <button id="btn_save" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
  257. <caption>저장</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. misfSave("TXRBC00401");
  261. grd_deptinfo.dispatch("onrowchanged");
  262. grd_acntinfo.rebuild();
  263. ]]>
  264. </script>
  265. </button>
  266. </group>
  267. </xhtml:body>
  268. </xhtml:html>