SMMMO06001_응급실접수취소(환자번호미발생).xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <acptcnclinfo>
  11. <acptcnclinfo>
  12. <pid/>
  13. <hngnm/>
  14. <cretno/>
  15. <indd/>
  16. <brthdd/>
  17. <age/>
  18. <sex/>
  19. <highbp/>
  20. <lowbp/>
  21. <mntpulsecnt/>
  22. <mntbrethcnt/>
  23. <chosbdtp/>
  24. <oxyconcen/>
  25. <cancelrsn/>
  26. <rtnplace/>
  27. <etc/>
  28. <status/>
  29. </acptcnclinfo>
  30. </acptcnclinfo>
  31. </main>
  32. <send>
  33. <pid/>
  34. <indd/>
  35. <cretno/>
  36. </send>
  37. <savedata>
  38. <acptcnclinfo>
  39. <status/>
  40. <pid/>
  41. <hngnm/>
  42. <cretno/>
  43. <indd/>
  44. <brthdd/>
  45. <age/>
  46. <sex/>
  47. <highbp/>
  48. <lowbp/>
  49. <mntpulsecnt/>
  50. <mntbrethcnt/>
  51. <chosbdtp/>
  52. <oxyconcen/>
  53. <cancelrsn/>
  54. <rtnplace/>
  55. <etc/>
  56. </acptcnclinfo>
  57. </savedata>
  58. <temp>
  59. <acptcnclinfo/>
  60. </temp>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  66. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. init();
  70. ]]>
  71. </script>
  72. <submission id="TRMMO06000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/acptcnclinfo"/>
  73. <submission id="TXMMO06000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/savedata/acptcnclinfo" resultref="/root/temp/acptcnclinfo"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. var sParamInfo = "";
  77. var status = "";
  78. function init(){
  79. sParamInfo = opener.javascript.getParameter("SMMMO06001_PARAM");
  80. var pid = getArrayData(sParamInfo,0,0,"▩","▦");
  81. var cretno = getArrayData(sParamInfo,0,5,"▩","▦");
  82. var indd = getArrayData(sParamInfo,0,6,"▩","▦");
  83. if( sParamInfo.length > 0 && indd != "" ){
  84. status = "u";
  85. model.setValue("/root/send/pid", pid);
  86. model.setValue("/root/send/indd", indd);
  87. model.setValue("/root/send/cretno", cretno);
  88. submit("TRMMO06000");
  89. if( getNodesetCount("/root/temp/acptcnclinfo/pid") > 0){
  90. model.copyNode("/root/main/acptcnclinfo/acptcnclinfo","/root/temp/acptcnclinfo");
  91. }else{
  92. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/pid", pid);
  93. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/hngnm", getArrayData(sParamInfo,0,1,"▩","▦"));
  94. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/brthdd", getArrayData(sParamInfo,0,2,"▩","▦"));
  95. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/sex", getArrayData(sParamInfo,0,3,"▩","▦"));
  96. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/age", getArrayData(sParamInfo,0,4,"▩","▦"));
  97. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/cretno", cretno);
  98. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/indd", indd);
  99. }
  100. ipt_brthdd.disabled = true;
  101. ipt_age.disabled = true;
  102. cmb_sex.disabled = true;
  103. ipt_indd.disabled = true;
  104. }else{
  105. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/pid", pid);
  106. }
  107. model.resetInstanceNode("/root/temp/acptcnclinfo");
  108. model.refresh();
  109. }
  110. ]]>
  111. </script>
  112. </model>
  113. </xhtml:head>
  114. <xhtml:body pagewidth="822" pageheight="440" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  115. <caption id="cap_mtitle" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">응급실 접수취소 ( 환자번호 미발생 )</caption>
  116. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:804px; y2:21px; "/>
  117. <caption id="caption1" class="cell_1" style="left:696px; top:25px; width:105px; height:23px; vertical-align:middle; "/>
  118. <caption id="caption2" class="cell_1" style="left:0px; top:25px; width:67px; height:23px; vertical-align:middle; ">환자명</caption>
  119. <caption id="caption3" class="cell_1" style="left:165px; top:25px; width:67px; height:23px; vertical-align:middle; ">생년월일</caption>
  120. <caption id="caption4" class="cell_1" style="left:315px; top:25px; width:67px; height:23px; vertical-align:middle; ">나이/성별</caption>
  121. <caption id="caption5" class="cell_1" style="left:464px; top:25px; width:119px; height:23px; vertical-align:middle; ">내원일시(날짜+시간)</caption>
  122. <line id="line6" class="line_3" style="x1:0px; y1:48px; x2:804px; y2:48px; "/>
  123. <caption id="cap_title1" class="tit_2" style="left:0px; top:70px; width:200px; height:13px; ">활력징후</caption>
  124. <line id="line2" class="line_1" style="x1:0px; y1:85px; x2:804px; y2:85px; "/>
  125. <input id="ipt_hngnm" ref="/root/main/acptcnclinfo/acptcnclinfo/hngnm" class="input_essential" navindex="1" style="left:68px; top:27px; width:95px; height:19px; text-align:center; "/>
  126. <input id="ipt_brthdd" ref="/root/main/acptcnclinfo/acptcnclinfo/brthdd" class="input_essential" navindex="2" format="99-99-99" style="left:233px; top:27px; width:80px; height:19px; text-align:center; "/>
  127. <input id="ipt_age" ref="/root/main/acptcnclinfo/acptcnclinfo/age" navindex="3" maxlength="3" style="left:383px; top:27px; width:28px; height:19px; text-align:center; "/>
  128. <caption id="caption6" style="left:413px; top:28px; width:10px; height:20px; ">/</caption>
  129. <input id="ipt_indd" ref="/root/main/acptcnclinfo/acptcnclinfo/indd" class="input_essential" navindex="5" format="yyyy-mm-dd hh:nn" style="left:585px; top:27px; width:108px; height:19px; text-align:center; "/>
  130. <caption id="cap_title2" class="tit_2" style="left:0px; top:130px; width:200px; height:13px; ">접수취소사유</caption>
  131. <line id="line3" class="line_1" style="x1:0px; y1:145px; x2:804px; y2:145px; "/>
  132. <caption id="cap_title3" class="tit_2" style="left:0px; top:235px; width:200px; height:13px; ">귀가 또는 전원병원명</caption>
  133. <line id="line4" class="line_1" style="x1:0px; y1:250px; x2:804px; y2:250px; "/>
  134. <caption id="cap_title4" class="tit_2" style="left:0px; top:325px; width:200px; height:13px; ">기타</caption>
  135. <line id="line5" class="line_1" style="x1:0px; y1:340px; x2:804px; y2:340px; "/>
  136. <button id="btn_save" class="btn4_letter2" style="left:688px; top:405px; width:56px; height:22px; ">
  137. <caption>저장</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. var hngnm = model.getValue("/root/main/acptcnclinfo/acptcnclinfo/hngnm");
  141. var brthdd = model.getValue("/root/main/acptcnclinfo/acptcnclinfo/brthdd");
  142. var indd = model.getValue("/root/main/acptcnclinfo/acptcnclinfo/indd");
  143. var cancelrsn = model.getValue("/root/main/acptcnclinfo/acptcnclinfo/cancelrsn");
  144. if( hngnm == "" ){
  145. messageBox("환자명은","I003");// 필수입력입니다.
  146. return;
  147. }else if( brthdd == "" ){
  148. messageBox("생년월일은","I003");
  149. return;
  150. }else if( indd == ""){
  151. messageBox("내원일자는","I003");
  152. return;
  153. }else if( cancelrsn == "" ){
  154. messageBox("접수취소사유는","I003");
  155. return;
  156. }
  157. var rtnval = messageBox("","Q002");
  158. if( rtnval == "6"){
  159. if( status == "" ){
  160. model.makeValue("/root/main/acptcnclinfo/acptcnclinfo/status", "i");
  161. }else{
  162. model.makeValue("/root/main/acptcnclinfo/acptcnclinfo/status", "u");
  163. }
  164. model.copyNode("/root/savedata/acptcnclinfo", "/root/main/acptcnclinfo/acptcnclinfo");
  165. if(submit("TXMMO06000")){
  166. messageBox("저장되었습니다.","I");
  167. model.copyNode("/root/main/acptcnclinfo/acptcnclinfo", "/root/temp/acptcnclinfo");
  168. model.resetInstanceNode("/root/savedata/acptcnclinfo");
  169. ipt_brthdd.disabled = true;
  170. ipt_age.disabled = true;
  171. cmb_sex.disabled = true;
  172. ipt_indd.disabled = true;
  173. status = "u";
  174. }else{
  175. messageBox("저장 실패하였습니다.","E");
  176. }
  177. model.refresh();
  178. }
  179. ]]>
  180. </script>
  181. </button>
  182. <button id="btn_close" class="btn4_letter2" style="left:748px; top:405px; width:56px; height:22px; ">
  183. <caption>닫기</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. window.close();
  187. ]]>
  188. </script>
  189. </button>
  190. <caption id="caption9" class="cell_1" style="left:0px; top:89px; width:77px; height:23px; vertical-align:middle; ">수축기혈압</caption>
  191. <caption id="caption10" class="cell_1" style="left:134px; top:89px; width:77px; height:23px; vertical-align:middle; ">이완기혈압</caption>
  192. <caption id="caption11" class="cell_1" style="left:670px; top:89px; width:77px; height:23px; vertical-align:middle; ">산소포화도</caption>
  193. <caption id="caption12" class="cell_1" style="left:268px; top:89px; width:77px; height:23px; vertical-align:middle; ">분당맥박수</caption>
  194. <caption id="caption13" class="cell_1" style="left:402px; top:89px; width:77px; height:23px; vertical-align:middle; ">분당호흡수</caption>
  195. <caption id="caption14" class="cell_1" style="left:536px; top:89px; width:77px; height:23px; vertical-align:middle; ">내원시 체온</caption>
  196. <input id="ipt_highbp" ref="/root/main/acptcnclinfo/acptcnclinfo/highbp" navindex="7" maxlength="3" format="999" style="left:78px; top:91px; width:55px; height:19px; "/>
  197. <input id="ipt_lowbp" ref="/root/main/acptcnclinfo/acptcnclinfo/lowbp" navindex="8" maxlength="3" format="999" style="left:212px; top:91px; width:55px; height:19px; "/>
  198. <input id="ipt_oxyconcen" ref="/root/main/acptcnclinfo/acptcnclinfo/oxyconcen" navindex="12" maxlength="3" format="999" style="left:748px; top:91px; width:55px; height:19px; "/>
  199. <input id="ipt_mntbrethcnt" ref="/root/main/acptcnclinfo/acptcnclinfo/mntbrethcnt" navindex="10" maxlength="3" format="999" style="left:480px; top:91px; width:55px; height:19px; "/>
  200. <input id="ipt_chosbdtp" ref="/root/main/acptcnclinfo/acptcnclinfo/chosbdtp" navindex="11" maxlength="3" format="999" style="left:614px; top:91px; width:55px; height:19px; "/>
  201. <input id="ipt_mntpulsecnt" ref="/root/main/acptcnclinfo/acptcnclinfo/mntpulsecnt" navindex="9" maxlength="3" format="999" style="left:346px; top:91px; width:55px; height:19px; "/>
  202. <line id="line7" class="line_3" style="x1:1px; y1:112px; x2:805px; y2:112px; "/>
  203. <textarea id="txa_cancel" ref="/root/main/acptcnclinfo/acptcnclinfo/cancelrsn" class="text_essential" navindex="13" maxlength="2000" style="left:0px; top:150px; width:804px; height:64px; "/>
  204. <textarea id="txa_rtnplce" ref="/root/main/acptcnclinfo/acptcnclinfo/rtnplace" navindex="14" maxlength="2000" style="left:0px; top:255px; width:804px; height:50px; "/>
  205. <textarea id="txa_etc" ref="/root/main/acptcnclinfo/acptcnclinfo/etc" navindex="15" maxlength="2000" style="left:0px; top:345px; width:804px; height:50px; "/>
  206. <line id="line9" class="line_3" style="x1:0px; y1:214px; x2:804px; y2:214px; "/>
  207. <line id="line10" class="line_3" style="x1:0px; y1:305px; x2:804px; y2:305px; "/>
  208. <line id="line11" class="line_3" style="x1:0px; y1:395px; x2:804px; y2:395px; "/>
  209. <button id="button1" class="btn4_letter2" style="left:630px; top:405px; width:56px; height:22px; ">
  210. <caption>삭제</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. var rtnval = messageBox("","Q001");
  214. if( rtnval == "6"){
  215. model.setValue("/root/main/acptcnclinfo/acptcnclinfo/status", "d");
  216. model.copyNode("/root/savedata/acptcnclinfo", "/root/main/acptcnclinfo/acptcnclinfo");
  217. if(submit("TXMMO06000")){
  218. messageBox("삭제되었습니다.","I");
  219. model.resetInstanceNode("/root/main/acptcnclinfo/acptcnclinfo");
  220. btn_close.dispatch("DOMActivate");
  221. }else{
  222. messageBox("삭제 실패하였습니다.","E");
  223. }
  224. }
  225. ]]>
  226. </script>
  227. </button>
  228. <input id="ipt_pid" ref="/root/main/acptcnclinfo/acptcnclinfo/pid" class="input_essential" disabled="true" navindex="6" visibility="hidden" style="left:707px; top:27px; width:95px; height:19px; text-align:center; "/>
  229. <select1 id="cmb_sex" ref="/root/main/acptcnclinfo/acptcnclinfo/sex" navindex="4" appearance="minimal" style="left:423px; top:27px; width:39px; height:19px; ">
  230. <choices>
  231. <item>
  232. <label>남</label>
  233. <value>M</value>
  234. </item>
  235. <item>
  236. <label>여</label>
  237. <value>F</value>
  238. </item>
  239. </choices>
  240. </select1>
  241. </xhtml:body>
  242. </xhtml:html>