SPMNW99900_처리환자리스트(개발자용).xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. <cond>
  10. <pid/>
  11. <flag>E</flag>
  12. </cond>
  13. <main>
  14. <histinfo>
  15. <inhistinfo>
  16. <pid/>
  17. <patnm/>
  18. <indd/>
  19. <dschdd/>
  20. <recflag/>
  21. <recnm/>
  22. <signno/>
  23. <cretno/>
  24. <instcd/>
  25. <mskind/>
  26. <histstat/>
  27. </inhistinfo>
  28. </histinfo>
  29. </main>
  30. <send/>
  31. </root>
  32. </instance>
  33. <submission id="TRMNW99901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/histinfo"/>
  34. </model>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript">
  39. <![CDATA[
  40. ]]>
  41. </script>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. ]]>
  45. </script>
  46. </xhtml:head>
  47. <xhtml:body pagewidth="886" pageheight="351" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  48. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:870px; height:351px; ">
  49. <button id="btn_search" class="btn2_letter3" style="left:660px; top:4px; width:53px; height:19px; ">
  50. <caption>조회</caption>
  51. <script type="javascript" ev:event="DOMActivate">
  52. <![CDATA[
  53. if(model.getValue("/root/cond/pid") != "" && model.getValue("/root/cond/flag") != ""){
  54. model.removeNodeset("/root/send");
  55. model.makeNode("/root/send");
  56. model.makeValue("/root/send/pid", model.getValue("/root/cond/pid"));
  57. model.makeValue("/root/send/flag", model.getValue("/root/cond/flag"));
  58. submit("TRMNW99901");
  59. }
  60. ]]>
  61. </script>
  62. </button>
  63. <datagrid id="grd_wardpatlist" nodeset="/root/main/histinfo/inhistinfo" scroll="auto" caption="아이디^환자명^입원일자^퇴원일자^기록구분^기록자명^signno^cretno^instcd^mskind^histstat" colsep="^" colwidth="75, 100, 85, 85, 70, 79, 100, 64, 54, 54, 63" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:865px; height:323px; ">
  64. <col ref="pid"/>
  65. <col ref="patnm"/>
  66. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  67. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  68. <col disabled="true" ref="recflag" type="combo">
  69. <choices>
  70. <item>
  71. <label>일반병동</label>
  72. <value>01</value>
  73. </item>
  74. <item>
  75. <label>정신과</label>
  76. <value>02</value>
  77. </item>
  78. <item>
  79. <label>산모</label>
  80. <value>03</value>
  81. </item>
  82. <item>
  83. <label>소아</label>
  84. <value>04</value>
  85. </item>
  86. <item>
  87. <label>BMT</label>
  88. <value>05</value>
  89. </item>
  90. <item>
  91. <label>본원신생아</label>
  92. <value>06</value>
  93. </item>
  94. <item>
  95. <label>외부신생아</label>
  96. <value>07</value>
  97. </item>
  98. <item>
  99. <label>투석간호</label>
  100. <value>08</value>
  101. </item>
  102. <item>
  103. <label>가정간호</label>
  104. <value>09</value>
  105. </item>
  106. <item>
  107. <label>응급실</label>
  108. <value>10</value>
  109. </item>
  110. </choices>
  111. </col>
  112. <col ref="recnm"/>
  113. <col ref="signno" visibility="hidden"/>
  114. <col ref="cretno"/>
  115. <col ref="instcd"/>
  116. <col ref="mskind"/>
  117. <col ref="histstat"/>
  118. <script type="javascript" ev:event="ondblclick">
  119. <![CDATA[
  120. if( isDataCell() ) {
  121. var ordtype = "";
  122. var orddd = "";
  123. if(model.getValue("/root/cond/flag") == "W"){
  124. ordtype = "I";
  125. }else{
  126. ordtype = "E";
  127. }
  128. if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/dschdd") != "99991231"){
  129. orddd = model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/dschdd");
  130. }else{
  131. orddd = getCurrentDate();
  132. }
  133. // 상단 세팅을 위한 파라미터
  134. condparam = ordtype+ "▦" + model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/pid")
  135. + "▦" + model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/indd")
  136. + "▦" + model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/cretno")
  137. + "▦" + model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/instcd")
  138. + "▦" + orddd
  139. //+ "▦" + model.getValue("/root/main/cond/orddd");
  140. setParameter("condparam", condparam);
  141. //상단 세팅 화면 사이즈 작게 띄움
  142. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  143. if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/histstat") == "Y"){
  144. btn_rec.dispatch("DOMActivate");
  145. }
  146. }
  147. ]]>
  148. </script>
  149. </datagrid>
  150. <button id="btn_rec" class="btn2_letter6" style="left:720px; top:4px; width:86px; height:19px; ">
  151. <caption>간호정보조사</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "01"){ //일반병동
  155. open("SMMNW03100");
  156. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "02"){ //정신과
  157. open("SMMNW03400");
  158. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "03"){ //산모
  159. open("SMMNN00300");
  160. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "04"){ //소아
  161. open("SMMNW03200");
  162. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "05"){ //BMT
  163. open("SMMNW03500");
  164. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "06"){ //본원신생아
  165. open("SMMNN00400");
  166. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "07"){ //외부신생아
  167. open("SMMNN02000");
  168. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "08"){ //투석간호
  169. open("SMMND00300");
  170. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "09"){ //가정간호
  171. open("SMMNF00300");
  172. }else if(model.getValue("/root/main/histinfo/inhistinfo["+grd_wardpatlist.row+"]/recflag") == "10"){ //응급실
  173. open("SMMNE04300");
  174. }
  175. ]]>
  176. </script>
  177. </button>
  178. <input id="input1" ref="/root/cond/pid" style="left:430px; top:4px; width:185px; height:19px; ">
  179. <script type="javascript" ev:event="onkeypress">
  180. <![CDATA[
  181. inputEnterKey("btn_search", "DOMActivate");
  182. ]]>
  183. </script>
  184. </input>
  185. <select1 id="radio1" ref="/root/cond/flag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:325px; top:4px; width:100px; height:20px; border-style:none; ">
  186. <choices>
  187. <item>
  188. <label>병동</label>
  189. <value>W</value>
  190. </item>
  191. <item>
  192. <label>응급</label>
  193. <value>E</value>
  194. </item>
  195. </choices>
  196. </select1>
  197. </group>
  198. </xhtml:body>
  199. </xhtml:html>