SMAEB00300_결과예문관리.xrw 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. <exmptmpllist>
  11. <exmptmpl>
  12. <sortno/>
  13. <basecd/>
  14. <basecdflagdesc/>
  15. <basecdcnts/>
  16. <basesuppdeptcd/>
  17. <basecdflag/>
  18. </exmptmpl>
  19. </exmptmpllist>
  20. </main>
  21. <send>
  22. <basecd/>
  23. <req>
  24. <data/>
  25. </req>
  26. <globalinstance>
  27. <instance1/>
  28. </globalinstance>
  29. </send>
  30. <init>
  31. <copyrslt>복사버튼 클릭 -&gt; 서식항목을 선택 -&gt; Ctrl+V를 키보드 선택입력합니다.</copyrslt>
  32. </init>
  33. <hidden>
  34. <item/>
  35. </hidden>
  36. </root>
  37. </instance>
  38. <submission id="TRAEB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exmptmpllist"/>
  39. <submission id="TXAEB00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  40. </model>
  41. <script type="javascript">
  42. <![CDATA[
  43. function fSendContents() {
  44. var bufCnts = "";
  45. var rowidx;
  46. var colref_viewcnts = grd_exmptmpl.colref("basecdcnts");
  47. if(checkOpener()) //opener 검사
  48. {
  49. var i = grd_exmptmpl.row;
  50. bufCnts += grd_exmptmpl.valueMatrix(i, colref_viewcnts) ;
  51. //alert('bufCnts-->'+bufCnts);
  52. window.clipBoardData = bufCnts;
  53. //alert(bufCnts);
  54. }else {
  55. messageBox("Parent 창[결과관리]이 변경되었습니다.","I999");
  56. return;
  57. }
  58. window.close();
  59. }
  60. ]]>
  61. </script>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. aezfSetSuppDeptcd();
  70. model.removeNodeset("/root/main/exmptmpllist/exmptmpl");
  71. model.refresh();
  72. model.setFocus("ipt_basecd");
  73. ]]>
  74. </script>
  75. </xhtml:head>
  76. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  77. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  78. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  79. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  80. <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:29px; "/>
  81. <button id="btn_sea" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
  82. <caption>조회</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. submit("TRAEB00301");
  86. ]]>
  87. </script>
  88. </button>
  89. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:112px; height:17px; ">결과예문코드 :</caption>
  90. <button id="button61" class="icon_search" style="left:270px; top:9px; width:16px; height:16px; ">
  91. <caption/>
  92. </button>
  93. <input id="ipt_basecd" ref="/root/send/basecd" class="input_search" style="left:130px; top:8px; width:135px; height:19px; ">
  94. <script type="javascript" ev:event="onkeydown">
  95. <![CDATA[
  96. inputEnterKey("btn_sea","DOMActivate");
  97. ]]>
  98. </script>
  99. </input>
  100. </group>
  101. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1194px; y2:69px; "/>
  102. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:146px; height:14px; ">결과예문 현황</caption>
  103. <button id="btn_grdadd" class="btn2_letter3" style="left:1087px; top:49px; width:53px; height:19px; ">
  104. <caption>행추가</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. // grd_exmptmpl.addItem();
  108. // model.setValue("/root/main/exmptmpllist/exmptmpl["+ grd_exmptmpl.row +"]/basesuppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  109. grd_exmptmpl.addRow();
  110. // 행추가 시 bottomRow 사용하지 마세요!! 꼭
  111. //grd_exmptmpl.row = grd_exmptmpl.bottomRow;
  112. grd_exmptmpl.topRow = grd_exmptmpl.row;
  113. model.setValue("/root/main/exmptmpllist/exmptmpl["+ grd_exmptmpl.row +"]/basesuppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
  114. model.refresh();
  115. ]]>
  116. </script>
  117. </button>
  118. <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:49px; width:53px; height:19px; ">
  119. <caption>행삭제</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. //grd_exmptmpl.addStatus(grd_exmptmpl.row,"delete");
  123. deleteSelectedRows(grd_exmptmpl, true);
  124. ]]>
  125. </script>
  126. </button>
  127. <datagrid id="grd_exmptmpl" nodeset="/root/main/exmptmpllist/exmptmpl" autoresize="true" caption="순번^결과예문코드^결과예문명^결과예문내용^caption1^caption2^caption3^basecdflag^basesuppdeptcd" colsep="^" colwidth="70, 123, 132, 813, 100, 100, 100, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:72px; width:1194px; height:670px; ">
  128. <col ref="sortno" type="input"/>
  129. <col ref="basecd" type="input" maxlength="12" _chartype="upper" _key="true"/>
  130. <col ref="basecdflagdesc" type="input"/>
  131. <col ref="basecdcnts" type="input"/>
  132. <col ref="basesuppdeptcd" type="input" visibility="hidden"/>
  133. <col ref="basecdflag" type="input" visibility="hidden"/>
  134. <col ref="seq" type="input" visibility="hidden"/>
  135. </datagrid>
  136. </group>
  137. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  138. <button id="btn_save" class="btn4_letter2" style="left:1079px; top:5px; width:56px; height:22px; ">
  139. <caption>저장</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. if ( messageBox("","Q002")==6 ) {
  143. var update = getGridUpdateData(grd_exmptmpl);
  144. // var update = model.getValue("/root/send/req/data");
  145. if(update == ""){
  146. messageBox("업데이트 정보가 없습니다.", "I");
  147. return 0;
  148. } else {
  149. model.setValue("/root/send/req/data", update);
  150. submit("TXAEB00301");
  151. }
  152. }
  153. submit("TRAEB00301");
  154. ]]>
  155. </script>
  156. <script type="javascript" ev:event="DOMFocusIn">
  157. <![CDATA[
  158. checkKeyColumn("grd_exmptmpl");
  159. ]]>
  160. </script>
  161. </button>
  162. <input id="input1" ref="/root/init/copyrslt" style="left:610px; top:6px; width:400px; height:19px; "/>
  163. </group>
  164. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  165. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">결과예문관리</caption>
  166. </group>
  167. <button id="button3" class="btn4_letter2" style="left:1022px; top:762px; width:56px; height:22px; ">
  168. <caption>복사</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. if ( grd_exmptmpl.row < 1 ) return;
  172. //alert(model.getValue("/root/main/sendcontens"));
  173. fSendContents();
  174. ]]>
  175. </script>
  176. </button>
  177. <button id="btn_cls" class="btn4_letter2" style="left:1136px; top:762px; width:56px; height:22px; ">
  178. <caption>닫기</caption>
  179. <close ev:event="DOMActivate"/>
  180. </button>
  181. </xhtml:body>
  182. </xhtml:html>