SPRBC00100_예산코드HELP.xrw 7.1 KB

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