|
|
@@ -31,6 +31,7 @@ import com.xzjmyk.pm.activity.bean.oa.SelectBean;
|
|
|
import com.xzjmyk.pm.activity.ui.base.BaseActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.activity.oa.SelectActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.activity.oa.SelectAimActivity;
|
|
|
+import com.xzjmyk.pm.activity.ui.erp.activity.oa.SelectRemarkActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.model.oa.SelectAimModel;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.net.ViewUtil;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.util.CommonUtil;
|
|
|
@@ -81,7 +82,6 @@ public class VisitReportAddActivity extends BaseActivity implements View.OnClick
|
|
|
@ViewInject(R.id.tv_relate_business)
|
|
|
private FormEditText tv_relate_business;
|
|
|
|
|
|
-
|
|
|
@ViewInject(R.id.tv_visit_type)
|
|
|
private FormEditText tv_visit_type;
|
|
|
|
|
|
@@ -103,6 +103,10 @@ public class VisitReportAddActivity extends BaseActivity implements View.OnClick
|
|
|
ViewUtils.inject(this);
|
|
|
getSupportActionBar().setTitle("拜访报告");
|
|
|
findViewById(R.id.voice_search_iv).setOnClickListener(this);
|
|
|
+ if (isB2b) {
|
|
|
+ findViewById(R.id.stage_rl).setVisibility(View.GONE);
|
|
|
+ findViewById(R.id.business_rl).setVisibility(View.GONE);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void initListener() {
|
|
|
@@ -299,7 +303,7 @@ public class VisitReportAddActivity extends BaseActivity implements View.OnClick
|
|
|
ToastMessage("保存成功!");
|
|
|
if (vp_id != -1)//更新接口
|
|
|
updataCode();
|
|
|
- else if (!getIntent().getBooleanExtra("isAgen", false)) {//第一次
|
|
|
+ else if (!getIntent().getBooleanExtra("isAgen", false) && !isB2b) {//第一次
|
|
|
submit();
|
|
|
} else
|
|
|
endActivity();
|
|
|
@@ -567,26 +571,30 @@ public class VisitReportAddActivity extends BaseActivity implements View.OnClick
|
|
|
case R.id.tv_visit_theme:
|
|
|
if (getIntent().getIntExtra("type", -1) == 3 && !TextUtils.isEmpty(tv_visit_theme.getText()))
|
|
|
return;
|
|
|
- param = new HashMap<>();
|
|
|
- param.put("field", "vr_nichestep");
|
|
|
- param.put("caller", "VisitRecord");
|
|
|
+ intent = new Intent(ct, SelectRemarkActivity.class);
|
|
|
+ startActivityForResult(intent, 0x29);
|
|
|
|
|
|
- HashMap<String, Object> param1 = new HashMap<>();
|
|
|
-
|
|
|
- param1.put("field", "vr_type");
|
|
|
- param1.put("caller", "VisitRecord");
|
|
|
- bundle = new Bundle();
|
|
|
- bundle.putSerializable("param", param);
|
|
|
- bundle.putSerializable("param1", param1);
|
|
|
- intent = new Intent(ct, SelectActivity.class);
|
|
|
- intent.putExtra("type", 3);
|
|
|
- intent.putExtra("reid", R.style.OAThemeMeet);
|
|
|
- intent.putExtras(bundle);
|
|
|
- intent.putExtra("key", "combdatas");
|
|
|
- intent.putExtra("showKey", "name");
|
|
|
- intent.putExtra("action", "mobile/common/getCombo.action");
|
|
|
- intent.putExtra("title", "拜访目的");
|
|
|
- startActivityForResult(intent, 0x28);
|
|
|
+ //与外勤一样的目的
|
|
|
+// param = new HashMap<>();
|
|
|
+// param.put("field", "vr_nichestep");
|
|
|
+// param.put("caller", "VisitRecord");
|
|
|
+//
|
|
|
+// HashMap<String, Object> param1 = new HashMap<>();
|
|
|
+//
|
|
|
+// param1.put("field", "vr_type");
|
|
|
+// param1.put("caller", "VisitRecord");
|
|
|
+// bundle = new Bundle();
|
|
|
+// bundle.putSerializable("param", param);
|
|
|
+// bundle.putSerializable("param1", param1);
|
|
|
+// intent = new Intent(ct, SelectActivity.class);
|
|
|
+// intent.putExtra("type", 3);
|
|
|
+// intent.putExtra("reid", R.style.OAThemeMeet);
|
|
|
+// intent.putExtras(bundle);
|
|
|
+// intent.putExtra("key", "combdatas");
|
|
|
+// intent.putExtra("showKey", "name");
|
|
|
+// intent.putExtra("action", "mobile/common/getCombo.action");
|
|
|
+// intent.putExtra("title", "拜访目的");
|
|
|
+// startActivityForResult(intent, 0x28);
|
|
|
|
|
|
break;
|
|
|
case R.id.voice_search_iv:
|
|
|
@@ -662,6 +670,9 @@ public class VisitReportAddActivity extends BaseActivity implements View.OnClick
|
|
|
} else {
|
|
|
tv_visit_steps.setText("");
|
|
|
}
|
|
|
+ } else if (requestCode == 0x29) {
|
|
|
+ String message = data.getStringExtra("data");
|
|
|
+ tv_visit_theme.setText(StringUtils.isEmpty(message) ? "客情维护" : message);
|
|
|
}
|
|
|
}
|
|
|
|