dsmzx
2024-07-02 260b3fbc34b4e9ae2ee53e4a7917abb72ef848a7
constvar/const.go
@@ -333,9 +333,30 @@
   TakeStock                            // 盘点类型
)
const (
   InputTotalHeader  string = "入库合计"
   OutPutTotalHeader string = "出库合计"
)
func (t MiniDictType) Valid() bool {
   if t <= 0 {
      return false
   }
   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
}