package constvar
|
|
type DictType int
|
|
const (
|
DictTypeMarket DictType = iota + 1 //庄口
|
DictTypeWorkshop //车间
|
DictTypeColor //颜色
|
DictTypeSpec //规格
|
)
|
|
type UserType int
|
|
const (
|
UserTypeSuper UserType = iota + 1 // 超级管理员
|
UserTypePrimary // 主账户
|
UserTypeSub // 子账户
|
)
|
|
type CodeStandardType int
|
|
const (
|
CodeStandardType_Workshop CodeStandardType = iota + 1 // 车间
|
CodeStandardType_Fineness // 纤度登记
|
CodeStandardType_Yield // 产量登记
|
)
|
|
type CarFlag int
|
|
const (
|
LeftHalfCar CarFlag = iota + 1 //左半车
|
RightHalfCar //右半车
|
//AllCar //全车结束
|
)
|
|
type WorkshopType int
|
|
const (
|
Workshop WorkshopType = iota + 1 // 车间信息
|
Group // 分组信息
|
)
|
|
type CheckItem int
|
|
const (
|
CheckItemDeviation CheckItem = iota + 1 //纤度偏差
|
CheckItemTwiceChange //二次变化
|
CheckItemCleanliness //清洁分
|
CheckItemPurity //洁净分
|
CheckItemMaxDeviation //最大偏差
|
)
|
|
type BadFinenessGrade string
|
|
const (
|
BadFinenessGradeA = "野纤"
|
BadFinenessGradeB = "大野"
|
BadFinenessGradeC = "特野"
|
)
|
|
const (
|
EveryPersonCarCheckNumber = 2 //每人每车抽检份数
|
)
|
|
// WorkerStatus 人员状态
|
type WorkerStatus int
|
|
const (
|
WorkerStatusWorking WorkerStatus = iota + 1 // 在班
|
WorkerStatusRest // 休息
|
WorkerStatusHoliday // 请假
|
WorkerStatusOvertime // 加班
|
)
|
|
// MiniDictType 迷你字典类型
|
type MiniDictType int
|
|
const (
|
MiniDictTypePlcBrand MiniDictType = iota + 1 // PLC品牌
|
MiniDictTypeBomVersionType // Bom版本类型
|
EarlyWarningDay //预警天数
|
InspectionWayType //质检方式类型
|
OutsourcingSupplierType //委外供应商类型
|
OutsourcingSupplierCreditGrade //信用等级
|
OutsourcingSupplierRange //供货范围
|
SalaryType //嘉联薪资类型
|
WildSilk //野纤
|
Absenteeism //缺勤
|
)
|
|
// ShiftType 班次类型
|
type ShiftType string
|
|
const (
|
ShiftTypeRegular ShiftType = "regular" // 固定班次
|
ShiftTypeCycle ShiftType = "cycle" // 循环班次
|
)
|
|
// ResourceType 订单类型
|
type ResourceType int
|
|
const (
|
ResourceTypeDevice ResourceType = iota + 1 // 设备
|
ResourceTypeWorker // 人员
|
)
|
|
type AttendanceStatus int
|
|
const (
|
Normal AttendanceStatus = iota + 1 //正常
|
Overtime //加班
|
Vacation //休假
|
Abnormal //异常
|
)
|
|
type FileTemplateCategory int
|
|
const (
|
FileTemplateCategory_Selfmade FileTemplateCategory = iota + 1 //入库-自制
|
FileTemplateCategory_Output //出库
|
FileTemplateCategory_JialianInput = 14 //嘉联入库
|
FileTemplateCategory_JialianOutput = 15 //嘉联出库
|
FileTemplateCategory_JialianAttendance = 16 //嘉联-员工考勤
|
)
|
|
const (
|
DailySilkProduction = "日产丝量"
|
WasteSilkQuantity = "野纤数量"
|
RawSilkUnitPrice = "生丝单价"
|
WasteSilkUnitPrice = "野纤单价"
|
BucketCount = "桶数(日)"
|
AttendanceDays = "出勤天数"
|
GroupAverageMonthlyWage = "同组挡车工月平均工资"
|
GroupCarHeadWage = "同组车头工工资"
|
WeekdayOvertimeHours = "工作日加班时长"
|
FullAttendanceAward = "满勤奖"
|
WeekendOvertimeHours = "休息日加班时长"
|
LeaveDays = "请假天数"
|
ApprenticeDays = "带徒天数"
|
TotalAttendanceDays = "出勤天数"
|
Seniority = "工龄"
|
)
|
|
type ShiftOvertimeType string // 加班类型
|
|
const (
|
ShiftOvertimeTypeTimeout ShiftOvertimeType = "timeout" // 超时加班
|
ShiftOvertimeTypeOvertime ShiftOvertimeType = "overtime" // 超过固定班次加班
|
)
|
|
type JobType string // 工种类型
|
|
const (
|
JobTypeWeavers JobType = "weavers" // 挡车工
|
JobTypeCarHead JobType = "car_head" // 车头工
|
JobTypeMaintenance JobType = "maintenance" // 保全工
|
JobTypeBoiled JobType = "boiled" // 煮茧工
|
JobTypeScoop JobType = "scoop" // 舀茧工
|
JobTypeTransport JobType = "transport" // 送茧工
|
JobTypeCleaner JobType = "cleaner" // 清洁工
|
JobTypeMachineCleaner JobType = "machine_cleaner" // 感知器清洗工
|
JobTypeAllPowerful JobType = "all-powerful" // 全能机动
|
JobTypeMonitor JobType = "monitor" // 班长
|
JobTypeTest JobType = "test" // 测试
|
JobTypeOther JobType = "other" // 其它
|
)
|
|
var JobTypeArr = []JobType{JobTypeWeavers, JobTypeCarHead, JobTypeMaintenance,
|
JobTypeBoiled, JobTypeScoop, JobTypeTransport, JobTypeCleaner,
|
JobTypeMachineCleaner, JobTypeAllPowerful, JobTypeMonitor}
|
var JobTypeMap = map[JobType]string{JobTypeWeavers: "挡车工", JobTypeCarHead: "车头工", JobTypeMaintenance: "保全工",
|
JobTypeBoiled: "煮茧工", JobTypeScoop: "舀茧工", JobTypeTransport: "送茧工", JobTypeCleaner: "清洁工",
|
JobTypeMachineCleaner: "感知器清洗工", JobTypeAllPowerful: "全能机动", JobTypeMonitor: "班长"}
|
|
type PayrollSubsidyType string // 补贴类型
|
|
const (
|
SubsidyTypeProduction PayrollSubsidyType = "production" // 生产工资
|
SubsidyTypeLongTerm PayrollSubsidyType = "long-term" // 满勤
|
SubsidyTypeTimeout PayrollSubsidyType = "timeout" // 超时加班
|
SubsidyTypeOvertime PayrollSubsidyType = "overtime" // 超过固定班次加班
|
SubsidyTypeTraffic PayrollSubsidyType = "traffic" // 交通
|
SubsidyTypeMasterApprentice PayrollSubsidyType = "master_apprentice" // 带徒
|
SubsidyTypePosition PayrollSubsidyType = "position" // 岗位
|
SubsidyTypeSocialSecurity PayrollSubsidyType = "social_security " // 社保
|
SubsidyTypeSeniority PayrollSubsidyType = "seniority" // 工龄
|
SubsidyTypeBaseSalary PayrollSubsidyType = "baseSalary " // 保底
|
SubsidyTypeQualityStandards PayrollSubsidyType = "quality_standards" // 质量奖
|
SubsidyTypeSubstandardQuality PayrollSubsidyType = "substandard_quality" // 质量罚
|
SubsidyTypeHeat PayrollSubsidyType = "heat" // 高温
|
SubsidyTypeDailyInspection PayrollSubsidyType = "daily_inspection" // 日常检查
|
SubsidyTypeDowntime PayrollSubsidyType = "downtime" // 停机
|
)
|
|
var PayrollSubsidyTypeList = []PayrollSubsidyType{SubsidyTypeProduction, SubsidyTypeLongTerm, SubsidyTypeTimeout,
|
SubsidyTypeOvertime, SubsidyTypeTraffic, SubsidyTypeMasterApprentice, SubsidyTypePosition, SubsidyTypeSocialSecurity,
|
SubsidyTypeSeniority, SubsidyTypeBaseSalary, SubsidyTypeQualityStandards, SubsidyTypeSubstandardQuality, SubsidyTypeHeat,
|
SubsidyTypeDailyInspection, SubsidyTypeDowntime}
|
var PayrollSubsidyTypeMap = map[PayrollSubsidyType]string{SubsidyTypeProduction: "生产工资", SubsidyTypeLongTerm: "满勤奖", SubsidyTypeTimeout: "超时加班",
|
SubsidyTypeOvertime: "超过固定班次加班", SubsidyTypeTraffic: "交通补贴", SubsidyTypeMasterApprentice: "带徒补贴", SubsidyTypePosition: "岗位补贴", SubsidyTypeSocialSecurity: "不缴社保补贴",
|
SubsidyTypeSeniority: "工龄补贴", SubsidyTypeBaseSalary: "保底补差", SubsidyTypeQualityStandards: "质量奖", SubsidyTypeSubstandardQuality: "质量罚", SubsidyTypeHeat: "高温补贴",
|
SubsidyTypeDailyInspection: "日常检查", SubsidyTypeDowntime: "停机补贴"}
|