SPMMO32500_응급실응급질환대상자검색.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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. <rsamiptlist>
  11. <rsamiptinfo>
  12. <indd/>
  13. <cretno/>
  14. <pid/>
  15. <pathngnm/>
  16. <chosdd/>
  17. <chostm/>
  18. <chosresn/>
  19. <erclincrslt/>
  20. <tmprts/>
  21. <recovwardcd/>
  22. </rsamiptinfo>
  23. </rsamiptlist>
  24. <rscviptlist>
  25. <rscviptinfo>
  26. <indd/>
  27. <cretno/>
  28. <pid/>
  29. <pathngnm/>
  30. <chosdd/>
  31. <chostm/>
  32. <chosresn/>
  33. <erclincrslt/>
  34. <tmprts/>
  35. <recovwardcd/>
  36. </rscviptinfo>
  37. </rscviptlist>
  38. </main>
  39. <send>
  40. </send>
  41. <init>
  42. <srch_kind/>
  43. <srch_startdd/>
  44. <srch_enddd/>
  45. <srch_flag/>
  46. </init>
  47. <hidden/>
  48. </root>
  49. </instance>
  50. <submission id="TRMMO32501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsamiptlist"/>
  51. <submission id="TRMMO32502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rscviptlist"/>
  52. </model>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. model.removeNodeset("/root/main/rsamiptlist/rsamiptinfo");
  56. model.removeNodeset("/root/main/rscviptlist/rscviptinfo");
  57. model.setValue("/root/init/srch_flag", "1");
  58. if(model.getValue("/root/init/srch_flag") == "1"){
  59. grd_rsamiptinfo.visible = true;
  60. }else{
  61. grd_rscviptinfo.visible = false;
  62. }
  63. model.refresh();
  64. ]]>
  65. </script>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript">
  69. <![CDATA[
  70. //응급심장질환 조회
  71. function Search_Heart(){
  72. model.removeNodeset ("/root/main/rsamiptlist/rsamiptinfo");
  73. model.removeNodeSet ("/root/send" );
  74. model.makeValue("/root/send/cond1/srch_kind", model.getValue("/root/init/srch_kind") );
  75. model.makeValue("/root/send/cond1/srch_startdd", model.getValue("/root/init/srch_startdd") );
  76. model.makeValue("/root/send/cond1/srch_enddd", model.getValue("/root/init/srch_enddd") );
  77. submit("TRMMO32501");
  78. }
  79. //응급뇌질환 조회
  80. function Search_Brain(){
  81. model.removeNodeset ("/root/main/rscviptlist/rscviptinfo");
  82. model.removeNodeSet ("/root/send" );
  83. model.makeValue("/root/send/cond1/srch_kind", model.getValue("/root/init/srch_kind") );
  84. model.makeValue("/root/send/cond1/srch_startdd", model.getValue("/root/init/srch_startdd") );
  85. model.makeValue("/root/send/cond1/srch_enddd", model.getValue("/root/init/srch_enddd") );
  86. submit("TRMMO32502");
  87. }
  88. ]]>
  89. </script>
  90. </xhtml:head>
  91. <xhtml:body pagewidth="830" pageheight="700" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  92. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:805px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  93. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:805px; y2:65px; "/>
  94. <button id="btn_search" class="btn1_letter2" style="left:730px; top:30px; width:56px; height:22px; ">
  95. <caption>조회</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. if(model.getValue("/root/init/srch_flag") == "1"){
  99. Search_Heart();
  100. }else{
  101. Search_Brain();
  102. }
  103. ]]>
  104. </script>
  105. </button>
  106. <datagrid id="grd_rsamiptinfo" nodeset="/root/main/rsamiptlist/rsamiptinfo" visibility="hidden" caption="indd^cretno^환자번호^환자명^내원일자^내원시간^내원사유^응급진료결과" colsep="^" colwidth="37, 48, 69, 76, 74, 73, 99, 119" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:70px; width:805px; height:610px; ">
  107. <col ref="indd" visibility="hidden"/>
  108. <col ref="cretno" visibility="hidden"/>
  109. <col ref="pid" visibility="visible" style="text-align:center; "/>
  110. <col ref="pathngnm" visibility="visible" style="text-align:center; "/>
  111. <col ref="chosdd"/>
  112. <col ref="chostm" style="text-align:center; "/>
  113. <col ref="chosresn" style="text-align:center; "/>
  114. <col ref="erclincrslt" visibility="hidden"/>
  115. <script type="javascript" ev:event="ondblclick">
  116. <![CDATA[
  117. if (isDataCell() == true) {
  118. var currow = grd_rsamiptinfo.row;
  119. setParameter("SPMMO32600_pid", model.getValue("/root/main/rsamiptlist/rsamiptinfo[" + currow + "]/pid"));
  120. setParameter("SPMMO32600_orddd", model.getValue("/root/main/rsamiptlist/rsamiptinfo[" + currow + "]/indd"));
  121. setParameter("SPMMO32600_cretno", model.getValue("/root/main/rsamiptlist/rsamiptinfo[" + currow + "]/cretno"));
  122. open("SPMMO32600", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; min:hidden, max:hidden;");
  123. }
  124. ]]>
  125. </script>
  126. <script type="javascript" ev:event="onaftersort">
  127. <![CDATA[
  128. grd_rsamiptinfo.gridToInstance();
  129. ]]>
  130. </script>
  131. </datagrid>
  132. <select1 id="combo3" ref="/root/init/srch_kind" class="combo_search" appearance="minimal" style="left:105px; top:31px; width:85px; height:19px; ">
  133. <choices>
  134. <item>
  135. <label>퇴원일</label>
  136. <value>1</value>
  137. </item>
  138. <item>
  139. <label>내원일</label>
  140. <value>2</value>
  141. </item>
  142. </choices>
  143. </select1>
  144. <input id="input3" ref="/root/init/srch_startdd" class="input_search" inputtype="date" style="left:205px; top:31px; width:93px; height:19px; ">
  145. <script type="javascript" ev:event="onclick">
  146. <![CDATA[
  147. ]]>
  148. </script>
  149. </input>
  150. <input id="input1" ref="/root/init/srch_enddd" class="input_search" inputtype="date" style="left:323px; top:31px; width:93px; height:19px; ">
  151. <script type="javascript" ev:event="onclick">
  152. <![CDATA[
  153. ]]>
  154. </script>
  155. </input>
  156. <caption id="caption1" style="left:305px; top:31px; width:20px; height:20px; ">~</caption>
  157. <caption id="caption8" class="search_name" style="left:10px; top:31px; width:95px; height:17px; ">검색조건 :</caption>
  158. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:199px; height:14px; ">응급질환 입력대상자 조회</caption>
  159. <line id="line2" style="x1:710px; y1:29px; x2:710px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  160. <select1 id="radio1" ref="/root/init/srch_flag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:465px; top:32px; width:190px; height:20px; border-style:none; ">
  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. <script type="javascript" ev:event="xforms-value-changed">
  172. <![CDATA[
  173. if(model.getValue("/root/init/srch_flag") == "1"){
  174. grd_rsamiptinfo.visible = true;
  175. grd_rscviptinfo.visible = false;
  176. }else{
  177. grd_rsamiptinfo.visible = false;
  178. grd_rscviptinfo.visible = true;
  179. }
  180. model.refresh();
  181. ]]>
  182. </script>
  183. </select1>
  184. <datagrid id="grd_rscviptinfo" nodeset="/root/main/rscviptlist/rscviptinfo" visibility="hidden" caption="indd^cretno^환자번호^환자명^내원일자^내원시간^내원사유^응급진료결과" colsep="^" colwidth="37, 48, 69, 76, 74, 73, 99, 119" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:70px; width:805px; height:610px; ">
  185. <col ref="indd" visibility="hidden"/>
  186. <col ref="cretno" visibility="hidden"/>
  187. <col ref="pid" visibility="visible" style="text-align:center; "/>
  188. <col ref="pathngnm" visibility="visible" style="text-align:center; "/>
  189. <col ref="chosdd"/>
  190. <col ref="chostm" style="text-align:center; "/>
  191. <col ref="chosresn" style="text-align:center; "/>
  192. <col ref="erclincrslt" visibility="hidden"/>
  193. <script type="javascript" ev:event="ondblclick">
  194. <![CDATA[
  195. if (isDataCell() == true) {
  196. var currow = grd_rscviptinfo.row;
  197. setParameter("SPMMO32700_pid", model.getValue("/root/main/rscviptlist/rscviptinfo[" + currow + "]/pid"));
  198. setParameter("SPMMO32700_orddd", model.getValue("/root/main/rscviptlist/rscviptinfo[" + currow + "]/indd"));
  199. setParameter("SPMMO32700_cretno", model.getValue("/root/main/rscviptlist/rscviptinfo[" + currow + "]/cretno"));
  200. open("SPMMO32700", 1, 0, 0, "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; min:hidden, max:hidden;");
  201. }
  202. ]]>
  203. </script>
  204. <script type="javascript" ev:event="onaftersort">
  205. <![CDATA[
  206. grd_rscviptinfo.gridToInstance();
  207. ]]>
  208. </script>
  209. </datagrid>
  210. </xhtml:body>
  211. </xhtml:html>