lishihai
2024-07-03 baf93c1db6186ad5acb400b52f4cb521dc4ae877
constvar/const.go
@@ -292,6 +292,7 @@
   FileTemplateCategory_JialianOutput1  = 15                            //嘉联出库模块1
   FileWarehouseCategory_JialianInput2  = 16                            //嘉联入库模板2
   FileWarehouseCategory_JialianOutput2 = 17                            //嘉联出库模块2
   FileWarehouseCategory_JialianInput3  = 18                            //嘉联物料导入入库模板3-丝绵
)
type CodeStandardType string
@@ -327,10 +328,16 @@
type MiniDictType int
const (
   StorageType  MiniDictType = iota + 1 // 入库类型
   StockoutType                         // 出库类型
   TransferType                         // 调拨类型
   TakeStock                            // 盘点类型
   StorageType   MiniDictType = iota + 1 // 入库类型
   StockoutType                          // 出库类型
   TransferType                          // 调拨类型
   TakeStockType                         // 盘点类型
   DisuseType                            // 报废类型
)
const (
   InputTotalHeader  string = "入库合计"
   OutPutTotalHeader string = "出库合计"
)
func (t MiniDictType) Valid() bool {
@@ -339,3 +346,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
}