SPRBC01400_예산편성부서HELP.xrw 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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>예산편성부서 조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <bugtdept>
  11. <bugtdeptlist>
  12. <deptcd/>
  13. <depthngnm/>
  14. <todd/>
  15. <deptcdtodd/>
  16. </bugtdeptlist>
  17. </bugtdept>
  18. </main>
  19. <target/>
  20. <init>
  21. </init>
  22. <send>
  23. <dept>
  24. <deptcd/>
  25. <depthngnm/>
  26. <acntyy/>
  27. <quarter/>
  28. </dept>
  29. </send>
  30. <target>
  31. <acntyy/>
  32. <quarter/>
  33. <quarterflag/>
  34. <deptnm/>
  35. </target>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. if (model.getValue("/root/target/quarterflag") != "quarter"){
  41. //model.setValue("/root/send/dept/quarter", opener.model.getValue("/root/send/retrparam/quarter"));
  42. misfMsterDetailSet(grd_deptlist, null, "TRRBC99202", "N");
  43. model.setValue("/root/send/dept/acntyy", model.getValue("/root/target/defaultvalue/acntyy"));
  44. if(instance1.selectNodes("/root/target/validation/bugtdeptlist").length == 0)
  45. {
  46. misfMsterDetailRetrieve();
  47. }
  48. else
  49. {
  50. model.copyNode("/root/main/bugtdept", "/root/target/validation");
  51. }
  52. model.refresh();
  53. }else if(model.getValue("/root/target/quarterflag") == "quarter"){
  54. model.setValue("/root/send/dept/acntyy", model.getValue("/root/target/acntyy"));
  55. model.setValue("/root/send/dept/quarter", model.getValue("/root/target/quarter"));
  56. model.setValue("/root/send/dept/deptcd", model.getValue("/root/target/deptcd"));
  57. misfMsterDetailSet(grd_deptlist, null, "TRRBC99202", "N");
  58. if(instance1.selectNodes("/root/target/validation/bugtdeptlist").length == 0)
  59. {
  60. misfMsterDetailRetrieve();
  61. }
  62. else
  63. {
  64. model.copyNode("/root/main/bugtdept", "/root/target/validation");
  65. }
  66. model.refresh();
  67. }
  68. ]]>
  69. </script>
  70. <submission id="TRRBC99202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dept" resultref="/root/main/bugtdept"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  75. </xhtml:head>
  76. <xhtml:body pagewidth="620" pageheight="550" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  77. <group id="group3" scroll="auto" style="left:8px; top:0px; width:580px; height:520px; ">
  78. <group id="group2" style="left:0px; top:0px; width:580px; height:5px; "/>
  79. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:183px; height:13px; ">예산편성부서코드 리스트</caption>
  80. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:580px; y2:64px; "/>
  81. <datagrid id="grd_deptlist" nodeset="/root/main/bugtdept/bugtdeptlist" caption="부서코드^부서명^종료일자^부서코드종료일자^선택" colsep="^" colwidth="127, 275, 150, 0, 50" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:69px; width:580px; height:446px; ">
  82. <col class="text_center" ref="deptcd"/>
  83. <col ref="depthngnm"/>
  84. <col class="text_center" ref="todd" format="yyyy-mm-dd"/>
  85. <col ref="deptcdtodd" visibility="hidden"/>
  86. <col checkvalue="Y,N" ref="chk" type="checkbox" visibility="hidden"/>
  87. <script type="javascript" ev:event="ondblclick">
  88. <![CDATA[
  89. if( grd_deptlist.isCell(event.target) && grd_deptlist.row >= grd_deptlist.fixedRows )
  90. {
  91. btn_confirm.dispatch("DOMActivate");
  92. }
  93. ]]>
  94. </script>
  95. </datagrid>
  96. <group id="group4" style="left:0px; top:5px; width:580px; height:35px; ">
  97. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:580px; height:35; "/>
  98. <input id="ipt_deptcd" ref="/root/send/dept/deptcd" class="input_s_essential" navindex="2" visibility="visible" style="left:90px; top:8px; width:265px; height:19px; ">
  99. <script type="javascript" ev:event="onkeypress">
  100. <![CDATA[
  101. if(event.keyCode == 13)
  102. {
  103. ipt_deptcd.value = ipt_deptcd.currentText;
  104. misfMsterDetailRetrieve();
  105. }
  106. ]]>
  107. </script>
  108. </input>
  109. <script type="javascript" ev:event="xforms-value-changed">
  110. <![CDATA[
  111. misfMsterDetailRetrieve();
  112. ]]>
  113. </script>
  114. <caption id="caption7" class="search_name" visibility="visible" style="left:15; top:9; width:86px; height:17px; ">조 건 :</caption>
  115. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:509px; top:7px; width:56px; height:22px; text-align:left; ">
  116. <caption>조회</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. misfMsterDetailRetrieve();
  120. ]]>
  121. </script>
  122. </button>
  123. <line id="line13" class="line_4" style="x1:494px; y1:4px; x2:494px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  124. </group>
  125. </group>
  126. <group id="group1" scroll="auto" style="left:8px; top:521px; width:580px; height:27px; ">
  127. <button id="btn_confirm" class="btn4_letter2" style="left:466px; top:5px; width:56px; height:22px; ">
  128. <caption>확인</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. /*
  132. if(misfCountCheckedList(grd_deptlist, grd_deptlist.colRef("chk")) == 0)
  133. {
  134. window.close();
  135. }
  136. else
  137. {
  138. misfPopUpCheckedListReturn(grd_deptlist, grd_deptlist.colRef("chk"));
  139. }
  140. */
  141. if (model.getValue("/root/target/quarterflag") != "quarter"){
  142. misfPopUpListReturn(grd_deptlist);
  143. }else if (model.getValue("/root/target/quarterflag") == "quarter"){
  144. for(var i = 1; i < grd_deptlist.rows ; i++){
  145. opener.model.makeValue("/root/hidden/returndata/deptcd", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")));
  146. opener.model.makeValue("/root/hidden/returndata/deptnm", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("depthngnm")));
  147. window.close();
  148. }
  149. }
  150. ]]>
  151. </script>
  152. </button>
  153. <button id="btn_cancel" class="btn4_letter2" style="left:524px; top:5px; width:56px; height:22px; ">
  154. <caption>취소</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. window.close();
  158. ]]>
  159. </script>
  160. </button>
  161. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:580; y2:0px; "/>
  162. </group>
  163. </xhtml:body>
  164. </xhtml:html>