22 lines
745 B
C#
22 lines
745 B
C#
namespace MiGu.Server.Configs;
|
|
|
|
public record Location(string Id, string Code, string Name, string SiteId, int Capacity, int Occupied);
|
|
public record InventoryRule(string Id, string ItemType, int MinQty, int MaxQty);
|
|
|
|
public record LocationManagement(
|
|
List<Location> Locations,
|
|
List<InventoryRule> InventoryRules)
|
|
{
|
|
public static LocationManagement Default() => new(
|
|
Locations: new List<Location>
|
|
{
|
|
new("L01", "A-01", "A 区货架 1", "S001", 20, 12),
|
|
new("L02", "A-02", "A 区货架 2", "S002", 20, 7),
|
|
new("L03", "B-01", "B 区缓存", "S003", 30, 25)
|
|
},
|
|
InventoryRules: new List<InventoryRule>
|
|
{
|
|
new("IR1", "PalletA", 5, 30)
|
|
});
|
|
}
|