123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>보호자증관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <patinfo>
- <pid/>
- <hngnm/>
- <indd/>
- <roomcd/>
- </patinfo>
- <userinfo>
- <usernm/>
- <seqno/>
- <cardid1/>
- <gubun/>
- </userinfo>
- <receipt>
- <pid/>
- <hngnm/>
- <hngnm2/>
- <sex/>
- <age/>
- <rrgstno/>
- <wardcd/>
- <wardcd2/>
- <roomcd/>
- <indd/>
- <barcode/>
- <newprintflag/>
- <btype/>
- <rfidyn/>
- <rfidcardid1/>
- <deptplce/>
- </receipt>
- </main>
- <send>
- <pid/>
- <usernm/>
- <gubun/>
- <cardid1/>
- <indd/>
- <dschdd/>
- <cretno/>
- <mskind/>
- <histstat/>
- <ioflag/>
- <ervisityn/>
- </send>
- <init/>
- <hidden>
- <rfid_result1>
- <msg/>
- </rfid_result1>
- <rfid_result2>
- <cardid1/>
- </rfid_result2>
- <rsltflag>
- <indeciprint>
- <pid/>
- <hngnm/>
- <indd/>
- <roomcd/>
- <deptplce/>
- <cardid1/>
- </indeciprint>
- </rsltflag>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- if ( checkOpener() ) {
-
- var pid = opener.javascript.getParameter("SPPMC06600_PID");
- var indd = opener.javascript.getParameter("SPPMC06600_INDD");
-
- // 환자 기본정보
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/indd", indd);
-
- // 바코드 출력용 정보 생성
- //model.setValue("/root/send/cretno", cretno); // java단에서 조회 후 설정
- model.setValue("/root/send/mskind", "M");
- model.setValue("/root/send/histstat", "Y");
- model.setValue("/root/send/ioflag", "");
- model.setValue("/root/send/ervisityn", "");
- model.setFocus("input9");
-
- if (submit("TRPMC06605")) {
-
- // 보호자정보가 존재하지 않는 경우(최초) 최소한의 노드유지를 위핸 노드 생성
- if (getNodesetCount("/root/main/userinfo") < 1) {
- model.makeNode("/root/main/userinfo/usernm");
- model.refresh();
- }
- }
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- //return false;
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <submission id="TRPMC06605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXPMC06606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rfid_result1"/>
- <submission id="TXPMC06607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rfid_result1"/>
- <submission id="TRPMC06608" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rfid_result2"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="410" pageheight="200" style="font-size:14px; ">
- <group id="group1" scroll="auto" style="left:3px; top:170px; width:395px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" navindex="4" style="left:333px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter6" navindex="3" style="left:227px; top:2px; width:104px; height:22px; ">
- <caption>보호자증출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var usernm = model.getValue("/root/main/userinfo/usernm");
- if (isNull(usernm)) {
- messageBox("보호자 성명을 입력하십시오.", "C000");
- return;
- }
-
- // 0. RFID cardid1 취득
- model.setValue("/root/send/gubun", "R"); // 보호자
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
- submit("TRPMC06608");
-
- // // 1. RFID 출력
- // var pid = model.getValue("/root/main/receipt/pid");
- //
- // var hngnm2 = model.getValue("/root/main/receipt/hngnm2");
- //
- // var btype = model.getValue("/root/main/receipt/btype");
- //
- // //경북대 병원 성별표시 한글로 바꿈
- // var sex = model.getValue("/root/main/receipt/sex");
- // if( sex == 'M' ){
- // sex = '남';
- // }else{
- // sex = '여';
- // }
- //
- // var age = model.getValue("/root/main/receipt/age") + "세";
- //
- // var rrgstno = model.getValue("/root/main/receipt/rrgstno").substr(0,2) + "."
- // + model.getValue("/root/main/receipt/rrgstno").substr(2,2) + "."
- // + model.getValue("/root/main/receipt/rrgstno").substr(4,2);
- //
- // var wardcd = model.getValue("/root/main/receipt/wardcd");
- //
- // var roomcd = model.getValue("/root/main/receipt/roomcd");
- //
- // var deptplce = model.getValue("/root/main/receipt/deptplce");
- //
- // var cardid1 = model.getValue("/root/hidden/rfid_result2/cardid1");
- //
- // //var param = pid + "|" + hngnm2 + "|" + btype + "|" + sex + "|" + age + "|" + rrgstno + "|" + wardcd + " " + roomcd + "호 (" + deptplce + ")|" + cardid1;
- // // 보호자증의 경우 혈액형란에 '보호자' 출력
- // // 성별 / 나이 / 생년월일 삭제
- // var param = pid + "|" // 등록번호
- // + hngnm2 + "|" // 환자성명
- // + "(보호자)" + "|" // 혈액형(보호자증의 경우 '보호자')
- // + "" + "|" // 성별(보호자증의 경우 공란)
- // + "" + "|" // 나이(보호자증의 경우 공란)
- // + "" + "|" // 생년월일(보호ㄷ자증의 경우 공란)
- // + wardcd + " " + roomcd + "호 (" + deptplce + ")|" // 병실
- // + cardid1 // RFID 카드번호
- // ;
- //
- // //alert(param);
- //
- // try{
- //
- // // 1. RFID 출력
- // var activeObj = new ActiveXObject("WScript.Shell");
- // activeObj.CurrentDirectory = "C:/Program Files/himed/components/OneTech";
- // var fileName = "RfidLabelPrt.exe " + param;
- // activeObj.Run(fileName);
- //
- // // 2. RFID 데이터 저장
- // model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
- // model.setValue("/root/send/usernm", model.getValue("/root/main/userinfo/usernm"));
- // model.setValue("/root/send/gubun", "R");
- // model.setValue("/root/send/cardid1", cardid1);
- // model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
- //
- // if (submit("TXPMC06606")) {
- // // 자동 닫기처리를 하는 경우에는 필요없음
- // submit("TRPMC06605");
- // }
- //
- // }catch(e){
- //
- // alert("RFID 카드 등록오류입니다. \r\n동일현상 반복 시 전산실로 문의하십시오.");
- // }
- model.setValue("/root/hidden/rsltflag/indeciprint/pid", model.getValue("/root/main/receipt/pid"));
- model.setValue("/root/hidden/rsltflag/indeciprint/hngnm", model.getValue("/root/main/receipt/hngnm2"));
- model.setValue("/root/hidden/rsltflag/indeciprint/indd", model.getValue("/root/main/receipt/indd"));
- model.setValue("/root/hidden/rsltflag/indeciprint/roomcd", model.getValue("/root/main/receipt/roomcd"));
- model.setValue("/root/hidden/rsltflag/indeciprint/deptplce", model.getValue("/root/main/receipt/deptplce"));
- model.setValue("/root/hidden/rsltflag/indeciprint/cardid1", model.getValue("/root/hidden/rfid_result2/cardid1"));
-
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 입원보호자증
- setGlobalVariable("SPPAO00100_강제출력여부", "Y" ,"p");
- fGetPrintName();
- setGlobalVariable("SPPAO00100_강제출력여부", "" ,"p");
-
- var print_name = getGlobalVariable("SPPAO00100_P0045_7_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_7_tray","p");
- //호출끝
-
- // 입원보호자증 출력 추후 바코드 프린터로 설정 바꿔야함
- if(print_name != "false"){
- exeReportPreview("RPPMI01206", "XMLSTR", "", "", print_name, "", "", "", "", "true", "", "", print_tray, "", "", "", "", "", "", "", "");
-
- // RFID 데이터 저장
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
- model.setValue("/root/send/usernm", model.getValue("/root/main/userinfo/usernm"));
- model.setValue("/root/send/gubun", "R");
- model.setValue("/root/send/cardid1", model.getValue("/root/hidden/rfid_result2/cardid1"));
- model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
-
- if (submit("TXPMC06606")) {
- // 닫기
- window.close();
- // 자동 닫기처리를 하는 경우에는 필요없음
- //submit("TRPMC06605");
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" visibility="hidden" style="left:15px; top:4px; width:25px; height:20px; ">
- <caption>퇴원</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
- model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
- model.setValue("/root/send/dschdd", model.getValue("/root/main/patinfo/indd")); // dschdd
- submit("TXPMC06607");
- ]]>
- </script>
- </button>
- <button id="button3" visibility="hidden" style="left:55px; top:4px; width:50px; height:20px; ">
- <caption>퇴원취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/pid"));
- model.setValue("/root/send/indd", model.getValue("/root/main/patinfo/indd"));
- model.setValue("/root/send/dschdd", "99991231"); // dschdd
- submit("TXPMC06607");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:120px; height:14px; ">보호자증 관리</caption>
- <caption id="caption3" class="cell_1" style="left:3px; top:41px; width:90px; height:20px; text-align:center; ">등록번호</caption>
- <caption id="caption1" class="cell_1" style="left:218px; top:41px; width:60px; height:20px; text-align:center; ">성명</caption>
- <line id="line104" class="line_2" style="x1:3px; y1:61px; x2:399px; y2:61px; "/>
- <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; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(ipt_pid.value != "" || ipt_pid.value != null){
- if (event.keyCode == '13') {
- button1.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </input>
- <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; "/>
- <caption id="caption7" class="cell_1" style="left:3px; top:64px; width:90px; height:20px; text-align:center; ">입원일자</caption>
- <caption id="caption9" class="cell_1" style="left:218px; top:64px; width:60px; height:20px; text-align:center; ">병실</caption>
- <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; "/>
- <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; "/>
- <caption id="caption13" class="tit_2" style="left:3px; top:95px; width:125px; height:13px; font-family:돋움; vertical-align:middle; ">보호자정보</caption>
- <line id="line5" class="line_2" style="x1:3px; y1:136px; x2:399px; y2:136px; "/>
- <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; "/>
- <caption id="caption15" class="cell_1" style="left:3px; top:116px; width:97px; height:20px; text-align:center; ">보호자 성명</caption>
- <caption id="caption2" class="tit_2" style="left:3px; top:20px; width:125px; height:13px; font-family:돋움; vertical-align:middle; ">환자정보</caption>
- <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; "/>
- <caption id="caption4" class="cell_1" style="left:3px; top:139px; width:97px; height:20px; text-align:center; ">RFID 카드번호</caption>
- <line id="line3" class="line_2" style="x1:3px; y1:84px; x2:399px; y2:84px; "/>
- <line id="line1" class="line_1" style="x1:3px; y1:36px; x2:399px; y2:36px; "/>
- <line id="line2" class="line_1" style="x1:3px; y1:111px; x2:399px; y2:111px; "/>
- <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; ">
- <choices>
- <item>
- <label>환자</label>
- <value>P</value>
- </item>
- <item>
- <label>보호자</label>
- <value>R</value>
- </item>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/userinfo/seqno" disabled="true" style="left:308px; top:116px; width:93px; height:19px; text-align:right; "/>
- <line id="line4" class="line_2" style="x1:3px; y1:159px; x2:399px; y2:159px; "/>
- </xhtml:body>
- </xhtml:html>
|