|
|
@@ -50,11 +50,10 @@ import com.core.utils.CommonUtil;
|
|
|
import com.core.utils.OnGetDrivingRouteResult;
|
|
|
import com.core.utils.TimeUtils;
|
|
|
import com.core.utils.ToastUtil;
|
|
|
-import com.modular.apputils.utils.PopupWindowHelper;
|
|
|
import com.core.widget.MyListView;
|
|
|
-import com.core.widget.crouton.Crouton;
|
|
|
import com.core.widget.crouton.Style;
|
|
|
import com.core.widget.view.steps.StepsView;
|
|
|
+import com.modular.apputils.utils.PopupWindowHelper;
|
|
|
import com.uas.appworks.CRM.erp.adapter.StickyListAdapter;
|
|
|
import com.uas.appworks.CRM.erp.model.SimpleData;
|
|
|
import com.uas.appworks.OA.erp.activity.MissionActivity;
|
|
|
@@ -142,9 +141,9 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
private void initIDS() {
|
|
|
bt_fenpei = (Button) findViewById(R.id.bt_fenpei);
|
|
|
bt_qiang = (Button) findViewById(R.id.bt_qiang);
|
|
|
- bt_manage_date = (Button) findViewById(R.id.bt_manage_date);
|
|
|
- bt_zhuanyi = (Button) findViewById(R.id.bt_zhuanyi);
|
|
|
- bt_manage_go = (Button) findViewById(R.id.bt_manage_go);
|
|
|
+ bt_manage_date = (Button) findViewById(R.id.bt_manage_date);
|
|
|
+ bt_zhuanyi = (Button) findViewById(R.id.bt_zhuanyi);
|
|
|
+ bt_manage_go = (Button) findViewById(R.id.bt_manage_go);
|
|
|
crm_ll_followup = (LinearLayout) findViewById(R.id.crm_ll_followup);
|
|
|
crm_ll_qiang = (LinearLayout) findViewById(R.id.crm_ll_qiang);
|
|
|
crm_ll_manage = (LinearLayout) findViewById(R.id.crm_ll_manage);
|
|
|
@@ -152,17 +151,17 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
ll_card_line = findViewById(R.id.ll_card_line);
|
|
|
bc_from = (TextView) findViewById(R.id.bc_from);
|
|
|
bc_remark = (TextView) findViewById(R.id.bc_remark);
|
|
|
- bc_recorder = (TextView) findViewById(R.id.bc_recorder);
|
|
|
+ bc_recorder = (TextView) findViewById(R.id.bc_recorder);
|
|
|
bc_recorddate = (TextView) findViewById(R.id.bc_recorddate);
|
|
|
bc_code = (TextView) findViewById(R.id.bc_code);
|
|
|
bc_description = (TextView) findViewById(R.id.bc_description);
|
|
|
bc_nichehouse = (TextView) findViewById(R.id.bc_nichehouse);
|
|
|
bc_type = (TextView) findViewById(R.id.bc_type);
|
|
|
bc_currentprocess = (TextView) findViewById(R.id.bc_currentprocess);
|
|
|
- bc_lastdate= (TextView) findViewById(R.id.bc_lastdate);
|
|
|
+ bc_lastdate = (TextView) findViewById(R.id.bc_lastdate);
|
|
|
bc_doman = (TextView) findViewById(R.id.bc_doman);
|
|
|
bc_custname = (TextView) findViewById(R.id.bc_custname);
|
|
|
- bc_address= (TextView) findViewById(R.id.bc_address);
|
|
|
+ bc_address = (TextView) findViewById(R.id.bc_address);
|
|
|
bc_contact = (TextView) findViewById(R.id.bc_contact);
|
|
|
bc_position = (TextView) findViewById(R.id.bc_position);
|
|
|
bt_tel = (TextView) findViewById(R.id.bt_tel);
|
|
|
@@ -219,7 +218,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
}
|
|
|
|
|
|
private void initView() {
|
|
|
- setTitle(getString(R.string.business_detail));
|
|
|
+ setTitle(getString(R.string.business_detail));
|
|
|
Intent intent = getIntent();
|
|
|
if (intent != null) {
|
|
|
type = intent.getIntExtra("type", 0);
|
|
|
@@ -273,17 +272,17 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
- if (v.getId() == R.id.bt_manage_go){
|
|
|
+ if (v.getId() == R.id.bt_manage_go) {
|
|
|
showPopupWindow(v);
|
|
|
- }else if (v.getId() == R.id.stage_follow){
|
|
|
+ } else if (v.getId() == R.id.stage_follow) {
|
|
|
startActivityForResult(new Intent(BusinessDetailInfoActivity.this, BusinessLessActivity.class)
|
|
|
.putExtra("type", 2)
|
|
|
.putExtra("code", bt_code)
|
|
|
.putExtra("process", bt_process)
|
|
|
.putExtra("doman", bt_doman), BUSINESS_FOLLOW_REQUEST);
|
|
|
- }else if (v.getId() == R.id.bt_manage_date){
|
|
|
+ } else if (v.getId() == R.id.bt_manage_date) {
|
|
|
isEnableClick(bt_code, 5);
|
|
|
- }else if (v.getId() == R.id.add_mission){
|
|
|
+ } else if (v.getId() == R.id.add_mission) {
|
|
|
if (destination == null) {
|
|
|
ToastUtil.showToast(ct, getString(R.string.crmmain_business) + getString(R.string.location_error_try_agen));
|
|
|
return;
|
|
|
@@ -291,7 +290,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
float dis = Float.valueOf(BaiduMapUtil.getInstence().getDistance(destination));
|
|
|
setEndTime(destination, dis);
|
|
|
progressDialog.show();
|
|
|
- }else if (v.getId() == R.id.bt_qiang){
|
|
|
+ } else if (v.getId() == R.id.bt_qiang) {
|
|
|
progressDialog.show();
|
|
|
String url = CommonUtil.getAppBaseUrl(ct) + "mobile/crm/ifoverrecv.action";
|
|
|
Map<String, Object> stringMap = new HashMap<String, Object>();
|
|
|
@@ -300,9 +299,9 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
ViewUtil.httpSendRequest(ct, url, stringMap, mHandler, headers, CAN_QIANG_NOT, null, null, "post");
|
|
|
- }else if (v.getId() == R.id.bt_fenpei){
|
|
|
+ } else if (v.getId() == R.id.bt_fenpei) {
|
|
|
startActivityForResult(new Intent(ct, DbfindList2Activity.class), 1);
|
|
|
- }else if (v.getId() == R.id.bt_zhuanyi){
|
|
|
+ } else if (v.getId() == R.id.bt_zhuanyi) {
|
|
|
startActivity(new Intent(ct, BusinessTransferActivity.class).putExtra("code", bt_code).putExtra("name", bc_nichehouse.getText().toString().trim()));
|
|
|
}
|
|
|
}
|
|
|
@@ -330,23 +329,16 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
case 1:
|
|
|
final String nichehouse = StringUtil.getTextRexHttp(bc_nichehouse);
|
|
|
if (/*存在商机库已选择*/!StringUtil.isEmpty(nichehouse)) {
|
|
|
- new MaterialDialog.Builder(ct).title(R.string.common_dialog_title)
|
|
|
- .content(R.string.sure_business_release)
|
|
|
- .negativeText(R.string.common_cancel)
|
|
|
- .positiveText(R.string.common_sure)
|
|
|
- .contentGravity(GravityEnum.CENTER)
|
|
|
- .callback(new MaterialDialog.ButtonCallback() {
|
|
|
- @Override
|
|
|
- public void onNegative(MaterialDialog dialog) {
|
|
|
- super.onNegative(dialog);
|
|
|
- }
|
|
|
-
|
|
|
+ PopupWindowHelper.showAlart(BusinessDetailInfoActivity.this,
|
|
|
+ getString(R.string.common_dialog_title), getString(R.string.sure_business_release),
|
|
|
+ new PopupWindowHelper.OnSelectListener() {
|
|
|
@Override
|
|
|
- public void onPositive(MaterialDialog dialog) {
|
|
|
- super.onPositive(dialog);
|
|
|
- sendHttpResquestRelease(nichehouse, BUSINESS_RELEASE);
|
|
|
+ public void select(boolean selectOk) {
|
|
|
+ if (selectOk) {
|
|
|
+ sendHttpResquestRelease(nichehouse, BUSINESS_RELEASE);
|
|
|
+ }
|
|
|
}
|
|
|
- }).build().show();
|
|
|
+ });
|
|
|
} else
|
|
|
loadNichehouse();
|
|
|
popupWindow.dismiss();
|
|
|
@@ -542,8 +534,8 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
loadStagePoints();
|
|
|
break;
|
|
|
case BUSINESS_QIANG:
|
|
|
- showToast( "成功抢得此商机,\n" +
|
|
|
- "请到商机跟进中查看商机!\n");
|
|
|
+ showToast("成功抢得此商机,\n" +
|
|
|
+ "请到商机跟进中查看商机!\n");
|
|
|
new Handler().postDelayed(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|