| | |
| | | type FileTemplateCategory int |
| | | |
| | | const ( |
| | | FileTemplateCategory_Selfmade FileTemplateCategory = iota + 1 //入库-自制 |
| | | FileTemplateCategory_Output //出库 |
| | | FileTemplateCategory_JialianInput = 14 //嘉联入库 |
| | | FileTemplateCategory_JialianOutput = 15 //嘉联出库 |
| | | FileTemplateCategory_Selfmade FileTemplateCategory = iota + 1 //入库-自制 |
| | | FileTemplateCategory_Output //出库 |
| | | FileTemplateCategory_JialianInput1 = 14 //嘉联入库模板1 |
| | | FileTemplateCategory_JialianOutput1 = 15 //嘉联出库模块1 |
| | | FileWarehouseCategory_JialianInput2 = 16 //嘉联入库模板2 |
| | | FileWarehouseCategory_JialianOutput2 = 17 //嘉联出库模块2 |
| | | ) |
| | | |
| | | 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 |
| | |
| | | ) |
| | | |
| | | const DoMonthStatsToken = "Eoh2ZAUJjtbmu0TBkc3dq7MPCpL4riw5NVxOfgXYlKvHF6sR" |
| | | |
| | | type SystemConfigType int |
| | | |
| | | const ( |
| | | SystemConfigTypeInventoryCutOffPoint SystemConfigType = 1 //库存结算时间点 |
| | | ) |
| | | |
| | | type MiniDictType int |
| | | |
| | | const ( |
| | | StorageType MiniDictType = iota + 1 // 入库类型 |
| | | StockoutType // 出库类型 |
| | | TransferType // 调拨类型 |
| | | TakeStock // 盘点类型 |
| | | ) |
| | | |
| | | 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 |
| | | } |