|
|
@@ -21,6 +21,7 @@ import com.xzjmyk.pm.activity.ui.base.BaseActivity;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.net.ViewUtil;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.util.CommonUtil;
|
|
|
import com.xzjmyk.pm.activity.ui.erp.util.Constants;
|
|
|
+import com.xzjmyk.pm.activity.ui.erp.util.StringUtils;
|
|
|
import com.xzjmyk.pm.activity.view.steps.StepsView;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
@@ -117,10 +118,10 @@ public class CustomerDetailActivity extends BaseActivity {
|
|
|
String code = getIntent().getStringExtra("code");
|
|
|
sendHttpResquest(Constants.HTTP_SUCCESS_INIT, code);
|
|
|
// sendAdd(Constants.HTTP_SUCCESS_INIT);
|
|
|
- mStepsView.setCompletedPosition(5 % labels.length)
|
|
|
+ mStepsView.setCompletedPosition(0 % labels.length)
|
|
|
.setLabels(labels)
|
|
|
.setBarColorIndicator(
|
|
|
- ct.getResources().getColor(R.color.material_blue_grey_800))
|
|
|
+ ct.getResources().getColor(R.color.light_gray))
|
|
|
.setProgressColorIndicator(ct.getResources().getColor(R.color.orange))
|
|
|
.setLabelColorIndicator(ct.getResources().getColor(R.color.orange))
|
|
|
.drawView();
|
|
|
@@ -169,7 +170,20 @@ public class CustomerDetailActivity extends BaseActivity {
|
|
|
tv_mobile.setText(jsonArray.getString("cu_mobile"));
|
|
|
tv_position.setText(jsonArray.getString("cu_degree"));
|
|
|
tv_name.setText(jsonArray.getString("cu_name"));
|
|
|
-
|
|
|
+ String steps= jsonArray.getString("cu_nichestep");
|
|
|
+ for (int i=0;i<labels.length;i++){
|
|
|
+ if (!StringUtils.isEmpty(steps)){
|
|
|
+ if (labels[i].equals(steps)){
|
|
|
+ mStepsView.setCompletedPosition(i% labels.length)
|
|
|
+ .setLabels(labels)
|
|
|
+ .setBarColorIndicator(
|
|
|
+ ct.getResources().getColor(R.color.light_gray))
|
|
|
+ .setProgressColorIndicator(ct.getResources().getColor(R.color.orange))
|
|
|
+ .setLabelColorIndicator(ct.getResources().getColor(R.color.orange))
|
|
|
+ .drawView();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
tv_visitTimes.setText(jsonArray.getString("bfcount"));
|
|
|
tv_modifyRecord.setText(jsonArray.getString("cu_remark"));
|
|
|
tv_feilv.setText(jsonArray.getString("cu_taxrate"));
|