From 62bd99d03c25ff02f101a4522cf1cbd8430b31c3 Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期二, 16 七月 2024 20:11:14 +0800 Subject: [PATCH] 修改变量,庄口类型默认值从0变更为1 --- constvar/const.go | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 111 insertions(+), 5 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index c255f71..72056a6 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -3,10 +3,10 @@ type DictType int const ( - DictTypeMarket DictType = iota //搴勫彛 - DictTypeWorkshop //杞﹂棿 - DictTypeColor //棰滆壊 - DictTypeSpec //瑙勬牸 + DictTypeMarket DictType = iota + 1 //搴勫彛 + DictTypeWorkshop //杞﹂棿 + DictTypeColor //棰滆壊 + DictTypeSpec //瑙勬牸 ) type UserType int @@ -17,12 +17,27 @@ UserTypeSub // 瀛愯处鎴� ) +type CodeStandardType int + +const ( + CodeStandardType_Workshop CodeStandardType = iota + 1 // 杞﹂棿 + CodeStandardType_Fineness // 绾ゅ害鐧昏 + CodeStandardType_Yield // 浜ч噺鐧昏 +) + type CarFlag int const ( LeftHalfCar CarFlag = iota + 1 //宸﹀崐杞� RightHalfCar //鍙冲崐杞� - AllCar //鍏ㄨ溅 + //AllCar //鍏ㄨ溅缁撴潫 +) + +type WorkshopType int + +const ( + Workshop WorkshopType = iota + 1 // 杞﹂棿淇℃伅 + Group // 鍒嗙粍淇℃伅 ) type CheckItem int @@ -34,3 +49,94 @@ 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 //姝e父 + 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 = "宸ラ緞" +) -- Gitblit v1.8.0