| | |
| | | import android.widget.EditText;
|
| | | import android.widget.LinearLayout;
|
| | | import android.widget.TextView;
|
| | | import android.widget.Toast;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.R;
|
| | | import com.bsk.zhangbo.demoforbsk.base.BaseFragment;
|
| | |
| | |
|
| | | VisitPersonType visitPersonType = new VisitPersonType();
|
| | | // visitPersonType.setRegisterCompanyId();
|
| | | visitPersonType.setVisitorTypeId(VisitorTypeMng.getInstance().getId(mViewVisitorClassTitle.getText().toString()));
|
| | | visitPersonType.setVisitorTypeId(VisitorTypeMng.getInstance().getId(mViewVisitorClassContent.getText().toString()));
|
| | | VisitorTypeMng.getInstance().add(person, visitPersonType);
|
| | |
|
| | | }
|
| | |
| | |
|
| | | @OnClick(R.id.register_birthday)
|
| | | public void selectBirthday(View view) {
|
| | | showDatePicker();
|
| | | Date date = new Date();
|
| | | BirthdayPickerDialog myDatePickerDialog=new BirthdayPickerDialog(getActivity(),android.R.style.Theme_Holo_Light_Dialog_NoActionBar,
|
| | | new BirthdayPickerDialog.OnDateSetListener(){
|
| | |
|
| | | @Override
|
| | | public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
|
| | | int month=monthOfYear+1;
|
| | | mViewBirthdyContent.setText(year+"-"+month+"-"+dayOfMonth);
|
| | | }
|
| | | },date);
|
| | | myDatePickerDialog.myShow();
|
| | | }
|
| | |
|
| | | @OnClick(R.id.register_visitor_class)
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | /**
|
| | | * 选择人物快照
|
| | | * @param view
|
| | | */
|
| | | @OnClick(R.id.register_choose_photo)
|
| | | public void selectPersonPhoto(View view) {
|
| | | Toast.makeText(getActivity(), "选择人物快照", Toast.LENGTH_SHORT).show();
|
| | | }
|
| | |
|
| | | /**
|
| | | * 点击上传图片
|
| | | * @param view
|
| | | */
|
| | | @OnClick(R.id.register_update__photo)
|
| | | public void clickUploadPhoto(View view) {
|
| | | Toast.makeText(getActivity(), "点击上传图片", Toast.LENGTH_SHORT).show();
|
| | | }
|
| | |
|
| | | /**
|
| | | * 证件快照
|
| | | * @param view
|
| | | */
|
| | | @OnClick(R.id.register_idcard_photo)
|
| | | public void identityPhoto(View view) {
|
| | | Toast.makeText(getActivity(), "证件快照", Toast.LENGTH_SHORT).show();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void onClick(View v) {}
|
| | |
|
| | | public void showDatePicker(){
|
| | | Date date = new Date();
|
| | | BirthdayPickerDialog myDatePickerDialog=new BirthdayPickerDialog(getActivity(),android.R.style.Theme_Holo_Light_Dialog_NoActionBar,
|
| | | new BirthdayPickerDialog.OnDateSetListener(){
|
| | |
|
| | | @Override
|
| | | public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
|
| | | int month=monthOfYear+1;
|
| | | mViewBirthdyContent.setText(year+"-"+month+"-"+dayOfMonth);
|
| | | }
|
| | | },date);
|
| | | myDatePickerDialog.myShow();
|
| | | }
|
| | |
|
| | | }
|