zhangqian
2024-07-01 73b6baf6af3d88cdcb0e2df7932a9bd96b0b85c5
constvar/const.go
@@ -297,11 +297,12 @@
type CodeStandardType string
const (
   CodeStandardType_Material CodeStandardType = "物料编码"
   CodeStandardType_Incoming CodeStandardType = "入库编码"
   CodeStandardType_Outgoing CodeStandardType = "出库编码"
   CodeStandardType_Internal CodeStandardType = "调拨编码"
   CodeStandardType_Disuse   CodeStandardType = "仓库报废编码"
   CodeStandardType_Material  CodeStandardType = "物料编码"
   CodeStandardType_Incoming  CodeStandardType = "入库编码"
   CodeStandardType_Outgoing  CodeStandardType = "出库编码"
   CodeStandardType_Internal  CodeStandardType = "调拨编码"
   CodeStandardType_Disuse    CodeStandardType = "仓库报废编码"
   CodeStandardType_TakeStock CodeStandardType = "盘点编码"
)
type OperationSource int
@@ -326,9 +327,10 @@
type MiniDictType int
const (
   TransferType MiniDictType = iota + 1 // 调拨类型
   StorageType                          // 入库类型
   StorageType  MiniDictType = iota + 1 // 入库类型
   StockoutType                         // 出库类型
   TransferType                         // 调拨类型
   TakeStock                            // 盘点类型
)
func (t MiniDictType) Valid() bool {
@@ -337,3 +339,19 @@
   }
   return true
}
// BoolType 布尔类型
type BoolType int
const (
   BoolTypeTrue  BoolType = 1 // true
   BoolTypeFalse BoolType = 2 // false
)
func (slf BoolType) IsValid() bool {
   return slf == BoolTypeTrue || slf == BoolTypeFalse
}
func (slf BoolType) Bool() bool {
   return slf == BoolTypeTrue
}