xuxiuxi
2017-07-28 e914b1710eced9226539d86b72c92a02f8939ccb
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java
@@ -144,6 +144,11 @@
    public void fragment_attender_register_save_click(View v) {
        RequestParams params = new RequestParams();
        if (surveillanceQueryItem_selectPhoto == null) {
            Toast.makeText(MainActivity.getInstance(), "请选择照片", Toast.LENGTH_SHORT).show();
            return;
        }
        String name = fragment_attender_register_name.getValue();
        if (name.trim().length() <= 0) {
            Toast.makeText(MainActivity.getInstance(), "姓名不能为空", Toast.LENGTH_SHORT).show();
@@ -156,6 +161,7 @@
            fragment_attender_register_gender.callOnClick();
            return;
        }
        String post = fragment_attender_register_post.getValue();
        if (post.trim().length() <= 0) {
            Toast.makeText(MainActivity.getInstance(), "职务类型不能为空", Toast.LENGTH_SHORT).show();
@@ -241,7 +247,7 @@
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            offlineAttenderRegisterItem.setCreateTime(sdf.format(new Date()));
            String rawSurveillancePhotoPath = UUID.randomUUID().toString()+".bmp";
            String rawSurveillancePhotoPath = UUID.randomUUID().toString()+"";
            byte[] rawSurveillancePhotoBytes = new byte[]{};
            if (surveillanceQueryItem_selectPhoto != null) {
@@ -259,7 +265,7 @@
            FileUtil.writeToFile(rawSurveillancePhotoPath, rawSurveillancePhotoBytes);
            offlineAttenderRegisterItem.setRawSurveillancePhotoPath(rawSurveillancePhotoPath);
            String surveillancePhotoPath = UUID.randomUUID().toString()+".bmp";
            String surveillancePhotoPath = UUID.randomUUID().toString()+"";
            byte[] surveillancePhotoBytes = new byte[]{};
            if (fragment_attender_register_surveillance_photo_img != null) {
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -269,7 +275,7 @@
            FileUtil.writeToFile(surveillancePhotoPath, surveillancePhotoBytes);
            offlineAttenderRegisterItem.setSurveillancePhoto(surveillancePhotoPath);
            String uploadCustomPhotoPath = UUID.randomUUID().toString()+".bmp";
            String uploadCustomPhotoPath = UUID.randomUUID().toString()+"";
            byte[] uploadCustomPhotoBytes = new byte[]{};
            if (fragment_attender_register_upload_custom_photo_img != null) {
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -279,7 +285,7 @@
            FileUtil.writeToFile(uploadCustomPhotoPath, uploadCustomPhotoBytes);
            offlineAttenderRegisterItem.setUploadCustomPhoto(uploadCustomPhotoPath);
            String idCardPhotoPath = UUID.randomUUID().toString()+".bmp";
            String idCardPhotoPath = UUID.randomUUID().toString()+"";
            byte[] idCardPhotoBytes = new byte[]{};
            if (fragment_attender_register_id_card_photo_img != null) {
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();