xuxiuxi
2017-07-28 062e9ff8359a4eccba741d0c8c799f3ca3535d83
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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 VISITOR_TYPE = "visitor_type";
        public static final String ATTENDER_TYPE = "attender_type";
        public static final String RESOLUTION = "resolution";
        public static final String PROTOCOL = "protocol";
        public static final String CAMERA_BRAND = "camera_brand";
    }
 
    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 VISIT_ATTENDANCE_IN = 5;
        public static final int VISIT_ATTENDANCE_OUT = 6;
        public static final int VISIT_ATTENDANCE_BLANK = 7;
        public static final int OFFLINE_SURVEILLANCE_ITEM_TYPE = 8;
 
        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";
    }
 
    public static class DeviceType {
        public static final String ANDROID_DEVICE = "android_device";
        public static final String CAMERA1 = "camera1";
        public static final String CAMERA2 = "camera2";
    }
 
    public static boolean FACE_SERVER = false;
    public static boolean ID_CARD = false;
    public static boolean EMULATOR = true;
 
    public static boolean androidOffline() {
        return true;
    }
 
    public static class Register {
        public static boolean VISITOR_REGISTER_SELECTED = true;
    }
 
    public static class InternetAccess {
        public static final int INTERNET_NOT_INITIALIZE = -1;
        public static final int INTERNET_ACCESSIBLE = 1;
        public static final int INTERNET_NOT_ACCESSIBLE = 0;
    }
 
}