123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--수정이력 : 2007.10.15 박재형 - 감면정보에 가족주민번호, 가족성명 추가 -->
- <?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>
- <isswaitpat>
- <isswaitpatlist>
- <issyn/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <issdd/>
- <isstm/>
- <issrid/>
- </isswaitpatlist>
- </isswaitpat>
- </main>
- <send/>
- <hidden>
- <patcardissue>
- </patcardissue>
- <session/>
- </hidden>
- <temp>
- <rsrvlist/>
- </temp>
- <init>
- <PAM>
- <P0018list/>
- </PAM>
- </init>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <!-- 수정 추가 : 2007.10.15 박재형 : 감면저장-->
- <!-- 수정추가 : 2007.10.15 박재형 : 감면 조회-->
- <submission id="TRPMC04203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patcardissue/send" resultref="/root/main"/>
- <submission id="TXPMC04203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patcardissue/send" resultref="/root/rcv"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <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/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../pam/ipatmngtweb/js/PMI001.js"/>
- <!-- 수정추가 : 20071015 박재형 : 할인분류구분 공통코드추가 (P0417)-->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 2009.09.29 - 출력물 자동 출력여부를 위해서 원무공통코드조회
- pamfGetCodeList(new Array("P0018"), new Array("/root/init/PAM/P0018list"));
-
- //2007-10-04 이동식 추가 - 환자카드발급 PC정보를 읽어온다.
- fGetPCID();
- //END..
-
- //세션정보 조회
- fGetUserInfosSampling();
-
- button6.disabled = false;
- button5.disabled = true;
-
- //2009-10-23 이동식 수정 - 병원별 기종 차이로 인한 인터벌 시간 변경
- var sInstcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
- if( sInstcd != '011' && sInstcd != '013' && sInstcd != '014' && sInstcd != '017' ){
- sInstcd = '018'; //부천성가 기기 변경으로 인한 test 번호
- }
- if( sInstcd == '011' && sInstcd == '017' || sInstcd == '018' ){
- gIntervalTime = 5000;
- }else{
- gIntervalTime = 30000;
- }
-
-
- fInit();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- var IssCard = null;
- var gTimerID;
- var gIntervalTime;
- //초기화
- function fInit(){
-
- //다음번 발행 카드 대상 환자 번호 저장
- // var pid = '-';
- // if( getNodesetCount("/root/main/isswaitpat/isswaitpatlist/pid") > 1 ){
- // pid = model.getValue("/root/main/isswaitpat/isswaitpatlist[2]/pid")
- // }
-
- var issno = model.getValue("/root/hidden/patcardissue/pcinfo");
- if( issno == '' || issno == ' ' || issno == '-' ){
-
- // window.clearInterval(gTimerID);
- // gTimerID = window.setInterval("fInit()", gIntervalTime);
-
- messageBox("PC 고유번호 정보를 찾을 수 없습니다.", "E999", "");
- button6.disabled = true;
- button5.disabled = false;
- return false;
- }
-
- //데이터 초기화
- model.removeNodeset("/root/main/isswaitpat");
- model.makeNode("/root/main/isswaitpat");
-
-
- //카드발급 데이터 조회
- // model.makeValue("/root/main/patcardissue/send/pid", pid);
- model.makeValue("/root/main/patcardissue/send/issno", issno);
- submit("TRPMC04203");
- //데이터 없으면 리턴
- if( getNodesetCount("/root/main/isswaitpat/isswaitpatlist/pid") < 1 ){
- window.clearInterval(gTimerID);
- gTimerID = window.setInterval("fInit()", 3000);
- return false;
- }else{
-
- //데이터 초기화
- model.removeNodeset("/root/main/patcardissue");
-
- model.makeNode("/root/main/patcardissue/getinfo");
- model.makeNode("/root/main/patcardissue/issinfo");
- model.makeNode("/root/main/patcardissue/setinfo");
- model.makeNode("/root/main/patcardissue/send/pid");
- model.makeNode("/root/main/patcardissue/send/issdd");
- model.makeNode("/root/main/patcardissue/send/issno");
- model.makeNode("/root/main/patcardissue/send/issyn");
- model.makeNode("/root/main/patcardissue/send/remfact");
-
- model.copyNode("/root/main/patcardissue/getinfo", "/root/main/isswaitpat/isswaitpatlist[1]");
- model.setValue("/root/main/isswaitpat/isswaitpatlist[1]/issyn", 'I'); //발급중
-
- try{
- if( fIssuePatientCard() == true ){
- // model.setValue("/root/main/isswaitpat/isswaitpatlist[1]/issyn", 'Y'); //발급완료
-
- model.setValue("/root/main/patcardissue/send/pid", model.getValue("/root/main/isswaitpat/isswaitpatlist[1]/pid"));
- model.setValue("/root/main/patcardissue/send/issdd", model.getValue("/root/main/isswaitpat/isswaitpatlist[1]/issdd"));
- model.setValue("/root/main/patcardissue/send/issno", issno);
- model.setValue("/root/main/patcardissue/send/issyn", 'Y');
- }else{
- model.setValue("/root/main/isswaitpat/isswaitpatlist[1]/issyn", 'E'); //발급오류
-
- model.setValue("/root/main/patcardissue/send/pid", model.getValue("/root/main/isswaitpat/isswaitpatlist[1]/pid"));
- model.setValue("/root/main/patcardissue/send/issdd", model.getValue("/root/main/isswaitpat/isswaitpatlist[1]/issdd"));
- model.setValue("/root/main/patcardissue/send/issno", issno);
- model.setValue("/root/main/patcardissue/send/issyn", 'E');
- //
- window.clearInterval(gTimerID);
- if( messageBox("환자카드발행 중 오류 발생!! 계속 진행하시겠습니까?", "Q999", "") == '6' ){
- gTimerID = window.setInterval("fInit()", 5000);
- button6.disabled = false;
- button5.disabled = true;
- }else{
- button6.disabled = true;
- button5.disabled = false;
- }
- }
-
- }catch(e){
-
- model.setValue("/root/main/patcardissue/send/pid", model.getValue("/root/main/isswaitpat/isswaitpatlist[1]/pid"));
- model.setValue("/root/main/patcardissue/send/issdd", model.getValue("/root/main/isswaitpat/isswaitpatlist[1]/issdd"));
- model.setValue("/root/main/patcardissue/send/issno", issno);
- model.setValue("/root/main/patcardissue/send/issyn", 'E');
- model.setValue("/root/main/patcardissue/send/remfact", e.description);
-
- messageBox("[" + e.description + "]" + "환자카드 발행중 오류가 발생하여 카드발행을 중단합니다. 다시 시작하시려면 하단의 발급시작버튼을 눌러주세요!", "E999", "");
- window.clearInterval(gTimerID);
- button6.disabled = true;
- button5.disabled = false;
- }
-
- submit("TXPMC04203");
- }
-
- model.refresh();
- }
-
- function fIssOtherCard(){
-
- IssCard.PortOpen = false;
-
- fInit();
- }
-
- function fIssOtherCard2(){
-
- //IssCard.PortOpen = false;
-
- fInit();
- }
- //2007-10-04 이동식 추가 - 환자카드발급신청
- function fIssuePatientCard(){
-
- /*
- 01. rid : 레포트명
- 02. dataType : 연계방법
- 03. paramsXPath : 매개변수필드 XPath
- 04. submitId : SubmitID
- 05. print : 출력여부
- 06. printDialog : 인쇄 창 보임 여부
- 07. fileType : 저장타입
- 08. fileName : 파일명
- 09. fileDialog : 파일 저장 창 보임여부
- 10. closeYn : 미리보기창닫기여부
- 11. monNo : 모니터 번호
- 12. parentObjId : 부모객체명
- 13. printPaperBin : 트레이번호
- 14. userService : 데이터 소스
- 15. showButton : 툴바버튼보임여부
- 16. printCount : 프린트장수
- 17. zoomRate : 미리보기뷰어 비율
- 18. printOption : 출력시 선택 옵션
- 19. dataXPath : 데이터 XPath
- 20. mainDataXPath : 메인리포트 반복XPath
- 21. subDataXPath : 서브리포트1 반복Xpath
- exeReportPreview(rid, dataType, paramsXPath, submitId, print, printDialog, fileType, fileName, fileDialog, closeYn, monNo, parentObjId, printPaperBin, userService, showButton, printCount, zoomRate, printOption, dataXPath, mainDataXPath, subDataXPath)
-
- c:\windows\device.ini 파일에 1A나 1B등 써놓으면 같은 내용을 가진 PC들은 그룹으로 지정되어 프린터 물려있는 PC자동으로 찾아서 출력함!
- */
-
- var sInstcd = model.getValue("/root/hidden/session/sess_dutplceinstcd");
- if( sInstcd!= '011' && sInstcd != '013' && sInstcd != '014' && sInstcd != '017' ){
- //sInstcd = '018';
- }
-
- //발급로직 start!!
- var pid = model.getValue("/root/main/patcardissue/getinfo/pid");
- var hngnm = model.getValue("/root/main/patcardissue/getinfo/hngnm");
- var engnm = model.getValue("/root/main/patcardissue/getinfo/engnm");
- var insukind = model.getValue("/root/main/patcardissue/getinfo/insukind");
- var rrgstno1 = model.getValue("/root/main/patcardissue/getinfo/rrgstno1");
- var rrgstno2 = model.getValue("/root/main/patcardissue/getinfo/rrgstno2");
- var rrgstno = model.getValue("/root/main/patcardissue/getinfo/rrgstno1") + model.getValue("/root/main/patcardissue/getinfo/rrgstno2");
- var sex = model.getValue("/root/main/patcardissue/getinfo/sex");
-
-
- //성가 환자카드로직 기존로직 제외
- if( sInstcd == '999' ){
- var spc = '';
- for( var i = 1; i <= 13 - pid.length; i ++ ){
- spc = spc + ' ';
- }
-
- //엠보싱세팅
- var emb = '';
- //등록번호 시작이 영문일때
- if( pid.substr(0,1) == 'A' || pid.substr(0,1) == 'B' ){
- emb = '#DCL#080550 1#FC1#800 2#FC2#500 3#FC1#200 4#FC1#200 #END#@@@@@@'; //환자번호가 알파벳으로 시작
- spc = spc + ' '; // 간격 재조정
- }else{
- emb = '#DCL#080550 1#FC2#800 2#FC2#500 3#FC1#200 4#FC1#200 #END#@@@@@@'; //환자번호가 숫자로만.
- }
-
- rrgstno = rrgstno1 + '-' + rrgstno2.substr(0, 1) + '******';
- var totalStr = '#DCC##EMB#' + pid + spc + insukind + '"' + engnm + '"' + rrgstno + ' ' + sex + '#GRD#1"' + pid + '"' + '#END#@@@@@@';
-
- try{
- body.removeChild("NWSerial_EMB");
- if (document.all("NWSerial_EMB") == null) { // 최초 한번만 createChild() 한다.
- body.createChild("xforms:object", "id:NWSerial_EMB; clsid:{648A5600-2C6E-101B-82B6-000000000014}; visibility:hidden; left:0px; top:0px; width:0px; height:0px; ");
- }
-
- IssCard = NWSerial_EMB;
-
- //Sets and returns the communications port number.
- IssCard.CommPort = 2;
-
- //Sets and returns the baud rate, parity, data bit, and stop bit
- IssCard.Settings = "9600,E,7,1";
- IssCard.InputLen = 0;
- IssCard.InBufferCount = 0;
-
- //Sets and returns the state of the communications port
- var portOpenYN = IssCard.PortOpen;
- if( portOpenYN == false ){
- IssCard.PortOpen = true;
- }
-
- portOpenYN = IssCard.PortOpen;
- if( portOpenYN == false ){
- messageBox("포트 연결에 실패하였습니다.", "E999", "");
- return false;
- }
-
- IssCard.Output = emb ;
-
- //타이머 3000 msecs
- var start = new Date().getTime();
- var msecs = '3000';
- var cur = start;
- while(cur - start < msecs){
- cur = new Date().getTime();
- }
-
- IssCard.Output = totalStr;
-
- var outBufferCount = IssCard.OutBufferCount;
- var inBufferCount = IssCard.InBufferCount;
- var cntLoof = 0;
- while( outBufferCount != 0 || inBufferCount == 0){
- cntLoof = parseInt(cntLoof) + 1;
- if( cntLoof > 30 ){
- throw "시간 초과 오류입니다.";
- }
-
- //타이머 3000 msecs
- var start = new Date().getTime();
- var msecs = '1000';
- var cur = start;
- while(cur - start < msecs){
- cur = new Date().getTime();
- }
-
- outBufferCount = IssCard.OutBufferCount;
- inBufferCount = IssCard.InBufferCount;
- }
- window.clearInterval(gTimerID);
- gTimerID = window.setInterval("fIssOtherCard()", gIntervalTime);
- return true;
-
- }catch(e){
-
- model.setValue("/root/main/patcardissue/send/remfact", e);
-
- IssCard.PortOpen = false;
- return false;
- }
-
- //의정부 환자카드발급로직
- }else if( sInstcd == '013' ){
-
- //엠보싱세팅
- var emb = '';
- //환자이름 시작이 영문일때
- var sKorEngCheck = hngnm.charCodeAt(0);
- var sNameString = '';
- //영어 이외의 문자일 때 - 한글로 인식
- if( !( ( 0x61 <= sKorEngCheck && sKorEngCheck <= 0x7A ) || ( 0x41 <= sKorEngCheck && sKorEngCheck <= 0x5A ) ) ) {
- emb = "(((@!#)))@@@@@@ #DCL#080400 1#FC2#0800 2#FC2#0500 3#FC2#0220 #END#@@@@@@";
- sNameString = engnm;
- //영문일 경우 - 영어로 인식
- }else{
- emb = "(((@!#)))@@@@@@ #DCL#080400 1#FC2#0800 2#FC1#0500 3#FC2#0220 #END#@@@@@@";
- sNameString = hngnm.toLowerCase( );
- }
-
- //성별세팅
- if( rrgstno2.substr(0, 1) == '1' || rrgstno2.substr(0, 1) == '3' || rrgstno2.substr(0, 1) == '5' || rrgstno2.substr(0, 1) == '7'){ //남자
- sex = ".";
- }else{
- sex = ",";
- }
-
- //기타 정보 세팅
- var FS = "!";
-
- var pidLength = 10 - parseInt(pid.length);
- var BarTmp = pid;
- for( var i = 0; i < pidLength; i++ ){
- BarTmp = '0' + BarTmp;
- }
- var Bar = "#GRD#1" + FS + BarTmp + FS + "#END#@@@@@@";
- var IDTmp = '';
-
- var sPNRN = rrgstno1 + '-' + rrgstno2.substr(0, 1) + '******';
- var totalStr = "(((@!#))) #DCC##EMB#" + pid + " " + insukind + FS + sNameString + FS + sPNRN + " " + sex + Bar;
-
- try{
-
- if (document.all("NWSerial_EMB") == null) { // 최초 한번만 createChild() 한다.
- body.createChild("xforms:object", "id:NWSerial_EMB; clsid:{648A5600-2C6E-101B-82B6-000000000014}; visibility:hidden; left:0px; top:0px; width:0px; height:0px; ");
- }
-
- IssCard = NWSerial_EMB;
-
- //Sets and returns the communications port number.
- IssCard.CommPort = 5;
-
- //Sets and returns the baud rate, parity, data bit, and stop bit
- IssCard.Settings = "1200,N,8,1";
- IssCard.InputLen = 0;
- IssCard.InBufferCount = 0;
-
- //Sets and returns the state of the communications port
- var portOpenYN = IssCard.PortOpen;
- if( portOpenYN == false ){
- IssCard.PortOpen = true;
- }
-
- portOpenYN = IssCard.PortOpen;
- if( portOpenYN == false ){
- messageBox("포트 연결에 실패하였습니다.", "E999", "");
- return false;
- }
-
- IssCard.Output = emb ;
-
- //타이머 3000 msecs
- var start = new Date().getTime();
- var msecs = '3000';
- var cur = start;
- while(cur - start < msecs){
- cur = new Date().getTime();
- }
-
- IssCard.Output = totalStr;
- var outBufferCount = IssCard.OutBufferCount;
- var inBufferCount = IssCard.InBufferCount;
- var cntLoof = 0;
- while( outBufferCount != 0 || inBufferCount == 0){
- cntLoof = parseInt(cntLoof) + 1;
- if( cntLoof > 30 ){
- throw "시간 초과 오류입니다.";
- }
- //타이머 3000 msecs
- var start = new Date().getTime();
- var msecs = '1000';
- var cur = start;
- while(cur - start < msecs){
- cur = new Date().getTime();
- }
-
- outBufferCount = IssCard.OutBufferCount;
- inBufferCount = IssCard.InBufferCount;
- }
- window.clearInterval(gTimerID);
- gTimerID = window.setInterval("fIssOtherCard()", gIntervalTime);
- return true;
-
- }catch(e){
-
- model.setValue("/root/main/patcardissue/send/remfact", e);
- IssCard.PortOpen = false;
- return false;
- }
-
- //수원
- }else if(sInstcd == '017'){
- try{
- model.removeNodeset("/root/temp/rsrvlist");
-
- model.makeNode("/root/temp/rsrvlist/issyn"); // 발급상태
- model.makeNode("/root/temp/rsrvlist/pid"); // 등록번호
- model.makeNode("/root/temp/rsrvlist/hngnm"); // 환자이름
- model.makeNode("/root/temp/rsrvlist/rrgstno1");
- model.makeNode("/root/temp/rsrvlist/rrgstno2");
- model.makeNode("/root/temp/rsrvlist/issdd");
- model.makeNode("/root/temp/rsrvlist/isstm");
- model.makeNode("/root/temp/rsrvlist/issrid");
-
- model.setValue("/root/temp/rsrvlist/pid", pid); // 등록번호
- model.setValue("/root/temp/rsrvlist/hngnm", hngnm); // 환자이름
-
- /*
- var sPrinter;
- var trayno;
- var sDirectionOption;
-
- // 2009.06.19 - local에 설정된 파일을 우선시 한다.
- // print1:입원약정서, print2:입원환자카드, print3:선택신청, print4:성빈센트 카드프린터
-
- var printInfo = pmifGetPrintSetting("print4");
- if (printInfo.length == 2) {
- sPrinter = printInfo[0];
- trayno = printInfo[1];
- sDirectionOption = "printdirection=1";
- } else {
- sPrinter = model.getValue("/root/init/PAM/P0018list/P0018[cdid = '4']/cdnm");
- if (isNull(sPrinter)) {
- sPrinter = "true";
- } else {
- sDirectionOption = "printdirection=1";
- }
- }
- */
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 환자카드발행
- fGetPrintName();
- var print_name = getGlobalVariable("SPPAO00100_P0045_5_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_5_tray","p");
- var sDirectionOption = "printdirection=1";
- //호출끝
- //환자카드발행
- exeReportPreview("RPPMC04201", "XMLSTR" , "" , "" , print_name, "", "", "", "", "true", "", "",print_tray, "", "", "", "", sDirectionOption);
-
- window.clearInterval(gTimerID);
- gTimerID = window.setInterval("fIssOtherCard2()", gIntervalTime);
- return true;
-
- }catch(e){
- return false;
- }
-
- //여의도, 부천은 같은 동일기종사용
- }else if(sInstcd == '011' || sInstcd == '014'){
- try{
- model.removeNodeset("/root/temp/rsrvlist");
-
- model.makeNode("/root/temp/rsrvlist/issyn"); // 발급상태
- model.makeNode("/root/temp/rsrvlist/pid"); // 등록번호
- model.makeNode("/root/temp/rsrvlist/hngnm"); // 환자이름
- model.makeNode("/root/temp/rsrvlist/rrgstno1");
- model.makeNode("/root/temp/rsrvlist/rrgstno2");
- model.makeNode("/root/temp/rsrvlist/issdd");
- model.makeNode("/root/temp/rsrvlist/isstm");
- model.makeNode("/root/temp/rsrvlist/issrid");
-
- model.setValue("/root/temp/rsrvlist/pid", pid); // 등록번호
- var rrgstno = rrgstno1 + "-" + rrgstno2.substr(0,1);
- model.setValue("/root/temp/rsrvlist/rrgstno1", rrgstno); // 주민번호
-
- //환자이름 시작이 영문일때
- var sKorEngCheck = hngnm.charCodeAt(0);
- var sNameString = '';
- var sLastName ='';
- //영어 이외의 문자일 때 - 한글로 인식
- if(!((0x61 <= sKorEngCheck && sKorEngCheck <= 0x7A) || (0x41 <= sKorEngCheck && sKorEngCheck <= 0x5A))) {
- var a = parseInt(hngnm.length) - 1;
- if ( a < 3) {
- for( var i = 0; i <= a; i++ ){
-
- if (i == a) {
- sNameString = hngnm.substr(i, 1);
- } else {
- sNameString = hngnm.substr(i, 1) + " ";
- }
- sLastName = sLastName + sNameString;
- }
- } else {
- sLastName = hngnm;
- }
-
- // 영어로 인식
- }else{
- sLastName = hngnm;
- }
- model.setValue("/root/temp/rsrvlist/hngnm", sLastName); // 환자이름
-
- /*
- var sPrinter;
- var trayno;
- var sDirectionOption;
-
- // 2009.06.19 - local에 설정된 파일을 우선시 한다.
- // print1:입원약정서, print2:입원환자카드, print3:선택신청, print4:성빈센트 카드프린터
-
- var printInfo = pmifGetPrintSetting("print4");
-
- if (printInfo.length == 2) {
- sPrinter = printInfo[0];
- trayno = printInfo[1];
- sDirectionOption = "printdirection=1";
- } else {
- sPrinter = model.getValue("/root/init/PAM/P0018list/P0018[cdid = '4']/cdnm");
- if (isNull(sPrinter)) {
- sPrinter = "true";
- } else {
- sDirectionOption = "printdirection=1";
- }
- }
- */
-
- //공통코드 P0045에서 프린터 명칭과 트레이 호출 - 환자카드발행
- fGetPrintName();
- var print_name = getGlobalVariable("SPPAO00100_P0045_5_nm","p");
- var print_tray = getGlobalVariable("SPPAO00100_P0045_5_tray","p");
- var sDirectionOption = "printdirection=1";
- //호출끝
- //환자카드발행
- if(sInstcd == '011') exeReportPreview("RPPMC04203", "XMLSTR" , "" , "" , print_name, "", "", "", "", "true", "", "",print_tray, "", "", "", "", sDirectionOption); //여의도
- if(sInstcd == '014') exeReportPreview("RPPMC04202", "XMLSTR" , "" , "" , print_name, "", "", "", "", "true", "", "",print_tray, "", "", "", "", sDirectionOption); //성가
-
- window.clearInterval(gTimerID);
- gTimerID = window.setInterval("fIssOtherCard2()", gIntervalTime);
- return true;
-
- }catch(e){
- return false;
- }
- }
- }
- //END..
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" scroll="auto" style="left:0px; top:475px; width:725px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:725px; y2:0px; "/>
- <button id="button5" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:563px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>발급시작</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- button6.disabled = false;
- button5.disabled = true;
- fInit();
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter4.gif" style="left:645px; top:5px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
- <caption>발급중지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.clearInterval(gTimerID);
- button6.disabled = true;
- button5.disabled = false;
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" style="left:0px; top:0px; width:725px; height:13px; ">
- <caption id="caption22" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">전자카드출력</caption>
- </group>
- <group id="group2" style="left:0px; top:13px; width:725px; height:466px; ">
- <group id="group5" style="left:0px; top:0px; width:725px; height:465px; ">
- <datagrid id="datagrid1" nodeset="/root/main/isswaitpat/isswaitpatlist" caption="발급상태^등록번호^환자명^주민등록번호^주민등록번호^발급일자^발급시간^발급자" colsep="^" colwidth="64, 100, 100, 65, 70, 100, 100, 80" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:27px; width:725px; height:438px; ">
- <col ref="issyn" type="combo">
- <choices>
- <item>
- <label>대기</label>
- <value>N</value>
- </item>
- <item>
- <label>발급중</label>
- <value>I</value>
- </item>
- <item>
- <label>발급오류</label>
- <value>E</value>
- </item>
- <item>
- <label>발급완료</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="rrgstno1"/>
- <col ref="rrgstno2"/>
- <col ref="issdd" format="yyyy-mm-dd"/>
- <col ref="isstm" format="hh:nn:ss"/>
- <col ref="issrid"/>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:22px; x2:725px; y2:22px; "/>
- <caption id="caption14" class="tit_2" style="left:5px; top:7px; width:144px; height:14px; ">발급대기내역</caption>
- </group>
- </group>
- <object id="NWSerial_EMB" clsid="{648a5600-2c6e-101b-82b6-000000000014}" visibility="hidden" style="left:515px; top:480px; width:40px; height:35px; "/>
- </xhtml:body>
- </xhtml:html>
|