|
|
@@ -2,11 +2,13 @@ package com.xzjmyk.pm.activity.ui.erp.activity.crm;
|
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
+import android.content.DialogInterface;
|
|
|
import android.content.Intent;
|
|
|
import android.os.Bundle;
|
|
|
import android.os.Handler;
|
|
|
import android.os.Message;
|
|
|
import android.os.Parcelable;
|
|
|
+import android.support.v7.app.AlertDialog;
|
|
|
import android.text.Editable;
|
|
|
import android.text.Selection;
|
|
|
import android.text.TextUtils;
|
|
|
@@ -552,7 +554,17 @@ public class VisitReportAddActivity extends BaseActivity implements View.OnClick
|
|
|
else saveVisit();
|
|
|
break;
|
|
|
case R.id.delete_btn:
|
|
|
- deleteVisitRecord();
|
|
|
+ new AlertDialog.Builder(ct).setTitle(R.string.prompt_title).setMessage(R.string.delete_prompt).setPositiveButton(R.string.sure, new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
+ deleteVisitRecord();
|
|
|
+ }
|
|
|
+ }).setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
+
|
|
|
+ }
|
|
|
+ }).show();
|
|
|
break;
|
|
|
}
|
|
|
}
|