| | |
| | | params.addBodyParameter("idCardPhoto", FileUtil.writeToFile("idCardPhoto", new byte[]{}));
|
| | | }
|
| | | } else {
|
| | | offlineVisitorRegisterItem.setRegisterId(UUID.randomUUID().toString());
|
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | offlineVisitorRegisterItem.setDeviceCompanyId(BaseApplication.getInstance().getAndroidDevice().getCompanyId());
|
| | | offlineVisitorRegisterItem.setIsSynchron("N");
|
| | | offlineVisitorRegisterItem.setCreateTime(sdf.format(new Date()));
|
| | | offlineVisitorRegisterItem.setUsername(name);
|
| | |
| | |
|
| | | @OnClick(R.id.fragment_visitor_register_surveillance_photo)
|
| | | public void fragment_visitor_register_surveillance_photo_click(View view) {
|
| | | SurveillanceFragment.SurveillancePhotoSelectListViewAdapter.selectPhotoOrUploadPhoto = CommonVariables.SelectPhotoType.SELECT_PHOTO;
|
| | | new VisitorRegisterSelectPhotoDialog(fragment_visitor_register_linear_layout, Constant.DialogSelectType.ID_TYPE, new OkClickedListener() {
|
| | | public void onSelected(String value) {
|
| | | }
|
| | | }, selectedSurveillancePhotoId);
|
| | | VisitorRegisterSelectPhotoDialog.getInstance().show();
|
| | | }
|
| | |
|
| | | public FrameLayout get_fragment_visitor_register_linear_layout() {
|
| | | return fragment_visitor_register_linear_layout;
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_visitor_register_upload_custom_photo)
|
| | | public void fragment_visitor_register_upload_custom_photo_click(View view) {
|
| | | SurveillanceFragment.SurveillancePhotoSelectListViewAdapter.selectPhotoOrUploadPhoto = CommonVariables.SelectPhotoType.UPLOAD_PHOTO;
|
| | | new VisitorRegisterUploadPhotoDialog(fragment_visitor_register_linear_layout, Constant.DialogSelectType.ID_TYPE, new OkClickedListener() {
|
| | | public void onSelected(String value) {
|
| | | }
|
| | | }, selectedCustomPhotoId);
|
| | | VisitorRegisterUploadPhotoDialog.getInstance().show();
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_visitor_register_id_card_photo)
|