SPRAD00107_편성내역조회.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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>예산편성내역 HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <bugtorgnzlist/>
  12. </list>
  13. </main>
  14. <send>
  15. <instcd/>
  16. <retrnm/>
  17. <refcond/>
  18. <deptcd/>
  19. <unsldd/>
  20. <sqlkind>origin</sqlkind>
  21. <drcrflag/>
  22. </send>
  23. <init>
  24. <refcond>
  25. <label>코드명</label>
  26. <value>codenm</value>
  27. <label>코드</label>
  28. <value>code</value>
  29. </refcond>
  30. </init>
  31. <target>
  32. <defaultvalue/>
  33. </target>
  34. <source>
  35. <bugtlist>
  36. <instcd/>
  37. <deptcd/>
  38. <acntcd/>
  39. <projectid/>
  40. <bugtflag/>
  41. <unsldd/>
  42. </bugtlist>
  43. </source>
  44. </root>
  45. </instance>
  46. <submission id="TRRAD90107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fInit();
  50. ]]>
  51. </script>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript">
  57. <![CDATA[
  58. function fInit()
  59. {
  60. rdo_refcond.select(0);
  61. model.removenode("/root/main/list/bugtorgnzlist");
  62. model.setValue("/root/send/instcd", model.getValue("/root/target/defaultvalue/instcd"));
  63. model.setValue("/root/send/deptcd", model.getValue("/root/target/defaultvalue/deptcd"));
  64. model.setValue("/root/send/unsldd", model.getValue("/root/target/defaultvalue/unsldd"));
  65. model.setValue("/root/send/drcrflag", model.getValue("/root/target/defaultvalue/drcrflag"));
  66. model.setValue("/root/source/bugtlist/instcd", model.getValue("/root/target/defaultvalue/instcd"));
  67. model.setValue("/root/source/bugtlist/deptcd", model.getValue("/root/target/defaultvalue/deptcd"));
  68. model.setValue("/root/source/bugtlist/unsldd", model.getValue("/root/target/defaultvalue/unsldd"));
  69. var vFullSearchFlag = model.getValue("/root/target/defaultvalue/fullsearchflag");
  70. /*
  71. if(vFullSearchFlag != "Y")
  72. {
  73. if(model.getValue("/root/target/defaultvalue/acntcd") != "")
  74. {
  75. model.setValue("/root/send/retrnm", model.getValue("/root/target/defaultvalue/acntcd"));
  76. model.setValue("/root/send/refcond", "code");
  77. }
  78. else
  79. {
  80. model.setValue("/root/send/retrnm", "-");
  81. model.setValue("/root/send/refcond", "code");
  82. }
  83. }
  84. */
  85. misfMsterDetailSet(grd_bugtorgnzlist, null, "TRRAD90107", "N", "byRow");
  86. var sColWidth;
  87. if(model.getValue("/root/target/defaultvalue/instcd") != "103")
  88. {
  89. sColWidth = "0, 60, 70, 150,0,0,0,0,115,115,115,135, 30";
  90. grd_bugtorgnzlist.colHidden(grd_bugtorgnzlist.colRef("projectid")) = true;
  91. grd_bugtorgnzlist.colHidden(grd_bugtorgnzlist.colRef("projectnm")) = true;
  92. }
  93. else
  94. {
  95. sColWidth = "0, 50, 60, 135, 0, 0, 70, 95, 85, 85, 85, 105, 30"
  96. }
  97. var arrColWidth = sColWidth.split(",");
  98. for(var i=0; i<arrColWidth.length; i++)
  99. {
  100. grd_bugtorgnzlist.colWidth(i+1) = parseFloat(arrColWidth[i]);
  101. }
  102. btn_search.dispatch("DOMActivate");
  103. model.setFocus("ipt_refcond");
  104. model.refresh();
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body pagewidth="860" pageheight="570" guideline="1,-2;2,-2;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  110. <group id="group3" scroll="auto" style="left:0px; top:0px; width:840px; height:552px; ">
  111. <group id="group2" style="left:0px; top:0px; width:840px; height:35px; ">
  112. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:840px; height:35px; "/>
  113. <input id="ipt_refcond" ref="/root/send/retrnm" class="input_s_essential" visibility="hidden" style="left:323px; top:9px; width:232px; height:19px; ">
  114. <script type="javascript" ev:event="onkeypress">
  115. <![CDATA[
  116. if(event.keyCode == 13)
  117. {
  118. btn_search.dispatch("DOMActivate");
  119. }
  120. ]]>
  121. </script>
  122. <script type="javascript" ev:event="xforms-value-changed">
  123. <![CDATA[
  124. if(ipt_refcond.value != "")
  125. {
  126. btn_search.dispatch("DOMActivate");
  127. }
  128. ]]>
  129. </script>
  130. </input>
  131. <button id="btn_search" class="btn1_letter2" style="left:771px; top:7px; width:56px; height:22px; ">
  132. <caption>조회</caption>
  133. <script type="javascript" ev:event="DOMActivate">
  134. <![CDATA[
  135. misfMsterDetailRetrieve();
  136. ]]>
  137. </script>
  138. </button>
  139. <line id="line13" class="line_4" style="x1:758px; y1:3px; x2:758px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  140. <caption id="caption2" class="search_name" visibility="hidden" style="left:235px; top:9px; width:91px; height:17px; ">조회조건 :</caption>
  141. <caption id="caption3" class="search_name" visibility="hidden" style="left:3px; top:9px; width:91px; height:17px; ">조회조건 :</caption>
  142. <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:94px; top:8px; width:133px; height:20px; border-style:solid; ">
  143. <choices>
  144. <itemset nodeset="/root/init/refcond">
  145. <label ref="label"/>
  146. <value ref="value"/>
  147. </itemset>
  148. </choices>
  149. <script type="javascript" ev:event="xforms-select">
  150. <![CDATA[
  151. model.setFocus("ipt_refcond");
  152. ]]>
  153. </script>
  154. </select1>
  155. </group>
  156. <caption id="caption1" class="tit_2" style="left:5px; top:39px; width:145px; height:14px; ">예산 편성 리스트</caption>
  157. <line id="line1" class="line_1" style="x1:0px; y1:54px; x2:838px; y2:54px; "/>
  158. <datagrid id="grd_bugtorgnzlist" nodeset="/root/main/list/bugtorgnzlist" class="grd_bugtorgnzlist" caption="예산구분flag^구분^계정코드^계정명^예산코드^예산코드명^프로젝트ID^프로젝트명^본예산액(A)^추산액(B)^집행액(C)^예산가용액(A-B-C)^조회" colsep="^" colwidth="0, 50, 70, 230, 0, 0, 0, 0, 100, 100, 100, 100, 35" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:59px; width:838px; height:463px; ">
  159. <col ref="bugtflag" visibility="hidden"/>
  160. <col ref="bugtflagnm"/>
  161. <col ref="acntcd"/>
  162. <col ref="acntnm"/>
  163. <col ref="bugtcd" visibility="hidden"/>
  164. <col ref="bugtnm" visibility="hidden"/>
  165. <col ref="projectid"/>
  166. <col ref="projectnm"/>
  167. <col ref="orgbugtamtsum" format="(-)#,###" style="text-align:right; "/>
  168. <col ref="revbugtamtsum" format="(-)#,###" style="text-align:right; "/>
  169. <col ref="bugtexecamtsum" format="(-)#,###" style="text-align:right; "/>
  170. <col ref="bugtamt" format="(-)#,###" style="text-align:right; "/>
  171. <col ref="bugtsearch" type="inputbutton" style="text-align:center; "/>
  172. <script type="javascript" ev:event="ondblclick">
  173. <![CDATA[
  174. misfPopUpListReturn(grd_bugtorgnzlist);
  175. ]]>
  176. </script>
  177. <script type="javascript" ev:event="onaftersort">
  178. <![CDATA[
  179. grd_bugtorgnzlist.gridToInstance();
  180. ]]>
  181. </script>
  182. <script type="javascript" ev:event="onbuttonclick">
  183. <![CDATA[
  184. model.setValue("/root/source/bugtlist/acntcd", grd_bugtorgnzlist.valueMatrix(grd_bugtorgnzlist.row,grd_bugtorgnzlist.colRef("acntcd")));
  185. model.setValue("/root/source/bugtlist/projectid", grd_bugtorgnzlist.valueMatrix(grd_bugtorgnzlist.row,grd_bugtorgnzlist.colRef("projectid")));
  186. model.setValue("/root/source/bugtlist/bugtflag", grd_bugtorgnzlist.valueMatrix(grd_bugtorgnzlist.row,grd_bugtorgnzlist.colRef("bugtflag")));
  187. modal("SPRAD00109","","","","","/root/source", "/root/target");
  188. ]]>
  189. </script>
  190. </datagrid>
  191. </group>
  192. <group id="group1" scroll="auto" style="left:0px; top:524px; width:839px; height:27px; ">
  193. <button id="btn_confirm" class="btn4_letter2" style="left:719px; top:2px; width:56px; height:22px; ">
  194. <caption>확인</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. misfPopUpListReturn(grd_bugtorgnzlist);
  198. ]]>
  199. </script>
  200. </button>
  201. <button id="btn_cancel" class="btn4_letter2" style="left:776px; top:2px; width:56px; height:22px; ">
  202. <caption>취소</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. window.close();
  206. ]]>
  207. </script>
  208. </button>
  209. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:787px; y2:0px; "/>
  210. </group>
  211. </xhtml:body>
  212. </xhtml:html>