123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- /**
- * @desc : 간호파트 전자동의서 처리 공통 모듈
- * @param : pid, cretno, indd, instcd, formcd, rexnm
- * @return : 없음
- * @authur : 김지선 2013.03.14
- */
-
- function fElecPrint(pid, cretno, indd, instcd, formcd, ocrtag, rexnm) {
-
- var flag = "";
-
- if (rexnm.length > 1) { // Rex로 만들어지는 동의서의 경우에만 이미지로 전환
-
- //기존파일 삭제
- var fso, folderspec;
- folderspec = "c:\\report";
- fso = new ActiveXObject("Scripting.FileSystemObject");
-
- if (fso.FolderExists(folderspec)) {
- fso.DeleteFolder(folderspec);
- }
- var a = fso.CreateFolder(folderspec);
-
- var fileType = "jpeg"; //hwp, bmp, jpeg, pdf
-
- exeReportPreview(rexnm, "XMLSTR", "", "", "false", "false", fileType, pid+"_"+rexnm, "0", "true", "", "", "", "", "", "");
-
- setParameter("SSMRC03160_param_imgpath", folderspec);
- setParameter("SSMRC03160_param_signpageformcd","1300013787");
- setParameter("SSMRC03160_param_ocrtag", ocrtag);
-
- flag = "Q";
-
- } else {
-
- flag = rexnm;
-
- }
-
- setParameter("SSMRC03160_param_patid", pid);
- setParameter("SSMRC03160_param_cretno", cretno);
- setParameter("SSMRC03160_param_indate", indd);
- setParameter("SSMRC03160_param_instcd", instcd);
- setParameter("SSMRC03160_param_class", "I");
- setParameter("SSMRC03160_param_docucd", formcd);
- setParameter("SSMRC03160_param_cuser", getUserId());
- setParameter("SSMRC03160_param_flag", flag);
- setParameter("SSMRC03160_param_tmflag", "N");
-
- open("SSMRC03160");
- //---------------------------------------------
- }
- function fClickPrintBtn(formcd, elecflag) {
-
- var pid = model.getValue("/root/temp/cond/list/pid");
- var cretno = model.getValue("/root/temp/cond/list/cretno");
- var indd = model.getValue("/root/temp/cond/list/indd");
- var ocrtag = "" ;
-
- model.makeValue("/root/send/req/formcd", formcd);
- model.makeValue("/root/send/req/pid", pid);
- model.makeValue("/root/send/req/cretno", cretno);
- model.makeValue("/root/send/req/orddd", indd);
-
-
- if (elecflag == "Y") { // 전자 동의서의 경우 무조건 신규 출력 2013.04.08 KJS
-
- fPrintDschInfo("newprint", ocrtag, elecflag);
-
- } else { // 출력 동의서의 경우 규칙에 따라 (출력 유무, 스캔 유무에 따라 신규출력 or 재출력)
- if (submit("TRMNW15101") == true){
- if(getNodesetCount("/root/duplocrprnt/msginfo/list") > 0 ) { // 출력했던 건인 경우
-
- if(model.getValue("/root/duplocrprnt/msginfo/list/scanyn") == "N"){ // 스캔된건이 없는경우
-
- if(model.getValue("/root/duplocrprnt/msginfo/list/statcd") == "D" || model.getValue("/root/duplocrprnt/msginfo/list/statcd") == "CP"){ // 삭제/출력취소 된 건인 경우
- //신규출력
- fPrintDschInfo("newprint", ocrtag, elecflag);
-
- }else{
- // 재출력
- ocrtag = model.getValue("/root/duplocrprnt/msginfo/list/ocrtag");
- fPrintDschInfo("reprint", ocrtag, elecflag);
- }
-
- }else if(model.getValue("/root/duplocrprnt/msginfo/list/scanyn") == "Y"){ // 스캔된건이 있는경우
- //신규출력
- var rtnval = messageBox("스캔 완료된 출력물이 있습니다. 신규출력하시겠습니까?\n(신규출력할 경우 의무기록실에 이전에 스캔된 퇴원간호계획지 삭제를 요청하시기 바랍니다.)", "Q"); // return : yes=6
- if(rtnval == "6"){ // yes
- fPrintDschInfo("newprint", ocrtag, elecflag);
- }else{
- return;
- }
- }
- }else{
- // 신규출력
- fPrintDschInfo("newprint", ocrtag, elecflag);
- }
- }
- }
- }
- /**
- * @desc : 간호파트 퇴원교육확인서 OCR 처리 공통 모듈
- * @param : left, top, pid, indd, cretno, ordtype, formcd
- * @return : 없음
- * @authur : 김지선 2013.05.16
- */
- function fOCRPrint(left, top, pid, indd, cretno, ordtype, formcd) {
-
- setParameter("formcd",formcd);
- setParameter("pid", pid);
- setParameter("orddd", indd);
- setParameter("cretno", cretno);
- setParameter("ordtype", ordtype);
-
- open("SSMRF03700",1,left,top);
- }
|