liujiandao
2024-04-16 9c14e884db911a2094d26c2a509f752a729f8e8d
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
package constvar
 
type DictType int
 
const (
    DictTypeMarket   DictType = iota //庄口
    DictTypeWorkshop                 //车间
    DictTypeColor                    //颜色
    DictTypeSpec                     //规格
)
 
type UserType int
 
const (
    UserTypeSuper   UserType = iota + 1 // 超级管理员
    UserTypePrimary                     // 主账户
    UserTypeSub                         // 子账户
)
 
type CarFlag int
 
const (
    LeftHalfCar  CarFlag = iota + 1 //左半车
    RightHalfCar                    //右半车
    AllCar                          //全车结束
)
 
type CheckItem int
 
const (
    CheckItemDeviation    CheckItem = iota + 1 //纤度偏差
    CheckItemTwiceChange                       //二次变化
    CheckItemCleanliness                       //清洁分
    CheckItemPurity                            //洁净分
    CheckItemMaxDeviation                      //最大偏差
)
 
type BadFinenessGrade string
 
const (
    BadFinenessGradeA = "badA"
    BadFinenessGradeB = "badB"
    BadFinenessGradeC = "badC"
)
 
const (
    EveryPersonCarCheckNumber = 2 //每人每车抽检份数
)
 
// WorkerStatus 人员状态
type WorkerStatus int
 
const (
    WorkerStatusWorking  WorkerStatus = iota + 1 // 在班
    WorkerStatusRest                             // 休息
    WorkerStatusHoliday                          // 请假
    WorkerStatusOvertime                         // 加班
)