private void putParams(Item item) { if (!isNull(UserInfo.getInstance().getUserId())) { ParamsMap.put("userId", UserInfo.getInstance().getUserId()); ParamsMap.put("loginId", UserInfo.getInstance().getUserId()); } if (TextUtils.isEmpty(province)) ParamsMap.put("province", item.getCity()); if (TextUtils.isEmpty(city)) ParamsMap.put("city", item.getProvince()); ParamsMap.put("userName", ((TextView) findViewById(R.id.name_text)).getText().toString()); if (!isNull(((TextView) findViewById(R.id.zsbh_Text)).getText().toString())) ParamsMap.put( "certificationNum", ((TextView) findViewById(R.id.zsbh_Text)).getText().toString()); if (!isNull(((TextView) findViewById(R.id.jgmc_Text)).getText().toString())) ParamsMap.put("company", ((TextView) findViewById(R.id.jgmc_Text)).getText().toString()); // ParamsMap.put("ctime", String.valueOf(item.getCtime())); // ParamsMap.put("experienceScope", "2"); // ParamsMap.put("id", String.valueOf(item.getId())); if (!isNull(((TextView) findViewById(R.id.sfz_Text)).getText().toString())) ParamsMap.put("identityId", ((TextView) findViewById(R.id.sfz_Text)).getText().toString()); if (item != null && !isNull(item.getIntro())) ParamsMap.put("intro", item.getIntro()); if (item != null && !isNull(item.getInvestDirection())) ParamsMap.put("investDirection", item.getInvestDirection()); if (item != null && !isNull(item.getLabel())) ParamsMap.put("label", item.getLabel()); if (item != null && !isNull(item.getMobile())) ParamsMap.put("mobile", item.getMobile()); ParamsMap.put("qq", ((TextView) findViewById(R.id.qq_Text)).getText().toString()); if (((RadioButton) findViewById(R.id.manRadio)).isChecked()) ParamsMap.put("sex", "1"); else ParamsMap.put("sex", "2"); if (((RadioButton) findViewById(R.id.tzgwRadio)).isChecked()) ParamsMap.put("position", positionTG); else ParamsMap.put("position", positionFXS); ParamsMap.put("experienceScope", String.valueOf(workLimitIndex)); ParamsMap.put("passportName", UserInfo.getInstance().getUserName()); ParamsMap.put("writeNum", "1"); if (item != null && !TextUtils.isEmpty(item.getHeadImage())) ParamsMap.put("headImage", item.getHeadImage()); if (item != null && !TextUtils.isEmpty(item.getIdentityImage())) ParamsMap.put("identityImage", item.getIdentityImage()); }
private void fillData(UserInfoForApply data) { item = data.getData(); TextView textView = (TextView) findViewById(R.id.name_text); if (reaccediation > 0 || TextUtils.isEmpty(item.getUserName())) { textView.setEnabled(true); } else { textView.setEnabled(false); } textView.setText(item.getUserName()); // RadioGroup radioGroup = (RadioGroup)findViewById(R.id.radioGroup); if (item.getSex() == 2) ((RadioButton) findViewById(R.id.womanRadio)).setChecked(true); else ((RadioButton) findViewById(R.id.manRadio)).setChecked(true); textView = (TextView) findViewById(R.id.sfz_Text); if (reaccediation > 0 || TextUtils.isEmpty(item.getIdentityId())) { textView.setEnabled(true); } else { textView.setEnabled(false); } textView.setText(item.getIdentityId()); textView = (TextView) findViewById(R.id.jgmc_Text); textView.setText(item.getCompany()); textView = (TextView) findViewById(R.id.address_Text); textView.setText(item.getProvince() + " " + item.getCity()); textView = (TextView) findViewById(R.id.qq_Text); textView.setText(item.getQq()); if (item.getPosition() == positionTG) ((RadioButton) findViewById(R.id.tzgwRadio)).setChecked(true); else ((RadioButton) findViewById(R.id.fxsRadio)).setChecked(true); textView = (TextView) findViewById(R.id.zsbh_Text); textView.setText(item.getCertificationNum()); textView = (TextView) findViewById(R.id.yearid); workLimitIndex = item.getExperienceScope(); if (workLimitIndex == 0) textView.setText(""); else if (workLimitIndex == 1) textView.setText("3年以下"); else if (workLimitIndex == 2) textView.setText("3-5年"); else if (workLimitIndex == 3) textView.setText("5-10年"); else if (workLimitIndex == 4) textView.setText("10年以上"); }