xuxiuxi
2017-05-05 0fb71a3ade434e50dce77d31c42059cf5f973af9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package cn.com.basic.face.discern.common;
 
public class CommonVariables {
 
    public static class ImageType {
        public static final int FACE1 = 101; //正面照片1(存放到EmployeeFace/VisitFace表)
        public static final int FACE2 = 102; //正面照片2(存放到EmployeeFace/VisitFace表)
        public static final int FACE_L_SIDE = 103; //(主体观察,<=45度)左侧脸照片(存放到EmployeeFace/VisitFace表)
        public static final int FACE_R_SIDE = 104; //(主体观察,<=45度)右侧脸照片(存放到EmployeeFace/VisitFace表)
        public static final int FACE_T_SIDE = 105; //(主体观察,<=45度)顶侧脸照片(存放到EmployeeFace/VisitFace表)
        public static final int FACE_B_SIDE = 106; //(主体观察,<=45度)底侧脸照片(存放到EmployeeFace/VisitFace表)
        public static final int FACE_UPLOADED = 107; //上传照片(存放到EmployeeFace/VisitFace表)
        public static final int ICON = 108; //    图标(存放到Image表)
        public static final int IDENTIFICATION_CARD = 109; //身份证照片(存放到Image表)
        public static final int BUSINESS_CARD = 110; //名片照片(存放到Image表)
        public static final int OTHER_CARD = 111; //其他证件(存放到Image表)
    }
 
    public static class Type {
        public static final int NORMAL_VISITOR = 201; //普通访客
        public static final int BLACK_LIST = 202; //黑名单
        public static final int TEACHER = 203; //教师
        public static final int STUDENT = 204; //学生
        public static final int LEADER = 205; //领导干部
    }
 
    public static class StatusID {
        public static final int NO_REGISTER = 301; //未注册
        public static final int REGISTERED = 302; //已注册(访客)
    }
 
    public static class VisitType {
        public static final int VISITOR_ENTERED = 303; //来访登记(访客)
        public static final int VISITOR_EXITED = 304; //签离(访客)
    }
 
    public static class AttendanceType {
        public static final String CHECK_IN = "305"; //签到(员工)
        public static final String CHECK_OUT = "306"; //签退(员工)
    }
 
    public static class EnterOrExit {
        public static final int ENTER = 401; //进
        public static final int EXIT = 402; //出
    }
 
    public class DictionaryType {
        public static final String GENDER = "gender";
        public static final String ID_TYPE = "id_type";
        public static final String COUNTRY = "country";
        public static final String VISIT_REASON = "visit_reason";
        public static final String VISIT_TYPE = "visit_type";
    }
 
    public static class Page {
        public static final String PAGE_SIZE = "pageSize";
        public static final String PAGE_NUM = "pageNum";
        public static final String DEFAULT_PAGE_SIZE = "7";
        public static final int hasMorePages = 1;
        public static final int noMorePage = 2;
        public static final int reachBottom = 3;
    }
 
    public static class Surveillance {
        public static final int VISIT_REGISTER_ITEM_TYPE = 1;
        public static final int VISIT_CHECK_IN_ITEM_TYPE = 2;
        public static final int VISIT_BLANK_ITEM_TYPE = 3;
        public static final int VISIT_ATTENDANCE_ITEM_TYPE = 4;
 
        public static final int REGISTER_CELL_VIEW_INDEX = 0;
        public static final int CHECK_IN_CELL_VIEW_INDEX = 1;
        public static final int VISIT_BLANK_CELL_VIEW_INDEX = 2;
    }
 
    public static class Camera {
        public static final String IN = "1";
        public static final String OUT = "2";
    }
 
    public static class RecognizeResult {
        public static final int RET = 0;
        public static final int FIRST_ELEMENT_NOT_FOUND = 0;
        public static final int FIRST_ELEMENT_POSITIVE = 1;//company id parameter.
        public static final int FIRST_ELEMENT_NEGATIVE = -1;//访客数据库找到了。
    }
 
    public static class SelectPhotoType {
        public static final int SELECT_PHOTO = 1;
        public static final int UPLOAD_PHOTO = 2;
    }
 
    public static class DeviceSharedPreferences {
        public static final String LAN = "device_lan";
        public static final String WIFI = "device_wifi";
        public static final String SCHOOL = "device_school";
        public static final String CAMERA1 = "device_camera1";
        public static final String CAMERA2 = "device_camera2";
    }
 
}