SPAVT00100_기증환자조회.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAVT00100.xrw
  4. * 설 명 : 조직은행 기증환자조회
  5. * 설 계 자 : 손승현
  6. * 작 성 자 : 손승현
  7. * 작 성 일 : 2010.08.11
  8. * 수정이력 : 2010.08.11 손승현 신규
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <![CDATA[">]]>
  15. <xhtml:title>기증환자조회</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <srchlist>
  21. <item>
  22. <pid/>
  23. <hngnm/>
  24. <rrgstno/>
  25. <telno/>
  26. <sex/>
  27. <age/>
  28. </item>
  29. </srchlist>
  30. </main>
  31. <send>
  32. <srch>
  33. <srchpid/>
  34. <srchhngnm/>
  35. <srchcode/>
  36. </srch>
  37. <globalinstance>
  38. <instance1/>
  39. </globalinstance>
  40. </send>
  41. <hidden>
  42. <receiveref/>
  43. </hidden>
  44. <init>
  45. </init>
  46. </root>
  47. </instance>
  48. <submission id="TRAVT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/srchlist"/>
  49. </model>
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  52. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. aezfSetSuppDeptcd();
  56. var sp = opener.document.url.split("/");
  57. var nsp = sp[sp.length-1].split(".")[0].substr(0,10);
  58. // alert(nsp);
  59. if( model.getValue("/root/send/globalinstance/instance1") == "2240114000" ||(nsp=="SMAOE01000")) {
  60. if(nsp=="SMAOE01000"){
  61. model.setValue("/root/send/srch/srchcode", nsp);
  62. }
  63. document.title = "환자조회";
  64. caption2.text = "환자조회";
  65. }else{
  66. document.title = "기증환자조회";
  67. caption2.text = "기증환자조회";
  68. }
  69. // submit("TRAVT00102");
  70. model.refresh();
  71. ]]>
  72. </script>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fSetOpener(){
  76. if( checkOpener() ){
  77. opener.model.makeNode("/root/temp/okflag");
  78. opener.model.setValue("/root/temp/okflag", "ok");
  79. var idx = grd_srchlist.row;
  80. opener.model.makeNode("/root/temp/templst/item/pid");
  81. opener.model.setValue("/root/temp/templst/item/pid", model.getValue( "/root/main/srchlist/item["+idx+"]/pid" ) );
  82. opener.model.makeNode("/root/main/srchlist/item/hngnm");
  83. opener.model.setValue("/root/main/srchlist/item/hngnm", model.getValue( "/root/main/srchlist/item["+idx+"]/hngnm" ) );
  84. window.close();
  85. }
  86. }
  87. ]]>
  88. </script>
  89. </xhtml:head>
  90. <xhtml:body pagewidth="660" pageheight="380" guideline="1,644;2,380;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  91. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:3px; top:21px; width:639px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  92. <caption id="caption2" class="tit_2" style="left:0px; top:0px; width:175px; height:13px; vertical-align:middle; ">기증환자조회</caption>
  93. <caption id="caption3" class="search_name" style="left:15px; top:30px; width:86px; height:17px; ">등록번호 :</caption>
  94. <line id="line1" style="x1:564px; y1:27px; x2:564px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
  95. <line id="line3" class="line_1" style="x1:3px; y1:58px; x2:642px; y2:58px; "/>
  96. <button id="btn_search" class="btn1_letter2" style="left:576px; top:28px; width:56px; height:22px; ">
  97. <caption>조회</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. if ( ( model.getValue("/root/send/srch/srchpid") == "" ) && ( model.getValue("/root/send/srch/srchhngnm") == "") ) {
  101. alert("검색 조건 입력은 필수입니다.");
  102. if(model.getValue("/root/send/srch/srchpid") == ""){
  103. model.setFocus("ipt_srchpid");
  104. }
  105. } else {
  106. submit("TRAVT00102");
  107. }
  108. ]]>
  109. </script>
  110. </button>
  111. <button id="btn_cfm" class="btn4_letter2" style="left:528px; top:355px; width:56px; height:22px; ">
  112. <caption>확인</caption>
  113. <script type="javascript" ev:event="onclick">
  114. <![CDATA[
  115. fSetOpener();
  116. ]]>
  117. </script>
  118. </button>
  119. <button id="btn_can" class="btn4_letter2" style="left:585px; top:355px; width:56px; height:22px; ">
  120. <caption>취소</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. if( checkOpener() ) {
  124. opener.model.makeNode("/root/temp/okflag");
  125. opener.model.setValue("/root/temp/okflag", "");
  126. }
  127. window.close();
  128. ]]>
  129. </script>
  130. </button>
  131. <datagrid id="grd_srchlist" nodeset="/root/main/srchlist/item" autoresize="true" caption="등록번호^성 명^주민번호^전화번호^성별^나이" colsep="^" colwidth="90, 90, 130, 120, 90, 90" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:5px; top:65px; width:639px; height:279px; background-color:#ffffff; border-color:#B0B0B0; ">
  132. <col ref="pid" style="text-align:center; "/>
  133. <col ref="hngnm"/>
  134. <col ref="rrgstno" style="text-align:center; "/>
  135. <col ref="telno"/>
  136. <col ref="sex" style="text-align:center; "/>
  137. <col ref="age" style="text-align:center; "/>
  138. <script type="javascript" ev:event="ondblclick">
  139. <![CDATA[
  140. fSetOpener();
  141. ]]>
  142. </script>
  143. </datagrid>
  144. <caption id="caption1" class="search_name" style="left:230px; top:30px; width:86px; height:17px; ">성 명 :</caption>
  145. <input id="ipt_srchpid" ref="/root/send/srch/srchpid" class="input_search" style="left:104px; top:29px; width:106px; height:19px; ">
  146. <script type="javascript" ev:event="onkeypress">
  147. <![CDATA[
  148. inputEnterKey("btn_search", "DOMActivate");
  149. ]]>
  150. </script>
  151. </input>
  152. <input id="ipt_srchhngnm" ref="/root/send/srch/srchhngnm" class="input_search" style="left:313px; top:30px; width:106px; height:19px; ">
  153. <script type="javascript" ev:event="onkeypress">
  154. <![CDATA[
  155. inputEnterKey("btn_search", "DOMActivate");
  156. ]]>
  157. </script>
  158. </input>
  159. </xhtml:body>
  160. </xhtml:html>