SPLBD91300_환자조회.xrw 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLBD91300_환자조회.xrw
  4. * 설 명 : 환자조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.11.12
  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. <patinfolist>
  20. <tnsrpid/>
  21. <tnsrnm/>
  22. <sexage/>
  23. <rrgstno/>
  24. <iogb/>
  25. <ordtype/>
  26. <orddd/>
  27. <cretno/>
  28. <instcd/>
  29. <acptseqno/>
  30. <orgorddd/>
  31. </patinfolist>
  32. </main>
  33. <send>
  34. <refgbn/>
  35. <reftext/>
  36. </send>
  37. <init>
  38. </init>
  39. <hidden>
  40. <refgbn>1</refgbn>
  41. <reftext/>
  42. <tnsrpid>
  43. <pid/>
  44. </tnsrpid>
  45. <viewgbn>
  46. <view/>
  47. </viewgbn>
  48. <patinfo>
  49. <tnsrpid/>
  50. <tnsrnm/>
  51. <sexage/>
  52. <rrgstno/>
  53. <iogb/>
  54. <ordtype/>
  55. <orddd/>
  56. <cretno/>
  57. <instcd/>
  58. <acptseqno/>
  59. <orgorddd/>
  60. </patinfo>
  61. </hidden>
  62. </root>
  63. </instance>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. model.removeNodeset("/root/main/patinfolist");
  67. grd_tnsrinfo.rebuild();
  68. ]]>
  69. </script>
  70. <submission id="TRLBD91301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfolist"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript">
  74. <![CDATA[
  75. //환자정보조회
  76. function fGetPatInfoRef(){
  77. var txt = model.getValue("/root/hidden/reftext");
  78. if(txt.length == 0){
  79. messageBox("검색할 값을", "C001");
  80. return;
  81. }
  82. if(model.getValue("/root/hidden/refgbn")=="2"){ // 주민등록번호
  83. if(txt.length<6){
  84. if(txt.length==0){
  85. }else{
  86. messageBox("최소6자 이상", "C001");
  87. return;
  88. }
  89. }
  90. }else if(model.getValue("/root/hidden/refgbn")=="1"){ // 환자명
  91. if(txt.length<2){
  92. if(txt.length==0){
  93. return;
  94. }else{
  95. messageBox("최소2자 이상", "C001");
  96. return;
  97. }
  98. }
  99. }
  100. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/refgbn"));
  101. model.setValue("/root/send/reftext", model.getValue("/root/hidden/reftext"));
  102. submit("TRLBD91301");
  103. if(grd_tnsrinfo.rows > 1){
  104. grd_tnsrinfo.row = 1;
  105. model.setValue("/root/hidden/tnsrpid/pid", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrpid"));
  106. }
  107. }
  108. // 엔터키입력시
  109. function fKeyEvent(){
  110. if(event.keyCode == "13"){
  111. if(event.target == "ipt_text"){
  112. model.setvalue("/root/hidden/reftext", ipt_text.currentText);
  113. fGetPatInfoRef();
  114. ipt_text.selBegin = 0;
  115. ipt_text.selEnd = ipt_text.currentText.length;
  116. }
  117. }
  118. }
  119. // 확인버튼 클릭시 메인으로 pid 넘기기
  120. function fSetPidMain(ref){
  121. if(grd_tnsrinfo.row >= 1 ){
  122. model.setValue("/root/hidden/patinfo/tnsrpid", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrpid"));
  123. model.setValue("/root/hidden/patinfo/tnsrnm", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrnm"));
  124. model.setValue("/root/hidden/patinfo/sexage", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/sexage"));
  125. model.setValue("/root/hidden/patinfo/rrgstno", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/rrgstno"));
  126. model.setValue("/root/hidden/patinfo/iogb", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/iogb"));
  127. model.setValue("/root/hidden/patinfo/ordtype", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/ordtype"));
  128. model.setValue("/root/hidden/patinfo/orddd", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/orddd"));
  129. model.setValue("/root/hidden/patinfo/cretno", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/cretno"));
  130. model.setValue("/root/hidden/patinfo/instcd", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/instcd"));
  131. model.setValue("/root/hidden/patinfo/acptseqno", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/acptseqno"));
  132. model.setValue("/root/hidden/patinfo/orgorddd", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/orgorddd"));
  133. if(model.getValue("/root/hidden/viewgbn/view")=="up"){
  134. //model.copyNode(opener.root.hidden.tnsrpid, root.hidden.tnsrpid);
  135. model.copyNode(opener.root.hidden.patinfolist, root.hidden.patinfo);
  136. opener.model.refresh();
  137. }else{
  138. //model.copyNode(opener.root.hidden, root.hidden.tnsrpid);
  139. model.copyNode(opener.root.hidden.patinfolist, root.hidden.patinfo);
  140. opener.model.refresh();
  141. }
  142. }else{
  143. messageBox("선택된 환자정보가 " , "I004", ""); //없습니다.
  144. }
  145. window.close();
  146. }
  147. ]]>
  148. </script>
  149. </xhtml:head>
  150. <xhtml:body pagewidth="634" pageheight="343" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  151. <group id="group3" scroll="auto" style="left:0px; top:0px; width:618px; height:316px; ">
  152. <group id="group2" style="left:0px; top:0px; width:618px; height:35px; ">
  153. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:617px; height:35px; "/>
  154. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  155. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:545px; top:7px; width:56px; height:22px; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. //환자정보조회
  160. fGetPatInfoRef();
  161. ]]>
  162. </script>
  163. </button>
  164. <line id="line13" class="line_4" style="x1:529px; y1:7px; x2:529px; y2:29px; border-color:#ffe4bb; "/>
  165. <select1 id="cmb_cond" ref="/root/hidden/refgbn" class="combo_search" appearance="minimal" style="left:106px; top:8px; width:110px; height:19px; ">
  166. <choices>
  167. <item>
  168. <label>환자명</label>
  169. <value>1</value>
  170. </item>
  171. <item>
  172. <label>주민등록번호</label>
  173. <value>2</value>
  174. </item>
  175. <item>
  176. <label>등록번호</label>
  177. <value>3</value>
  178. </item>
  179. </choices>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. ]]>
  183. </script>
  184. </select1>
  185. <input id="ipt_text" ref="/root/hidden/reftext" style="left:224px; top:8px; width:120px; height:19px; ">
  186. <script type="javascript" ev:event="onkeypress">
  187. <![CDATA[
  188. fKeyEvent();
  189. ]]>
  190. </script>
  191. </input>
  192. </group>
  193. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
  194. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:617px; y2:60px; "/>
  195. <datagrid id="grd_tnsrinfo" nodeset="/root/main/patinfolist" caption="등록번호^환자명^성별나이^주민등록번호^입원/외래" colsep="^" colwidth="100, 100, 80, 140, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:65px; width:618px; height:250px; ">
  196. <col ref="tnsrpid"/>
  197. <col ref="tnsrnm"/>
  198. <col ref="sexage"/>
  199. <col ref="rrgstno" format="999999-9999999"/>
  200. <col ref="iogb"/>
  201. <script type="javascript" ev:event="onclick">
  202. <![CDATA[
  203. model.setValue("/root/hidden/tnsrpid/pid", model.getValue("/root/main/patinfolist["+grd_tnsrinfo.row+"]/tnsrpid"));
  204. ]]>
  205. </script>
  206. </datagrid>
  207. </group>
  208. <group id="group1" scroll="auto" style="left:0px; top:316px; width:618px; height:27px; ">
  209. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:502px; top:5px; width:56px; height:22px; ">
  210. <caption>확인</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. fSetPidMain();
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:561px; top:5px; width:56px; height:22px; ">
  218. <caption>취소</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. window.close();
  222. ]]>
  223. </script>
  224. </button>
  225. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
  226. </group>
  227. </xhtml:body>
  228. </xhtml:html>