|
|
@@ -19,18 +19,22 @@ import android.widget.Spinner;
|
|
|
import android.widget.TextView;
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
+import com.kfzs.duanduan.react.ReactUtil;
|
|
|
import com.kfzs.libs.DaggerFragment;
|
|
|
import com.kfzs.libs.IPresenter;
|
|
|
import com.kfzs.libs.IView;
|
|
|
import com.kfzs.libs.widget.CompleteCommitEditText;
|
|
|
import com.kfzs.libs.widget.TimeEditText;
|
|
|
import com.kfzs.libs.widget.alpha.AlphaButton;
|
|
|
+import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import javax.inject.Inject;
|
|
|
@@ -149,6 +153,7 @@ public class ApplyForCreditCardDetailsFragment extends DaggerFragment implements
|
|
|
|
|
|
@Override
|
|
|
public void setupViews(@Nullable Bundle savedInstanceState) {
|
|
|
+ test();
|
|
|
|
|
|
adapterImmediateRelatives = ArrayAdapter.createFromResource(activity, R.array.credit_card_relationship_immediate_relatives_type, R.layout.spinner_text_item);
|
|
|
spImmediateRelationship.setAdapter(adapterImmediateRelatives);
|
|
|
@@ -181,9 +186,40 @@ public class ApplyForCreditCardDetailsFragment extends DaggerFragment implements
|
|
|
CreditCardInfosManager.getInstance().p_marray = value;
|
|
|
}
|
|
|
});
|
|
|
+// -1:请选择教育程度 6:博士及以上 5:硕士 4:本科 3:大专 2:高中/中专 1:初中及以下
|
|
|
+ List<String> stringList = new ArrayList<>();
|
|
|
+ stringList.add("请选择教育程度");
|
|
|
+ stringList.add("博士及以上");
|
|
|
+ stringList.add("硕士");
|
|
|
+ stringList.add("本科");
|
|
|
+ stringList.add("大专");
|
|
|
+ stringList.add("高中/中专");
|
|
|
+ stringList.add("初中及以下");
|
|
|
+ final List<String> idList = new ArrayList<>();
|
|
|
+ idList.add("-1");
|
|
|
+ idList.add("6");
|
|
|
+ idList.add("5");
|
|
|
+ idList.add("4");
|
|
|
+ idList.add("3");
|
|
|
+ idList.add("2");
|
|
|
+ idList.add("1");
|
|
|
+ ArrayAdapter arrayAdapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1, stringList);
|
|
|
+ etEducation.setAdapter(arrayAdapter);
|
|
|
+ etEducation.setFocusable(false);
|
|
|
+ etEducation.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View view) {
|
|
|
+ etEducation.showDropDown();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ etEducation.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
+ presenter.commitFormData("p_edu",idList.get(position),CreditCardInfosManager.getInstance().card_id);
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
-
|
|
|
- setOnCompleteEdit(etEducation,"p_edu");
|
|
|
+// setOnCompleteEdit(etEducation,"p_edu");
|
|
|
setOnCompleteEdit(etCompanyName,"w_name");
|
|
|
setOnCompleteEdit(etCompanyCity,"w_city");
|
|
|
setOnCompleteEdit(etCompanyAddress,"w_address");
|
|
|
@@ -276,29 +312,33 @@ public class ApplyForCreditCardDetailsFragment extends DaggerFragment implements
|
|
|
|
|
|
|
|
|
private void test(){
|
|
|
+ if(BuildConfig.DEBUG){
|
|
|
+ etCompanyName.setText("成都云端助手有限公司");
|
|
|
+ etCompanyAddress.setText("成都市高新区天府二街蜀都中心");
|
|
|
+ }
|
|
|
|
|
|
- etCity.setText("成都");
|
|
|
- etAddress.setText("成都市高新区天府二街软件园");
|
|
|
- etEmail.setText("506578835@qq.com");
|
|
|
- rgMarray.check(R.id.rb_marray_n);
|
|
|
- etEducation.setText("大学");
|
|
|
- etCompanyCity.setText("成都");
|
|
|
- etCompanyName.setText("成都云端助手有限公司");
|
|
|
- etCompanyAddress.setText("成都市高新区天府二街蜀都中心");
|
|
|
- etCompanyPhoneQ.setText("028");
|
|
|
- etCompanyPhoneNo.setText("84074658");
|
|
|
- etWorkYear.setText("7");
|
|
|
- etIRName.setText("郭伟伟");
|
|
|
- etIRMobile.setText("18608004678");
|
|
|
- etOtherName.setText("黄明明");
|
|
|
- etOtherMobile.setText("15946587456");
|
|
|
- cbExpire.setChecked(true);
|
|
|
-// tvIdCardExpire.setText("2087/12/11");
|
|
|
-// etCarNo.setText("川A4554DH");
|
|
|
-// etHomeQ.setText("028");
|
|
|
-// etHomePhone.setText("84074663");
|
|
|
-// etQQ.setText("506578835");
|
|
|
- cbAgreement.setChecked(true);
|
|
|
+// etCity.setText("成都");
|
|
|
+// etAddress.setText("成都市高新区天府二街软件园");
|
|
|
+// etEmail.setText("506578835@qq.com");
|
|
|
+// rgMarray.check(R.id.rb_marray_n);
|
|
|
+// etEducation.setText("大学");
|
|
|
+// etCompanyCity.setText("成都");
|
|
|
+// etCompanyName.setText("成都云端助手有限公司");
|
|
|
+// etCompanyAddress.setText("成都市高新区天府二街蜀都中心");
|
|
|
+// etCompanyPhoneQ.setText("028");
|
|
|
+// etCompanyPhoneNo.setText("84074658");
|
|
|
+// etWorkYear.setText("7");
|
|
|
+// etIRName.setText("郭伟伟");
|
|
|
+// etIRMobile.setText("18608004678");
|
|
|
+// etOtherName.setText("黄明明");
|
|
|
+// etOtherMobile.setText("15946587456");
|
|
|
+// cbExpire.setChecked(true);
|
|
|
+//// tvIdCardExpire.setText("2087/12/11");
|
|
|
+//// etCarNo.setText("川A4554DH");
|
|
|
+//// etHomeQ.setText("028");
|
|
|
+//// etHomePhone.setText("84074663");
|
|
|
+//// etQQ.setText("506578835");
|
|
|
+// cbAgreement.setChecked(true);
|
|
|
|
|
|
}
|
|
|
|