SPRBC01500_부서별예산코드HELP.xrw 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. <bugtcode>
  11. <bugtcodelist>
  12. </bugtcodelist>
  13. </bugtcode>
  14. <acntcode>
  15. <acntcodelist>
  16. <supacntcd3/>
  17. <supacntnm3/>
  18. <supacntcd4/>
  19. <supacntnm4/>
  20. <acntcd/>
  21. <acntnm/>
  22. <projectid/>
  23. <projectnm/>
  24. <bugtflag/>
  25. <bugtcd/>
  26. <bugtnm/>
  27. <acntcdbugtcd/>
  28. <chk/>
  29. </acntcodelist>
  30. </acntcode>
  31. </main>
  32. <target/>
  33. <send>
  34. <bugtref>
  35. <acntcd/>
  36. <acntnm/>
  37. <bugtflag/>
  38. <deptcd/>
  39. <acntyy/>
  40. <bugtflag/>
  41. </bugtref>
  42. </send>
  43. <init>
  44. <refcond>
  45. <label>예산코드</label>
  46. <value>bugtcd</value>
  47. <label>예산명</label>
  48. <value>bugtnm</value>
  49. </refcond>
  50. </init>
  51. <source>
  52. <projectid/>
  53. </source>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. model.removenode("/root/main/acntcode/acntcodelist");
  59. model.setValue("/root/send/bugtref/deptcd", model.getValue("/root/target/defaultvalue/deptcd"));
  60. model.setValue("/root/send/bugtref/acntyy", model.getValue("/root/target/defaultvalue/acntyy"));
  61. model.setValue("/root/send/bugtref/bugtflag", model.getValue("/root/target/defaultvalue/bugtflag"));
  62. misfMsterDetailSet(grd_acntlist, null, "TRRBC99102", "N");
  63. if(instance1.selectNodes("/root/target/validation/acntcodelist").length == 0)
  64. {
  65. misfMsterDetailRetrieve();//계정코드 조회
  66. }
  67. else
  68. {
  69. model.copyNode("/root/main/acntcode", "/root/target/validation");
  70. model.refresh();
  71. }
  72. fSetReadOnly();
  73. ]]>
  74. </script>
  75. <script type="javascript">
  76. <![CDATA[
  77. //==============================================================
  78. // 읽기전용 컬럼 세팅
  79. //==============================================================
  80. function fSetReadOnly()
  81. {
  82. for(var i = 1; i < grd_acntlist.rows; i++)
  83. {
  84. if(grd_acntlist.valueMatrix(i, grd_acntlist.colRef("bugtyn")) == "N")
  85. {
  86. grd_acntlist.isReadOnly(i, grd_acntlist.colRef("chk")) = true;
  87. }
  88. }
  89. }
  90. //==============================================================
  91. // 계정항목 PopUp
  92. //==============================================================
  93. function fOpenPopupAcntHelp(pObj, sRecv)
  94. {
  95. misfOpenPopUpList("05", pObj, "", sRecv);
  96. model.refresh();
  97. }
  98. ]]>
  99. </script>
  100. <submission id="TRRBC99102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bugtref" resultref="/root/main/acntcode"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  105. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  106. </xhtml:head>
  107. <xhtml:body pagewidth="820" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  108. <group id="group3" scroll="auto" style="left:8px; top:0px; width:782px; height:522px; ">
  109. <group id="group2" style="left:0px; top:0px; width:580px; height:5px; "/>
  110. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:205px; height:13px; ">부서코드별 예산 편성 리스트</caption>
  111. <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:780px; y2:63px; "/>
  112. <datagrid id="grd_acntlist" nodeset="/root/main/acntcode/acntcodelist" caption="항코드^항^목코드^목^계정코드^계정과목명^프로젝트ID^프로젝트명^예산구분^예산코드^예산명^계정코드예산코드^선택^예산존재여부^가용액" colsep="^" colwidth="0, 81, 0, 70, 55, 192, 71, 111, 58, 0, 0, 0, 0, 120" dataheight="23" defaultrows="0" mergecells="byrestriccol" mergecellsfixedcols="never" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:68px; width:780px; height:444px; ">
  113. <col ref="supacntcd3" visibility="hidden"/>
  114. <col ref="supacntnm3"/>
  115. <col ref="supacntcd4" visibility="hidden"/>
  116. <col ref="supacntnm4"/>
  117. <col ref="acntcd" style="text-align:center; "/>
  118. <col ref="acntnm"/>
  119. <col ref="projectid" style="text-align:center; "/>
  120. <col ref="projectnm"/>
  121. <col disabled="true" ref="bugtflag" type="combo" style="text-align:center; ">
  122. <choices>
  123. <item>
  124. <label>수익</label>
  125. <value>1</value>
  126. </item>
  127. <item>
  128. <label>비용</label>
  129. <value>2</value>
  130. </item>
  131. <item>
  132. <label>수익 및 비용</label>
  133. <value>3</value>
  134. </item>
  135. </choices>
  136. </col>
  137. <col ref="bugtcd" visibility="hidden" style="text-align:center; "/>
  138. <col ref="bugtnm" visibility="hidden"/>
  139. <col ref="acntcdbugtcd" visibility="hidden"/>
  140. <col checkvalue="Y,N" ref="chk" type="checkbox" visibility="hidden"/>
  141. <script type="javascript" ev:event="ondblclick">
  142. <![CDATA[
  143. if( grd_acntlist.isCell(event.target) && grd_acntlist.row >= grd_acntlist.fixedRows )
  144. {
  145. btn_confirm.dispatch("DOMActivate");
  146. }
  147. ]]>
  148. </script>
  149. <col ref="bugtyn" visibility="hidden"/>
  150. <col ref="solubleamt" format="(-)#,###" style="text-align:right; "/>
  151. </datagrid>
  152. <group id="group4" style="left:0px; top:5px; width:780px; height:35px; ">
  153. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:780px; height:35px; "/>
  154. <caption id="caption7" class="search_name" visibility="visible" style="left:15; top:9; width:86px; height:17px; ">조건 :</caption>
  155. <input id="ipt_acntcd" ref="/root/send/bugtref/acntcd" class="input_s_essential" navindex="2" visibility="visible" style="left:80px; top:8px; width:280px; height:19px; ">
  156. <script type="javascript" ev:event="onkeypress">
  157. <![CDATA[
  158. if(event.keyCode == 13)
  159. {
  160. ipt_acntcd.value = ipt_acntcd.currentText;
  161. btn_search.dispatch("DOMActivate");
  162. }
  163. ]]>
  164. </script>
  165. </input>
  166. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:715px; top:5px; width:56px; height:22px; text-align:left; ">
  167. <caption>조회</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. misfMsterDetailRetrieve();
  171. fSetReadOnly();
  172. ]]>
  173. </script>
  174. </button>
  175. <line id="line13" class="line_4" style="x1:705px; y1:5px; x2:705px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  176. </group>
  177. </group>
  178. <group id="group1" scroll="auto" style="left:8px; top:521px; width:782px; height:27px; ">
  179. <button id="btn_confirm" class="btn4_letter2" style="left:661px; top:5px; width:56px; height:22px; ">
  180. <caption>확인</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. model.setValue("/root/source/projectid",model.getValue(grd_acntlist.valueMatrix(grd_acntlist.row, grd_acntlist.colRef("projectid"))));
  184. misfPopUpListReturn(grd_acntlist);
  185. ]]>
  186. </script>
  187. </button>
  188. <button id="btn_cancel" class="btn4_letter2" style="left:720px; top:5px; width:56px; height:22px; ">
  189. <caption>취소</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. window.close();
  193. ]]>
  194. </script>
  195. </button>
  196. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1 65px; y2:0px; "/>
  197. </group>
  198. </xhtml:body>
  199. </xhtml:html>