SPZSA20500_화면및보고서관리.xrw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. <list>
  11. <scrnlist/>
  12. </list>
  13. <item>
  14. <scrncd/>
  15. <scrnflag/>
  16. <scrnurl/>
  17. <scrnpos/>
  18. <useyn/>
  19. </item>
  20. </main>
  21. <send>
  22. <scrnkind/>
  23. <scrnurl/>
  24. <scrnlist/>
  25. </send>
  26. <init>
  27. <comcd/>
  28. </init>
  29. <hidden>
  30. <comcd/>
  31. </hidden>
  32. <temp/>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. // 검색조건에서 기본으로 첫번째 항목이 나타나도록 한다.
  38. fInitComcd();
  39. fInitialize();
  40. btn_search.disabled = !checkAuth("R") ;
  41. ]]>
  42. </script>
  43. <submission id="TRZSA20501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list">
  44. </submission>
  45. <submission id="TRZBC00101" method="post" replace="instance"/>
  46. </model>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  49. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  50. <script type="javascript">
  51. <![CDATA[
  52. /**
  53. * @group :
  54. * @ver : 2006.12.20
  55. * @by : 이상준
  56. * @---------------------------------------------------
  57. * @type : function
  58. * @access : public
  59. * @desc : 공통코드 초기화
  60. * @return :
  61. * @---------------------------------------------------
  62. */
  63. function fInitComcd() {
  64. zbcfGetCodeList( new Array("Z0005"), new Array("/root/init/comcd"));
  65. fInsertInstance("Z0005", "전체", "-");
  66. }
  67. /**
  68. * @group :
  69. * @ver : 2006.12.20
  70. * @by : 이상준
  71. * @---------------------------------------------------
  72. * @type : function
  73. * @access : public
  74. * @desc : 초기화
  75. * @return :
  76. * @---------------------------------------------------
  77. */
  78. function fInitialize() {
  79. model.removeNodeset("/root/main/list/scrnlist");
  80. model.resetInstanceNode("/root/send");
  81. model.resetInstanceNode("/root/main/item");
  82. model.refresh();
  83. cmc_scrncd.select(0);
  84. }
  85. /* @group :
  86. * @ver : 2006.12.26
  87. * @by : 이상준
  88. * @-----------------------------------
  89. * @type : function
  90. * @access : public
  91. * @desc : 조회 및 검색
  92. */
  93. function fbtnSearch() {
  94. //model.send("TRZSA20501");
  95. submit("TRZSA20501");
  96. //grd_scrnlist.select(1, 3)=true;
  97. grd_scrnlist.row=1;
  98. }
  99. /* @group :
  100. * @ver : 2006.12.26
  101. * @by : 이상준
  102. * @-----------------------------------
  103. * @type : function
  104. * @access : public
  105. * @desc : 팝업 선택
  106. */
  107. function fbtnSelect() {
  108. var iRow = grd_scrnlist.row;
  109. if (iRow<=0)
  110. {
  111. alert("전달할 데이터가 없습니다");
  112. return;
  113. }
  114. var scrncd = model.getValue("/root/main/list/scrnlist["+iRow+"]/scrncd");
  115. var scrnnm = model.getValue("/root/main/list/scrnlist["+iRow+"]/scrnnm");
  116. if (checkOpener())
  117. {
  118. opener.javascript.setParameter("SPZSA20500_",scrncd+"|"+scrnnm);
  119. }
  120. window.close();
  121. }
  122. ]]>
  123. </script>
  124. </xhtml:head>
  125. <xhtml:body pagewidth="534" pageheight="360" guideline="1,518;2,343;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  126. <group id="grp_grid" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
  127. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:136px; height:14px; ">화면 및 보고서 목록</caption>
  128. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:517px; y2:60px; "/>
  129. <datagrid id="grd_scrnlist" nodeset="/root/main/list/scrnlist" caption="화면코드^화면URL" colsep="^" colwidth="175, 310" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:64px; width:517px; height:251px; ">
  130. <col ref="scrncd"/>
  131. <col ref="scrnurl"/>
  132. <script type="javascript" ev:event="ondblclick">
  133. <![CDATA[
  134. fbtnSelect();
  135. ]]>
  136. </script>
  137. </datagrid>
  138. </group>
  139. <group id="grp_btn" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
  140. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  141. <caption>확인</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. fbtnSelect();
  145. ]]>
  146. </script>
  147. </button>
  148. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  149. <caption>취소</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. window.close();
  153. ]]>
  154. </script>
  155. </button>
  156. </group>
  157. <group id="grp_search" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
  158. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  159. <caption id="caption3" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">검색조건</caption>
  160. <line id="line2" style="x1:429px; y1:5px; x2:429px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  161. <caption id="caption22" class="search_name" style="left:196px; top:10px; width:94px; height:17px; ">화면URL</caption>
  162. <input id="ipt_scrnnm" ref="/root/send/scrnurl" class="input_search" style="left:275px; top:8px; width:125px; height:19px; ">
  163. <script type="javascript" ev:event="onkeypress">
  164. <![CDATA[
  165. if (event.keycode == 13)
  166. {
  167. ipt_scrnnm.value = ipt_scrnnm.currentText;
  168. fbtnSearch();
  169. }
  170. ]]>
  171. </script>
  172. </input>
  173. <button id="btn_search" class="btn1_letter2" style="left:445px; top:5px; width:56px; height:22px; ">
  174. <caption>조회</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. //model.send("TRZSS00101");
  178. submit("TRZSA20501");
  179. //grd_scrnlist.select(1, 3)=true;
  180. grd_scrnlist.row=1;
  181. ]]>
  182. </script>
  183. </button>
  184. <select1 id="cmc_scrncd" ref="/root/send/scrnkind" class="combo_default" appearance="minimal" style="left:100px; top:8px; width:80px; height:19px; ">
  185. <choices>
  186. <itemset nodeset="/root/hidden/comcd/Z0005">
  187. <label ref="cdnm"/>
  188. <value ref="cdid"/>
  189. </itemset>
  190. </choices>
  191. </select1>
  192. </group>
  193. </xhtml:body>
  194. </xhtml:html>