SPLBD91400_외래환자접수목록조회.xrw 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLBD91400_외래환자접수목록조회.xrw
  4. * 설 명 : 외래환자접수목록조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2009.02.03
  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. <otptlist>
  20. <pid/>
  21. <hngnm/>
  22. <sex/>
  23. <age/>
  24. <orddd/>
  25. <orddeptnm/>
  26. <orddrnm/>
  27. <suppkind2/>
  28. <insukind2/>
  29. <orddeptcd/>
  30. <orddrid/>
  31. <ordtm/>
  32. <rsrvflag/>
  33. <etcordflag/>
  34. <instcd/>
  35. <medamtestmyn/>
  36. <medamtfreeresn/>
  37. <insukind/>
  38. <suppkind/>
  39. <insucd/>
  40. <suppkindresn/>
  41. </otptlist>
  42. <patinfo>
  43. <pid/>
  44. <hngnm/>
  45. <sex/>
  46. <age/>
  47. </patinfo>
  48. </main>
  49. <send>
  50. <pid/>
  51. <orddd/>
  52. <orddeptcd/>
  53. <orddrid/>
  54. <ordtm/>
  55. <instcd/>
  56. <insukind/>
  57. <insucd/>
  58. <suppkindresn/>
  59. </send>
  60. <init>
  61. </init>
  62. <hidden>
  63. <pid/>
  64. <otpt>
  65. <otptyn/>
  66. </otpt>
  67. </hidden>
  68. </root>
  69. </instance>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fSetInit();
  73. ]]>
  74. </script>
  75. <submission id="TRLBD91401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/otptlist"/>
  76. <submission id="TXLBD91401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  77. </model>
  78. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript">
  81. <![CDATA[
  82. // 초기화
  83. function fSetInit(){
  84. if(model.getValue("/root/hidden/pid") == ""){ // 등록번호 없으면 초기화
  85. model.resetInstanceNode("/root/main/otptlist");
  86. model.resetInstanceNode("/root/main/patinfo");
  87. model.refresh();
  88. return;
  89. }
  90. // 등록번호 오면 접수내역 조회
  91. model.setValue("/root/send/pid", model.getValue("/root/hidden/pid"));
  92. submit("TRLBD91401");
  93. if(grd_otptlist.rows > 1){
  94. model.setValue("/root/main/patinfo/pid", model.getValue("/root/main/otptlist[1]/pid"));
  95. model.setValue("/root/main/patinfo/hngnm", model.getValue("/root/main/otptlist[1]/hngnm"));
  96. model.setValue("/root/main/patinfo/sex", model.getValue("/root/main/otptlist[1]/sex"));
  97. model.setValue("/root/main/patinfo/age", model.getValue("/root/main/otptlist[1]/age"));
  98. model.refresh();
  99. }
  100. }
  101. // 확인, 그리드선택 B=확인버튼 G=그리드선택
  102. function fSetOtptAcpt(gbn){
  103. if(grd_otptlist.row < 1 ){
  104. alert("접수내역을 선택하십시오.");
  105. return;
  106. }
  107. //alert("구현중");
  108. model.setValue("/root/send/pid", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/pid"));
  109. model.setValue("/root/send/orddd", getCurrentDate());
  110. model.setValue("/root/send/orddeptcd", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/orddeptcd"));
  111. model.setValue("/root/send/orddrid", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/orddrid"));
  112. model.setValue("/root/send/ordtm", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/ordtm"));
  113. model.setValue("/root/send/instcd", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/instcd"));
  114. model.setValue("/root/send/insukind", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/insukind"));
  115. model.setValue("/root/send/insucd", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/insucd"));
  116. model.setValue("/root/send/suppkindresn", model.getValue("/root/main/otptlist["+grd_otptlist.row+"]/suppkindresn"));
  117. if(gbn=="B"){
  118. // 외래접수 태우기
  119. if(submit("TXLBD91401")){
  120. alert("접수성공");
  121. //fSetInit();
  122. model.setValue("/root/hidden/otpt/otptyn", "Y");
  123. model.copyNode(opener.root.hidden.otpt, root.hidden.otpt);
  124. window.close();
  125. }
  126. }
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body pagewidth="620" pageheight="343" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  132. <group id="group3" scroll="auto" style="left:0px; top:0px; width:601px; height:311px; ">
  133. <caption id="caption1" class="tit_2" style="left:5px; top:58px; width:95px; height:13px; ">접수목록</caption>
  134. <line id="line1" class="line_1" style="x1:0px; y1:73px; x2:601px; y2:73px; "/>
  135. <caption id="cap_regno" class="cell_1" style="left:0px; top:25px; width:70px; height:23px; text-align:center; ">등록번호</caption>
  136. <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:95px; height:14px; ">환자정보</caption>
  137. <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:601px; y2:20px; "/>
  138. <caption id="caption3" class="cell_1" style="left:176px; top:25px; width:70px; height:23px; text-align:center; ">환자성명</caption>
  139. <caption id="caption4" class="cell_1" style="left:352px; top:25px; width:60px; height:23px; text-align:center; ">성별</caption>
  140. <caption id="caption5" class="cell_1" style="left:478px; top:25px; width:60px; height:23px; text-align:center; ">나이</caption>
  141. <line id="line9" class="line_3" style="x1:0px; y1:47px; x2:601px; y2:47px; "/>
  142. <datagrid id="grd_otptlist" nodeset="/root/main/otptlist" caption="pid^hngnm^sex^age^진료일자^진료과^진료의사^특진^보험유형^orddeptcd^orddrid^ordtm^rsrvflag^etcordflag^instcd^medamtestmyn^medamtfreeresn^insukind^suppkind^insucd^suppkindresn" colsep="^" colwidth="0, 0, 0, 0, 100, 150, 100, 101, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:78px; width:601px; height:230px; ">
  143. <col ref="pid"/>
  144. <col ref="hngnm"/>
  145. <col ref="sex"/>
  146. <col ref="age"/>
  147. <col ref="orddd" format="yyyy-mm-dd"/>
  148. <col ref="orddeptnm"/>
  149. <col ref="orddrnm"/>
  150. <col ref="suppkind2" format="999999-9999999"/>
  151. <col ref="insukind2"/>
  152. <col ref="orddeptcd"/>
  153. <col ref="orddrid"/>
  154. <col ref="ordtm"/>
  155. <col ref="rsrvflag"/>
  156. <col ref="etcordflag"/>
  157. <col ref="instcd"/>
  158. <col ref="medamtestmyn"/>
  159. <col ref="medamtfreeresn"/>
  160. <col ref="insukind"/>
  161. <col ref="suppkind"/>
  162. <col ref="insucd"/>
  163. <col ref="suppkindresn"/>
  164. <script type="javascript" ev:event="onclick">
  165. <![CDATA[
  166. if(grd_otptlist.isCell(event.target) && grd_otptlist.row >= grd_otptlist.fixedRows){
  167. fSetOtptAcpt("G");
  168. }
  169. ]]>
  170. </script>
  171. </datagrid>
  172. <output id="opt_pid" ref="/root/main/patinfo/pid" class="output_fix" style="left:73px; top:26px; width:100px; height:19px; text-align:center; "/>
  173. <output id="opt_hngnm" ref="/root/main/patinfo/hngnm" class="output_fix" style="left:249px; top:26px; width:100px; height:19px; text-align:center; "/>
  174. <output id="opt_sex" ref="/root/main/patinfo/sex" class="output_fix" style="left:415px; top:26px; width:60px; height:19px; text-align:center; "/>
  175. <output id="opt_age" ref="/root/main/patinfo/age" class="output_fix" style="left:541px; top:26px; width:60px; height:19px; text-align:center; "/>
  176. </group>
  177. <group id="group1" scroll="auto" style="left:0px; top:311px; width:601px; height:27px; ">
  178. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:486px; top:5px; width:56px; height:22px; ">
  179. <caption>접수</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. fSetOtptAcpt("B");
  183. ]]>
  184. </script>
  185. </button>
  186. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:545px; top:5px; width:56px; height:22px; ">
  187. <caption>취소</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. model.setValue("/root/hidden/otpt/otptyn", "N");
  191. model.copyNode(opener.root.hidden.otpt, root.hidden.otpt);
  192. window.close();
  193. ]]>
  194. </script>
  195. </button>
  196. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:600px; y2:0px; "/>
  197. </group>
  198. </xhtml:body>
  199. </xhtml:html>