SPAHR00400_소견선택.xrw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHR00400.xrw
  4. * 설 명 : 결과예문선택
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.08.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>결과예문선택</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <rsltexmpcdlst>
  20. <item>
  21. <sel/>
  22. <rsltexmpcd/>
  23. <rsltexmpcnts/>
  24. </item>
  25. </rsltexmpcdlst>
  26. </main>
  27. <send>
  28. <srchrsltexmpcd/>
  29. <srchrsltexmpcnts/>
  30. <srchinstcd/>
  31. <srchhealexamflag/>
  32. </send>
  33. <init/>
  34. <hidden/>
  35. <temp/>
  36. </root>
  37. </instance>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../ast/commonweb/js/AHA001.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <submission id="TRAHB00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltexmpcdlst"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. fInit();
  45. ]]>
  46. </script>
  47. </model>
  48. <script type="javascript">
  49. <![CDATA[
  50. /**
  51. * 초기화
  52. * SPAHR00400_PARAM1: 다중선택여부(Y/N)
  53. * SPAHR00400_PARAM2: 목적노드Set
  54. * SPAHR00400_PARAM3: 코드 목적노드
  55. * SPAHR00400_PARAM4: 내용 목적노드
  56. * SPAHR00400_PARAM5: 검색코드
  57. * SPAHR00400_PARAM6: 검색내용
  58. * SPAHR00400_PARAM7: 건진구분
  59. */ function fInit(){
  60. model.removeNodeset(grd_exmplst.nodeset);
  61. if( checkOpener() ){
  62. model.setValue("/root/send/srchrsltexmpcd" ,opener.javascript.getParameter("SPAHR00400_PARAM5"));
  63. model.setValue("/root/send/srchrsltexmpcnts" ,opener.javascript.getParameter("SPAHR00400_PARAM6"));
  64. model.setValue("/root/send/srchhealexamflag" ,opener.javascript.getParameter("SPAHR00400_PARAM7"));
  65. model.refresh();
  66. if( (model.getValue("/root/send/srchrsltexmpcd") == "") && (model.getValue("/root/send/srchrsltexmpcnts") == "") ){
  67. return ;
  68. }
  69. }
  70. fGetRsltExmpList();
  71. }
  72. /**
  73. * 결과예문(소견) 조회
  74. */
  75. function fGetRsltExmpList(){
  76. model.removeNodeset(grd_exmplst.nodeset);
  77. //alert(getUserInfo("dutplceinstcd"));
  78. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  79. submit("TRAHB00701");
  80. }
  81. /**
  82. * 선택 결과문구 set
  83. */ function fSetData(){
  84. if( checkOpener() ){
  85. var vDestNodeSet = opener.javascript.getParameter("SPAHR00400_PARAM2"); //목적노드Set
  86. var vDestNodeCd = opener.javascript.getParameter("SPAHR00400_PARAM3"); //코드 목적노드
  87. var vDestNodeNm = opener.javascript.getParameter("SPAHR00400_PARAM4"); //내용 목적노드
  88. var vMulti = opener.javascript.getParameter("SPAHR00400_PARAM1");// 다중선택여부(Y/N)
  89. if( vMulti == "N" ){
  90. var idx = grd_exmplst.row;
  91. if( idx < 1) return ;
  92. opener.model.setValue(vDestNodeCd , grd_exmplst.valueMatrix(idx, 1)) ;
  93. opener.model.setValue(vDestNodeNm , grd_exmplst.valueMatrix(idx, 2)) ;
  94. }
  95. else {
  96. var nodeList = instance1.selectNodes(grd_exmplst.nodeset + "[sel='Y']");
  97. var rCSV = getNodeListCSV(nodeList);
  98. setCSVToNode("/root/temp", rCSV);
  99. copyNodeListType(vDestNodeSet, "/root/temp/list", "replace", opener.model , model);
  100. }
  101. opener.model.makeNode("/root/temp/okflag");
  102. opener.model.setValue("/root/temp/okflag", "ok");
  103. opener.model.refresh();
  104. }
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body pagewidth="542" pageheight="495" guideline="1,1194;1,518;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  110. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:460px; ">
  111. <group id="group2" style="left:0px; top:0px; width:517px; height:35px; vertical-align:top; ">
  112. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  113. <input id="ipt_rsltexmpnm" ref="/root/send/srchrsltexmpcnts" class="input_search" style="left:230px; top:8px; width:190px; height:19px; ">
  114. <script type="javascript" ev:event="onkeyup">
  115. <![CDATA[
  116. inputEnterKey("btn_search", "DOMActivate");
  117. ]]>
  118. </script>
  119. </input>
  120. <input id="ipt_rsltexmpcd" ref="/root/send/srchrsltexmpcd" class="input_search" style="left:65px; top:8px; width:90px; height:19px; ">
  121. <script type="javascript" ev:event="onkeyup">
  122. <![CDATA[
  123. inputEnterKey("btn_search", "DOMActivate");
  124. ]]>
  125. </script>
  126. </input>
  127. <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  128. <caption id="caption1" class="search_name" style="left:170px; top:8px; width:65px; height:17px; ">내용 :</caption>
  129. <caption id="caption2" class="search_name" style="left:6px; top:8px; width:64px; height:17px; ">코드 :</caption>
  130. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  131. <caption>조회</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. fGetRsltExmpList();
  135. ]]>
  136. </script>
  137. </button>
  138. </group>
  139. <line id="line1" class="line_1" style="x1:0px; y1:38px; x2:517px; y2:38px; "/>
  140. <datagrid id="grd_exmplst" nodeset="/root/main/rsltexmpcdlst/item" caption="V^예문코드^결과예문내용" colsep="^" colwidth="28, 56, 382" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:45px; width:517px; height:410px; ">
  141. <col checkvalue="Y,N" ref="sel" type="checkbox" visibility="hidden"/>
  142. <col ref="rsltexmpcd"/>
  143. <col ref="rsltexmpcnts"/>
  144. </datagrid>
  145. </group>
  146. <group id="grp_btn" scroll="auto" style="left:0px; top:461px; width:518px; height:27px; ">
  147. <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
  148. <caption>확인</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. //fSetData();
  152. var idx = grd_exmplst.row;
  153. opener.model.makeNode("/root/temp/okflag");
  154. opener.model.setValue("/root/temp/okflag", "ok");
  155. opener.model.makeNode("/root/temp/value");
  156. opener.model.setValue("/root/temp/value", model.getValue("/root/main/rsltexmpcdlst/item["+idx+"]/rsltexmpcnts" ) );
  157. window.close();
  158. ]]>
  159. </script>
  160. </button>
  161. <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
  162. <caption>취소</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. opener.model.makeNode("/root/temp/okflag");
  166. opener.model.setValue("/root/temp/okflag", "");
  167. window.close();
  168. ]]>
  169. </script>
  170. </button>
  171. </group>
  172. </xhtml:body>
  173. </xhtml:html>