git-svn-id: http://192.168.1.226/svn/proxy@543 454eff88-639b-444f-9e54-f578c98de674
| | |
| | | private String postName;
|
| | | // 移动电话
|
| | | private String mobilePhone;
|
| | | // 危险人员警告消息
|
| | | private String warning;
|
| | |
|
| | | /**
|
| | | * Get 人员主键
|
| | |
| | | public String getRegisterId() {
|
| | | return registerId;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 人员主键
|
| | | */
|
| | |
| | | public String getUsername() {
|
| | | return username;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 人员名字
|
| | | */
|
| | |
| | | public String getSurveillancePhoto() {
|
| | | return surveillancePhoto;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 监控图片
|
| | | */
|
| | |
| | | public String getCompanyName() {
|
| | | return companyName;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 公司名称
|
| | | */
|
| | |
| | | public String getTel() {
|
| | | return tel;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 座机电话
|
| | | */
|
| | |
| | | public String getIdentifyNum() {
|
| | | return identifyNum;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 证件编号
|
| | | */
|
| | |
| | | public String getDeptName() {
|
| | | return deptName;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 部门名称
|
| | | */
|
| | |
| | | public String getCompanyId() {
|
| | | return companyId;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 公司主键
|
| | | */
|
| | |
| | | public String getPostName() {
|
| | | return postName;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 职位名称
|
| | | */
|
| | |
| | | public String getMobilePhone() {
|
| | | return mobilePhone;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * Set 移动电话
|
| | | */
|
| | |
| | | this.mobilePhone = mobilePhone;
|
| | | }
|
| | |
|
| | | public String getWarning() {
|
| | | return warning;
|
| | | }
|
| | |
|
| | | public void setWarning(String warning) {
|
| | | this.warning = warning;
|
| | | }
|
| | |
|
| | | public String toString() {
|
| | | return |
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",监控图片 =" + surveillancePhoto + |
| | | ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum + |
| | | ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName + |
| | | ",移动电话 =" + mobilePhone;
|
| | | return
|
| | | ",人员主键 =" + registerId + ",人员名字 =" + username + ",监控图片 =" + surveillancePhoto +
|
| | | ",公司名称 =" + companyName + ",座机电话 =" + tel + ",证件编号 =" + identifyNum +
|
| | | ",部门名称 =" + deptName + ",公司主键 =" + companyId + ",职位名称 =" + postName +
|
| | | ",移动电话 =" + mobilePhone;
|
| | | }
|
| | | }
|
| | |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | params.addBodyParameter(Visit.FieldNames.enterTime, sdf.format(new Date()));
|
| | | params.addBodyParameter(Visit.FieldNames.currentStateId, ""+CommonVariables.VisitType.VISITOR_ENTERED);
|
| | | params.addBodyParameter(Visit.FieldNames.warning, visitor.getWarning());
|
| | |
|
| | | params.addBodyParameter(VisitDetail.FieldNames.stateId, ""+CommonVariables.VisitType.VISITOR_ENTERED);
|
| | | params.addBodyParameter(VisitDetail.FieldNames.createTime, sdf.format(new Date()));
|
| | | params.addBodyParameter(VisitDetail.FieldNames.deviceId, BaseApplication.getInstance().getDevice().getDeviceId());
|
| | |
|
| | |
|
| | | CheckInMng.getInstance().add(params, visitReasonId);
|
| | | }
|
| | |
|
| | |
| | | byte[] imageBytes = byteArrayOutputStream.toByteArray();
|
| | | String encodedImage = Base64.encodeToString(imageBytes, Base64.DEFAULT);
|
| | | item.setBase64Image(encodedImage);
|
| | | setSurveillanceQueryItem(item);
|
| | |
|
| | | SurveillanceMng.getInstance().addBitmap(bitmapList, null, 0, CommonVariables.Camera.IN);
|
| | |
|
| | |
| | | Bitmap bitmap = Bitmap.createBitmap(item.width,item.height, Bitmap.Config.RGB_565);
|
| | | ByteBuffer byteBuffer = ByteBuffer.wrap(item.image, offset, size);
|
| | | bitmap.copyPixelsFromBuffer(byteBuffer);
|
| | | surveillanceQueryItem.setBase64Bitmap(Base64.encodeToString(item.image, offset, size, Base64.DEFAULT));
|
| | | surveillanceQueryItem.setBase64Image(Base64.encodeToString(item.image, offset, size, Base64.DEFAULT));
|
| | | surveillanceQueryItem.setBitmap(bitmap);
|
| | | surveillanceQueryItem.setWidth(item.width+"");
|
| | | surveillanceQueryItem.setHeight(item.height+"");
|