From edba4ede85a3d82a7f0a0a7dccddbc8281862888 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周四, 15 5月 2025 13:12:10 +0800 Subject: [PATCH] 添加物料类型 --- HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsPlace.cs | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsPlace.cs b/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsPlace.cs index b557a95..0ba8be8 100644 --- a/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsPlace.cs +++ b/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsPlace.cs @@ -54,12 +54,13 @@ b.Property(x => x.LayerNo).HasComment("灞�"); b.Property(x => x.Islock).HasComment("鏄惁閿佸畾"); b.Property(x => x.EmptyContainer).HasComment("鏄惁绌烘墭"); + b.Property(x => x.MaxStockNumber).HasComment("鏈�澶у簱瀛橀噺"); b.Property(x => x.RedundantField1).HasMaxLength(WmsPlaceConsts.MaxRedundantFieldLength).IsRequired(false).HasComment("鍐椾綑瀛楁1 - 棰勭暀鎵╁睍鐢ㄩ��"); b.Property(x => x.RedundantField2).HasMaxLength(WmsPlaceConsts.MaxRedundantFieldLength).IsRequired(false).HasComment("鍐椾綑瀛楁2 - 棰勭暀鎵╁睍鐢ㄩ��"); b.Property(x => x.RedundantField3).HasMaxLength(WmsPlaceConsts.MaxRedundantFieldLength).IsRequired(false).HasComment("鍐椾綑瀛楁3 - 棰勭暀鎵╁睍鐢ㄩ��"); b.Property(x => x.Sort).HasComment("鎺掑簭"); b.Property(x => x.Remark).HasMaxLength(WmsPlaceConsts.MaxRemarkLength).IsRequired(false).HasComment("澶囨敞"); - b.Property(x => x.IsDisabled).IsRequired(false).HasComment("鏄惁绂佺敤"); + b.Property(x => x.IsDisabled).IsRequired(true).HasDefaultValue(false).HasComment("鏄惁绂佺敤"); // Indexes b.HasIndex(u => u.PlaceNo).IsUnique(); // 缂栧彿瀛楁娣诲姞鍞竴绱㈠紩 -- Gitblit v1.9.3