|
@@ -20,7 +20,6 @@ import android.os.Environment;
|
|
|
import android.os.Handler;
|
|
import android.os.Handler;
|
|
|
import android.os.Message;
|
|
import android.os.Message;
|
|
|
import android.provider.MediaStore;
|
|
import android.provider.MediaStore;
|
|
|
-import android.support.annotation.RequiresApi;
|
|
|
|
|
import android.text.SpannableString;
|
|
import android.text.SpannableString;
|
|
|
import android.text.SpannableStringBuilder;
|
|
import android.text.SpannableStringBuilder;
|
|
|
import android.text.Spanned;
|
|
import android.text.Spanned;
|
|
@@ -39,6 +38,8 @@ import android.widget.RelativeLayout;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
import android.widget.Toast;
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
+import androidx.annotation.RequiresApi;
|
|
|
|
|
+
|
|
|
import com.github.dfqin.grantor.PermissionListener;
|
|
import com.github.dfqin.grantor.PermissionListener;
|
|
|
import com.github.dfqin.grantor.PermissionsUtil;
|
|
import com.github.dfqin.grantor.PermissionsUtil;
|
|
|
import com.hjq.base.BaseDialog;
|
|
import com.hjq.base.BaseDialog;
|
|
@@ -169,7 +170,7 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
RelativeLayout rlAll;
|
|
RelativeLayout rlAll;
|
|
|
//新添加id
|
|
//新添加id
|
|
|
/**
|
|
/**
|
|
|
- *接种部位
|
|
|
|
|
|
|
+ * 接种部位
|
|
|
*/
|
|
*/
|
|
|
@BindView(R.id.vndetail_tv_vaccinationSite)
|
|
@BindView(R.id.vndetail_tv_vaccinationSite)
|
|
|
TextView vndetailTvVaccinationSite;
|
|
TextView vndetailTvVaccinationSite;
|
|
@@ -195,7 +196,6 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
TextView ndetailTvSpecifications;
|
|
TextView ndetailTvSpecifications;
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
static final String[] PERMISSION = new String[]{
|
|
static final String[] PERMISSION = new String[]{
|
|
|
Manifest.permission.WRITE_EXTERNAL_STORAGE,
|
|
Manifest.permission.WRITE_EXTERNAL_STORAGE,
|
|
|
Manifest.permission.READ_EXTERNAL_STORAGE,
|
|
Manifest.permission.READ_EXTERNAL_STORAGE,
|
|
@@ -207,6 +207,7 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
private List<TextView> yujingList;
|
|
private List<TextView> yujingList;
|
|
|
private List<TextView> vntextviewList;
|
|
private List<TextView> vntextviewList;
|
|
|
private List<TextView> zcList;
|
|
private List<TextView> zcList;
|
|
|
|
|
+ private ObjectAnimator animator;
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -275,7 +276,7 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
public void onViewClicked(View view) {
|
|
public void onViewClicked(View view) {
|
|
|
switch (view.getId()) {
|
|
switch (view.getId()) {
|
|
|
case R.id.next_btn_report:
|
|
case R.id.next_btn_report:
|
|
|
- startActivityFinish(ReadingActivity.class);
|
|
|
|
|
|
|
+ startActivityFinish(ReadingActivity02.class);
|
|
|
// if (status == 4 || status == 8) {
|
|
// if (status == 4 || status == 8) {
|
|
|
// startActivityFinish(ReadingActivity.class);
|
|
// startActivityFinish(ReadingActivity.class);
|
|
|
// } else {
|
|
// } else {
|
|
@@ -418,9 +419,9 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
vndetailTvChatImage.setImageResource(R.mipmap.report_normal_ico);
|
|
vndetailTvChatImage.setImageResource(R.mipmap.report_normal_ico);
|
|
|
// vndetailTvTypemsg.setText("疫苗企业验证通过");
|
|
// vndetailTvTypemsg.setText("疫苗企业验证通过");
|
|
|
//透明动画
|
|
//透明动画
|
|
|
- ObjectAnimator animator = ObjectAnimator.ofFloat(vndetailTvChatImage, "alpha", 0.1f, 1f);
|
|
|
|
|
|
|
+ animator = ObjectAnimator.ofFloat(vndetailTvChatImage, "alpha", 0.1f, 1f);
|
|
|
animator.setDuration(300); //一秒闪一次
|
|
animator.setDuration(300); //一秒闪一次
|
|
|
- animator.setRepeatCount(10); //总共闪十次
|
|
|
|
|
|
|
+ animator.setRepeatCount(8); //总共闪十次
|
|
|
animator.setRepeatMode(Animation.REVERSE);
|
|
animator.setRepeatMode(Animation.REVERSE);
|
|
|
//为动画设置监听
|
|
//为动画设置监听
|
|
|
animator.addListener(new Animator.AnimatorListener() {
|
|
animator.addListener(new Animator.AnimatorListener() {
|
|
@@ -438,7 +439,11 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
alpha.setDuration(0);
|
|
alpha.setDuration(0);
|
|
|
alpha.setFillAfter(true);
|
|
alpha.setFillAfter(true);
|
|
|
vndetailTvChatImage.startAnimation(alpha);*/
|
|
vndetailTvChatImage.startAnimation(alpha);*/
|
|
|
- setPageView(); //设置扫描到的信息
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ setPageView(); //设置扫描到的信息
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -451,7 +456,9 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
//动画重复时 下方进行验证提示
|
|
//动画重复时 下方进行验证提示
|
|
|
//Log.e("onAnimationRepeat","onAnimationRepeat");
|
|
//Log.e("onAnimationRepeat","onAnimationRepeat");
|
|
|
checki++;
|
|
checki++;
|
|
|
- vndetailTvTypemsg.setText("产品信息已验证通过,冷链信息未发现异常,请核对产品外包装与本报告所载数据是否一致");
|
|
|
|
|
|
|
+ if (vndetailTvTypemsg != null) {
|
|
|
|
|
+ vndetailTvTypemsg.setText("产品信息已验证通过,冷链信息未发现异常,请核对产品外包装与本报告所载数据是否一致");
|
|
|
|
|
+ }
|
|
|
// setCheckText(checki);
|
|
// setCheckText(checki);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -518,10 +525,19 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
// vndetailTvTypemsg.setText(
|
|
// vndetailTvTypemsg.setText(
|
|
|
// "疫苗信息已验证通过,冷链信息未发现异常,请核对疫苗内外包装与本报告所载数据是否一致,并按\"三查七对\"的规定使用");
|
|
// "疫苗信息已验证通过,冷链信息未发现异常,请核对疫苗内外包装与本报告所载数据是否一致,并按\"三查七对\"的规定使用");
|
|
|
//vndetailTvTypemsg.setTextColor(Color.GREEN);
|
|
//vndetailTvTypemsg.setTextColor(Color.GREEN);
|
|
|
- vndetailTvChatImage.setImageResource(R.mipmap.report_normal_ico);
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ vndetailTvChatImage.setImageResource(R.mipmap.report_normal_ico);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
/*vndetailTvChatImage.setVisibility(View.GONE);
|
|
/*vndetailTvChatImage.setVisibility(View.GONE);
|
|
|
vndetail_tv_chatImage_title.setVisibility(View.GONE);*/
|
|
vndetail_tv_chatImage_title.setVisibility(View.GONE);*/
|
|
|
- coverview.setText("提示:注射疫苗后,请用注射专用创口贴或消毒棉球轻压针眼几分钟,至不出血。请勿揉搓接种部位。接种疫苗后休息30分钟再离开。");
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ coverview.setText("提示:注射疫苗后,请用注射专用创口贴或消毒棉球轻压针眼几分钟,至不出血。请勿揉搓接种部位。接种疫苗后休息30分钟再离开。");
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
pdfhandler.postDelayed(pdfRunnable, 1000 * 20);
|
|
pdfhandler.postDelayed(pdfRunnable, 1000 * 20);
|
|
|
normalhandler.postDelayed(normalRunnable, 1000 * 60);
|
|
normalhandler.postDelayed(normalRunnable, 1000 * 60);
|
|
@@ -795,8 +811,7 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
ndetailTvSpecifications.setText(dataBean.getVaccineCategory());
|
|
ndetailTvSpecifications.setText(dataBean.getVaccineCategory());
|
|
|
vndetailTvApprovalNumber.setText(dataBean.getApprovalNumber());
|
|
vndetailTvApprovalNumber.setText(dataBean.getApprovalNumber());
|
|
|
vndetailTvStandardCode.setText(dataBean.getStandardCode());
|
|
vndetailTvStandardCode.setText(dataBean.getStandardCode());
|
|
|
- vndetailTvIdentificationCode.setText( dataBean.getIdentificationCode());
|
|
|
|
|
-
|
|
|
|
|
|
|
+ vndetailTvIdentificationCode.setText(dataBean.getIdentificationCode());
|
|
|
|
|
|
|
|
|
|
|
|
|
//vndetailTvVncode.setText("evvm Code " + dataBean.getCode());
|
|
//vndetailTvVncode.setText("evvm Code " + dataBean.getCode());
|
|
@@ -1022,7 +1037,7 @@ public class VnReportDetailForDoctorActivity01 extends MvpActivity<VnDetailPrese
|
|
|
if (pdfhandler != null) {
|
|
if (pdfhandler != null) {
|
|
|
pdfhandler.removeCallbacks(pdfRunnable);
|
|
pdfhandler.removeCallbacks(pdfRunnable);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+// animator.stop()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|