- 移除 LegacyStatusNormalizationMigrator,仅保留 AreaLayoutModeDefaultMigrator - 删除 WmsDispatchStatus 枚举、常量和全局 using - 统一所有 DbContext 注入为 MiGuDbContext,移除 PlatformDbContext - 服务实体操作统一用 IEditableRepository<T>,移除本地实现 - 移除 WmsService 的 MigrateLegacyAsync 方法 - 精简接口模型,移除部分字段和请求体 - 前端保存容器时 status 字段取自已有数据,移除写死默认值 - 更新文档,去除旧说明,统一数据库初始化流程
66 lines
828 B
C#
66 lines
828 B
C#
namespace MiGu.DB.Domains.Wms;
|
|
|
|
/// <summary>
|
|
/// WMS 状态/类型枚举。列以字符串存储(见约定 HasConversion<string>),成员名即库内合法值。
|
|
/// </summary>
|
|
public enum AreaLayoutMode
|
|
{
|
|
Flat,
|
|
Grid
|
|
}
|
|
|
|
public enum LocationKind
|
|
{
|
|
Grid,
|
|
Station
|
|
}
|
|
|
|
public enum StorageStatus
|
|
{
|
|
Empty,
|
|
EmptyContainer,
|
|
FullContainer,
|
|
Disabled
|
|
}
|
|
|
|
public enum ContainerStatus
|
|
{
|
|
EmptyMaterial,
|
|
FullMaterial
|
|
}
|
|
|
|
public enum ContainerLocationType
|
|
{
|
|
Storage,
|
|
Car
|
|
}
|
|
|
|
public enum ContainerLocationStatus
|
|
{
|
|
Active,
|
|
Locked,
|
|
Exception
|
|
}
|
|
|
|
public enum ContainerMaterialStatus
|
|
{
|
|
Bound,
|
|
Loaded,
|
|
Unloaded,
|
|
Adjusted,
|
|
Frozen
|
|
}
|
|
|
|
public enum MaterialLifecycle
|
|
{
|
|
Active,
|
|
Archived
|
|
}
|
|
|
|
public enum StockEventType
|
|
{
|
|
Bind,
|
|
Unbind,
|
|
ContainerMove
|
|
}
|