فهرست منبع

1. 클립뷰어 uiStyle 추가
2. 입원 탭에서 내 환자 제거

songjunekeun 5 سال پیش
والد
کامیت
8e27b30176

+ 10 - 9
app/src/main/java/com/dbs/mplus/knuh/activity/ConsentActivity.java

@@ -296,15 +296,16 @@ public class ConsentActivity extends AppCompatActivity {
     chkMyPatient = (CheckBox) findViewById(R.id.chkMyPatient);
 
     leftMenu.setRadioGroupDraw(indexPage);
-
-    if (!indexPage.equals("I")) {
-      wardLayout.setVisibility(View.INVISIBLE);
-      chkMyPatient.setVisibility(View.GONE);
-    }
-
-    if(jobKindCd.indexOf("03") == 0){
-      chkMyPatient.setVisibility(View.GONE);
-    }
+    chkMyPatient.setVisibility(View.GONE);
+
+//    if (!indexPage.equals("I")) {
+//      wardLayout.setVisibility(View.INVISIBLE);
+//      chkMyPatient.setVisibility(View.GONE);
+//    }
+//
+//    if(jobKindCd.indexOf("03") == 0){
+//      chkMyPatient.setVisibility(View.GONE);
+//    }
 
     tvMainDate.setText(Util.nowDate());
 

+ 2 - 2
app/src/main/java/com/dbs/mplus/knuh/activity/activityEvent/LeftMenu.java

@@ -194,7 +194,7 @@ public class LeftMenu {
         instance.radioButton1.setChecked(true);
         patientState = "A";
       } else {
-        if (indexPage.equals("I") || indexPage.equals("ER")) {
+        if (indexPage.equals("I") || indexPage.equals("E")) {
           instance.radioButton4.setChecked(true);
           patientState = "C";
         } else if (indexPage.equals("O")) {
@@ -638,7 +638,7 @@ public class LeftMenu {
     patientSearchMap.put("selectFlag", instance.indexPage);
     patientSearchMap.put("srchYN", srchYN);
 
-    Log.e(TAG, "srchYN -- > " + srchYN);
+    Log.e(TAG, "patientSearchMap -- > " + patientSearchMap);
 
     if (Util.checkNetwork(mContext) == true) {
       Util.callHttp(mContext, ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_PATIENT_LIST, patientSearchMap, callBack);

+ 148 - 159
app/src/main/java/com/dbs/mplus/knuh/consent/ConsentCreateParam.java

@@ -49,150 +49,151 @@ public class ConsentCreateParam {
 
     int rid = Integer.parseInt(consentMstRid);
 
-    // 새 서식을 작성할 경우
-    if (rid == 0 || consentStateEng.equals(ConsentConfig.UNFINISHED)) {
-      String ordDeptCd   = patientInfoVO.getOrdDeptCd();
-      String deptEngAbbr = patientInfoVO.getDeptEngAbbr();
-      String ordDeptNm   = patientInfoVO.getOrdDeptNm();
-      String pid         = patientInfoVO.getPid();
-      String cretNo      = patientInfoVO.getCretNo();
-      String roomCd      = patientInfoVO.getRoomCd();
-      String inDd        = patientInfoVO.getInDd();
-      String dschDd      = patientInfoVO.getDschDd();
-      String ordType     = patientInfoVO.getOrdType();
-      String instCd      = patientInfoVO.getInstCd();
-      String mainDrId    = patientInfoVO.getMainDrId();
-      String mainDrName  = patientInfoVO.getMainDrName();
-      String erDrNm      = patientInfoVO.getErDrNm();
-      String firstRgstDt = patientInfoVO.getFirstRgstDt();
-      String sa          = patientInfoVO.getSa();
-      String patientName = patientInfoVO.getPatientName();
-      String juminNo     = patientInfoVO.getJuminNo();
-      String zipCdAddr   = patientInfoVO.getZipCdAddr();
-      String telNum      = patientInfoVO.getTelNum();
-      String insuKind    = patientInfoVO.getInsuKind();
-      String ward        = patientInfoVO.getWard();
-      String dxCd        = patientInfoVO.getDxCd();
-      String dxNm        = patientInfoVO.getDxNm();
-      String gbn         = patientInfoVO.getGbn();
-      String opDeptCd    = patientInfoVO.getOpDeptCd();
-      String opDeptNm    = patientInfoVO.getOpDeptNm();
-      String opDrNm      = patientInfoVO.getOpDrNm();
-      String opDrId      = patientInfoVO.getOpDrId();
-      String opCnfmDd    = patientInfoVO.getOpCnfmDd();
-      String perfDrNm    = patientInfoVO.getPerfDrNm();
-      String perfDrFlag  = patientInfoVO.getPerfDrFlag();
-      String perfDrDept  = patientInfoVO.getPerfDrDept();
-      String opDiagNm    = patientInfoVO.getOpDiagNm();
-      String opNm        = patientInfoVO.getOpNm();
-      String anstDrNm1   = patientInfoVO.getAnstDrNm1();
-      String anstDrFlag1 = patientInfoVO.getAnstDrFlag1();
-      String anstDeptNm1 = patientInfoVO.getAnstDeptNm1();
-      String anstDrNm2   = patientInfoVO.getAnstDrNm2();
-      String anstDrFlag2 = patientInfoVO.getAnstDrFlag2();
-      String anstDeptNm2 = patientInfoVO.getAnstDeptNm2();
-      String anstDrNm3   = patientInfoVO.getAnstDrNm3();
-      String anstDrFlag3 = patientInfoVO.getAnstDrFlag3();
-      String anstDeptNm3 = patientInfoVO.getAnstDeptNm3();
-      String opRsrvNo    = patientInfoVO.getOpRsrvNo();
-      String orderNo     = patientInfoVO.getOrderNo();
-      String printTime   = patientInfoVO.getPrintTime();
-      String ocrCd       = patientInfoVO.getOcrCd();
-      String inputId     = patientInfoVO.getInputId();
-      String inputNm     = patientInfoVO.getInputNm();
-      String signImg     = patientInfoVO.getSignImg();
-      String bp          = patientInfoVO.getBp();
-      String dm          = patientInfoVO.getDm();
-      String heart       = patientInfoVO.getHeart();
-      String kidney      = patientInfoVO.getKidney();
-      String respiration = patientInfoVO.getRespiration();
-      String hx          = patientInfoVO.getHx();
-      String allergy     = patientInfoVO.getAllergy();
-      String drug        = patientInfoVO.getDrug();
-      String smoking     = patientInfoVO.getSmoking();
-      String idio        = patientInfoVO.getIdio();
-      String nacrotics   = patientInfoVO.getNacrotics();
-      String airway      = patientInfoVO.getAirway();
-      String hemorrhage  = patientInfoVO.getHemorrhage();
-      String statusEtc   = patientInfoVO.getStatusEtc();
-      String signImage   = "";
-
-      HashMap<String, String> mData = new HashMap<String, String>();
-
-      if (!userDrFlag.equals("Y")) {
-        mData.put("userId", loginUserId);
-        mData.put("deptCd", logionUserDeptCd);
-        map.put("mainDrId", loginUserId);
-      } else {
-        mData.put("userId", loginUserId);
-        mData.put("deptCd", logionUserDeptCd);
-        map.put("mainDrId", mainDrId);
-      }
+    String ordDeptCd   = patientInfoVO.getOrdDeptCd();
+    String deptEngAbbr = patientInfoVO.getDeptEngAbbr();
+    String ordDeptNm   = patientInfoVO.getOrdDeptNm();
+    String pid         = patientInfoVO.getPid();
+    String cretNo      = patientInfoVO.getCretNo();
+    String roomCd      = patientInfoVO.getRoomCd();
+    String inDd        = patientInfoVO.getInDd();
+    String dschDd      = patientInfoVO.getDschDd();
+    String ordType     = patientInfoVO.getOrdType();
+    String instCd      = patientInfoVO.getInstCd();
+    String mainDrId    = patientInfoVO.getMainDrId();
+    String mainDrName  = patientInfoVO.getMainDrName();
+    String erDrNm      = patientInfoVO.getErDrNm();
+    String firstRgstDt = patientInfoVO.getFirstRgstDt();
+    String sa          = patientInfoVO.getSa();
+    String patientName = patientInfoVO.getPatientName();
+    String juminNo     = patientInfoVO.getJuminNo();
+    String zipCdAddr   = patientInfoVO.getZipCdAddr();
+    String telNum      = patientInfoVO.getTelNum();
+    String insuKind    = patientInfoVO.getInsuKind();
+    String ward        = patientInfoVO.getWard();
+    String dxCd        = patientInfoVO.getDxCd();
+    String dxNm        = patientInfoVO.getDxNm();
+    String gbn         = patientInfoVO.getGbn();
+    String opDeptCd    = patientInfoVO.getOpDeptCd();
+    String opDeptNm    = patientInfoVO.getOpDeptNm();
+    String opDrNm      = patientInfoVO.getOpDrNm();
+    String opDrId      = patientInfoVO.getOpDrId();
+    String opCnfmDd    = patientInfoVO.getOpCnfmDd();
+    String perfDrNm    = patientInfoVO.getPerfDrNm();
+    String perfDrFlag  = patientInfoVO.getPerfDrFlag();
+    String perfDrDept  = patientInfoVO.getPerfDrDept();
+    String opDiagNm    = patientInfoVO.getOpDiagNm();
+    String opNm        = patientInfoVO.getOpNm();
+    String anstDrNm1   = patientInfoVO.getAnstDrNm1();
+    String anstDrFlag1 = patientInfoVO.getAnstDrFlag1();
+    String anstDeptNm1 = patientInfoVO.getAnstDeptNm1();
+    String anstDrNm2   = patientInfoVO.getAnstDrNm2();
+    String anstDrFlag2 = patientInfoVO.getAnstDrFlag2();
+    String anstDeptNm2 = patientInfoVO.getAnstDeptNm2();
+    String anstDrNm3   = patientInfoVO.getAnstDrNm3();
+    String anstDrFlag3 = patientInfoVO.getAnstDrFlag3();
+    String anstDeptNm3 = patientInfoVO.getAnstDeptNm3();
+    String opRsrvNo    = patientInfoVO.getOpRsrvNo();
+    String orderNo     = patientInfoVO.getOrderNo();
+    String printTime   = patientInfoVO.getPrintTime();
+    String ocrCd       = patientInfoVO.getOcrCd();
+    String inputId     = patientInfoVO.getInputId();
+    String inputNm     = patientInfoVO.getInputNm();
+    String signImg     = patientInfoVO.getSignImg();
+    String bp          = patientInfoVO.getBp();
+    String dm          = patientInfoVO.getDm();
+    String heart       = patientInfoVO.getHeart();
+    String kidney      = patientInfoVO.getKidney();
+    String respiration = patientInfoVO.getRespiration();
+    String hx          = patientInfoVO.getHx();
+    String allergy     = patientInfoVO.getAllergy();
+    String drug        = patientInfoVO.getDrug();
+    String smoking     = patientInfoVO.getSmoking();
+    String idio        = patientInfoVO.getIdio();
+    String nacrotics   = patientInfoVO.getNacrotics();
+    String airway      = patientInfoVO.getAirway();
+    String hemorrhage  = patientInfoVO.getHemorrhage();
+    String statusEtc   = patientInfoVO.getStatusEtc();
+    String signImage   = "";
 
-      if (userDrFlag.equals("Y") && ordType.equals("O")) {
-        mData.put("userId", mainDrId);
-        mData.put("deptCd", ordDeptCd);
-        map.put("mainDrId", mainDrId);
-      }
+    HashMap<String, String> mData = new HashMap<String, String>();
 
-      mData.put("instCd", BuildConfig.INST_CD);
+    if (!userDrFlag.equals("Y")) {
+      mData.put("userId", loginUserId);
+      mData.put("deptCd", logionUserDeptCd);
+      map.put("mainDrId", loginUserId);
+    } else {
+      mData.put("userId", loginUserId);
+      mData.put("deptCd", logionUserDeptCd);
+      map.put("mainDrId", mainDrId);
+    }
 
-      HttpSoapConnection connection = new HttpSoapConnection(ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_SIGN_DATA, mData);
-      try {
-        SoapObject object = connection.execute().get();
-        if (object != null) {
-          signImage = object.getProperty("SignImage").toString().trim();
-          signImage = signImage.equals(ConsentConfig.RETURN_NULL) ? "" : signImage;
-        }
+    if (userDrFlag.equals("Y") && ordType.equals("O")) {
+      mData.put("userId", mainDrId);
+      mData.put("deptCd", ordDeptCd);
+      map.put("mainDrId", mainDrId);
+    }
 
-      } catch (ExecutionException e) {
-        e.printStackTrace();
-      } catch (InterruptedException e) {
-        e.printStackTrace();
+    mData.put("instCd", BuildConfig.INST_CD);
+
+    HttpSoapConnection connection = new HttpSoapConnection(ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_SIGN_DATA, mData);
+    try {
+      SoapObject object = connection.execute().get();
+      if (object != null) {
+        signImage = object.getProperty("SignImage").toString().trim();
+        signImage = signImage.equals(ConsentConfig.RETURN_NULL) ? "" : signImage;
       }
 
-      UserVO userVO = new UserVO();
-      connection = new HttpSoapConnection(ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_USER_INFO, mData);
-      try {
-        SoapObject object = connection.execute().get();
-        String userId       = object.getProperty("userId").toString().trim();
-        String userName     = object.getProperty("userName").toString().trim();
-        String userDeptCode = object.getProperty("userDeptCode").toString().trim();
-        String userDeptName = object.getProperty("userDeptName").toString().trim();
-        String userDeptEngAbbr  = object.getProperty("deptEngAbbr").toString().trim();
-        String jobKindCd    = object.getProperty("jobKindCd").toString().trim();
-        String jobKindNm    = object.getProperty("jobKindNm").toString().trim();
-        String userInstCd   = object.getProperty("instCd").toString().trim();
-        String userTelNo    = object.getProperty("userTelNo").toString().trim();
-        String ioFlag       = object.getProperty("ioFlag").toString().trim();
-
-        userId       = userId.equals(ConsentConfig.RETURN_NULL) ? "" : userId;
-        userName     = userName.equals(ConsentConfig.RETURN_NULL) ? "" : userName;
-        userDeptCode = userDeptCode.equals(ConsentConfig.RETURN_NULL) ? "" : userDeptCode;
-        userDeptName = userDeptName.equals(ConsentConfig.RETURN_NULL) ? "" : userDeptName;
-        userDeptEngAbbr  = deptEngAbbr.equals(ConsentConfig.RETURN_NULL) ? "" : deptEngAbbr;
-        jobKindCd    = jobKindCd.equals(ConsentConfig.RETURN_NULL) ? "" : jobKindCd;
-        jobKindNm    = jobKindNm.equals(ConsentConfig.RETURN_NULL) ? "" : jobKindNm;
-        userInstCd   = userInstCd.equals(ConsentConfig.RETURN_NULL) ? "" : userInstCd;
-        userTelNo    = userTelNo.equals(ConsentConfig.RETURN_NULL) ? "" : userTelNo;
-        ioFlag       = ioFlag.equals(ConsentConfig.RETURN_NULL) ? "" : ioFlag;
-
-        userVO.setUserId(userId);
-        userVO.setUserName(userName);
-        userVO.setUserDeptCode(userDeptCode);
-        userVO.setUserDeptName(userDeptName);
-        userVO.setDeptEngAbbr(userDeptEngAbbr);
-        userVO.setJobKindCd(jobKindCd);
-        userVO.setJobKindNm(jobKindNm);
-        userVO.setUserInstCd(userInstCd);
-        userVO.setUserTelNo(userTelNo);
-        userVO.setIoFlag(ioFlag);
+    } catch (ExecutionException e) {
+      e.printStackTrace();
+    } catch (InterruptedException e) {
+      e.printStackTrace();
+    }
 
-      } catch (ExecutionException e) {
-        e.printStackTrace();
-      } catch (InterruptedException e) {
-        e.printStackTrace();
-      }
+    UserVO userVO = new UserVO();
+    connection = new HttpSoapConnection(ConsentConfig.HOST_HOSPITAL, ConsentConfig.GET_USER_INFO, mData);
+    try {
+      SoapObject object = connection.execute().get();
+      String userId       = object.getProperty("userId").toString().trim();
+      String userName     = object.getProperty("userName").toString().trim();
+      String userDeptCode = object.getProperty("userDeptCode").toString().trim();
+      String userDeptName = object.getProperty("userDeptName").toString().trim();
+      String userDeptEngAbbr  = object.getProperty("deptEngAbbr").toString().trim();
+      String jobKindCd    = object.getProperty("jobKindCd").toString().trim();
+      String jobKindNm    = object.getProperty("jobKindNm").toString().trim();
+      String userInstCd   = object.getProperty("instCd").toString().trim();
+      String userTelNo    = object.getProperty("userTelNo").toString().trim();
+      String ioFlag       = object.getProperty("ioFlag").toString().trim();
+
+      userId       = userId.equals(ConsentConfig.RETURN_NULL) ? "" : userId;
+      userName     = userName.equals(ConsentConfig.RETURN_NULL) ? "" : userName;
+      userDeptCode = userDeptCode.equals(ConsentConfig.RETURN_NULL) ? "" : userDeptCode;
+      userDeptName = userDeptName.equals(ConsentConfig.RETURN_NULL) ? "" : userDeptName;
+      userDeptEngAbbr  = deptEngAbbr.equals(ConsentConfig.RETURN_NULL) ? "" : deptEngAbbr;
+      jobKindCd    = jobKindCd.equals(ConsentConfig.RETURN_NULL) ? "" : jobKindCd;
+      jobKindNm    = jobKindNm.equals(ConsentConfig.RETURN_NULL) ? "" : jobKindNm;
+      userInstCd   = userInstCd.equals(ConsentConfig.RETURN_NULL) ? "" : userInstCd;
+      userTelNo    = userTelNo.equals(ConsentConfig.RETURN_NULL) ? "" : userTelNo;
+      ioFlag       = ioFlag.equals(ConsentConfig.RETURN_NULL) ? "" : ioFlag;
+
+      userVO.setUserId(userId);
+      userVO.setUserName(userName);
+      userVO.setUserDeptCode(userDeptCode);
+      userVO.setUserDeptName(userDeptName);
+      userVO.setDeptEngAbbr(userDeptEngAbbr);
+      userVO.setJobKindCd(jobKindCd);
+      userVO.setJobKindNm(jobKindNm);
+      userVO.setUserInstCd(userInstCd);
+      userVO.setUserTelNo(userTelNo);
+      userVO.setIoFlag(ioFlag);
+
+    } catch (ExecutionException e) {
+      e.printStackTrace();
+    } catch (InterruptedException e) {
+      e.printStackTrace();
+    }
+
+    // 새 서식을 작성할 경우
+    if (rid == 0 || consentStateEng.equals(ConsentConfig.UNFINISHED)) {
 
       map.put("parCMDCFT_device", "M");
       map.put("parCMDCFT_1PrintIP", "");
@@ -285,37 +286,25 @@ public class ConsentCreateParam {
       map.put("ward", ward);
       map.put("dschDd", dschDd);
     } else {
-      String pid      = patientInfoVO.getPid();
-      String deptCd   = patientInfoVO.getOpDeptCd();
-      String ordType  = patientInfoVO.getOrdType();
-      String inDd     = patientInfoVO.getInDd();
-      String ward     = patientInfoVO.getWard();
-      String roomCd   = patientInfoVO.getRoomCd();
-      String cretNo   = patientInfoVO.getCretNo();
-      String mainDrId = patientInfoVO.getMainDrId();
-      String opRsrvNo = patientInfoVO.getOpRsrvNo();
-      String dschDd   = patientInfoVO.getDschDd();
-
       map.put("parCMDCHD_1PatientNo", pid);
-      map.put("parCMDCHD_1DepartmentCd", deptCd);
+      map.put("parCMDCHD_1DepartmentCd", opDeptCd);
       map.put("ordType", ordType);
       map.put("parCMDCHD_1VisitDt", inDd);
       map.put("ward", ward);
       map.put("parNUR_Fast_HospitalroomNo", roomCd);
       map.put("parCMSGBD_Cretno", cretNo);
-//      map.put("mainDrId", mainDrId);
       map.put("parCMDCBD_OpRsrvNo", opRsrvNo);
       map.put("dschDd", dschDd);
 
-      if (!userDrFlag.equals("Y")) {
-        map.put("mainDrId", loginUserId);
-      } else {
-        map.put("mainDrId", mainDrId);
-      }
-
-      if (userDrFlag.equals("Y") && ordType.equals("O")) {
-        map.put("mainDrId", mainDrId);
-      }
+//      if (!userDrFlag.equals("Y")) {
+//        map.put("mainDrId", loginUserId);
+//      } else {
+//        map.put("mainDrId", mainDrId);
+//      }
+//
+//      if (userDrFlag.equals("Y") && ordType.equals("O")) {
+//        map.put("mainDrId", mainDrId);
+//      }
     }
 
     return map;

+ 138 - 26
app/src/main/java/com/dbs/mplus/knuh/consent/ConsentFacade.java

@@ -81,32 +81,32 @@ public class ConsentFacade {
     runOption.setSameCheckAsSaveWhenTempSave2(TempSaveCheck.Always);
     runOption.setReturnImageOnTempSave2(true);
 
-
-    runOption.setUiStyle("{"
-        + "'required-input':{'border':{'visible':'false','color':{'b':0,'g':0,'r':225,'a':120},'width':2},'background':{'visible':'true','color':{'b':0,'g':0,'r':225,'a':120}}}"
-        + ",'toast-message':{'signature-missing-data':{'text':'" + mContext.getString(R.string.emptySign) + "'}}"
-        + ",'toolbar':{"
-        + "        'buttons':{"
-        + "              'tempsave2':{'visible':'true','enabled':'true','text':'" + mContext.getString(R.string.confirmSave) + "'}"
-        + "              ,'record':{'visible':'false'}"
-        + "              ,'information':{'visible':'true'}"
-        + "              ,'tempsave':{'visible':'true','enabled':'true','text':'" + mContext.getString(R.string.tempList) + "'}"
-        + "              ,'save':{'visible':'true','enabled':'true','text':'" + mContext.getString(R.string.certifySave) + "'}"
-        + "              ,'exit':{'visible':'true','text':'" + mContext.getString(R.string.exit) + "'}"
-        + "              ,'pageattach':{'visible':'true'}"
-        + "              ,'page-number':{'current':{'text-color':{'b':116,'g':186,'r':14,'a':255}}"
-        + "        }"
-        + "}"
-        + ",'move-next':{"
-        + "     'buttons':{"
-        + "       'save-move':{'text':'저장 후 이동','visible':true,'enabled':true}"
-        + "        ,'tempsave-move':{'text':'임시저장 후 이동','visible':true,'enabled':true}"
-        + "      ,'tempsave2-move':{ 'text':'임시저장2 후 이동','visible':false ,'enabled':true}"
-        + "        ,'move':{'text':'저장 없이 이동','visible':true ,'enabled':true}"
-        + "   }"
-        + "}}}"
-    ); // 툴바 및 UI 관련 옵션 설정
-
+//    runOption.setUiStyle("{"
+//        + "'required-input':{'border':{'visible':'false','color':{'b':0,'g':0,'r':225,'a':120},'width':2},'background':{'visible':'true','color':{'b':0,'g':0,'r':225,'a':120}}}"
+//        + ",'toast-message':{'signature-missing-data':{'text':'" + mContext.getString(R.string.emptySign) + "'}}"
+//        + ",'toolbar':{"
+//        + "        'buttons':{"
+//        + "              'tempsave2':{'visible':'true','enabled':'true','text':'" + mContext.getString(R.string.confirmSave) + "'}"
+//        + "              ,'record':{'visible':'false'}"
+//        + "              ,'information':{'visible':'true'}"
+//        + "              ,'tempsave':{'visible':'true','enabled':'true','text':'" + mContext.getString(R.string.tempList) + "'}"
+//        + "              ,'save':{'visible':'true','enabled':'true','text':'" + mContext.getString(R.string.certifySave) + "'}"
+//        + "              ,'exit':{'visible':'true','text':'" + mContext.getString(R.string.exit) + "'}"
+//        + "              ,'pageattach':{'visible':'true'}"
+//        + "              ,'page-number':{'current':{'text-color':{'b':116,'g':186,'r':14,'a':255}}"
+//        + "        }"
+//        + "}"
+//        + ",'move-next':{"
+//        + "     'buttons':{"
+//        + "       'save-move':{'text':'저장 후 이동','visible':true,'enabled':true}"
+//        + "        ,'tempsave-move':{'text':'임시저장 후 이동','visible':true,'enabled':true}"
+//        + "      ,'tempsave2-move':{ 'text':'임시저장2 후 이동','visible':false ,'enabled':true}"
+//        + "        ,'move':{'text':'저장 없이 이동','visible':true ,'enabled':true}"
+//        + "   }"
+//        + "}}}"
+//    ); // 툴바 및 UI 관련 옵션 설정
+
+    runOption.setUiStyle(getUiStyle());
 
     return runOption;
   }
@@ -304,4 +304,116 @@ public class ConsentFacade {
     }
     return paramStr.toString();
   }
+
+  private String getUiStyle() {
+    String uiStyle = "{                                                                                                                             " +
+                     "  'required-input': {                                                                                                         " +
+                     "    'border': {                                                                                                               " +
+                     "      'visible': 'false',                                                                                                     " +
+                     "      'color': {                                                                                                              " +
+                     "        'b': 0,                                                                                                               " +
+                     "        'g': 0,                                                                                                               " +
+                     "        'r': 225,                                                                                                             " +
+                     "        'a': 120                                                                                                              " +
+                     "      },                                                                                                                      " +
+                     "      'width': 2                                                                                                              " +
+                     "    },                                                                                                                        " +
+                     "    'background': {                                                                                                           " +
+                     "      'visible': 'true',                                                                                                      " +
+                     "      'color': {                                                                                                              " +
+                     "        'b': 0,                                                                                                               " +
+                     "        'g': 0,                                                                                                               " +
+                     "        'r': 225,                                                                                                             " +
+                     "        'a': 120                                                                                                              " +
+                     "      }                                                                                                                       " +
+                     "    }                                                                                                                         " +
+                     "  },                                                                                                                          " +
+                     "  'toast-message': {                                                                                                          " +
+                     "    'signature-missing-data': {                                                                                               " +
+                     "      'text': '" + mContext.getString(R.string.emptySign) + "'                                                                " +
+                     "    }                                                                                                                         " +
+                     "  },                                                                                                                          " +
+                     "  'toolbar': {                                                                                                                " +
+                     "    'buttons': {                                                                                                              " +
+                     "      'record': {                                                                                                             " +
+                     "        'visible': 'false'                                                                                                    " +
+                     "      },                                                                                                                      " +
+                     "      'information': {                                                                                                        " +
+                     "        'visible': 'true'                                                                                                     " +
+                     "      },                                                                                                                      " +
+                     "      'tempsave2': {                                                                                                          " +
+                     "        'visible': 'true',                                                                                                    " +
+                     "        'enabled': 'true',                                                                                                    " +
+                     "        'text': '" + mContext.getString(R.string.confirmSave) + "'                                                            " +
+                     "      },                                                                                                                      " +
+                     "      'tempsave': {                                                                                                           " +
+                     "        'visible': 'true',                                                                                                    " +
+                     "        'enabled': 'true',                                                                                                    " +
+                     "        'text': '" + mContext.getString(R.string.tempList) + "'                                                               " +
+                     "      },                                                                                                                      " +
+                     "      'save': {                                                                                                               " +
+                     "        'visible': 'true',                                                                                                    " +
+                     "        'enabled': 'true',                                                                                                    " +
+                     "        'text': '" + mContext.getString(R.string.certifySave) + "'                                                            " +
+                     "      },                                                                                                                      " +
+                     "      'exit': {                                                                                                               " +
+                     "        'visible': 'true',                                                                                                    " +
+                     "        'text': '" + mContext.getString(R.string.exit) + "'                                                                   " +
+                     "      },                                                                                                                      " +
+                     "      'pageattach': {                                                                                                         " +
+                     "        'visible': 'true'                                                                                                     " +
+                     "      },                                                                                                                      " +
+                     "      'page-number': {                                                                                                        " +
+                     "        'current': {                                                                                                          " +
+                     "          'text-color': {                                                                                                     " +
+                     "            'b': 116,                                                                                                         " +
+                     "            'g': 186,                                                                                                         " +
+                     "            'r': 14,                                                                                                          " +
+                     "            'a': 255                                                                                                          " +
+                     "          }                                                                                                                   " +
+                     "        }                                                                                                                     " +
+                     "      }                                                                                                                       " +
+                     "    },                                                                                                                        " +
+                     "    'move-next': {                                                                                                            " +
+                     "      'buttons': {                                                                                                            " +
+                     "        'save-move': {                                                                                                        " +
+                     "          'text': '" + String.format(mContext.getString(R.string.saveNext), mContext.getString(R.string.certifySave)) + "',   " +
+                     "          'visible': true,                                                                                                    " +
+                     "          'enabled': true                                                                                                     " +
+                     "        },                                                                                                                    " +
+                     "        'tempsave-move': {                                                                                                    " +
+                     "          'text': '" + String.format(mContext.getString(R.string.saveNext), mContext.getString(R.string.tempList)) + "',      " +
+                     "          'visible': true,                                                                                                    " +
+                     "          'enabled': true                                                                                                     " +
+                     "        },                                                                                                                    " +
+                     "        'tempsave2-move': {                                                                                                   " +
+                     "          'text': '" + String.format(mContext.getString(R.string.saveNext), mContext.getString(R.string.confirmSave)) + "',   " +
+                     "          'visible': true,                                                                                                    " +
+                     "          'enabled': true                                                                                                     " +
+                     "        },                                                                                                                    " +
+                     "        'move': {                                                                                                             " +
+                     "          'text': '"+ mContext.getString(R.string.notSaveNext) +"',                                                           " +
+                     "          'visible': true,                                                                                                    " +
+                     "          'enabled': true                                                                                                     " +
+                     "        }                                                                                                                     " +
+                     "      }                                                                                                                       " +
+                     "    }                                                                                                                         " +
+                     "  },                                                                                                                          " +
+                     "  'dialog': {                                                                                                                 " +
+                     "    'save': {                                                                                                                 " +
+                     "      'title': '" + mContext.getString(R.string.certifySave) + "',                                                            " +
+                     "      'contents': '" + String.format(mContext.getString(R.string.saveAction), mContext.getString(R.string.certifySave)) + "'  " +
+                     "    },                                                                                                                        " +
+                     "    'temp-save': {                                                                                                            " +
+                     "      'title': '" + mContext.getString(R.string.tempList) + "',                                                               " +
+                     "      'contents': '" + String.format(mContext.getString(R.string.saveAction), mContext.getString(R.string.tempList)) + "'     " +
+                     "    },                                                                                                                        " +
+                     "    'temp-save2': {                                                                                                           " +
+                     "      'title': '" + mContext.getString(R.string.confirmSave) + "',                                                            " +
+                     "      'contents': '" + String.format(mContext.getString(R.string.saveAction), mContext.getString(R.string.confirmSave)) + "'  " +
+                     "    }                                             " +
+                     "  }                                               " +
+                     "}                                                 ";
+    return uiStyle;
+  }
 }

+ 1 - 1
app/src/main/java/com/dbs/mplus/knuh/util/Util.java

@@ -870,9 +870,9 @@ public class Util {
         Thread thread = new Thread(runnable);
         thread.start();
       } else {
+        ((ConsentActivity) context).dismissProgress();
         NetworkErrorAlert networkErrorAlert = new NetworkErrorAlert(context);
         networkErrorAlert.show();
-        ((ConsentActivity) context).dismissProgress();
       }
     }
   }

+ 4 - 0
app/src/main/res/values/strings.xml

@@ -143,6 +143,10 @@
     <string name="deleteConsentFailed">%1$s 삭제에 실패하였습니다.</string>
     <string name="emptyPatientId">조회할 등록번호를 입력해주세요.</string>
 
+    <string name="saveNext">%1$s 후 이동</string>
+    <string name="notSaveNext">저장 없이 이동</string>
+    <string name="saveAction">%1$s 하시겠습니까?</string>
+
     <string name="viewer">뷰어</string>
     <string name="ERROR_000">뷰어 호출에 실패하였습니다.</string>
     <string name="ERROR_001">뷰어를 설치해주세요.</string>