SPLLP90400_환자전실정보조회.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>입원환자조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patlist>
  11. <patlist>
  12. <chngdt/>
  13. <prestward/>
  14. <prestroom/>
  15. <chngward/>
  16. <chngroom/>
  17. <pid/>
  18. <indd/>
  19. <instcd/>
  20. <cretno/>
  21. <hngnm/>
  22. <sexage/>
  23. <orddeptnm/>
  24. <prepamacptdd/>
  25. <prepamacpttm/>
  26. </patlist>
  27. </patlist>
  28. </main>
  29. <send>
  30. <data1/>
  31. </send>
  32. <hidden>
  33. <ref>
  34. <searchtext/>
  35. <searchgbn>1</searchgbn>
  36. </ref>
  37. <patinfo>
  38. <pid/>
  39. <indd/>
  40. <hngnm/>
  41. <orddeptnm/>
  42. <wardcd/>
  43. <roomcd/>
  44. </patinfo>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. rdo_refflag.select(0);
  51. model.removeNodeset("/root/main/patlist");
  52. model.removeNodeset("/root/hidden/patinfo");
  53. //메뉴에서 사용할 경우 사용자의 병동으로 세팅
  54. var instcd = getUserInfo("dutplceinstcd");
  55. var pid = "";
  56. var indd = "";
  57. pid = getPatientInfoDetail("pid");
  58. indd = getPatientInfoDetail("indd");
  59. ioflag = getPatientInfoDetail("ioflag");
  60. if(pid != ""){
  61. if(ioflag == "I") {
  62. model.makeValue("/root/send/pid" , pid);
  63. model.makeValue("/root/send/indd", indd); // 추가_20081229(ByJA)
  64. submit("TRMNW12401");
  65. }else{
  66. messageBox("입원환자가 아닙니다.", "I");
  67. return;
  68. }
  69. }
  70. model.refresh();
  71. ]]>
  72. </script>
  73. <submission id="TRMNW12401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patList"/>
  74. <!-- public Script Start -->
  75. <script type="javascript">
  76. <![CDATA[
  77. function fGetPatinfo(){
  78. model.removeNodeset("/root/main/patlist");
  79. model.removeNodeset("/root/hidden/patinfo");
  80. model.copyNode("/root/send/data1", "/root/hidden/ref");
  81. submit("TRLLP90401");
  82. var rows = grd_patinfo.rows - grd_patinfo.fixedRows ;
  83. if(rows > 0){
  84. grd_patinfo.row = 1;
  85. fGetPatinfolist();
  86. }
  87. }
  88. function fGetPatinfolist(){
  89. model.removeNodeset("/root/main/patlist");
  90. var pid = "";
  91. var indd = "";
  92. pid = model.getValue("/root/hidden/patinfo['"+ grd_patinfo.row +"']/pid");
  93. indd = model.getValue("/root/hidden/patinfo['"+ grd_patinfo.row +"']/indd");
  94. if(indd != "") {
  95. model.makeValue("/root/send/pid" , pid);
  96. model.makeValue("/root/send/indd", indd);
  97. submit("TRMNW12401");
  98. /*if((grd_patlist.rows - grd_patlist.fixedRows) == 0){
  99. messageBox("선택한 환자의 전실내역이 없습니다.", "I");
  100. return;
  101. }*/
  102. }else{
  103. messageBox("입원환자가 아닙니다.", "I");
  104. return;
  105. }
  106. }
  107. ]]>
  108. </script>
  109. <submission id="TRLLP90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/patinfo"/>
  110. </model>
  111. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. </xhtml:head>
  114. <xhtml:body pagewidth="600" pageheight="600" guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  115. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:580px; height:575px; ">
  116. <caption id="caption1" class="tit_2" style="left:5px; top:240px; width:165px; height:58px; ">전실내역조회</caption>
  117. <line id="line1" class="line_1" style="x1:0px; y1:255px; x2:570px; y2:255px; "/>
  118. <datagrid id="grd_patlist" nodeset="/root/main/patlist/patlist" caption="변경일시^From^From^To^To^등록번호^환자명^indd|변경일시^병동^병실^병동^병실^등록번호^환자명^indd^prestwardcd^chngwardcd^appdd^apptm^prepamacptdd^prepamacpttm" colsep="^" colwidth="110, 80, 45, 80, 45, 80, 80,0, 0, 0, 0, 0, 0, 0, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:260px; width:570px; height:285px; ">
  119. <col ref="chngdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  120. <col ref="prestward" style="text-align:center; "/>
  121. <col ref="prestroom" style="text-align:center; "/>
  122. <col ref="chngward" style="text-align:center; "/>
  123. <col ref="chngroom" style="text-align:center; "/>
  124. <col ref="pid"/>
  125. <col ref="hngnm"/>
  126. <col ref="indd"/>
  127. <col ref="prestwardcd"/>
  128. <col ref="chngwardcd"/>
  129. <col ref="appdd"/>
  130. <col ref="apptm"/>
  131. <col ref="prepamacptdd" visibility="hidden"/>
  132. <col ref="prepamacpttm" visibility="hidden"/>
  133. <col ref="cretno" visibility="hidden"/>
  134. </datagrid>
  135. <group id="grp_search" style="left:0px; top:10px; width:570px; height:35px; ">
  136. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:570px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  137. <button id="button3" class="btn1_letter2" navindex="4" style="left:508px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  138. <caption>조회</caption>
  139. <script type="javascript" ev:event="onclick">
  140. <![CDATA[
  141. fGetPatinfo();
  142. ]]>
  143. </script>
  144. </button>
  145. <line id="line14" class="line_4" style="x1:478px; y1:6px; x2:478px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  146. <caption id="caption2" class="search_name" style="left:11px; top:9px; width:86px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색구분 :</caption>
  147. <input id="ipt_refval" ref="/root/hidden/ref/searchtext" class="input_search" navindex="3" style="left:244px; top:8px; width:120px; height:19px; ">
  148. <script type="javascript" ev:event="onkeypress">
  149. <![CDATA[
  150. if(event.keyCode == "13"){
  151. model.setvalue("/root/hidden/ref/searchtext",ipt_refval.currentText);
  152. model.refresh();
  153. fGetPatinfo();
  154. ipt_refval.selBegin = 0;
  155. ipt_refval.selEnd = ipt_refval.currentText.length;
  156. }
  157. ]]>
  158. </script>
  159. </input>
  160. <!--<select1 id="cmb_refflag" ref="/root/hidden/ref/searchgbn" class="combo_search" navindex="2" appearance="minimal" style="left:106px; top:8px; width:120px; height:19px; ">
  161. <choices>
  162. <item>
  163. <label>등록번호</label>
  164. <value>1</value>
  165. </item>
  166. <item>
  167. <label>환자명</label>
  168. <value>2</value>
  169. </item>
  170. </choices>
  171. </select1>-->
  172. <select1 id="rdo_refflag" ref="/root/hidden/ref/searchgbn" class="radio_search" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:100px; top:10px; width:140px; height:20px; border-style:none; ">
  173. <choices>
  174. <item>
  175. <label>등록번호</label>
  176. <value>1</value>
  177. </item>
  178. <item>
  179. <label>환자명</label>
  180. <value>2</value>
  181. </item>
  182. </choices>
  183. </select1>
  184. </group>
  185. <button id="btn_save" class="btn4_letter2" style="left:510px; top:550px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  186. <caption>닫기</caption>
  187. <script type="javascript" ev:event="onclick">
  188. <![CDATA[
  189. window.close();
  190. ]]>
  191. </script>
  192. </button>
  193. <datagrid id="grd_patinfo" nodeset="/root/hidden/patinfo" caption="등록번호^환자명^입원일자^진료과^병동^병실" colsep="^" colwidth="80, 80, 80, 80, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:570px; height:160px; ">
  194. <col ref="pid"/>
  195. <col ref="patnm"/>
  196. <col ref="indd" format="yyyy-mm-dd"/>
  197. <col ref="orddeptnm"/>
  198. <col ref="wardcd"/>
  199. <col ref="roomcd"/>
  200. <script type="javascript" ev:event="onclick">
  201. <![CDATA[
  202. if((grd_patinfo.rows - grd_patinfo.fixedRows) >0 ){
  203. fGetPatinfolist();
  204. }
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <caption id="caption3" class="tit_2" style="left:5px; top:50px; width:105px; height:13px; ">입원환자조회</caption>
  209. <line id="line2" class="line_1" style="x1:0px; y1:65px; x2:570px; y2:65px; "/>
  210. </group>
  211. </xhtml:body>
  212. </xhtml:html>