SPPMC06600_보호자증관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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. <patinfo>
  11. <pid/>
  12. <hngnm/>
  13. <indd/>
  14. <roomcd/>
  15. </patinfo>
  16. <userinfo>
  17. <usernm/>
  18. <seqno/>
  19. <cardid1/>
  20. <gubun/>
  21. </userinfo>
  22. <receipt>
  23. <pid/>
  24. <hngnm/>
  25. <hngnm2/>
  26. <sex/>
  27. <age/>
  28. <rrgstno/>
  29. <wardcd/>
  30. <wardcd2/>
  31. <roomcd/>
  32. <indd/>
  33. <barcode/>
  34. <newprintflag/>
  35. <btype/>
  36. <rfidyn/>
  37. <rfidcardid1/>
  38. <deptplce/>
  39. </receipt>
  40. </main>
  41. <send>
  42. <pid/>
  43. <usernm/>
  44. <gubun/>
  45. <cardid1/>
  46. <indd/>
  47. <dschdd/>
  48. <cretno/>
  49. <mskind/>
  50. <histstat/>
  51. <ioflag/>
  52. <ervisityn/>
  53. </send>
  54. <init/>
  55. <hidden>
  56. <rfid_result1>
  57. <msg/>
  58. </rfid_result1>
  59. <rfid_result2>
  60. <cardid1/>
  61. </rfid_result2>
  62. <rsltflag>
  63. <indeciprint>
  64. <pid/>
  65. <hngnm/>
  66. <indd/>
  67. <roomcd/>
  68. <deptplce/>
  69. <cardid1/>
  70. </indeciprint>
  71. </rsltflag>
  72. </hidden>
  73. </root>
  74. </instance>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. if ( checkOpener() ) {
  78. var pid = opener.javascript.getParameter("SPPMC06600_PID");
  79. var indd = opener.javascript.getParameter("SPPMC06600_INDD");
  80. // 환자 기본정보
  81. model.setValue("/root/send/pid", pid);
  82. model.setValue("/root/send/indd", indd);
  83. // 바코드 출력용 정보 생성
  84. //model.setValue("/root/send/cretno", cretno); // java단에서 조회 후 설정
  85. model.setValue("/root/send/mskind", "M");
  86. model.setValue("/root/send/histstat", "Y");
  87. model.setValue("/root/send/ioflag", "");
  88. model.setValue("/root/send/ervisityn", "");
  89. model.setFocus("input9");
  90. if (submit("TRPMC06605")) {
  91. // 보호자정보가 존재하지 않는 경우(최초) 최소한의 노드유지를 위핸 노드 생성
  92. if (getNodesetCount("/root/main/userinfo") < 1) {
  93. model.makeNode("/root/main/userinfo/usernm");
  94. model.refresh();
  95. }
  96. }
  97. } else {
  98. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  99. //return false;
  100. }
  101. ]]>
  102. </script>
  103. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  106. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  107. <submission id="TRPMC06605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  108. <submission id="TXPMC06606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rfid_result1"/>
  109. <submission id="TXPMC06607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rfid_result1"/>
  110. <submission id="TRPMC06608" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rfid_result2"/>
  111. </model>
  112. </xhtml:head>
  113. <xhtml:body pagewidth="410" pageheight="200" style="font-size:14px; ">
  114. <group id="group1" scroll="auto" style="left:3px; top:170px; width:395px; height:27px; ">
  115. <button id="btn_cancel" class="btn4_letter2" navindex="4" style="left:333px; top:2px; width:56px; height:22px; ">
  116. <caption>닫기</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. window.close();
  120. ]]>
  121. </script>
  122. </button>
  123. <button id="button1" class="btn4_letter6" navindex="3" style="left:227px; top:2px; width:104px; height:22px; ">
  124. <caption>보호자증출력</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. var usernm = model.getValue("/root/main/userinfo/usernm");
  128. if (isNull(usernm)) {
  129. messageBox("보호자 성명을 입력하십시오.", "C000");
  130. return;
  131. }
  132. // 0. RFID cardid1 취득
  133. model.setValue("/root/send/gubun", "R"); // 보호자
  134. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
  135. submit("TRPMC06608");
  136. // // 1. RFID 출력
  137. // var pid = model.getValue("/root/main/receipt/pid");
  138. //
  139. // var hngnm2 = model.getValue("/root/main/receipt/hngnm2");
  140. //
  141. // var btype = model.getValue("/root/main/receipt/btype");
  142. //
  143. // //경북대 병원 성별표시 한글로 바꿈
  144. // var sex = model.getValue("/root/main/receipt/sex");
  145. // if( sex == 'M' ){
  146. // sex = '남';
  147. // }else{
  148. // sex = '여';
  149. // }
  150. //
  151. // var age = model.getValue("/root/main/receipt/age") + "세";
  152. //
  153. // var rrgstno = model.getValue("/root/main/receipt/rrgstno").substr(0,2) + "."
  154. // + model.getValue("/root/main/receipt/rrgstno").substr(2,2) + "."
  155. // + model.getValue("/root/main/receipt/rrgstno").substr(4,2);
  156. //
  157. // var wardcd = model.getValue("/root/main/receipt/wardcd");
  158. //
  159. // var roomcd = model.getValue("/root/main/receipt/roomcd");
  160. //
  161. // var deptplce = model.getValue("/root/main/receipt/deptplce");
  162. //
  163. // var cardid1 = model.getValue("/root/hidden/rfid_result2/cardid1");
  164. //
  165. // //var param = pid + "|" + hngnm2 + "|" + btype + "|" + sex + "|" + age + "|" + rrgstno + "|" + wardcd + " " + roomcd + "호 (" + deptplce + ")|" + cardid1;
  166. // // 보호자증의 경우 혈액형란에 '보호자' 출력
  167. // // 성별 / 나이 / 생년월일 삭제
  168. // var param = pid + "|" // 등록번호
  169. // + hngnm2 + "|" // 환자성명
  170. // + "(보호자)" + "|" // 혈액형(보호자증의 경우 '보호자')
  171. // + "" + "|" // 성별(보호자증의 경우 공란)
  172. // + "" + "|" // 나이(보호자증의 경우 공란)
  173. // + "" + "|" // 생년월일(보호ㄷ자증의 경우 공란)
  174. // + wardcd + " " + roomcd + "호 (" + deptplce + ")|" // 병실
  175. // + cardid1 // RFID 카드번호
  176. // ;
  177. //
  178. // //alert(param);
  179. //
  180. // try{
  181. //
  182. // // 1. RFID 출력
  183. // var activeObj = new ActiveXObject("WScript.Shell");
  184. // activeObj.CurrentDirectory = "C:/Program Files/himed/components/OneTech";
  185. // var fileName = "RfidLabelPrt.exe " + param;
  186. // activeObj.Run(fileName);
  187. //
  188. // // 2. RFID 데이터 저장
  189. // model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
  190. // model.setValue("/root/send/usernm", model.getValue("/root/main/userinfo/usernm"));
  191. // model.setValue("/root/send/gubun", "R");
  192. // model.setValue("/root/send/cardid1", cardid1);
  193. // model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
  194. //
  195. // if (submit("TXPMC06606")) {
  196. // // 자동 닫기처리를 하는 경우에는 필요없음
  197. // submit("TRPMC06605");
  198. // }
  199. //
  200. // }catch(e){
  201. //
  202. // alert("RFID 카드 등록오류입니다. \r\n동일현상 반복 시 전산실로 문의하십시오.");
  203. // }
  204. model.setValue("/root/hidden/rsltflag/indeciprint/pid", model.getValue("/root/main/receipt/pid"));
  205. model.setValue("/root/hidden/rsltflag/indeciprint/hngnm", model.getValue("/root/main/receipt/hngnm2"));
  206. model.setValue("/root/hidden/rsltflag/indeciprint/indd", model.getValue("/root/main/receipt/indd"));
  207. model.setValue("/root/hidden/rsltflag/indeciprint/roomcd", model.getValue("/root/main/receipt/roomcd"));
  208. model.setValue("/root/hidden/rsltflag/indeciprint/deptplce", model.getValue("/root/main/receipt/deptplce"));
  209. model.setValue("/root/hidden/rsltflag/indeciprint/cardid1", model.getValue("/root/hidden/rfid_result2/cardid1"));
  210. //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 입원보호자증
  211. setGlobalVariable("SPPAO00100_강제출력여부", "Y" ,"p");
  212. fGetPrintName();
  213. setGlobalVariable("SPPAO00100_강제출력여부", "" ,"p");
  214. var print_name = getGlobalVariable("SPPAO00100_P0045_7_nm","p");
  215. var print_tray = getGlobalVariable("SPPAO00100_P0045_7_tray","p");
  216. //호출끝
  217. // 입원보호자증 출력 추후 바코드 프린터로 설정 바꿔야함
  218. if(print_name != "false"){
  219. exeReportPreview("RPPMI01206", "XMLSTR", "", "", print_name, "", "", "", "", "true", "", "", print_tray, "", "", "", "", "", "", "", "");
  220. // RFID 데이터 저장
  221. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
  222. model.setValue("/root/send/usernm", model.getValue("/root/main/userinfo/usernm"));
  223. model.setValue("/root/send/gubun", "R");
  224. model.setValue("/root/send/cardid1", model.getValue("/root/hidden/rfid_result2/cardid1"));
  225. model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
  226. if (submit("TXPMC06606")) {
  227. // 닫기
  228. window.close();
  229. // 자동 닫기처리를 하는 경우에는 필요없음
  230. //submit("TRPMC06605");
  231. }
  232. }
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="button2" visibility="hidden" style="left:15px; top:4px; width:25px; height:20px; ">
  237. <caption>퇴원</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
  241. model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
  242. model.setValue("/root/send/dschdd", model.getValue("/root/main/patinfo/indd")); // dschdd
  243. submit("TXPMC06607");
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="button3" visibility="hidden" style="left:55px; top:4px; width:50px; height:20px; ">
  248. <caption>퇴원취소</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
  252. model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
  253. model.setValue("/root/send/dschdd", "99991231"); // dschdd
  254. submit("TXPMC06607");
  255. ]]>
  256. </script>
  257. </button>
  258. </group>
  259. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:120px; height:14px; ">보호자증 관리</caption>
  260. <caption id="caption3" class="cell_1" style="left:3px; top:41px; width:90px; height:20px; text-align:center; ">등록번호</caption>
  261. <caption id="caption1" class="cell_1" style="left:218px; top:41px; width:60px; height:20px; text-align:center; ">성명</caption>
  262. <line id="line104" class="line_2" style="x1:3px; y1:61px; x2:399px; y2:61px; "/>
  263. <input id="ipt_pid" ref="/root/main/patinfo/pid" disabled="false" appearance="input" style="left:95px; top:41px; width:121px; height:19px; text-align:left; ">
  264. <script type="javascript" ev:event="onkeydown">
  265. <![CDATA[
  266. if(ipt_pid.value != "" || ipt_pid.value != null){
  267. if (event.keyCode == '13') {
  268. button1.dispatch("DOMActivate");
  269. }
  270. }
  271. ]]>
  272. </script>
  273. </input>
  274. <input id="ipt_hngnm" ref="/root/main/patinfo/hngnm" disabled="true" editable="false" appearance="input" style="left:280px; top:41px; width:121px; height:19px; text-align:center; "/>
  275. <caption id="caption7" class="cell_1" style="left:3px; top:64px; width:90px; height:20px; text-align:center; ">입원일자</caption>
  276. <caption id="caption9" class="cell_1" style="left:218px; top:64px; width:60px; height:20px; text-align:center; ">병실</caption>
  277. <input id="input6" ref="/root/main/patinfo/roomcd" disabled="true" editable="false" appearance="input" style="left:280px; top:64px; width:121px; height:19px; text-align:center; "/>
  278. <input id="input8" ref="/root/main/patinfo/indd" editable="true" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:95px; top:64px; width:121px; height:19px; text-align:left; "/>
  279. <caption id="caption13" class="tit_2" style="left:3px; top:95px; width:125px; height:13px; font-family:돋움; vertical-align:middle; ">보호자정보</caption>
  280. <line id="line5" class="line_2" style="x1:3px; y1:136px; x2:399px; y2:136px; "/>
  281. <input id="input9" ref="/root/main/userinfo/usernm" disabled="false" appearance="input" style="left:101px; top:116px; width:100px; height:19px; text-align:left; padding-right:5; "/>
  282. <caption id="caption15" class="cell_1" style="left:3px; top:116px; width:97px; height:20px; text-align:center; ">보호자 성명</caption>
  283. <caption id="caption2" class="tit_2" style="left:3px; top:20px; width:125px; height:13px; font-family:돋움; vertical-align:middle; ">환자정보</caption>
  284. <input id="input1" ref="/root/main/userinfo/cardid1" disabled="true" editable="false" appearance="input" style="left:101px; top:139px; width:300px; height:19px; text-align:left; padding-right:5; "/>
  285. <caption id="caption4" class="cell_1" style="left:3px; top:139px; width:97px; height:20px; text-align:center; ">RFID 카드번호</caption>
  286. <line id="line3" class="line_2" style="x1:3px; y1:84px; x2:399px; y2:84px; "/>
  287. <line id="line1" class="line_1" style="x1:3px; y1:36px; x2:399px; y2:36px; "/>
  288. <line id="line2" class="line_1" style="x1:3px; y1:111px; x2:399px; y2:111px; "/>
  289. <select1 id="radio1" ref="/root/main/userinfo/gubun" disabled="true" appearance="full" cols="2" overflow="visible" style="left:203px; top:115px; width:100px; height:20px; border-style:none; ">
  290. <choices>
  291. <item>
  292. <label>환자</label>
  293. <value>P</value>
  294. </item>
  295. <item>
  296. <label>보호자</label>
  297. <value>R</value>
  298. </item>
  299. </choices>
  300. </select1>
  301. <input id="input2" ref="/root/main/userinfo/seqno" disabled="true" style="left:308px; top:116px; width:93px; height:19px; text-align:right; "/>
  302. <line id="line4" class="line_2" style="x1:3px; y1:159px; x2:399px; y2:159px; "/>
  303. </xhtml:body>
  304. </xhtml:html>