From 067650e77790adeb5222b7736649cb5b6b016162 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 28 四月 2024 10:49:44 +0800 Subject: [PATCH] 时间范围和该工人以往添加记录重复性校验 --- constvar/const.go | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 1 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index c255f71..4acbec9 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -22,7 +22,7 @@ const ( LeftHalfCar CarFlag = iota + 1 //宸﹀崐杞� RightHalfCar //鍙冲崐杞� - AllCar //鍏ㄨ溅 + AllCar //鍏ㄨ溅缁撴潫 ) type CheckItem int @@ -34,3 +34,74 @@ 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 // 鍔犵彮 +) + +// MiniDictType 杩蜂綘瀛楀吀绫诲瀷 +type MiniDictType int + +const ( + MiniDictTypePlcBrand MiniDictType = iota + 1 // PLC鍝佺墝 + MiniDictTypeBomVersionType // Bom鐗堟湰绫诲瀷 + EarlyWarningDay //棰勮澶╂暟 + InspectionWayType //璐ㄦ鏂瑰紡绫诲瀷 + OutsourcingSupplierType //濮斿渚涘簲鍟嗙被鍨� + OutsourcingSupplierCreditGrade //淇$敤绛夌骇 + OutsourcingSupplierRange //渚涜揣鑼冨洿 + SalaryType //鍢夎仈钖祫绫诲瀷 +) + +// 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 //姝e父 + Overtime //鍔犵彮 + Vacation //浼戝亣 + Abnormal //寮傚父 +) + +type FileTemplateCategory int + +const ( + FileTemplateCategory_Selfmade FileTemplateCategory = iota + 1 //鍏ュ簱-鑷埗 + FileTemplateCategory_Output //鍑哄簱 + FileTemplateCategory_JialianInput = 14 //鍢夎仈鍏ュ簱 + FileTemplateCategory_JialianOutput = 15 //鍢夎仈鍑哄簱 + FileTemplateCategory_JialianAttendance = 16 //鍢夎仈-鍛樺伐鑰冨嫟 +) -- Gitblit v1.8.0