SPLPC02200_검체코드팝업.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPC02000_기본파트팝업.xrw
  4. * 설 명 : 기본파트 선택 공통 팝업화면
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2007.02.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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <spccdlist>
  20. <spccdlistinfo>
  21. <instcd/>
  22. <spccd/>
  23. <spcnm/>
  24. <spcabbr/>
  25. <reprspccd/>
  26. <reprspcnm/>
  27. </spccdlistinfo>
  28. </spccdlist>
  29. </main>
  30. <send>
  31. </send>
  32. <init>
  33. <spcnm/>
  34. </init>
  35. <hidden>
  36. </hidden>
  37. </root>
  38. </instance>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. fExeInitialize();
  45. ]]>
  46. </script>
  47. <!-- public Script Start -->
  48. <script type="javascript">
  49. <![CDATA[
  50. /* @group : 검체코드선택 공통 팝업화면
  51. * @ver : 2007.02.01 (CMCDEV-0001)
  52. * @by : 유동철(ACK)
  53. * @-----------------------------------
  54. * @type : function
  55. * @access : public
  56. * @desc : 화면초기화 함수
  57. */
  58. function fExeInitialize(){
  59. model.removeNodeset("/root/main/spccdlist/spccdlistinfo");
  60. fGetRefData();
  61. }
  62. /* @group : 검체코드선택 공통 팝업화면
  63. * @ver : 2007.02.01 (CMCDEV-0001)
  64. * @by : 유동철(ACK)
  65. * @-----------------------------------
  66. * @type : function
  67. * @access : public
  68. * @desc : 기초코드조회 함수
  69. */
  70. function fGetRefData(){
  71. model.removeNodeset("/root/send");
  72. model.makeValue("/root/send/spcnm", model.getValue("/root/init/spcnm"));
  73. if(opener.model.getValue("/root/hidden/scrndata/scrnflagcd") == "BASE"){
  74. if(opener.model.getValue("/root/hidden/scrnid") == "SMLPC00700") {
  75. model.makeValue("/root/send/instcd", opener.model.getValue("/root/hidden/userinfo/instcd")); // 기관코드
  76. model.makeValue("/root/send/spccd", ""); // 검체코드
  77. model.makeValue("/root/send/spcflagcd", "9"); // 대표검체구분(9:대표,세부 모두 조회)
  78. model.makeValue("/root/send/delflagcd", "0"); // delflag(0:사용가능)
  79. model.makeValue("/root/send/reprspccd", ""); // delflag(0:사용가능)
  80. } else {
  81. model.makeValue("/root/send/instcd", opener.model.getValue("/root/hidden/userinfo/instcd")); // 기관코드
  82. model.makeValue("/root/send/spccd", ""); // 검체코드
  83. model.makeValue("/root/send/spcflagcd", "0"); // 대표검체구분(0:대표검체)
  84. model.makeValue("/root/send/delflagcd", "0"); // delflag(0:사용가능)
  85. model.makeValue("/root/send/reprspccd", ""); // delflag(0:사용가능)
  86. }
  87. }else if(opener.model.getValue("/root/hidden/scrndata/scrnflagcd") == "ACPT"){
  88. model.makeValue("/root/send/instcd", opener.model.getValue("/root/hidden/userinfo/instcd")); // 기관코드
  89. model.makeValue("/root/send/spccd", ""); // 검체코드
  90. model.makeValue("/root/send/spcflagcd", "1"); // 대표검체구분(1:SUB검체)
  91. model.makeValue("/root/send/delflagcd", "0"); // delflag(0:사용가능)
  92. model.makeValue("/root/send/reprspccd", opener.model.getValue("root/hidden/scrndata/reprspccd")); // 대표검체코드
  93. }
  94. submit("TRLPC02201");
  95. }
  96. /* @group : 검체코드선택 공통 팝업화면
  97. * @ver : 2007.02.01 (CMCDEV-0001)
  98. * @by : 유동철(ACK)
  99. * @-----------------------------------
  100. * @type : function
  101. * @access : public
  102. * @desc : 검체코드선택 확인 함수
  103. */
  104. function fExeChoiSpcCd(){
  105. var curRow = grd_spccdlist.row;
  106. //MainWindow ReprSpcCd Value Change
  107. model.setValue(opener.root.hidden.scrndata.spccd,
  108. model.getValue("/root/main/spccdlist/spccdlistinfo[" + curRow + "]/spccd"));
  109. model.setValue(opener.root.hidden.scrndata.spcnm,
  110. model.getValue("/root/main/spccdlist/spccdlistinfo[" + curRow + "]/spcnm"));
  111. model.close();
  112. }
  113. /* @group : 검체코드선택 공통 팝업화면
  114. * @ver : 2007.02.01 (CMCDEV-0001)
  115. * @by : 유동철(ACK)
  116. * @-----------------------------------
  117. * @type : function
  118. * @access : public
  119. * @desc : 화면 닫기 함수
  120. */
  121. function fExeClsScrn(){
  122. model.close();
  123. }
  124. ]]>
  125. </script>
  126. <!-- public Script End -->
  127. <submission id="TRLPC02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spccdlist/spccdlistinfo"/>
  128. </model>
  129. </xhtml:head>
  130. <xhtml:body pagewidth="345" pageheight="610" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="group3" style="left:0px; top:560px; width:325px; height:27px; ">
  132. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:325px; y2:0px; "/>
  133. <button id="btn_cls" class="btn4_letter2" style="left:269px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  134. <caption>닫기</caption>
  135. <script type="javascript" ev:event="onclick">
  136. <![CDATA[
  137. fExeClsScrn();
  138. ]]>
  139. </script>
  140. </button>
  141. <button id="btn_cfm" class="btn4_letter2" style="left:210px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  142. <caption>확인</caption>
  143. <script type="javascript" ev:event="onclick">
  144. <![CDATA[
  145. fExeChoiSpcCd();
  146. ]]>
  147. </script>
  148. </button>
  149. </group>
  150. <group id="grp_popup" style="left:0px; top:0px; width:325px; height:560px; ">
  151. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:7px; width:325px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  152. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:121px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검체코드 리스트</caption>
  153. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:325px; y2:65px; "/>
  154. <datagrid id="grd_spccdlist" nodeset="/root/main/spccdlist/spccdlistinfo" caption="기관코드^검체코드^검체명^검체약어^대표검체^대표검체명" colsep="^" colwidth="0, 100, 200, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:325px; height:490px; border-color:#c0c0c0; ">
  155. <col ref="instcd"/>
  156. <col ref="spccd"/>
  157. <col ref="spcnm"/>
  158. <col ref="spcabbr"/>
  159. <col ref="reprspccd"/>
  160. <col ref="reprspcnm"/>
  161. <script type="javascript" ev:event="ondblclick">
  162. <![CDATA[
  163. fExeChoiSpcCd();
  164. ]]>
  165. </script>
  166. <script type="javascript" ev:event="onaftersort">
  167. <![CDATA[
  168. grd_spccdlist.gridToInstance();
  169. ]]>
  170. </script>
  171. </datagrid>
  172. <button id="btn_syts_ref" class="btn1_letter2" navindex="4" style="left:255px; top:14px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  173. <caption>조회</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. fGetRefData();
  177. ]]>
  178. </script>
  179. </button>
  180. <input id="ipt_spcnm" ref="/root/init/spcnm" class="input_search" navindex="3" style="left:90px; top:15px; width:120px; height:19px; ">
  181. <script type="javascript" ev:event="onkeypress">
  182. <![CDATA[
  183. if (event.keyCode == 13) {
  184. model.makeValue("/root/init/spcnm", ipt_spcnm.currentText);
  185. fGetRefData();
  186. }
  187. ]]>
  188. </script>
  189. </input>
  190. <caption id="cap_spcnm" class="search_name" style="left:9px; top:16px; width:81px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검체명 :</caption>
  191. <line id="line3" class="line_4" style="x1:240px; y1:13px; x2:240px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  192. </group>
  193. </xhtml:body>
  194. </xhtml:html>