SPAHB00400_검체코드선택.xrw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHB00400.xrw
  4. * 설 명 : 검체코드선택
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.07.01
  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. <spccdlst>
  20. <item>
  21. <spccd/>
  22. <spcnm/>
  23. <engnm/>
  24. </item>
  25. </spccdlst>
  26. </main>
  27. <send>
  28. <srchtestcd/>
  29. <srchtestnm/>
  30. </send>
  31. <init/>
  32. <hidden>
  33. </hidden>
  34. <temp/>
  35. </root>
  36. </instance>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. fInit();
  42. if( checkOpener() ){
  43. opener.model.makeNode("/root/temp/okflag");
  44. opener.model.setValue("/root/temp/okflag" , "");
  45. fGetSpcCdList();
  46. if( grd_spccdlst.rows < 2 ){
  47. messageBox("검체코드내역이 존재하지 않습니다!", "E999" );
  48. window.close();
  49. }
  50. }
  51. ]]>
  52. </script>
  53. <submission id="TRAHB00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spccdlst"/>
  54. </model>
  55. <script type="javascript">
  56. <![CDATA[
  57. /**
  58. * SPAHB00400_PARAM1 : 검사코드
  59. * SPAHB00400_PARAM2 : 검사명
  60. * SPAHB00400_PARAM3 : code값을 setting할 목적노드
  61. * SPAHB00400_PARAM4 : name값을 setting할 목적노드
  62. */
  63. function fInit(){
  64. model.removeNodeset(grd_spccdlst.nodeset);
  65. if( checkOpener() ){
  66. model.setValue("/root/send/srchtestcd" , opener.javascript.getParameter("SPAHB00400_PARAM1"));
  67. model.setValue("/root/send/srchtestnm" , opener.javascript.getParameter("SPAHB00400_PARAM2"));
  68. }
  69. model.refresh();
  70. }
  71. /**==================================================================================================================================
  72. * 검사코드별 검체코드내역조회
  73. *==================================================================================================================================*/
  74. function fGetSpcCdList(){
  75. if( model.getValue("/root/send/srchtestcd" ) == ""){
  76. messageBox("수가코드를 " , "C001");
  77. window.close();
  78. return ;
  79. }
  80. submit("TRAHB00105");
  81. }
  82. /***==================================================================================================================================
  83. * 선택항목 setting
  84. *==================================================================================================================================*/
  85. function fSetData(){
  86. if( checkOpener() ){
  87. var sDestXPathCd = opener.javascript.getParameter("SPAHB00400_PARAM3");
  88. var sDestXPathNm = opener.javascript.getParameter("SPAHB00400_PARAM4");
  89. var idx = 0 ;
  90. idx = grd_spccdlst.row;
  91. if( idx < 1) {
  92. messageBox("항목을 " , "C002");
  93. return -1;
  94. }
  95. opener.model.setValue( sDestXPathCd , model.getValue("/root/main/spccdlst/item[" + idx + "]/spccd" ) );
  96. opener.model.setValue(sDestXPathNm , model.getValue("/root/main/spccdlst/item[" + idx + "]/spcnm" ) );
  97. opener.model.setValue("/root/temp/okflag" , "ok");
  98. return 1;
  99. }
  100. }
  101. ]]>
  102. </script>
  103. </xhtml:head>
  104. <xhtml:body pagewidth="534" pageheight="543" guideline="1,1194;1,517;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  105. <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:515px; ">
  106. <datagrid id="grd_spccdlst" nodeset="/root/main/spccdlst/item" caption="검체코드^검체명" colsep="^" colwidth="104, 362" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:49px; width:517px; height:463px; ">
  107. <col ref="spccd"/>
  108. <col ref="spcnm"/>
  109. <script type="javascript" ev:event="ondblclick">
  110. <![CDATA[
  111. if( fSetData() == 1){
  112. window.close();
  113. }
  114. ]]>
  115. </script>
  116. <script type="javascript" ev:event="onaftersort">
  117. <![CDATA[
  118. grd_spccdlst.gridToInstance();
  119. ]]>
  120. </script>
  121. </datagrid>
  122. <group id="group2" style="left:0px; top:0px; width:517px; height:40px; vertical-align:top; ">
  123. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  124. <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">검사코드 :</caption>
  125. <button id="btn_search" class="btn1_letter2" style="left:445px; top:12px; width:56px; height:22px; ">
  126. <caption>조회</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. fGetSpcCdList();
  130. ]]>
  131. </script>
  132. </button>
  133. <line id="line13" style="x1:429px; y1:11px; x2:429px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  134. <input id="ipt_srchtestnm" ref="/root/send/srchtestnm" class="input_search" disabled="true" style="left:182px; top:11px; width:240px; height:19px; ">
  135. <script type="javascript" ev:event="onkeyup">
  136. <![CDATA[
  137. inputEnterKey("btn_search", "DOMActivate");
  138. ]]>
  139. </script>
  140. </input>
  141. <input id="ipt_srchtestcd" ref="/root/send/srchtestcd" class="input_search" disabled="true" style="left:105px; top:11px; width:75px; height:19px; ">
  142. <script type="javascript" ev:event="onkeyup">
  143. <![CDATA[
  144. inputEnterKey("btn_search", "DOMActivate");
  145. ]]>
  146. </script>
  147. </input>
  148. </group>
  149. <line id="line1" class="line_1" style="x1:0px; y1:46px; x2:517px; y2:46px; "/>
  150. </group>
  151. <group id="group4" scroll="auto" style="left:0px; top:515px; width:517px; height:28px; ">
  152. <button id="button9" class="btn4_letter2" style="left:461px; top:3px; width:56px; height:22px; ">
  153. <caption>취소</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. window.close();
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="button4" class="btn4_letter2" style="left:402px; top:3px; width:56px; height:22px; ">
  161. <caption>확인</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. if( fSetData() == 1){
  165. window.close();
  166. }
  167. ]]>
  168. </script>
  169. </button>
  170. </group>
  171. </xhtml:body>
  172. </xhtml:html>