|
@@ -3,7 +3,6 @@ package com.dbs.mplus.knuh.activity;
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
import androidx.appcompat.widget.AppCompatRadioButton;
|
|
import androidx.appcompat.widget.AppCompatRadioButton;
|
|
import androidx.core.content.ContextCompat;
|
|
import androidx.core.content.ContextCompat;
|
|
-import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
import androidx.viewpager.widget.ViewPager;
|
|
import androidx.viewpager.widget.ViewPager;
|
|
|
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
@@ -15,7 +14,6 @@ import android.util.Log;
|
|
import android.view.Gravity;
|
|
import android.view.Gravity;
|
|
import android.view.View;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.Button;
|
|
-import android.widget.CheckBox;
|
|
|
|
import android.widget.EditText;
|
|
import android.widget.EditText;
|
|
import android.widget.ImageView;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.LinearLayout;
|
|
@@ -34,13 +32,11 @@ import com.dbs.mplus.knuh.activity.activityEvent.TapMenu;
|
|
import com.dbs.mplus.knuh.activity.activityEvent.TopMenu;
|
|
import com.dbs.mplus.knuh.activity.activityEvent.TopMenu;
|
|
import com.dbs.mplus.knuh.adapter.ViewPagerAdapter;
|
|
import com.dbs.mplus.knuh.adapter.ViewPagerAdapter;
|
|
import com.dbs.mplus.knuh.consent.sign.SignWrapper;
|
|
import com.dbs.mplus.knuh.consent.sign.SignWrapper;
|
|
-import com.dbs.mplus.knuh.customView.CustomAlertDialog;
|
|
|
|
import com.dbs.mplus.knuh.customView.CustomRadioGroup;
|
|
import com.dbs.mplus.knuh.customView.CustomRadioGroup;
|
|
import com.dbs.mplus.knuh.customView.LoadingProgress;
|
|
import com.dbs.mplus.knuh.customView.LoadingProgress;
|
|
import com.dbs.mplus.knuh.fragment.HistoryFragment;
|
|
import com.dbs.mplus.knuh.fragment.HistoryFragment;
|
|
import com.dbs.mplus.knuh.fragment.MarkerFragment;
|
|
import com.dbs.mplus.knuh.fragment.MarkerFragment;
|
|
import com.dbs.mplus.knuh.fragment.SearchFragment;
|
|
import com.dbs.mplus.knuh.fragment.SearchFragment;
|
|
-import com.dbs.mplus.knuh.util.ConsentConfig;
|
|
|
|
import com.dbs.mplus.knuh.util.Util;
|
|
import com.dbs.mplus.knuh.util.Util;
|
|
|
|
|
|
public class ConsentActivity extends AppCompatActivity {
|
|
public class ConsentActivity extends AppCompatActivity {
|
|
@@ -49,7 +45,6 @@ public class ConsentActivity extends AppCompatActivity {
|
|
public AppCompatActivity mActivity;
|
|
public AppCompatActivity mActivity;
|
|
public Context mContext;
|
|
public Context mContext;
|
|
private LoadingProgress loadingProgress;
|
|
private LoadingProgress loadingProgress;
|
|
- private CustomAlertDialog csAlert;
|
|
|
|
private TopMenu topMenu;
|
|
private TopMenu topMenu;
|
|
private TapMenu tapMenu;
|
|
private TapMenu tapMenu;
|
|
private LeftMenu leftMenu;
|
|
private LeftMenu leftMenu;
|
|
@@ -107,10 +102,7 @@ public class ConsentActivity extends AppCompatActivity {
|
|
public AppCompatRadioButton radioButton5;
|
|
public AppCompatRadioButton radioButton5;
|
|
|
|
|
|
public EditText etPatientId;
|
|
public EditText etPatientId;
|
|
- public CheckBox chkMyPatient;
|
|
|
|
public LinearLayout patientSearchLayout;
|
|
public LinearLayout patientSearchLayout;
|
|
- public RecyclerView patientRecyclerView;
|
|
|
|
- public TextView patientEmpty;
|
|
|
|
/** left Menu **/
|
|
/** left Menu **/
|
|
|
|
|
|
/** Right Menu **/
|
|
/** Right Menu **/
|
|
@@ -149,7 +141,6 @@ public class ConsentActivity extends AppCompatActivity {
|
|
mContext = this;
|
|
mContext = this;
|
|
|
|
|
|
loadingProgress = new LoadingProgress(mContext);
|
|
loadingProgress = new LoadingProgress(mContext);
|
|
- csAlert = new CustomAlertDialog(mContext);
|
|
|
|
topMenu = new TopMenu(mContext, mActivity);
|
|
topMenu = new TopMenu(mContext, mActivity);
|
|
tapMenu = new TapMenu(mContext, mActivity);
|
|
tapMenu = new TapMenu(mContext, mActivity);
|
|
leftMenu = new LeftMenu(mContext, mActivity);
|
|
leftMenu = new LeftMenu(mContext, mActivity);
|
|
@@ -269,10 +260,7 @@ public class ConsentActivity extends AppCompatActivity {
|
|
radioLayout = (RelativeLayout) findViewById(R.id.radioLayout);
|
|
radioLayout = (RelativeLayout) findViewById(R.id.radioLayout);
|
|
|
|
|
|
etPatientId = (EditText) findViewById(R.id.etPatientId);
|
|
etPatientId = (EditText) findViewById(R.id.etPatientId);
|
|
- chkMyPatient = (CheckBox) findViewById(R.id.chkMyPatient);
|
|
|
|
patientSearchLayout = (LinearLayout) findViewById(R.id.patientSearchLayout);
|
|
patientSearchLayout = (LinearLayout) findViewById(R.id.patientSearchLayout);
|
|
- patientRecyclerView = (RecyclerView) findViewById(R.id.patientRecyclerView);
|
|
|
|
- patientEmpty = (TextView) findViewById(R.id.patientEmpty);
|
|
|
|
|
|
|
|
leftMenu.setRadioGroupDraw(indexPage);
|
|
leftMenu.setRadioGroupDraw(indexPage);
|
|
|
|
|
|
@@ -280,18 +268,6 @@ public class ConsentActivity extends AppCompatActivity {
|
|
wardLayout.setVisibility(View.INVISIBLE);
|
|
wardLayout.setVisibility(View.INVISIBLE);
|
|
}
|
|
}
|
|
|
|
|
|
- // 내 환자는 입원에 의사직군이 아닌 사용자만 보임
|
|
|
|
- if (indexPage.equals("I")) {
|
|
|
|
- // 03이면 의사 직군
|
|
|
|
- if (jobKindCd.indexOf("03") == 0) {
|
|
|
|
- chkMyPatient.setVisibility(View.GONE);
|
|
|
|
- } else {
|
|
|
|
- chkMyPatient.setVisibility(View.VISIBLE);
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- chkMyPatient.setVisibility(View.VISIBLE);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
tvMainDate.setText(Util.nowDate());
|
|
tvMainDate.setText(Util.nowDate());
|
|
|
|
|
|
dateLayout.setOnClickListener(leftMenu.onClickListener);
|
|
dateLayout.setOnClickListener(leftMenu.onClickListener);
|
|
@@ -313,11 +289,12 @@ public class ConsentActivity extends AppCompatActivity {
|
|
viewPager = (ViewPager) findViewById(R.id.viewPager);
|
|
viewPager = (ViewPager) findViewById(R.id.viewPager);
|
|
/** RightTab **/
|
|
/** RightTab **/
|
|
|
|
|
|
- setViewPager();
|
|
|
|
- rightMenu.rightMenuStartColor();
|
|
|
|
historyLayout.setOnClickListener(rightMenu.onClickListener);
|
|
historyLayout.setOnClickListener(rightMenu.onClickListener);
|
|
markerLayout.setOnClickListener(rightMenu.onClickListener);
|
|
markerLayout.setOnClickListener(rightMenu.onClickListener);
|
|
searchLayout.setOnClickListener(rightMenu.onClickListener);
|
|
searchLayout.setOnClickListener(rightMenu.onClickListener);
|
|
|
|
+
|
|
|
|
+ setViewPager();
|
|
|
|
+ rightMenu.rightMenuStartColor();
|
|
}
|
|
}
|
|
|
|
|
|
public void setViewPager() {
|
|
public void setViewPager() {
|
|
@@ -366,17 +343,6 @@ public class ConsentActivity extends AppCompatActivity {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public void showSingButtonDialog(String message) {
|
|
|
|
- csAlert.show();
|
|
|
|
- csAlert.setContent(message, ConsentConfig.ALERT_BTN_TYPE);
|
|
|
|
- csAlert.btnConfirm2.setOnClickListener(new View.OnClickListener() {
|
|
|
|
- @Override
|
|
|
|
- public void onClick(View v) {
|
|
|
|
- csAlert.dismiss();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@Override
|
|
@Override
|
|
public void onBackPressed() {
|
|
public void onBackPressed() {
|
|
if(System.currentTimeMillis() > backKeyPressedTime + 2000) {
|
|
if(System.currentTimeMillis() > backKeyPressedTime + 2000) {
|