|
@@ -40,6 +40,7 @@ import com.xzjmyk.pm.activity.ui.erp.util.LogUtil;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.util.StringUtils;
|
|
import com.xzjmyk.pm.activity.ui.erp.util.StringUtils;
|
|
|
import com.xzjmyk.pm.activity.util.DisplayUtil;
|
|
import com.xzjmyk.pm.activity.util.DisplayUtil;
|
|
|
import com.xzjmyk.pm.activity.view.crouton.Crouton;
|
|
import com.xzjmyk.pm.activity.view.crouton.Crouton;
|
|
|
|
|
+import com.xzjmyk.pm.activity.view.crouton.Style;
|
|
|
import com.xzjmyk.pm.activity.view.steps.StepsView;
|
|
import com.xzjmyk.pm.activity.view.steps.StepsView;
|
|
|
import com.xzjmyk.pm.activity.view.stickylistheaders.StickyListHeadersListView;
|
|
import com.xzjmyk.pm.activity.view.stickylistheaders.StickyListHeadersListView;
|
|
|
|
|
|
|
@@ -50,7 +51,6 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* @功能:商机详情
|
|
* @功能:商机详情
|
|
|
* @author:Arisono
|
|
* @author:Arisono
|
|
@@ -59,8 +59,8 @@ import java.util.Map;
|
|
|
*/
|
|
*/
|
|
|
public class BusinessDetailInfoActivity extends BaseActivity implements View.OnClickListener {
|
|
public class BusinessDetailInfoActivity extends BaseActivity implements View.OnClickListener {
|
|
|
|
|
|
|
|
- private static final int LOAD_JIEDUAN =0x21 ;
|
|
|
|
|
- private static final int LOAD_STAGEPOINT =0x22 ;
|
|
|
|
|
|
|
+ private static final int LOAD_JIEDUAN = 0x21;
|
|
|
|
|
+ private static final int LOAD_STAGEPOINT = 0x22;
|
|
|
@ViewInject(R.id.bt_fenpei)
|
|
@ViewInject(R.id.bt_fenpei)
|
|
|
private Button bt_fenpei;
|
|
private Button bt_fenpei;
|
|
|
@ViewInject(R.id.bt_qiang)
|
|
@ViewInject(R.id.bt_qiang)
|
|
@@ -116,21 +116,22 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
|
|
|
|
|
@ViewInject(R.id.stepsView)
|
|
@ViewInject(R.id.stepsView)
|
|
|
private StepsView mStepsView;
|
|
private StepsView mStepsView;
|
|
|
-
|
|
|
|
|
- @ViewInject(R.id. lv_business)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ @ViewInject(R.id.lv_business)
|
|
|
private StickyListHeadersListView mList;
|
|
private StickyListHeadersListView mList;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
private StickyListAdapter mAapter;
|
|
private StickyListAdapter mAapter;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
private int type = 0;
|
|
private int type = 0;
|
|
|
private String formCondition;
|
|
private String formCondition;
|
|
|
private String gridCondition;
|
|
private String gridCondition;
|
|
|
private String en_code;
|
|
private String en_code;
|
|
|
|
|
|
|
|
- private String[] labels;
|
|
|
|
|
|
|
+ private String[] labels;
|
|
|
|
|
|
|
|
private final static int BUSINESS_FAILURE_REQUEST = 99;
|
|
private final static int BUSINESS_FAILURE_REQUEST = 99;
|
|
|
private final static int BUSINESS_FOLLOW_REQUEST = 100;
|
|
private final static int BUSINESS_FOLLOW_REQUEST = 100;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
super.onCreate(savedInstanceState);
|
|
super.onCreate(savedInstanceState);
|
|
@@ -199,7 +200,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
// }
|
|
// }
|
|
|
// mAapter=new StickyListAdapter(mContext,hasHeaderIdList);
|
|
// mAapter=new StickyListAdapter(mContext,hasHeaderIdList);
|
|
|
// mList.setAdapter(mAapter);
|
|
// mList.setAdapter(mAapter);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void initListener() {
|
|
private void initListener() {
|
|
@@ -222,7 +223,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
showPopupWindow(v.findViewById(R.id.bt_manage_go));
|
|
showPopupWindow(v.findViewById(R.id.bt_manage_go));
|
|
|
break;
|
|
break;
|
|
|
case R.id.bt_manage_date:
|
|
case R.id.bt_manage_date:
|
|
|
- isEnableClick(bt_code,5);
|
|
|
|
|
|
|
+ isEnableClick(bt_code, 5);
|
|
|
break;
|
|
break;
|
|
|
case R.id.bt_qiang:
|
|
case R.id.bt_qiang:
|
|
|
progressDialog.show();
|
|
progressDialog.show();
|
|
@@ -290,14 +291,14 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
.putExtra("type", 1)
|
|
.putExtra("type", 1)
|
|
|
.putExtra("code", bt_code)
|
|
.putExtra("code", bt_code)
|
|
|
.putExtra("process", bt_process)
|
|
.putExtra("process", bt_process)
|
|
|
- .putExtra("doman", bt_doman),BUSINESS_FAILURE_REQUEST);
|
|
|
|
|
|
|
+ .putExtra("doman", bt_doman), BUSINESS_FAILURE_REQUEST);
|
|
|
break;
|
|
break;
|
|
|
case 3:
|
|
case 3:
|
|
|
startActivityForResult(new Intent(BusinessDetailInfoActivity.this, BusinessLessActivity.class)
|
|
startActivityForResult(new Intent(BusinessDetailInfoActivity.this, BusinessLessActivity.class)
|
|
|
.putExtra("type", 2)
|
|
.putExtra("type", 2)
|
|
|
.putExtra("code", bt_code)
|
|
.putExtra("code", bt_code)
|
|
|
.putExtra("process", bt_process)
|
|
.putExtra("process", bt_process)
|
|
|
- .putExtra("doman", bt_doman),BUSINESS_FOLLOW_REQUEST);
|
|
|
|
|
|
|
+ .putExtra("doman", bt_doman), BUSINESS_FOLLOW_REQUEST);
|
|
|
break;
|
|
break;
|
|
|
/* case 4:
|
|
/* case 4:
|
|
|
startActivity(new Intent(BusinessDetailInfoActivity.this, BusinessTransferActivity.class)
|
|
startActivity(new Intent(BusinessDetailInfoActivity.this, BusinessTransferActivity.class)
|
|
@@ -305,19 +306,22 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
break;*/
|
|
break;*/
|
|
|
case 4:
|
|
case 4:
|
|
|
startActivity(new Intent(BusinessDetailInfoActivity.this, CustomerAddActivity.class)
|
|
startActivity(new Intent(BusinessDetailInfoActivity.this, CustomerAddActivity.class)
|
|
|
- .putExtra("companyname",bc_custname.getText().toString().trim())
|
|
|
|
|
- .putExtra("companyaddress",bc_address.getText().toString().trim())
|
|
|
|
|
- .putExtra("contact",bc_contact.getText().toString().trim())
|
|
|
|
|
- .putExtra("position",bc_position.getText().toString().trim())
|
|
|
|
|
- .putExtra("bc_code", bt_code)
|
|
|
|
|
- .putExtra("telephone", bt_tel.getText().toString().trim())
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ .putExtra("companyname", bc_custname.getText().toString().trim())
|
|
|
|
|
+ .putExtra("companyaddress", bc_address.getText().toString().trim())
|
|
|
|
|
+ .putExtra("contact", bc_contact.getText().toString().trim())
|
|
|
|
|
+ .putExtra("position", bc_position.getText().toString().trim())
|
|
|
|
|
+ .putExtra("bc_code", bt_code)
|
|
|
|
|
+ .putExtra("telephone", bt_tel.getText().toString().trim())
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
);
|
|
);
|
|
|
break;
|
|
break;
|
|
|
case 5:
|
|
case 5:
|
|
|
- startActivity(new Intent(BusinessDetailInfoActivity.this, BusinessSelectCustomerActivity.class)
|
|
|
|
|
- .putExtra("code", bt_code));
|
|
|
|
|
|
|
+ startActivity(new Intent(BusinessDetailInfoActivity.this,
|
|
|
|
|
+ BusinessSelectCustomerActivity.class)
|
|
|
|
|
+ .putExtra("code", bt_code)
|
|
|
|
|
+//
|
|
|
|
|
+ );
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -403,9 +407,8 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
bt_doman = root.getString("bc_doman");
|
|
bt_doman = root.getString("bc_doman");
|
|
|
bt_code = root.getString("bc_code");
|
|
bt_code = root.getString("bc_code");
|
|
|
bt_process = root.getString("bc_currentprocess");
|
|
bt_process = root.getString("bc_currentprocess");
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
loadJieDuan();
|
|
loadJieDuan();
|
|
|
loadStagePoints();
|
|
loadStagePoints();
|
|
@@ -413,29 +416,29 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
case BUSINESS_QIANG:
|
|
case BUSINESS_QIANG:
|
|
|
Log.i(TAG, "handleMessage:" + msg.getData().getString("result"));
|
|
Log.i(TAG, "handleMessage:" + msg.getData().getString("result"));
|
|
|
progressDialog.dismiss();
|
|
progressDialog.dismiss();
|
|
|
- Crouton.makeText(activity,45,"成功抢得此商机,\n" +
|
|
|
|
|
|
|
+ Crouton.makeText(activity, 45, "成功抢得此商机,\n" +
|
|
|
"请到商机跟进中查看商机!\n",
|
|
"请到商机跟进中查看商机!\n",
|
|
|
- getResources().getColor(R.color.light_green),
|
|
|
|
|
|
|
+ Style.holoGreenLight,
|
|
|
5000).show();
|
|
5000).show();
|
|
|
- new Handler().postDelayed(new Runnable() {
|
|
|
|
|
- @Override
|
|
|
|
|
- public void run() {
|
|
|
|
|
- finish();
|
|
|
|
|
- }
|
|
|
|
|
- },5000);
|
|
|
|
|
|
|
+ new Handler().postDelayed(new Runnable() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void run() {
|
|
|
|
|
+ finish();
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 5000);
|
|
|
// startActivity(new Intent(ct, BusinessDetailActivty.class).putExtra("bt_type",1));
|
|
// startActivity(new Intent(ct, BusinessDetailActivty.class).putExtra("bt_type",1));
|
|
|
break;
|
|
break;
|
|
|
case BUSINESS_FENPEI:
|
|
case BUSINESS_FENPEI:
|
|
|
progressDialog.dismiss();
|
|
progressDialog.dismiss();
|
|
|
- ToastMessage("分配商机成功!");
|
|
|
|
|
|
|
+ Crouton.makeText(BusinessDetailInfoActivity.this, "分配商机成功!", Style.holoGreenLight ,3000).show();
|
|
|
crm_ll_followup.setVisibility(View.GONE);
|
|
crm_ll_followup.setVisibility(View.GONE);
|
|
|
crm_ll_qiang.setVisibility(View.GONE);
|
|
crm_ll_qiang.setVisibility(View.GONE);
|
|
|
crm_ll_manage.setVisibility(View.GONE);
|
|
crm_ll_manage.setVisibility(View.GONE);
|
|
|
- // finish();
|
|
|
|
|
|
|
+ // finish();
|
|
|
// startActivity(new Intent(ct, BusinessDetailActivty.class).putExtra("bt_type",2));
|
|
// startActivity(new Intent(ct, BusinessDetailActivty.class).putExtra("bt_type",2));
|
|
|
break;
|
|
break;
|
|
|
case BUSINESS_RELEASE:
|
|
case BUSINESS_RELEASE:
|
|
|
- ToastMessage("商机释放成功!");
|
|
|
|
|
|
|
+ Crouton.makeText(BusinessDetailInfoActivity.this, "商机释放成功!", Style.holoGreenLight, 3000).show();
|
|
|
progressDialog.dismiss();
|
|
progressDialog.dismiss();
|
|
|
popupWindow.dismiss();
|
|
popupWindow.dismiss();
|
|
|
jumpToStateActivity();
|
|
jumpToStateActivity();
|
|
@@ -449,29 +452,38 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
} else if ("1".equals(isok)) {
|
|
} else if ("1".equals(isok)) {
|
|
|
Log.i("qiang", isok);
|
|
Log.i("qiang", isok);
|
|
|
progressDialog.dismiss();
|
|
progressDialog.dismiss();
|
|
|
- Crouton.makeText(BusinessDetailInfoActivity.this, "您已超出最大获取商机数!", 0xffff4444, 2000).show();
|
|
|
|
|
|
|
+ Crouton.makeText(BusinessDetailInfoActivity.this, "您已超出最大获取商机数!", Style.holoRedLight, 2000).show();
|
|
|
}
|
|
}
|
|
|
case 5:
|
|
case 5:
|
|
|
progressDialog.dismiss();
|
|
progressDialog.dismiss();
|
|
|
- result = JSON.parseObject(msg.getData().getString("result"));
|
|
|
|
|
- JSONArray items=result.getJSONArray("result");
|
|
|
|
|
- if (items!=null){
|
|
|
|
|
- if (items.size()>0){
|
|
|
|
|
- Crouton.makeText(BusinessDetailInfoActivity.this, "不能重复添加到日程!", 0xffff4444, 2000).show();
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ result = JSON.parseObject(msg.getData().getString("result"));
|
|
|
|
|
+ JSONArray items = result.getJSONArray("result");
|
|
|
|
|
+ if (items != null) {
|
|
|
|
|
+ if (items.size() > 0) {
|
|
|
|
|
+ Crouton.makeText(BusinessDetailInfoActivity.this, "不能重复添加到日程!", Style.holoRedLight, 2000).show();
|
|
|
|
|
+ } else {
|
|
|
Intent intent = new Intent(ct, TaskAddActivity.class);
|
|
Intent intent = new Intent(ct, TaskAddActivity.class);
|
|
|
intent.putExtra("type", 1);
|
|
intent.putExtra("type", 1);
|
|
|
- intent.putExtra("from","BusinessDetailInfo");
|
|
|
|
|
|
|
+ intent.putExtra("from", "BusinessDetailInfo");
|
|
|
intent.putExtra("data", bt_code);
|
|
intent.putExtra("data", bt_code);
|
|
|
|
|
+ intent.putExtra("bc_doman", bt_doman);
|
|
|
|
|
+ intent.putExtra("bc_custname", bc_description.getText().toString());
|
|
|
startActivityForResult(intent, 0x11);
|
|
startActivityForResult(intent, 0x11);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case Constants.APP_SOCKETIMEOUTEXCEPTION:
|
|
case Constants.APP_SOCKETIMEOUTEXCEPTION:
|
|
|
- progressDialog.dismiss();
|
|
|
|
|
- Log.i(TAG, "handleMessage:" + msg.getData().getString("result"));
|
|
|
|
|
- Crouton.makeText(BusinessDetailInfoActivity.this, msg.getData().getString("result"),
|
|
|
|
|
- 0xffff4444, 2000).show();
|
|
|
|
|
|
|
+ Crouton.cancelAllCroutons();
|
|
|
|
|
+ final String m= msg.getData().getString("result");
|
|
|
|
|
+ LogUtil.d(TAG, "handleMessage:" + msg.getData().getString("result"));
|
|
|
|
|
+ mHandler.postDelayed(new Runnable() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void run() {
|
|
|
|
|
+ ViewUtil.ToastMessage(mContext, m,
|
|
|
|
|
+ Style.holoRedLight,
|
|
|
|
|
+ 3000);
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 1000);
|
|
|
break;
|
|
break;
|
|
|
case LOAD_JIEDUAN:
|
|
case LOAD_JIEDUAN:
|
|
|
progressDialog.dismiss();
|
|
progressDialog.dismiss();
|
|
@@ -479,25 +491,25 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
String json = msg.getData().getString("result");
|
|
String json = msg.getData().getString("result");
|
|
|
try {
|
|
try {
|
|
|
JSONArray array = JSON.parseObject(json).getJSONArray("stages");
|
|
JSONArray array = JSON.parseObject(json).getJSONArray("stages");
|
|
|
- labels=new String[array.size()];
|
|
|
|
|
|
|
+ labels = new String[array.size()];
|
|
|
if (!array.isEmpty()) {
|
|
if (!array.isEmpty()) {
|
|
|
for (int i = 0; i < array.size(); i++) {
|
|
for (int i = 0; i < array.size(); i++) {
|
|
|
- // lists.add(array.getJSONObject(i).getString("BS_NAME"));
|
|
|
|
|
- labels[i]=array.getJSONObject(i).getString("BS_NAME");
|
|
|
|
|
|
|
+ // lists.add(array.getJSONObject(i).getString("BS_NAME"));
|
|
|
|
|
+ labels[i] = array.getJSONObject(i).getString("BS_NAME");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (labels!=null){
|
|
|
|
|
- int position=0;
|
|
|
|
|
- for (int i=0;i<labels.length;i++){
|
|
|
|
|
- if (labels[i].equals(bc_currentprocess.getText().toString())){
|
|
|
|
|
- position=i;
|
|
|
|
|
|
|
+ if (labels != null) {
|
|
|
|
|
+ int position = 0;
|
|
|
|
|
+ for (int i = 0; i < labels.length; i++) {
|
|
|
|
|
+ if (labels[i].equals(bc_currentprocess.getText().toString())) {
|
|
|
|
|
+ position = i;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
LogUtil.d(JSON.toJSONString(labels));
|
|
LogUtil.d(JSON.toJSONString(labels));
|
|
|
LogUtil.d(JSON.toJSONString(position));
|
|
LogUtil.d(JSON.toJSONString(position));
|
|
|
LogUtil.d(bc_currentprocess.getText().toString());
|
|
LogUtil.d(bc_currentprocess.getText().toString());
|
|
|
- mStepsView.setCompletedPosition(position%labels.length)
|
|
|
|
|
|
|
+ mStepsView.setCompletedPosition(position % labels.length)
|
|
|
.setLabels(labels)
|
|
.setLabels(labels)
|
|
|
.setBarColorIndicator(
|
|
.setBarColorIndicator(
|
|
|
ct.getResources().getColor(R.color.light_gray))
|
|
ct.getResources().getColor(R.color.light_gray))
|
|
@@ -507,22 +519,22 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
}
|
|
}
|
|
|
} catch (Resources.NotFoundException e) {
|
|
} catch (Resources.NotFoundException e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
- ToastMessage("扔出异常!");
|
|
|
|
|
|
|
+ ToastMessage("扔出异常!");
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case LOAD_STAGEPOINT:
|
|
case LOAD_STAGEPOINT:
|
|
|
- progressDialog.dismiss();
|
|
|
|
|
- Log.i(TAG, "handleMessage:" + msg.getData().getString("result"));
|
|
|
|
|
- json = msg.getData().getString("result");
|
|
|
|
|
- LogUtil.d(JSON.toJSONString(json));
|
|
|
|
|
|
|
+ progressDialog.dismiss();
|
|
|
|
|
+ Log.i(TAG, "handleMessage:" + msg.getData().getString("result"));
|
|
|
|
|
+ json = msg.getData().getString("result");
|
|
|
|
|
+ LogUtil.d(JSON.toJSONString(json));
|
|
|
try {
|
|
try {
|
|
|
- JSONArray data=JSON.parseObject(json).getJSONArray("data");
|
|
|
|
|
- int size=data.size();
|
|
|
|
|
- List<SimpleData> simpleDatas=new ArrayList<>();
|
|
|
|
|
- JSONArray value=data.getJSONObject(0).getJSONArray("value");
|
|
|
|
|
- for (int j=0;j<value.size();j++){
|
|
|
|
|
- for(int i=0;i<data.size();i++){
|
|
|
|
|
- SimpleData simpleData=new SimpleData();
|
|
|
|
|
|
|
+ JSONArray data = JSON.parseObject(json).getJSONArray("data");
|
|
|
|
|
+ int size = data.size();
|
|
|
|
|
+ List<SimpleData> simpleDatas = new ArrayList<>();
|
|
|
|
|
+ JSONArray value = data.getJSONObject(0).getJSONArray("value");
|
|
|
|
|
+ for (int j = 0; j < value.size(); j++) {
|
|
|
|
|
+ for (int i = 0; i < data.size(); i++) {
|
|
|
|
|
+ SimpleData simpleData = new SimpleData();
|
|
|
simpleData.setLeft(data.getJSONObject(i).getString("caption"));
|
|
simpleData.setLeft(data.getJSONObject(i).getString("caption"));
|
|
|
simpleData.setRight(data.getJSONObject(i).getJSONArray("value").get(j).toString());
|
|
simpleData.setRight(data.getJSONObject(i).getJSONArray("value").get(j).toString());
|
|
|
simpleData.setGroupId(j);
|
|
simpleData.setGroupId(j);
|
|
@@ -530,7 +542,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- mAapter=new StickyListAdapter(mContext,simpleDatas);
|
|
|
|
|
|
|
+ mAapter = new StickyListAdapter(mContext, simpleDatas);
|
|
|
mList.setAdapter(mAapter);
|
|
mList.setAdapter(mAapter);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -570,7 +582,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
if (StringUtils.isEmpty(emname)) {
|
|
if (StringUtils.isEmpty(emname)) {
|
|
|
emname = MyApplication.getInstance().mLoginUser.getNickName().trim();
|
|
emname = MyApplication.getInstance().mLoginUser.getNickName().trim();
|
|
|
}
|
|
}
|
|
|
- params.put("bc_doman",emname);
|
|
|
|
|
|
|
+ params.put("bc_doman", emname);
|
|
|
params.put("bc_domancode", CommonUtil.getSharedPreferences(ct, "erp_username"));
|
|
params.put("bc_domancode", CommonUtil.getSharedPreferences(ct, "erp_username"));
|
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
@@ -593,7 +605,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void isEnableClick(String bt_code,int what){
|
|
|
|
|
|
|
+ public void isEnableClick(String bt_code, int what) {
|
|
|
String url = Constants.getAppBaseUrl(ct) + "mobile/crm/getSchedule.action";
|
|
String url = Constants.getAppBaseUrl(ct) + "mobile/crm/getSchedule.action";
|
|
|
progressDialog.show();
|
|
progressDialog.show();
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
@@ -607,7 +619,7 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, what, null, null, "post");
|
|
ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, what, null, null, "post");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
switch (requestCode) {
|
|
switch (requestCode) {
|
|
@@ -620,13 +632,13 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
sendHttpBusinessFenpei(BUSINESS_FENPEI, bt_code, bt_doman, en_code);
|
|
sendHttpBusinessFenpei(BUSINESS_FENPEI, bt_code, bt_doman, en_code);
|
|
|
break;
|
|
break;
|
|
|
case BUSINESS_FAILURE_REQUEST:
|
|
case BUSINESS_FAILURE_REQUEST:
|
|
|
- if (data == null){
|
|
|
|
|
|
|
+ if (data == null) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
this.finish();
|
|
this.finish();
|
|
|
break;
|
|
break;
|
|
|
case BUSINESS_FOLLOW_REQUEST:
|
|
case BUSINESS_FOLLOW_REQUEST:
|
|
|
- if (data == null){
|
|
|
|
|
|
|
+ if (data == null) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
this.finish();
|
|
this.finish();
|
|
@@ -652,8 +664,6 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* @desc:加载阶段
|
|
* @desc:加载阶段
|
|
|
* @author:Arison on 2016/7/20
|
|
* @author:Arison on 2016/7/20
|
|
@@ -667,16 +677,16 @@ public class BusinessDetailInfoActivity extends BaseActivity implements View.OnC
|
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, LOAD_JIEDUAN, null, null, "post");
|
|
ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, LOAD_JIEDUAN, null, null, "post");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- public void loadStagePoints(){
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public void loadStagePoints() {
|
|
|
progressDialog.show();
|
|
progressDialog.show();
|
|
|
String url = Constants.getAppBaseUrl(ct) + "mobile/crm/getStagePoints.action";
|
|
String url = Constants.getAppBaseUrl(ct) + "mobile/crm/getStagePoints.action";
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("bccode", "2016120035");
|
|
|
|
|
- params.put("currentStep", "testpoints");
|
|
|
|
|
- params.put("master", CommonUtil.getSharedPreferences(mContext,"erp_master"));
|
|
|
|
|
-
|
|
|
|
|
|
|
+ params.put("bccode", bc_code.getText().toString());
|
|
|
|
|
+ params.put("currentStep", bc_currentprocess.getText().toString());
|
|
|
|
|
+ params.put("master", CommonUtil.getSharedPreferences(mContext, "erp_master"));
|
|
|
|
|
+
|
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, LOAD_STAGEPOINT, null, null, "post");
|
|
ViewUtil.httpSendRequest(ct, url, params, mHandler, headers, LOAD_STAGEPOINT, null, null, "post");
|