Przeglądaj źródła

Merge branch 'dev' of http://123.60.180.165:4647/ZZYDOP/DOPCore into dev

tangdi 3 lat temu
rodzic
commit
ad5ffcaea8
28 zmienionych plików z 5619 dodań i 8 usunięć
  1. 9 1
      MicroServices/Business/Business.Application.Contracts/WMS/ISyncKingdeeAppService.cs
  2. 18 5
      MicroServices/Business/Business.Application/WMS/SyncKingdeeAppService.cs
  3. 40 0
      MicroServices/Business/Business.Core/Configuration/AppConfigurations.cs
  4. 1 1
      MicroServices/Business/Business.Core/Consts/BusinessConsts.cs
  5. 48 0
      MicroServices/Business/Business.Core/Web/WebContentFolderHelper.cs
  6. 1 0
      MicroServices/Business/Business.EntityFrameworkCore/Business.EntityFrameworkCore.csproj
  7. 38 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Bang/BusinessBangDbContext.cs
  8. 25 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Bang/BusinessBangDbContextFactory.cs
  9. 20 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Bang/BussinessBangDbContextOptionsConfigurer.cs
  10. 19 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/BusinessDbContextModelCreatingExtensions.cs
  11. 3 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/DOP/BusinessDbContext.cs
  12. 25 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/DOP/BusinessDbContextFactory.cs
  13. 20 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/DOP/BussinessDbContextOptionsConfigurer.cs
  14. 31 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Ext/BusinessExtDbContext.cs
  15. 25 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Ext/BusinessExtDbContextFactory.cs
  16. 21 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Ext/BussinessExtDbContextOptionsConfigurer.cs
  17. 31 0
      MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/MyConnectionStringResolver.cs
  18. 28 0
      MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessBangMigrationDbContext.cs
  19. 31 0
      MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessBangMigrationDbContextFactory.cs
  20. 28 0
      MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessExtMigrationDbContext.cs
  21. 31 0
      MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessExtMigrationDbContextFactory.cs
  22. 1404 0
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230322181446_init.Designer.cs
  23. 508 0
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230322181446_init.cs
  24. 1402 0
      MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/BusinessExtMigrationDbContextModelSnapshot.cs
  25. 2 0
      MicroServices/Business/Business.Host/appsettings.json
  26. 0 1
      MicroServices/Business/Business.HttpApi/Business.HttpApi.csproj
  27. 13 0
      MicroServices/Business/Business.HttpApi/Controllers/WMS/KingdeeController.cs
  28. 1797 0
      MicroServices/Business/Bussiness.Model/Ext/material.cs

+ 9 - 1
MicroServices/Business/Business.Application.Contracts/WMS/ISyncKingdeeAppService.cs

@@ -1,4 +1,5 @@
-using System;
+using Business.ResourceExamineManagement.Dto;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -25,5 +26,12 @@ namespace Business.ResourceExamineManagement
         /// <param name="id"></param>
         /// <returns></returns>
         string SyncMaterial();
+
+        /// <summary>
+        /// 资源检查
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        Task<string> ReceiveResult(SeorderentryDto input);
     }
 }

+ 18 - 5
MicroServices/Business/Business.Application/WMS/SyncKingdeeAppService.cs

@@ -1,23 +1,30 @@
 using Business.ResourceExamineManagement.Dto;
-using Bussiness.Model.MES.IC;
+using Bussiness.Model.Ext;
 using Bussiness.Model.SystemData;
 using Bussiness.Model.Tech;
-using Bussiness.MongoModel.MES.IC;
 using Microsoft.Extensions.Configuration;
+using Newtonsoft.Json;
 using System;
 using System.Collections.Generic;
-using System.Text.RegularExpressions;
+using System.Threading.Tasks;
 using Volo.Abp.Application.Services;
+using Volo.Abp.DependencyInjection;
 using Volo.Abp.Domain.Repositories;
+using Volo.Abp.MultiTenancy;
 
 namespace Business.ResourceExamineManagement
 {
-    public class SyncKingdeeAppService : ApplicationService, ISyncKingdeeAppService
+    public class SyncKingdeeAppService : ApplicationService, ISyncKingdeeAppService, ITransientDependency
     {
         private readonly IRepository<sys_code, long> _sys_serial_number;
 
-        public SyncKingdeeAppService(IRepository<sys_code, long> sys_serial_number) {
+        private readonly ICurrentTenant _currentTenant;
+        private readonly IRepository<material,long> _mysql_ic_item;
+
+        public SyncKingdeeAppService(IRepository<sys_code, long> sys_serial_number, IRepository<material, long> mysql_ic_item, ICurrentTenant currentTenant) {
             _sys_serial_number = sys_serial_number;
+            _mysql_ic_item = mysql_ic_item;
+            _currentTenant = currentTenant;
         }
         public string SyncSupplier()
         {
@@ -34,5 +41,11 @@ namespace Business.ResourceExamineManagement
         {
             throw new NotImplementedException();
         }
+
+        public async Task<string> ReceiveResult(SeorderentryDto input)
+        {
+            var test = _mysql_ic_item.GetListAsync().Result;
+            return JsonConvert.SerializeObject(test);
+        }
     }
 }

+ 40 - 0
MicroServices/Business/Business.Core/Configuration/AppConfigurations.cs

@@ -0,0 +1,40 @@
+using System.Collections.Concurrent;
+using Microsoft.Extensions.Configuration;
+
+namespace Business.Core.Configuration
+{
+    public static class AppConfigurations
+    {
+        private static readonly ConcurrentDictionary<string, IConfigurationRoot> ConfigurationCache;
+
+        static AppConfigurations()
+        {
+            ConfigurationCache = new ConcurrentDictionary<string, IConfigurationRoot>();
+        }
+
+        public static IConfigurationRoot Get(string path, string environmentName = null)
+        {
+            var cacheKey = path + "#" + environmentName;
+            return ConfigurationCache.GetOrAdd(
+                cacheKey,
+                _ => BuildConfiguration(path, environmentName)
+            );
+        }
+
+        private static IConfigurationRoot BuildConfiguration(string path, string environmentName = null)
+        {
+            var builder = new ConfigurationBuilder()
+                .SetBasePath(path)
+                .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
+
+            if (!environmentName.IsNullOrWhiteSpace())
+            {
+                builder = builder.AddJsonFile($"appsettings.{environmentName}.json", optional: true);
+            }
+            
+            builder = builder.AddEnvironmentVariables();
+
+            return builder.Build();
+        }
+    }
+}

+ 1 - 1
MicroServices/Business/Business.Core/Consts/BusinessConsts.cs

@@ -1,4 +1,4 @@
-namespace Business
+namespace Business.Core
 {
     public static class BusinessConsts
     {

+ 48 - 0
MicroServices/Business/Business.Core/Web/WebContentFolderHelper.cs

@@ -0,0 +1,48 @@
+using System;
+using System.IO;
+using System.Linq;
+
+namespace Business.Core.Web
+{
+    /// <summary>
+    /// This class is used to find root path of the web project in;
+    /// unit tests (to find views) and entity framework core command line commands (to find conn string).
+    /// </summary>
+    public static class WebContentDirectoryFinder
+    {
+        public static string CalculateContentRootFolder()
+        {
+            var coreAssemblyDirectoryPath = Path.GetDirectoryName(AppContext.BaseDirectory);
+            if (coreAssemblyDirectoryPath == null)
+            {
+                throw new Exception("Could not find location of Chemical.Ai.Core assembly!");
+            }
+
+            DirectoryInfo directoryInfo = new DirectoryInfo(coreAssemblyDirectoryPath);
+            while (!DirectoryContains(directoryInfo.FullName, "Bussiness.sln"))
+            {
+                //发布状态下,应该为当前目录
+                if (directoryInfo.Parent == null)
+                {
+                    return coreAssemblyDirectoryPath;
+                    //throw new Exception($"Could not find content root folder!");
+                }
+
+                directoryInfo = directoryInfo.Parent;
+            }
+
+            var webHostFolder = Path.Combine(directoryInfo.FullName, "src", "Bussiness.Host");
+            if (Directory.Exists(webHostFolder))
+            {
+                return webHostFolder;
+            }
+
+            throw new Exception("Could not find root folder of the web project!");
+        }
+
+        private static bool DirectoryContains(string directory, string fileName)
+        {
+            return Directory.GetFiles(directory).Any(filePath => string.Equals(Path.GetFileName(filePath), fileName));
+        }
+    }
+}

+ 1 - 0
MicroServices/Business/Business.EntityFrameworkCore/Business.EntityFrameworkCore.csproj

@@ -10,6 +10,7 @@
   </PropertyGroup>
 
   <ItemGroup>
+    <PackageReference Include="Abp" Version="3.4.0" />
     <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.5">
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

+ 38 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Bang/BusinessBangDbContext.cs

@@ -0,0 +1,38 @@
+using Bussiness.Model.MES.IC;
+using Bussiness.Model.Production;
+using Bussiness.Model.ProductionProcess;
+using Bussiness.Model.Sale;
+using Bussiness.Model.SIM;
+using Bussiness.Model.SRM;
+using Bussiness.Model.SystemData;
+using Bussiness.Model.Tech;
+using Microsoft.EntityFrameworkCore;
+using Volo.Abp.Data;
+using Volo.Abp.DependencyInjection;
+using Volo.Abp.EntityFrameworkCore;
+using Volo.Abp.Identity;
+using Volo.Abp.Identity.EntityFrameworkCore;
+using Volo.Abp.TenantManagement;
+using Volo.Abp.TenantManagement.EntityFrameworkCore;
+
+namespace Business.EntityFrameworkCore
+{
+    /// <summary>
+    /// ¶ÔÓ¦dopbizÊý¾Ý¿â
+    /// </summary>
+    [ConnectionStringName("DOPBang")]
+    public class BusinessBangDbContext : AbpDbContext<BusinessBangDbContext>
+    {        //Code generation...
+        public BusinessBangDbContext(DbContextOptions<BusinessBangDbContext> options)
+            : base(options)
+        {
+
+        }
+
+        protected override void OnModelCreating(ModelBuilder modelBuilder)
+        {
+            base.OnModelCreating(modelBuilder);
+            modelBuilder.ConfigureBusinessBang();
+        }
+    }
+}

+ 25 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Bang/BusinessBangDbContextFactory.cs

@@ -0,0 +1,25 @@
+using Business.Core.Configuration;
+using Business.Core.Web;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Design;
+using Microsoft.Extensions.Configuration;
+
+namespace Business.EntityFrameworkCore
+{
+    /* This class is needed to run EF Core PMC commands. Not used anywhere else */
+    public class BusinessBangDbContextFactory : IDesignTimeDbContextFactory<BusinessBangDbContext>
+    {
+        public BusinessBangDbContext CreateDbContext(string[] args)
+        {
+            var builder = new DbContextOptionsBuilder<BusinessBangDbContext>();
+            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());
+
+            BussinessBangDbContextOptionsConfigurer.Configure(
+                builder,
+                configuration.GetConnectionString("DOPBang")
+            );
+
+            return new BusinessBangDbContext(builder.Options);
+        }
+    }
+}

+ 20 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Bang/BussinessBangDbContextOptionsConfigurer.cs

@@ -0,0 +1,20 @@
+using System.Data.Common;
+using Microsoft.EntityFrameworkCore;
+
+namespace Business.EntityFrameworkCore
+{
+    public static class BussinessBangDbContextOptionsConfigurer
+    {
+        public static void Configure(DbContextOptionsBuilder<BusinessBangDbContext> dbContextOptions, string connectionString)
+        {
+            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
+            dbContextOptions.UseMySql(connectionString, MySqlServerVersion.LatestSupportedServerVersion);
+        }
+
+        public static void Configure( DbContextOptionsBuilder<BusinessDbContext> dbContextOptions,DbConnection connection)
+        {
+            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
+            dbContextOptions.UseMySql(connection, MySqlServerVersion.LatestSupportedServerVersion);
+        }
+    }
+}

+ 19 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/BusinessDbContextModelCreatingExtensions.cs

@@ -1,4 +1,5 @@
 using Business.Model;
+using Bussiness.Model.Ext;
 using Bussiness.Model.MES.IC;
 using Bussiness.Model.Production;
 using Bussiness.Model.ProductionProcess;
@@ -572,5 +573,23 @@ namespace Business.EntityFrameworkCore
             //    }
             //}
         }
+
+
+        public static void ConfigureBusinessExt(this ModelBuilder builder)
+        {
+            //TODO:这样太麻烦了,有时间研究一下批量
+            Check.NotNull(builder, nameof(builder));
+            builder.Entity<material>(b =>
+            {
+                b.ToTable("material");
+                b.ConfigureByConvention();
+            });
+        }
+
+        public static void ConfigureBusinessBang(this ModelBuilder builder)
+        {
+            //TODO:这样太麻烦了,有时间研究一下批量
+            Check.NotNull(builder, nameof(builder));
+        }
     }
 }

+ 3 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/BusinessDbContext.cs → MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/DOP/BusinessDbContext.cs

@@ -17,6 +17,9 @@ using Volo.Abp.TenantManagement.EntityFrameworkCore;
 
 namespace Business.EntityFrameworkCore
 {
+    /// <summary>
+    /// ¶ÔÓ¦dopbizÊý¾Ý¿â
+    /// </summary>
     [ConnectionStringName("Default")]
     public class BusinessDbContext : AbpDbContext<BusinessDbContext>
     {

+ 25 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/DOP/BusinessDbContextFactory.cs

@@ -0,0 +1,25 @@
+using Business.Core.Configuration;
+using Business.Core.Web;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Design;
+using Microsoft.Extensions.Configuration;
+
+namespace Business.EntityFrameworkCore
+{
+    /* This class is needed to run EF Core PMC commands. Not used anywhere else */
+    public class BusinessDbContextFactory : IDesignTimeDbContextFactory<BusinessDbContext>
+    {
+        public BusinessDbContext CreateDbContext(string[] args)
+        {
+            var builder = new DbContextOptionsBuilder<BusinessDbContext>();
+            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());
+
+            BussinessDbContextOptionsConfigurer.Configure(
+                builder,
+                configuration.GetConnectionString("Default")
+            );
+
+            return new BusinessDbContext(builder.Options);
+        }
+    }
+}

+ 20 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/DOP/BussinessDbContextOptionsConfigurer.cs

@@ -0,0 +1,20 @@
+using System.Data.Common;
+using Microsoft.EntityFrameworkCore;
+
+namespace Business.EntityFrameworkCore
+{
+    public static class BussinessDbContextOptionsConfigurer
+    {
+        public static void Configure(DbContextOptionsBuilder<BusinessDbContext> dbContextOptions, string connectionString)
+        {
+            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
+            dbContextOptions.UseMySql(connectionString, MySqlServerVersion.LatestSupportedServerVersion);
+        }
+
+        public static void Configure( DbContextOptionsBuilder<BusinessDbContext> dbContextOptions,DbConnection connection)
+        {
+            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
+            dbContextOptions.UseMySql(connection, MySqlServerVersion.LatestSupportedServerVersion);
+        }
+    }
+}

+ 31 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Ext/BusinessExtDbContext.cs

@@ -0,0 +1,31 @@
+using Bussiness.Model.Ext;
+using Bussiness.Model.MES.IC;
+using Microsoft.EntityFrameworkCore;
+using Volo.Abp.Data;
+using Volo.Abp.EntityFrameworkCore;
+
+namespace Business.EntityFrameworkCore
+{
+    /// <summary>
+    /// DOPExtÊý¾Ý¿âµÄдÔÚÕâÀï
+    /// </summary>
+    [ConnectionStringName("DOPExt")]
+    public class BusinessExtDbContext : AbpDbContext<BusinessExtDbContext>
+    {
+        #region MES/IC
+        public DbSet<material> ic_item { get; set; }
+        #endregion
+        //Code generation...
+        public BusinessExtDbContext(DbContextOptions<BusinessExtDbContext> options)
+            : base(options)
+        {
+
+        }
+
+        protected override void OnModelCreating(ModelBuilder modelBuilder)
+        {
+            base.OnModelCreating(modelBuilder);
+            modelBuilder.ConfigureBusinessExt();
+        }
+    }
+}

+ 25 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Ext/BusinessExtDbContextFactory.cs

@@ -0,0 +1,25 @@
+using Business.Core.Configuration;
+using Business.Core.Web;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Design;
+using Microsoft.Extensions.Configuration;
+
+namespace Business.EntityFrameworkCore
+{
+    /* This class is needed to run EF Core PMC commands. Not used anywhere else */
+    public class BusinessExtDbContextFactory : IDesignTimeDbContextFactory<BusinessExtDbContext>
+    {
+        public BusinessExtDbContext CreateDbContext(string[] args)
+        {
+            var builder = new DbContextOptionsBuilder<BusinessExtDbContext>();
+            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());
+
+            BussinessExtDbContextOptionsConfigurer.Configure(
+                builder,
+                configuration.GetConnectionString("DOPExt")
+            );
+
+            return new BusinessExtDbContext(builder.Options);
+        }
+    }
+}

+ 21 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/Ext/BussinessExtDbContextOptionsConfigurer.cs

@@ -0,0 +1,21 @@
+using System.Data.Common;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+
+namespace Business.EntityFrameworkCore
+{
+    public static class BussinessExtDbContextOptionsConfigurer
+    {
+        public static void Configure(DbContextOptionsBuilder<BusinessExtDbContext> dbContextOptions,string connectionString)
+        {
+            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
+            dbContextOptions.UseMySql(connectionString, MySqlServerVersion.LatestSupportedServerVersion);
+        }
+
+        public static void Configure(DbContextOptionsBuilder<BusinessExtDbContext> dbContextOptions,DbConnection connection)
+        {
+            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
+            dbContextOptions.UseMySql(connection, MySqlServerVersion.LatestSupportedServerVersion);
+        }
+    }
+}

+ 31 - 0
MicroServices/Business/Business.EntityFrameworkCore/EntityFrameworkCore/MyConnectionStringResolver.cs

@@ -0,0 +1,31 @@
+using System;
+using Abp.Configuration.Startup;
+using Abp.Domain.Uow;
+using Business.Core.Configuration;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using DefaultConnectionStringResolver = Abp.Domain.Uow.DefaultConnectionStringResolver;
+
+namespace Business.EntityFrameworkCore
+{
+    public class MyConnectionStringResolver : DefaultConnectionStringResolver
+    {
+        private readonly IConfigurationRoot _appConfiguration;
+
+        public MyConnectionStringResolver(IAbpStartupConfiguration configuration,IWebHostEnvironment hostingEnvironment) 
+            : base(configuration)
+        {
+            _appConfiguration =AppConfigurations.Get(hostingEnvironment.ContentRootPath, hostingEnvironment.EnvironmentName);
+        }
+
+        public override string GetNameOrConnectionString(ConnectionStringResolveArgs args)
+        {
+            if (args["DbContextConcreteType"] as Type == typeof(BusinessExtDbContext))
+            {
+                return _appConfiguration.GetConnectionString("DOPExt");
+            }
+
+            return base.GetNameOrConnectionString(args);
+        }
+    }
+}

+ 28 - 0
MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessBangMigrationDbContext.cs

@@ -0,0 +1,28 @@
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.ComponentModel;
+using System.Linq;
+using System.Reflection;
+using Volo.Abp.EntityFrameworkCore;
+
+namespace Business.EntityFrameworkCore
+{
+    public class BusinessBangMigrationDbContext : AbpDbContext<BusinessBangMigrationDbContext>    
+    {
+        public BusinessBangMigrationDbContext(
+            DbContextOptions<BusinessBangMigrationDbContext> options
+            ) : base(options)
+        {
+
+        }
+
+        protected override void OnModelCreating(ModelBuilder modelBuilder)
+        {
+            base.OnModelCreating(modelBuilder);
+            //改用低代码平台的表单流程
+            //modelBuilder.ConfigureForm();
+            //modelBuilder.ConfigureFlow();
+            modelBuilder.ConfigureBusinessBang();
+        }
+    }
+}

+ 31 - 0
MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessBangMigrationDbContextFactory.cs

@@ -0,0 +1,31 @@
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Design;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.Extensions.Configuration;
+using System;
+using System.IO;
+
+namespace Business.EntityFrameworkCore
+{
+    public class BusinessBangMigrationDbContextFactory: IDesignTimeDbContextFactory<BusinessBangMigrationDbContext>
+    {
+        public BusinessBangMigrationDbContext CreateDbContext(string[] args)
+        {
+            var configuration = BuildConfiguration();
+
+            var builder = new DbContextOptionsBuilder<BusinessBangMigrationDbContext>()
+                .UseMySql(configuration.GetConnectionString("DOPExt"), MySqlServerVersion.LatestSupportedServerVersion);
+
+            return new BusinessBangMigrationDbContext(builder.Options);
+        }
+
+        private static IConfigurationRoot BuildConfiguration()
+        {
+            var builder = new ConfigurationBuilder()
+                .SetBasePath(Path.Combine(Directory.GetCurrentDirectory()))
+                .AddJsonFile("appsettings.json", optional: false);
+
+            return builder.Build();
+        }
+    }
+}

+ 28 - 0
MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessExtMigrationDbContext.cs

@@ -0,0 +1,28 @@
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.ComponentModel;
+using System.Linq;
+using System.Reflection;
+using Volo.Abp.EntityFrameworkCore;
+
+namespace Business.EntityFrameworkCore
+{
+    public class BusinessExtMigrationDbContext : AbpDbContext<BusinessExtMigrationDbContext>    
+    {
+        public BusinessExtMigrationDbContext(
+            DbContextOptions<BusinessExtMigrationDbContext> options
+            ) : base(options)
+        {
+
+        }
+
+        protected override void OnModelCreating(ModelBuilder modelBuilder)
+        {
+            base.OnModelCreating(modelBuilder);
+            //改用低代码平台的表单流程
+            //modelBuilder.ConfigureForm();
+            //modelBuilder.ConfigureFlow();
+            modelBuilder.ConfigureBusinessExt();
+        }
+    }
+}

+ 31 - 0
MicroServices/Business/Business.Host/EntityFrameworkCore/BusinessExtMigrationDbContextFactory.cs

@@ -0,0 +1,31 @@
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Design;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.Extensions.Configuration;
+using System;
+using System.IO;
+
+namespace Business.EntityFrameworkCore
+{
+    public class BusinessExtMigrationDbContextFactory: IDesignTimeDbContextFactory<BusinessExtMigrationDbContext>
+    {
+        public BusinessExtMigrationDbContext CreateDbContext(string[] args)
+        {
+            var configuration = BuildConfiguration();
+
+            var builder = new DbContextOptionsBuilder<BusinessExtMigrationDbContext>()
+                .UseMySql(configuration.GetConnectionString("DOPExt"), MySqlServerVersion.LatestSupportedServerVersion);
+
+            return new BusinessExtMigrationDbContext(builder.Options);
+        }
+
+        private static IConfigurationRoot BuildConfiguration()
+        {
+            var builder = new ConfigurationBuilder()
+                .SetBasePath(Path.Combine(Directory.GetCurrentDirectory()))
+                .AddJsonFile("appsettings.json", optional: false);
+
+            return builder.Build();
+        }
+    }
+}

+ 1404 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230322181446_init.Designer.cs

@@ -0,0 +1,1404 @@
+// <auto-generated />
+using System;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    [DbContext(typeof(BusinessExtMigrationDbContext))]
+    [Migration("20230322181446_init")]
+    partial class init
+    {
+        protected override void BuildTargetModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
+                .HasAnnotation("ProductVersion", "6.0.5")
+                .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+            modelBuilder.Entity("Bussiness.Model.Ext.material", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<decimal?>("FATOSchemeId_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("ATO预测冲销方案");
+
+                    b.Property<decimal?>("FAccuLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("累计提前期");
+
+                    b.Property<decimal?>("FAgentSalReduceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理销售减价比例(%)");
+
+                    b.Property<string>("FAllowPartAhead")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分提前");
+
+                    b.Property<string>("FAllowPartDelay")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分延后");
+
+                    b.Property<string>("FAllowPublish")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许发布到订货平台");
+
+                    b.Property<DateTime?>("FApproveDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("审核日期");
+
+                    b.Property<string>("FApproverId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("审核人");
+
+                    b.Property<string>("FAuxPropertyId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("辅助属性");
+
+                    b.Property<string>("FAuxUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("辅助单位");
+
+                    b.Property<string>("FBARCODE")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("条码");
+
+                    b.Property<string>("FBKFLTime")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲时机");
+
+                    b.Property<string>("FBOMUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FBackFlushType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲数量");
+
+                    b.Property<string>("FBaseUnitId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("基本单位");
+
+                    b.Property<string>("FBatchRuleID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("批号编码规则");
+
+                    b.Property<decimal?>("FBoxStandardQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("单箱标准数量");
+
+                    b.Property<string>("FCONFIGTYPE")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("配置生产");
+
+                    b.Property<decimal?>("FCanDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许延后天数");
+
+                    b.Property<decimal?>("FCanLeadDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许提前天数");
+
+                    b.Property<string>("FCategoryID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("存货类别");
+
+                    b.Property<string>("FChargeID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("费用项目");
+
+                    b.Property<string>("FCheckDelivery")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("发货检验");
+
+                    b.Property<string>("FCheckEntrusted")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("受托材料检验");
+
+                    b.Property<string>("FCheckIncoming")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("来料检验");
+
+                    b.Property<decimal?>("FCheckLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("检验提前期");
+
+                    b.Property<string>("FCheckLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("检验提前期单位");
+
+                    b.Property<string>("FCheckOther")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("其他检验");
+
+                    b.Property<string>("FCheckProduct")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品检验");
+
+                    b.Property<string>("FCheckReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("退货检验");
+
+                    b.Property<string>("FCheckReturnMtrl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产退料检验");
+
+                    b.Property<string>("FCheckStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存检验");
+
+                    b.Property<decimal?>("FConsumVolatility")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("消耗波动(%)");
+
+                    b.Property<decimal?>("FCostPriceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("结算成本价加减价比例(%)");
+
+                    b.Property<string>("FCountCycle")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("盘点周期单位");
+
+                    b.Property<decimal?>("FCountDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("盘点周期");
+
+                    b.Property<DateTime?>("FCreateDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建日期");
+
+                    b.Property<string>("FCreateOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建组织");
+
+                    b.Property<string>("FCreatorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建人");
+
+                    b.Property<string>("FCurrencyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("币别");
+
+                    b.Property<string>("FDSMatchByLot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("按批号匹配供需");
+
+                    b.Property<decimal?>("FDailyOutQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("日产量");
+
+                    b.Property<string>("FDataSource")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料来源");
+
+                    b.Property<string>("FDefBarCodeRuleId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认条码规则");
+
+                    b.Property<string>("FDefaultLineId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认产线");
+
+                    b.Property<string>("FDefaultRouting_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认工艺路线");
+
+                    b.Property<string>("FDefaultVendor_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认供应商");
+
+                    b.Property<decimal?>("FDelayExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("延后宽限期");
+
+                    b.Property<string>("FDescription_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("描述");
+
+                    b.Property<decimal?>("FEOQ")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定/经济批量");
+
+                    b.Property<decimal?>("FEWLeadDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提醒提前期");
+
+                    b.Property<decimal?>("FEconReOrderQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("经济订货批量");
+
+                    b.Property<string>("FEnableCyclistQCSTK")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检");
+
+                    b.Property<string>("FEnableCyclistQCSTKEW")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检提醒");
+
+                    b.Property<string>("FErpClsID")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料属性");
+
+                    b.Property<decimal?>("FExpPeriod")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保质期");
+
+                    b.Property<string>("FExpUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保质期单位");
+
+                    b.Property<decimal?>("FFIXLOSS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定损耗");
+
+                    b.Property<string>("FFeatureItem")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("特征件子项");
+
+                    b.Property<decimal?>("FFinishReceiptOverRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("入库超收比例(%)");
+
+                    b.Property<string>("FFinishReceiptShortRate")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("入库欠收比例(%)");
+
+                    b.Property<decimal?>("FFixLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期");
+
+                    b.Property<decimal?>("FFixLeadTimeType")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期单位");
+
+                    b.Property<DateTime?>("FForbidDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("禁用日期");
+
+                    b.Property<string>("FForbidResonIsUsed")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("已使用");
+
+                    b.Property<string>("FForbidReson_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁用原因");
+
+                    b.Property<string>("FForbidStatus")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("禁用状态");
+
+                    b.Property<string>("FForbidderId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("禁用人");
+
+                    b.Property<decimal?>("FGROSSWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("毛重");
+
+                    b.Property<decimal?>("FHEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("高");
+
+                    b.Property<decimal?>("FIFAgentPurPlusRatesPR")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理采购加成比例");
+
+                    b.Property<string>("FISAFTERSALE")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用售后服务");
+
+                    b.Property<string>("FISMinIssueQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("领料考虑最小发料批量");
+
+                    b.Property<string>("FISPRODUCTFILES")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生成产品档案");
+
+                    b.Property<string>("FISWARRANTED")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否保修");
+
+                    b.Property<string>("FIncQcSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("质检方案");
+
+                    b.Property<string>("FIncSampSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("抽样方案");
+
+                    b.Property<decimal?>("FIncreaseQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装量");
+
+                    b.Property<string>("FInspectGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检组");
+
+                    b.Property<string>("FInspectorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检员");
+
+                    b.Property<string>("FIsATPCheck")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("ATP检查");
+
+                    b.Property<string>("FIsAffectCost1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响出库成本");
+
+                    b.Property<string>("FIsAffectPlan1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响计划");
+
+                    b.Property<string>("FIsAffectPrice1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响价格");
+
+                    b.Property<string>("FIsBatchManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用批号管理");
+
+                    b.Property<string>("FIsCoby")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为联副产品");
+
+                    b.Property<string>("FIsComControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("组合控制");
+
+                    b.Property<string>("FIsCompleteSet")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否齐套件");
+
+                    b.Property<string>("FIsCycleCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用盘点周期");
+
+                    b.Property<string>("FIsECN")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用ECN");
+
+                    b.Property<string>("FIsEnable1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用");
+
+                    b.Property<string>("FIsEnableMaxStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最大库存");
+
+                    b.Property<string>("FIsEnableMinStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最小库存");
+
+                    b.Property<string>("FIsEnableReOrder")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用再订货点");
+
+                    b.Property<string>("FIsEnableSafeStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用安全库存");
+
+                    b.Property<string>("FIsEnableSchedule")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用日排产");
+
+                    b.Property<string>("FIsExpParToFlot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("批号附属信息");
+
+                    b.Property<string>("FIsFirstInspect")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品首检");
+
+                    b.Property<string>("FIsInventory")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许库存");
+
+                    b.Property<string>("FIsKFPeriod")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用保质期管理");
+
+                    b.Property<string>("FIsKitting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否关键件");
+
+                    b.Property<string>("FIsLockStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可锁库");
+
+                    b.Property<string>("FIsMainPrd")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为主产品");
+
+                    b.Property<string>("FIsMrpComBill")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否按单合并");
+
+                    b.Property<string>("FIsMrpComReq")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否合并需求");
+
+                    b.Property<string>("FIsMustCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("必盘");
+
+                    b.Property<string>("FIsPR")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("需要请购");
+
+                    b.Property<string>("FIsProductLine")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产线生产");
+
+                    b.Property<string>("FIsPurchase")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许采购");
+
+                    b.Property<string>("FIsQuota")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("配额管理");
+
+                    b.Property<string>("FIsReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退货");
+
+                    b.Property<string>("FIsReturnMaterial")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退料");
+
+                    b.Property<string>("FIsReturnPart")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("部件可退");
+
+                    b.Property<string>("FIsSNCarryToParent")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("序列号携带到父项");
+
+                    b.Property<string>("FIsSNManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存管理");
+
+                    b.Property<string>("FIsSNPRDTracy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产追溯");
+
+                    b.Property<string>("FIsSale")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许销售");
+
+                    b.Property<string>("FIsSourceControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("货源控制");
+
+                    b.Property<string>("FIsSubContract")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许委外");
+
+                    b.Property<string>("FIsTaxEnjoy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("享受税收优惠政策");
+
+                    b.Property<string>("FIsVmiBusiness")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("VMI业务");
+
+                    b.Property<string>("FIssueType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("发料方式");
+
+                    b.Property<decimal?>("FLENGTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("长");
+
+                    b.Property<decimal?>("FLOSSPERCENT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动损耗率(%)");
+
+                    b.Property<decimal?>("FLeadExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提前宽限期");
+
+                    b.Property<string>("FMaterialGroup")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组编码");
+
+                    b.Property<string>("FMaterialGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组");
+
+                    b.Property<decimal?>("FMaxPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大订货量");
+
+                    b.Property<decimal?>("FMaxStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大库存");
+
+                    b.Property<string>("FMdlId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品模型");
+
+                    b.Property<string>("FMdlMaterialId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("模型物料");
+
+                    b.Property<string>("FMfgPolicyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("制造策略");
+
+                    b.Property<decimal?>("FMinIssueQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小发料批量");
+
+                    b.Property<string>("FMinIssueUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("最小发料批量单位");
+
+                    b.Property<decimal?>("FMinPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小订货量");
+
+                    b.Property<decimal?>("FMinPackCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装数");
+
+                    b.Property<decimal?>("FMinSplitQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小拆分数量");
+
+                    b.Property<decimal?>("FMinStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小库存");
+
+                    b.Property<string>("FMnemonicCode")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("助记码");
+
+                    b.Property<string>("FModifierId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("修改人");
+
+                    b.Property<DateTime?>("FModifyDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改日期");
+
+                    b.Property<decimal?>("FNETWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("净重");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("名称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("编码");
+
+                    b.Property<string>("FOldNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码");
+
+                    b.Property<decimal?>("FOnlineLife")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("在架寿命期");
+
+                    b.Property<decimal?>("FOrderIntervalTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("订货间隔期");
+
+                    b.Property<string>("FOrderIntervalTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("订货间隔期单位");
+
+                    b.Property<string>("FOrderPolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订货策略");
+
+                    b.Property<decimal?>("FOrderQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("起订量");
+
+                    b.Property<string>("FOrgTrustBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("组织间受托类型");
+
+                    b.Property<string>("FOutLmtUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制单位");
+
+                    b.Property<decimal?>("FOutStockLmtH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发上限(%)");
+
+                    b.Property<decimal?>("FOutStockLmtL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发下限(%)");
+
+                    b.Property<string>("FOverControlMode")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制方式");
+
+                    b.Property<string>("FPOBillTypeId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购类型");
+
+                    b.Property<decimal?>("FPerUnitStandHour")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准工时");
+
+                    b.Property<string>("FPickBinId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.名称");
+
+                    b.Property<string>("FPickBinId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.编码");
+
+                    b.Property<string>("FPickBinId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.名称");
+
+                    b.Property<string>("FPickBinId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.名称");
+
+                    b.Property<string>("FPickStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓库");
+
+                    b.Property<string>("FPickStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位");
+
+                    b.Property<decimal?>("FPlanBatchSplitQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("拆分批量");
+
+                    b.Property<string>("FPlanGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划组");
+
+                    b.Property<string>("FPlanIdent_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划标识");
+
+                    b.Property<decimal?>("FPlanIntervalsDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("批量拆分间隔天数");
+
+                    b.Property<decimal?>("FPlanOffsetTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("偏置时间");
+
+                    b.Property<string>("FPlanOffsetTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("时间单位");
+
+                    b.Property<decimal?>("FPlanSafeStockQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<decimal?>("FPlanTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("计划时界");
+
+                    b.Property<string>("FPlanWorkshop_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划区");
+
+                    b.Property<string>("FPlanerID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划员");
+
+                    b.Property<string>("FPlanningStrategy")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("计划策略");
+
+                    b.Property<decimal?>("FPrintCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("重复打印数");
+
+                    b.Property<string>("FProScheTrackId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订单进度分组");
+
+                    b.Property<string>("FProduceBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产类型");
+
+                    b.Property<string>("FProduceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产单位");
+
+                    b.Property<string>("FProductLine_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("产品系列");
+
+                    b.Property<string>("FPurchaseGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组");
+
+                    b.Property<string>("FPurchaseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组织");
+
+                    b.Property<string>("FPurchasePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购计价单位");
+
+                    b.Property<string>("FPurchaseUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购单位");
+
+                    b.Property<string>("FPurchaserId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购员");
+
+                    b.Property<string>("FQtyFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("数量负荷系数");
+
+                    b.Property<string>("FQuotaType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("配额方式");
+
+                    b.Property<decimal?>("FReOrderGood")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("再订货点");
+
+                    b.Property<decimal?>("FReceiveAdvanceDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货提前天数");
+
+                    b.Property<decimal?>("FReceiveDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货延迟天数");
+
+                    b.Property<decimal?>("FReceiveMaxScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货上限比例(%)");
+
+                    b.Property<decimal?>("FReceiveMinScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货下限比例(%)");
+
+                    b.Property<decimal?>("FRefCost")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("参考成本");
+
+                    b.Property<decimal?>("FRequestTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("需求时界");
+
+                    b.Property<string>("FReserveType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("预留类型");
+
+                    b.Property<string>("FSNCodeRule_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("序列号编码规则");
+
+                    b.Property<string>("FSNUnit_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("序列号单位");
+
+                    b.Property<decimal?>("FSafeStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<string>("FSalGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("销售分组");
+
+                    b.Property<string>("FSalePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售计价单位");
+
+                    b.Property<string>("FSaleUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售单位");
+
+                    b.Property<string>("FSpecification_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FStandHourUnitId")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("工时单位");
+
+                    b.Property<decimal?>("FStdLaborPrePareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员准备工时");
+
+                    b.Property<decimal?>("FStdLaborProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员实作工时");
+
+                    b.Property<decimal?>("FStdMachinePrepareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器准备工时");
+
+                    b.Property<decimal?>("FStdMachineProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器实作工时");
+
+                    b.Property<decimal?>("FStockCycle")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("复检周期");
+
+                    b.Property<string>("FStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓库");
+
+                    b.Property<string>("FStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位");
+
+                    b.Property<string>("FStockPlaceId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.名称");
+
+                    b.Property<string>("FStoreUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("库存单位");
+
+                    b.Property<string>("FSubBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外类型");
+
+                    b.Property<string>("FSubconPriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外计价单位");
+
+                    b.Property<string>("FSubconUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外单位");
+
+                    b.Property<string>("FSuite")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("套件");
+
+                    b.Property<string>("FSupplySourceId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应来源");
+
+                    b.Property<string>("FTaxCategoryCodeId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收分类编码");
+
+                    b.Property<string>("FTaxDiscountsType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收优惠政策类型");
+
+                    b.Property<string>("FTaxRateId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认税率");
+
+                    b.Property<string>("FTaxType_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税分类");
+
+                    b.Property<string>("FTimeFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("时间紧迫系数");
+
+                    b.Property<string>("FUnValidateExpQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("不参与可发量统计");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("FUseStatus")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("数据状态");
+
+                    b.Property<decimal?>("FVOLUME")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("体积");
+
+                    b.Property<string>("FVOLUMEUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("尺寸单位");
+
+                    b.Property<decimal?>("FVarLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期");
+
+                    b.Property<decimal?>("FVarLeadTimeLotSize")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期批量");
+
+                    b.Property<string>("FVarLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("变动提前期单位");
+
+                    b.Property<decimal?>("FWARRANTY")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保修期");
+
+                    b.Property<string>("FWARRANTYUNITID")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保修期单位");
+
+                    b.Property<string>("FWEIGHTUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("重量单位");
+
+                    b.Property<decimal?>("FWIDTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("宽");
+
+                    b.Property<string>("FWorkShopId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生产车间");
+
+                    b.Property<decimal?>("FWriteOffQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("冲销数量");
+
+                    b.Property<string>("F_BZGG")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("包装规格");
+
+                    b.Property<string>("F_CPFL_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品分类");
+
+                    b.Property<string>("F_CPPLLB")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品披露类别");
+
+                    b.Property<string>("F_CPX_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品线");
+
+                    b.Property<string>("F_DYDWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电压/电网类型");
+
+                    b.Property<string>("F_DZLSX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电子料属性");
+
+                    b.Property<string>("F_GLD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("功率段");
+
+                    b.Property<DateTime?>("F_GSZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("工时最后更改日期");
+
+                    b.Property<string>("F_GSZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("工时最后更改人");
+
+                    b.Property<string>("F_GWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("根物料号");
+
+                    b.Property<string>("F_GYS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("供应商");
+
+                    b.Property<decimal?>("F_HLBZL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("回料包装量");
+
+                    b.Property<string>("F_JCYY")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁采原因");
+
+                    b.Property<string>("F_JWLBMU8")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码U8");
+
+                    b.Property<string>("F_PP_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("品牌");
+
+                    b.Property<string>("F_SFJLPCH")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否记录批次号");
+
+                    b.Property<string>("F_SMZQ")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("料号生命周期");
+
+                    b.Property<DateTime?>("F_SMZQZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生命周期最后更改日期");
+
+                    b.Property<string>("F_SMZQZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生命周期最后更改人");
+
+                    b.Property<DateTime?>("F_TJZLZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("体积重量最后更改日期");
+
+                    b.Property<string>("F_TJZLZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("体积重量最后更改人");
+
+                    b.Property<string>("F_WLLX")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料类型");
+
+                    b.Property<string>("F_WLSQR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料申请人");
+
+                    b.Property<string>("F_XSXH_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("SAJ型号");
+
+                    b.Property<string>("F_YWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("业务类型");
+
+                    b.Property<string>("F_YXQG")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许请购");
+
+                    b.Property<string>("F_YXSL")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许收料");
+
+                    b.Property<string>("F_YZSG")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("已终审过");
+
+                    b.Property<decimal?>("F_ZJCSGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机测试工时");
+
+                    b.Property<string>("F_ZJGLWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("直接关联物料号");
+
+                    b.Property<decimal?>("F_ZJZB_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机质保(月)");
+
+                    b.Property<decimal?>("F_ZYGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("作业工时");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("material", (string)null);
+
+                    b.HasComment("物料");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}

+ 508 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/20230322181446_init.cs

@@ -0,0 +1,508 @@
+using System;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    public partial class init : Migration
+    {
+        protected override void Up(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.AlterDatabase()
+                .Annotation("MySql:CharSet", "utf8mb4");
+
+            migrationBuilder.CreateTable(
+                name: "material",
+                columns: table => new
+                {
+                    Id = table.Column<long>(type: "bigint", nullable: false)
+                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
+                    FCreateOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "使用组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDataSource = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料来源")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FName_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSpecification_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "规格型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMnemonicCode = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "助记码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOldNumber = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDescription_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "描述")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaterialGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaterialGroup = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料分组编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUseStatus = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "数据状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidStatus = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "禁用状态")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCreatorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "创建人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCreateDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "创建日期"),
+                    FModifierId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "修改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FModifyDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "修改日期"),
+                    FApproverId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "审核人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FApproveDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "审核日期"),
+                    FForbidderId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "禁用人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidDate = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "禁用日期"),
+                    FErpClsID = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCategoryID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "存货类别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxType_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxRateId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认税率")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBaseUnitId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "基本单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsPurchase = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许采购")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsInventory = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSubContract = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许委外")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSale = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许销售")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBARCODE = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "条码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FGROSSWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "毛重"),
+                    FNETWEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "净重"),
+                    FVOLUMEUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "尺寸单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FLENGTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "长"),
+                    FWIDTH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "宽"),
+                    FHEIGHT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "高"),
+                    FWEIGHTUNITID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "重量单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FVOLUME = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "体积"),
+                    FStoreUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "库存单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAuxUnitID_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "辅助单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.供应商.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockPlaceId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "仓位.服务机客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsLockStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可锁库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCycleCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用盘点周期")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCountCycle = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "盘点周期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCountDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "盘点周期"),
+                    FIsMustCounting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "必盘")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsBatchManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用批号管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBatchRuleID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "批号编码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsKFPeriod = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用保质期管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsExpParToFlot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "批号附属信息")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FExpUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保质期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FExpPeriod = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保质期"),
+                    FOnlineLife = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "在架寿命期"),
+                    FRefCost = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "参考成本"),
+                    FCurrencyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "币别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSNManage = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableMinStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最小库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableSafeStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用安全库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSNCodeRule_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "序列号编码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableReOrder = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用再订货点")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableMaxStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用最大库存")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSNUnit_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "序列号单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小库存"),
+                    FSafeStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
+                    FReOrderGood = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "再订货点"),
+                    FEconReOrderQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "经济订货批量"),
+                    FMaxStock = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大库存"),
+                    FSaleUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSalePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "销售计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "起订量"),
+                    FOutStockLmtH = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发上限(%)"),
+                    FOutStockLmtL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "超发下限(%)"),
+                    FAgentSalReduceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理销售减价比例(%)"),
+                    FIsATPCheck = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "ATP检查")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退货")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsReturnPart = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "部件可退")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPublish = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许发布到订货平台")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISAFTERSALE = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用售后服务")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISPRODUCTFILES = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生成产品档案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISWARRANTED = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否保修")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWARRANTYUNITID = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "保修期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchasePriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaserId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsQuota = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "配额管理")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FQuotaType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "配额方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinSplitQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小拆分数量"),
+                    FIsVmiBusiness = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "VMI业务")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefaultVendor_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认供应商")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FChargeID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "费用项目")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSourceControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "货源控制")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsPR = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "需要请购")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FReceiveMaxScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货上限比例(%)"),
+                    FReceiveMinScale = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货下限比例(%)"),
+                    FIFAgentPurPlusRatesPR = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "代理采购加成比例"),
+                    FReceiveAdvanceDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货提前天数"),
+                    FReceiveDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "收货延迟天数"),
+                    FIsReturnMaterial = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许退料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPurchaseOrgId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "采购组织")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubconUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubconPriceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外计价单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPOBillTypeId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "采购类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSubBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "委外类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanningStrategy = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "计划策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMfgPolicyId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "制造策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "检验提前期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderPolicy = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订货策略")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小订货量"),
+                    FPlanWorkshop_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划区")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrderIntervalTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "订货间隔期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFixLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期"),
+                    FIncreaseQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装量"),
+                    FFixLeadTimeType = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定提前期单位"),
+                    FOrderIntervalTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "订货间隔期"),
+                    FVarLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期"),
+                    FVarLeadTimeLotSize = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动提前期批量"),
+                    FVarLeadTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "变动提前期单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMaxPOQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最大订货量"),
+                    FCheckLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "检验提前期"),
+                    FEOQ = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定/经济批量"),
+                    FPlanIntervalsDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "批量拆分间隔天数"),
+                    FPlanBatchSplitQty = table.Column<decimal>(type: "decimal(20,10)", precision: 20, scale: 10, nullable: true, comment: "拆分批量"),
+                    FIsMrpComReq = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否合并需求")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FRequestTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "需求时界"),
+                    FIsMrpComBill = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "MRP计算是否按单合并")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCanLeadDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许提前天数"),
+                    FPlanTimeZone = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "计划时界"),
+                    FReserveType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "预留类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPlanGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FLeadExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提前宽限期"),
+                    FPlanerID_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FATOSchemeId_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "ATO预测冲销方案"),
+                    FCanDelayDays = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "允许延后天数"),
+                    FPlanOffsetTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "偏置时间"),
+                    FPlanSafeStockQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "安全库存"),
+                    FDSMatchByLot = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "按批号匹配供需")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPartAhead = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分提前")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTimeFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "时间紧迫系数")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAllowPartDelay = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "预计入库允许部分延后")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FQtyFactorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "数量负荷系数")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSupplySourceId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "供应来源")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDelayExtendDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "延后宽限期"),
+                    FPlanOffsetTimeType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "时间单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIssueType = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "发料方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWorkShopId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生产车间")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCoby = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为联副产品")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProduceUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsMainPrd = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "可为主产品")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBKFLTime = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲时机")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFinishReceiptOverRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "入库超收比例(%)"),
+                    FPickStockId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓库")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFinishReceiptShortRate = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "入库欠收比例(%)")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickStockLoc = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100002 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100002_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100003 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100003_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.供应商.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100004 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPickBinId_FF100004_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "发料仓位.服务机客户.名称")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOverControlMode = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制方式")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBOMUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "子项单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinIssueQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小发料批量"),
+                    FIsKitting = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否关键件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsCompleteSet = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否齐套件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStdLaborPrePareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员准备工时"),
+                    FStdLaborProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准人员实作工时"),
+                    FDefaultRouting_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认工艺路线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPerUnitStandHour = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准工时"),
+                    FStdMachinePrepareTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器准备工时"),
+                    FConsumVolatility = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "消耗波动(%)"),
+                    FLOSSPERCENT = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "变动损耗率(%)"),
+                    FIsSNCarryToParent = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "序列号携带到父项")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStdMachineProcessTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "标准机器实作工时"),
+                    FIsProductLine = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产线生产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProduceBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "生产类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FOrgTrustBillType_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "组织间受托类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FISMinIssueQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "领料考虑最小发料批量")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsECN = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用ECN")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnable1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectPrice1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响价格")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectPlan1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响计划")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsAffectCost1 = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "影响出库成本")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAuxPropertyId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "辅助属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsComControl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "组合控制")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckIncoming = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "来料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckStock = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "库存检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckProduct = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIncSampSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "抽样方案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIncQcSchemeId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "质检方案")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FEnableCyclistQCSTK = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStockCycle = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "复检周期"),
+                    FEnableCyclistQCSTKEW = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用库存周期复检提醒")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsSNPRDTracy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产追溯")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FEWLeadDay = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "提醒提前期"),
+                    FWARRANTY = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "保修期"),
+                    FOutLmtUnit = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "超发控制单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FInspectGroupId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckDelivery = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "发货检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefBarCodeRuleId_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "默认条码规则")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckReturn = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "退货检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FInspectorId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "质检员")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCONFIGTYPE = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "配置生产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FFeatureItem = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "特征件子项")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FPrintCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "重复打印数"),
+                    FMinIssueUnitId_Name = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "最小发料批量单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMdlId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品模型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMdlMaterialId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "模型物料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxCategoryCodeId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收分类编码")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckEntrusted = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "受托材料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FSuite = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "套件")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FBoxStandardQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "单箱标准数量"),
+                    FSalGroup_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "销售分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckOther = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "其他检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsTaxEnjoy = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "享受税收优惠政策")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FTaxDiscountsType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "税收优惠政策类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FStandHourUnitId = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "工时单位")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCostPriceRate = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "结算成本价加减价比例(%)"),
+                    FBackFlushType = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "倒冲数量")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FAccuLeadTime = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "累计提前期"),
+                    FProductLine_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "产品系列")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FWriteOffQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "冲销数量"),
+                    FFIXLOSS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "固定损耗"),
+                    FPlanIdent_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "计划标识")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FProScheTrackId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "订单进度分组")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FMinPackCount = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "最小包装数"),
+                    FDailyOutQty = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "日产量"),
+                    FIsFirstInspect = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "产品首检")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FCheckReturnMtrl = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "生产退料检验")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidReson_2052 = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁用原因")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FForbidResonIsUsed = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "已使用")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FUnValidateExpQty = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "不参与可发量统计")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_WLLX = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "物料类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FIsEnableSchedule = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "启用日排产")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJGLWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "直接关联物料号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    FDefaultLineId_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "默认产线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_DYDWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电压/电网类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GWLH_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "根物料号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GLD_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "功率段")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_DZLSX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "电子料属性")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_JWLBMU8 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "旧物料编码U8")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_PP_Name = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "品牌")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJCSGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机测试工时"),
+                    F_ZYGS = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "作业工时"),
+                    F_GSZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "工时最后更改日期"),
+                    F_TJZLZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "体积重量最后更改日期"),
+                    F_SMZQZHGGRQ = table.Column<DateTime>(type: "datetime(6)", nullable: true, comment: "生命周期最后更改日期"),
+                    F_TJZLZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "体积重量最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_SMZQZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "生命周期最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GSZHGGR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "工时最后更改人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_ZJZB_Name = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "整机质保(月)"),
+                    F_SFJLPCH = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "是否记录批次号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YWLX = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "业务类型")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPPLLB = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品披露类别")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YZSG = table.Column<string>(type: "varchar(10)", maxLength: 10, nullable: true, comment: "已终审过")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_WLSQR_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "物料申请人")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPX_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品线")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_CPFL_Name = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "产品分类")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_SMZQ = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "料号生命周期")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YXSL = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许收料")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_XSXH_2052 = table.Column<string>(type: "varchar(80)", maxLength: 80, nullable: true, comment: "SAJ型号")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_HLBZL = table.Column<decimal>(type: "decimal(20,8)", precision: 20, scale: 8, nullable: true, comment: "回料包装量"),
+                    F_BZGG = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "包装规格")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_GYS = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "供应商")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_JCYY = table.Column<string>(type: "varchar(255)", maxLength: 255, nullable: true, comment: "禁采原因")
+                        .Annotation("MySql:CharSet", "utf8mb4"),
+                    F_YXQG = table.Column<string>(type: "varchar(1)", maxLength: 1, nullable: true, comment: "允许请购")
+                        .Annotation("MySql:CharSet", "utf8mb4")
+                },
+                constraints: table =>
+                {
+                    table.PrimaryKey("PK_material", x => x.Id);
+                },
+                comment: "物料")
+                .Annotation("MySql:CharSet", "utf8mb4");
+        }
+
+        protected override void Down(MigrationBuilder migrationBuilder)
+        {
+            migrationBuilder.DropTable(
+                name: "material");
+        }
+    }
+}

+ 1402 - 0
MicroServices/Business/Business.Host/Migrations/BusinessExtMigrationDb/BusinessExtMigrationDbContextModelSnapshot.cs

@@ -0,0 +1,1402 @@
+// <auto-generated />
+using System;
+using Business.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+
+#nullable disable
+
+namespace Business.Migrations.BusinessExtMigrationDb
+{
+    [DbContext(typeof(BusinessExtMigrationDbContext))]
+    partial class BusinessExtMigrationDbContextModelSnapshot : ModelSnapshot
+    {
+        protected override void BuildModel(ModelBuilder modelBuilder)
+        {
+#pragma warning disable 612, 618
+            modelBuilder
+                .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
+                .HasAnnotation("ProductVersion", "6.0.5")
+                .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+            modelBuilder.Entity("Bussiness.Model.Ext.material", b =>
+                {
+                    b.Property<long>("Id")
+                        .ValueGeneratedOnAdd()
+                        .HasColumnType("bigint");
+
+                    b.Property<decimal?>("FATOSchemeId_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("ATO预测冲销方案");
+
+                    b.Property<decimal?>("FAccuLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("累计提前期");
+
+                    b.Property<decimal?>("FAgentSalReduceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理销售减价比例(%)");
+
+                    b.Property<string>("FAllowPartAhead")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分提前");
+
+                    b.Property<string>("FAllowPartDelay")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("预计入库允许部分延后");
+
+                    b.Property<string>("FAllowPublish")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许发布到订货平台");
+
+                    b.Property<DateTime?>("FApproveDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("审核日期");
+
+                    b.Property<string>("FApproverId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("审核人");
+
+                    b.Property<string>("FAuxPropertyId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("辅助属性");
+
+                    b.Property<string>("FAuxUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("辅助单位");
+
+                    b.Property<string>("FBARCODE")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("条码");
+
+                    b.Property<string>("FBKFLTime")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲时机");
+
+                    b.Property<string>("FBOMUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("子项单位");
+
+                    b.Property<string>("FBackFlushType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("倒冲数量");
+
+                    b.Property<string>("FBaseUnitId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("基本单位");
+
+                    b.Property<string>("FBatchRuleID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("批号编码规则");
+
+                    b.Property<decimal?>("FBoxStandardQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("单箱标准数量");
+
+                    b.Property<string>("FCONFIGTYPE")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("配置生产");
+
+                    b.Property<decimal?>("FCanDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许延后天数");
+
+                    b.Property<decimal?>("FCanLeadDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("允许提前天数");
+
+                    b.Property<string>("FCategoryID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("存货类别");
+
+                    b.Property<string>("FChargeID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("费用项目");
+
+                    b.Property<string>("FCheckDelivery")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("发货检验");
+
+                    b.Property<string>("FCheckEntrusted")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("受托材料检验");
+
+                    b.Property<string>("FCheckIncoming")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("来料检验");
+
+                    b.Property<decimal?>("FCheckLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("检验提前期");
+
+                    b.Property<string>("FCheckLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("检验提前期单位");
+
+                    b.Property<string>("FCheckOther")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("其他检验");
+
+                    b.Property<string>("FCheckProduct")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品检验");
+
+                    b.Property<string>("FCheckReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("退货检验");
+
+                    b.Property<string>("FCheckReturnMtrl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产退料检验");
+
+                    b.Property<string>("FCheckStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存检验");
+
+                    b.Property<decimal?>("FConsumVolatility")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("消耗波动(%)");
+
+                    b.Property<decimal?>("FCostPriceRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("结算成本价加减价比例(%)");
+
+                    b.Property<string>("FCountCycle")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("盘点周期单位");
+
+                    b.Property<decimal?>("FCountDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("盘点周期");
+
+                    b.Property<DateTime?>("FCreateDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("创建日期");
+
+                    b.Property<string>("FCreateOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建组织");
+
+                    b.Property<string>("FCreatorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("创建人");
+
+                    b.Property<string>("FCurrencyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("币别");
+
+                    b.Property<string>("FDSMatchByLot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("按批号匹配供需");
+
+                    b.Property<decimal?>("FDailyOutQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("日产量");
+
+                    b.Property<string>("FDataSource")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料来源");
+
+                    b.Property<string>("FDefBarCodeRuleId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认条码规则");
+
+                    b.Property<string>("FDefaultLineId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认产线");
+
+                    b.Property<string>("FDefaultRouting_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("默认工艺路线");
+
+                    b.Property<string>("FDefaultVendor_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认供应商");
+
+                    b.Property<decimal?>("FDelayExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("延后宽限期");
+
+                    b.Property<string>("FDescription_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("描述");
+
+                    b.Property<decimal?>("FEOQ")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定/经济批量");
+
+                    b.Property<decimal?>("FEWLeadDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提醒提前期");
+
+                    b.Property<decimal?>("FEconReOrderQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("经济订货批量");
+
+                    b.Property<string>("FEnableCyclistQCSTK")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检");
+
+                    b.Property<string>("FEnableCyclistQCSTKEW")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用库存周期复检提醒");
+
+                    b.Property<string>("FErpClsID")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料属性");
+
+                    b.Property<decimal?>("FExpPeriod")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保质期");
+
+                    b.Property<string>("FExpUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保质期单位");
+
+                    b.Property<decimal?>("FFIXLOSS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定损耗");
+
+                    b.Property<string>("FFeatureItem")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("特征件子项");
+
+                    b.Property<decimal?>("FFinishReceiptOverRate")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("入库超收比例(%)");
+
+                    b.Property<string>("FFinishReceiptShortRate")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("入库欠收比例(%)");
+
+                    b.Property<decimal?>("FFixLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期");
+
+                    b.Property<decimal?>("FFixLeadTimeType")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("固定提前期单位");
+
+                    b.Property<DateTime?>("FForbidDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("禁用日期");
+
+                    b.Property<string>("FForbidResonIsUsed")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("已使用");
+
+                    b.Property<string>("FForbidReson_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁用原因");
+
+                    b.Property<string>("FForbidStatus")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("禁用状态");
+
+                    b.Property<string>("FForbidderId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("禁用人");
+
+                    b.Property<decimal?>("FGROSSWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("毛重");
+
+                    b.Property<decimal?>("FHEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("高");
+
+                    b.Property<decimal?>("FIFAgentPurPlusRatesPR")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("代理采购加成比例");
+
+                    b.Property<string>("FISAFTERSALE")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用售后服务");
+
+                    b.Property<string>("FISMinIssueQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("领料考虑最小发料批量");
+
+                    b.Property<string>("FISPRODUCTFILES")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生成产品档案");
+
+                    b.Property<string>("FISWARRANTED")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否保修");
+
+                    b.Property<string>("FIncQcSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("质检方案");
+
+                    b.Property<string>("FIncSampSchemeId_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("抽样方案");
+
+                    b.Property<decimal?>("FIncreaseQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装量");
+
+                    b.Property<string>("FInspectGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检组");
+
+                    b.Property<string>("FInspectorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("质检员");
+
+                    b.Property<string>("FIsATPCheck")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("ATP检查");
+
+                    b.Property<string>("FIsAffectCost1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响出库成本");
+
+                    b.Property<string>("FIsAffectPlan1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响计划");
+
+                    b.Property<string>("FIsAffectPrice1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("影响价格");
+
+                    b.Property<string>("FIsBatchManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用批号管理");
+
+                    b.Property<string>("FIsCoby")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为联副产品");
+
+                    b.Property<string>("FIsComControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("组合控制");
+
+                    b.Property<string>("FIsCompleteSet")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否齐套件");
+
+                    b.Property<string>("FIsCycleCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用盘点周期");
+
+                    b.Property<string>("FIsECN")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用ECN");
+
+                    b.Property<string>("FIsEnable1")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用");
+
+                    b.Property<string>("FIsEnableMaxStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最大库存");
+
+                    b.Property<string>("FIsEnableMinStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用最小库存");
+
+                    b.Property<string>("FIsEnableReOrder")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用再订货点");
+
+                    b.Property<string>("FIsEnableSafeStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用安全库存");
+
+                    b.Property<string>("FIsEnableSchedule")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用日排产");
+
+                    b.Property<string>("FIsExpParToFlot")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("批号附属信息");
+
+                    b.Property<string>("FIsFirstInspect")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("产品首检");
+
+                    b.Property<string>("FIsInventory")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许库存");
+
+                    b.Property<string>("FIsKFPeriod")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("启用保质期管理");
+
+                    b.Property<string>("FIsKitting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否关键件");
+
+                    b.Property<string>("FIsLockStock")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可锁库");
+
+                    b.Property<string>("FIsMainPrd")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("可为主产品");
+
+                    b.Property<string>("FIsMrpComBill")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否按单合并");
+
+                    b.Property<string>("FIsMrpComReq")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("MRP计算是否合并需求");
+
+                    b.Property<string>("FIsMustCounting")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("必盘");
+
+                    b.Property<string>("FIsPR")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("需要请购");
+
+                    b.Property<string>("FIsProductLine")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产线生产");
+
+                    b.Property<string>("FIsPurchase")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许采购");
+
+                    b.Property<string>("FIsQuota")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("配额管理");
+
+                    b.Property<string>("FIsReturn")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退货");
+
+                    b.Property<string>("FIsReturnMaterial")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许退料");
+
+                    b.Property<string>("FIsReturnPart")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("部件可退");
+
+                    b.Property<string>("FIsSNCarryToParent")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("序列号携带到父项");
+
+                    b.Property<string>("FIsSNManage")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("库存管理");
+
+                    b.Property<string>("FIsSNPRDTracy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("生产追溯");
+
+                    b.Property<string>("FIsSale")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许销售");
+
+                    b.Property<string>("FIsSourceControl")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("货源控制");
+
+                    b.Property<string>("FIsSubContract")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许委外");
+
+                    b.Property<string>("FIsTaxEnjoy")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("享受税收优惠政策");
+
+                    b.Property<string>("FIsVmiBusiness")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("VMI业务");
+
+                    b.Property<string>("FIssueType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("发料方式");
+
+                    b.Property<decimal?>("FLENGTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("长");
+
+                    b.Property<decimal?>("FLOSSPERCENT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动损耗率(%)");
+
+                    b.Property<decimal?>("FLeadExtendDay")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("提前宽限期");
+
+                    b.Property<string>("FMaterialGroup")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组编码");
+
+                    b.Property<string>("FMaterialGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料分组");
+
+                    b.Property<decimal?>("FMaxPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大订货量");
+
+                    b.Property<decimal?>("FMaxStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最大库存");
+
+                    b.Property<string>("FMdlId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品模型");
+
+                    b.Property<string>("FMdlMaterialId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("模型物料");
+
+                    b.Property<string>("FMfgPolicyId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("制造策略");
+
+                    b.Property<decimal?>("FMinIssueQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小发料批量");
+
+                    b.Property<string>("FMinIssueUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("最小发料批量单位");
+
+                    b.Property<decimal?>("FMinPOQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小订货量");
+
+                    b.Property<decimal?>("FMinPackCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小包装数");
+
+                    b.Property<decimal?>("FMinSplitQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小拆分数量");
+
+                    b.Property<decimal?>("FMinStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("最小库存");
+
+                    b.Property<string>("FMnemonicCode")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("助记码");
+
+                    b.Property<string>("FModifierId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("修改人");
+
+                    b.Property<DateTime?>("FModifyDate")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("修改日期");
+
+                    b.Property<decimal?>("FNETWEIGHT")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("净重");
+
+                    b.Property<string>("FName_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("名称");
+
+                    b.Property<string>("FNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("编码");
+
+                    b.Property<string>("FOldNumber")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码");
+
+                    b.Property<decimal?>("FOnlineLife")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("在架寿命期");
+
+                    b.Property<decimal?>("FOrderIntervalTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("订货间隔期");
+
+                    b.Property<string>("FOrderIntervalTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("订货间隔期单位");
+
+                    b.Property<string>("FOrderPolicy")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订货策略");
+
+                    b.Property<decimal?>("FOrderQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("起订量");
+
+                    b.Property<string>("FOrgTrustBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("组织间受托类型");
+
+                    b.Property<string>("FOutLmtUnit")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制单位");
+
+                    b.Property<decimal?>("FOutStockLmtH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发上限(%)");
+
+                    b.Property<decimal?>("FOutStockLmtL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("超发下限(%)");
+
+                    b.Property<string>("FOverControlMode")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("超发控制方式");
+
+                    b.Property<string>("FPOBillTypeId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购类型");
+
+                    b.Property<decimal?>("FPerUnitStandHour")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准工时");
+
+                    b.Property<string>("FPickBinId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.客户.名称");
+
+                    b.Property<string>("FPickBinId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.编码");
+
+                    b.Property<string>("FPickBinId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.供应商.名称");
+
+                    b.Property<string>("FPickBinId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.编码");
+
+                    b.Property<string>("FPickBinId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位.服务机客户.名称");
+
+                    b.Property<string>("FPickStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓库");
+
+                    b.Property<string>("FPickStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("发料仓位");
+
+                    b.Property<decimal?>("FPlanBatchSplitQty")
+                        .HasPrecision(20, 10)
+                        .HasColumnType("decimal(20,10)")
+                        .HasComment("拆分批量");
+
+                    b.Property<string>("FPlanGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划组");
+
+                    b.Property<string>("FPlanIdent_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划标识");
+
+                    b.Property<decimal?>("FPlanIntervalsDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("批量拆分间隔天数");
+
+                    b.Property<decimal?>("FPlanOffsetTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("偏置时间");
+
+                    b.Property<string>("FPlanOffsetTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("时间单位");
+
+                    b.Property<decimal?>("FPlanSafeStockQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<decimal?>("FPlanTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("计划时界");
+
+                    b.Property<string>("FPlanWorkshop_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划区");
+
+                    b.Property<string>("FPlanerID_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("计划员");
+
+                    b.Property<string>("FPlanningStrategy")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("计划策略");
+
+                    b.Property<decimal?>("FPrintCount")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("重复打印数");
+
+                    b.Property<string>("FProScheTrackId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("订单进度分组");
+
+                    b.Property<string>("FProduceBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产类型");
+
+                    b.Property<string>("FProduceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("生产单位");
+
+                    b.Property<string>("FProductLine_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("产品系列");
+
+                    b.Property<string>("FPurchaseGroupId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组");
+
+                    b.Property<string>("FPurchaseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购组织");
+
+                    b.Property<string>("FPurchasePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购计价单位");
+
+                    b.Property<string>("FPurchaseUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("采购单位");
+
+                    b.Property<string>("FPurchaserId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("采购员");
+
+                    b.Property<string>("FQtyFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("数量负荷系数");
+
+                    b.Property<string>("FQuotaType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("配额方式");
+
+                    b.Property<decimal?>("FReOrderGood")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("再订货点");
+
+                    b.Property<decimal?>("FReceiveAdvanceDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货提前天数");
+
+                    b.Property<decimal?>("FReceiveDelayDays")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货延迟天数");
+
+                    b.Property<decimal?>("FReceiveMaxScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货上限比例(%)");
+
+                    b.Property<decimal?>("FReceiveMinScale")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("收货下限比例(%)");
+
+                    b.Property<decimal?>("FRefCost")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("参考成本");
+
+                    b.Property<decimal?>("FRequestTimeZone")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("需求时界");
+
+                    b.Property<string>("FReserveType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("预留类型");
+
+                    b.Property<string>("FSNCodeRule_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("序列号编码规则");
+
+                    b.Property<string>("FSNUnit_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("序列号单位");
+
+                    b.Property<decimal?>("FSafeStock")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("安全库存");
+
+                    b.Property<string>("FSalGroup_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("销售分组");
+
+                    b.Property<string>("FSalePriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售计价单位");
+
+                    b.Property<string>("FSaleUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("销售单位");
+
+                    b.Property<string>("FSpecification_2052")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("规格型号");
+
+                    b.Property<string>("FStandHourUnitId")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("工时单位");
+
+                    b.Property<decimal?>("FStdLaborPrePareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员准备工时");
+
+                    b.Property<decimal?>("FStdLaborProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准人员实作工时");
+
+                    b.Property<decimal?>("FStdMachinePrepareTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器准备工时");
+
+                    b.Property<decimal?>("FStdMachineProcessTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("标准机器实作工时");
+
+                    b.Property<decimal?>("FStockCycle")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("复检周期");
+
+                    b.Property<string>("FStockId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓库");
+
+                    b.Property<string>("FStockLoc")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位");
+
+                    b.Property<string>("FStockPlaceId_FF100002")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100002_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.客户.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100003")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100003_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.供应商.名称");
+
+                    b.Property<string>("FStockPlaceId_FF100004")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.编码");
+
+                    b.Property<string>("FStockPlaceId_FF100004_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("仓位.服务机客户.名称");
+
+                    b.Property<string>("FStoreUnitID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("库存单位");
+
+                    b.Property<string>("FSubBillType_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外类型");
+
+                    b.Property<string>("FSubconPriceUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外计价单位");
+
+                    b.Property<string>("FSubconUnitId_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("委外单位");
+
+                    b.Property<string>("FSuite")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("套件");
+
+                    b.Property<string>("FSupplySourceId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("供应来源");
+
+                    b.Property<string>("FTaxCategoryCodeId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收分类编码");
+
+                    b.Property<string>("FTaxDiscountsType")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税收优惠政策类型");
+
+                    b.Property<string>("FTaxRateId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("默认税率");
+
+                    b.Property<string>("FTaxType_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("税分类");
+
+                    b.Property<string>("FTimeFactorId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("时间紧迫系数");
+
+                    b.Property<string>("FUnValidateExpQty")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("不参与可发量统计");
+
+                    b.Property<string>("FUseOrgId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("使用组织");
+
+                    b.Property<string>("FUseStatus")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("数据状态");
+
+                    b.Property<decimal?>("FVOLUME")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("体积");
+
+                    b.Property<string>("FVOLUMEUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("尺寸单位");
+
+                    b.Property<decimal?>("FVarLeadTime")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期");
+
+                    b.Property<decimal?>("FVarLeadTimeLotSize")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("变动提前期批量");
+
+                    b.Property<string>("FVarLeadTimeType")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("变动提前期单位");
+
+                    b.Property<decimal?>("FWARRANTY")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("保修期");
+
+                    b.Property<string>("FWARRANTYUNITID")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("保修期单位");
+
+                    b.Property<string>("FWEIGHTUNITID_Name")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("重量单位");
+
+                    b.Property<decimal?>("FWIDTH")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("宽");
+
+                    b.Property<string>("FWorkShopId_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生产车间");
+
+                    b.Property<decimal?>("FWriteOffQty")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("冲销数量");
+
+                    b.Property<string>("F_BZGG")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("包装规格");
+
+                    b.Property<string>("F_CPFL_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品分类");
+
+                    b.Property<string>("F_CPPLLB")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品披露类别");
+
+                    b.Property<string>("F_CPX_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("产品线");
+
+                    b.Property<string>("F_DYDWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电压/电网类型");
+
+                    b.Property<string>("F_DZLSX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("电子料属性");
+
+                    b.Property<string>("F_GLD_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("功率段");
+
+                    b.Property<DateTime?>("F_GSZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("工时最后更改日期");
+
+                    b.Property<string>("F_GSZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("工时最后更改人");
+
+                    b.Property<string>("F_GWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("根物料号");
+
+                    b.Property<string>("F_GYS")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("供应商");
+
+                    b.Property<decimal?>("F_HLBZL")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("回料包装量");
+
+                    b.Property<string>("F_JCYY")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("禁采原因");
+
+                    b.Property<string>("F_JWLBMU8")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("旧物料编码U8");
+
+                    b.Property<string>("F_PP_Name")
+                        .HasMaxLength(255)
+                        .HasColumnType("varchar(255)")
+                        .HasComment("品牌");
+
+                    b.Property<string>("F_SFJLPCH")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("是否记录批次号");
+
+                    b.Property<string>("F_SMZQ")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("料号生命周期");
+
+                    b.Property<DateTime?>("F_SMZQZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("生命周期最后更改日期");
+
+                    b.Property<string>("F_SMZQZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("生命周期最后更改人");
+
+                    b.Property<DateTime?>("F_TJZLZHGGRQ")
+                        .HasColumnType("datetime(6)")
+                        .HasComment("体积重量最后更改日期");
+
+                    b.Property<string>("F_TJZLZHGGR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("体积重量最后更改人");
+
+                    b.Property<string>("F_WLLX")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("物料类型");
+
+                    b.Property<string>("F_WLSQR_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("物料申请人");
+
+                    b.Property<string>("F_XSXH_2052")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("SAJ型号");
+
+                    b.Property<string>("F_YWLX")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("业务类型");
+
+                    b.Property<string>("F_YXQG")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许请购");
+
+                    b.Property<string>("F_YXSL")
+                        .HasMaxLength(1)
+                        .HasColumnType("varchar(1)")
+                        .HasComment("允许收料");
+
+                    b.Property<string>("F_YZSG")
+                        .HasMaxLength(10)
+                        .HasColumnType("varchar(10)")
+                        .HasComment("已终审过");
+
+                    b.Property<decimal?>("F_ZJCSGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机测试工时");
+
+                    b.Property<string>("F_ZJGLWLH_Name")
+                        .HasMaxLength(80)
+                        .HasColumnType("varchar(80)")
+                        .HasComment("直接关联物料号");
+
+                    b.Property<decimal?>("F_ZJZB_Name")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("整机质保(月)");
+
+                    b.Property<decimal?>("F_ZYGS")
+                        .HasPrecision(20, 8)
+                        .HasColumnType("decimal(20,8)")
+                        .HasComment("作业工时");
+
+                    b.HasKey("Id");
+
+                    b.ToTable("material", (string)null);
+
+                    b.HasComment("物料");
+                });
+#pragma warning restore 612, 618
+        }
+    }
+}

+ 2 - 0
MicroServices/Business/Business.Host/appsettings.json

@@ -5,6 +5,8 @@
   "ConnectionStrings": {
     "Default": "Server=123.60.180.165;Database=dopbiz;Uid=root; Pwd=5heng=uN;Allow User Variables=true",
     "DOPLog": "Server=123.60.180.165;Database=doplog;Uid=root; Pwd=5heng=uN;Allow User Variables=true",
+    "DOPBang": "Server=123.60.180.165;Database=dopbang;Uid=root; Pwd=5heng=uN;Allow User Variables=true",
+    "DOPExt": "Server=123.60.180.165;Database=dopext;Uid=root; Pwd=5heng=uN;Allow User Variables=true",
     "MongoDB": "mongodb://zzydop:h1Q$us3r@123.60.180.165/",
     "DBName": "dopbase"
   },

+ 0 - 1
MicroServices/Business/Business.HttpApi/Business.HttpApi.csproj

@@ -26,7 +26,6 @@
 
   <ItemGroup>
     <Folder Include="Controllers\MES\" />
-    <Folder Include="Controllers\DOP\" />
   </ItemGroup>
 
 </Project>

+ 13 - 0
MicroServices/Business/Business.HttpApi/Controllers/WMS/KingdeeController.cs

@@ -1,5 +1,6 @@
 using Business.Core.Utilities;
 using Business.ResourceExamineManagement;
+using Business.ResourceExamineManagement.Dto;
 using Bussiness.Model.SystemData;
 using Microsoft.AspNetCore.Mvc;
 using System;
@@ -49,5 +50,17 @@ namespace Business.Controllers.WMS
         {
             return _SerialNumberAppService.SyncMaterial();
         }
+
+        /// <summary>
+        /// 资源检查
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpGet]
+        [Route("mytest")]
+        public Task<string> ReceiveResult(SeorderentryDto input)
+        {
+            return _SerialNumberAppService.ReceiveResult(input);
+        }
     }
 }

+ 1797 - 0
MicroServices/Business/Bussiness.Model/Ext/material.cs

@@ -0,0 +1,1797 @@
+using Business.Core.Attributes;
+using Business.Model;
+using Microsoft.EntityFrameworkCore;
+using System.ComponentModel;
+using System.ComponentModel.DataAnnotations;
+using Volo.Abp.Domain.Entities;
+
+namespace Bussiness.Model.Ext
+{
+    /// <summary>
+    /// 物料
+    /// </summary>
+    [CollectionName("dopbase", "material")]
+    [Comment("物料")]
+    public class material : Entity<long>
+    {
+        /// <summary>
+        /// 创建组织
+        /// </summary>
+        [StringLength(80)]
+        [Comment("创建组织")]
+        public string? FCreateOrgId_Name { get; set; }
+        /// <summary>
+        /// 使用组织
+        /// </summary>
+        [StringLength(80)]
+        [Comment("使用组织")]
+        public string? FUseOrgId_Name { get; set; }
+
+        /// <summary>
+        /// 编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("编码")]
+        public string? FNumber { get; set; }
+        /// <summary>
+        /// 物料来源
+        /// </summary>
+        [StringLength(10)]
+        [Comment("物料来源")]
+        public string? FDataSource { get; set; }
+        /// <summary>
+        /// 名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("名称")]
+        public string? FName_2052 { get; set; }
+
+        /// <summary>
+        /// 规格型号
+        /// </summary>
+        [StringLength(255)]
+        [Comment("规格型号")]
+        public string? FSpecification_2052 { get; set; }
+
+        /// <summary>
+        /// 助记码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("助记码")]
+        public string? FMnemonicCode { get; set; }
+
+        /// <summary>
+        /// 旧物料编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("旧物料编码")]
+        public string? FOldNumber { get; set; }
+
+        /// <summary>
+        /// 描述
+        /// </summary>
+        [StringLength(255)]
+        [Comment("描述")]
+        public string? FDescription_2052 { get; set; }
+        /// <summary>
+        /// 物料分组
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料分组")]
+        public string? FMaterialGroup_Name { get; set; }
+
+        /// <summary>
+        /// 物料分组编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料分组编码")]
+        public string? FMaterialGroup { get; set; }
+
+        /// <summary>
+        /// 数据状态
+        /// </summary>
+        [Comment("数据状态")]
+        [StringLength(255)]
+        public string? FUseStatus { get; set; }
+
+        /// <summary>
+        /// 禁用状态
+        /// </summary>
+        [Comment("禁用状态")]
+        [StringLength(10)]
+        public string? FForbidStatus { get; set; }
+
+        /// <summary>
+        /// 创建人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("创建人")]
+        public string? FCreatorId_Name { get; set; }
+        /// <summary>
+        /// 创建日期
+        /// </summary>
+        [Comment("创建日期")]
+        public DateTime? FCreateDate { get; set; }
+
+        /// <summary>
+        /// 修改人
+        /// </summary>
+        [Comment("修改人")]
+        [StringLength(80)]
+        public string? FModifierId_Name { get; set; }
+        /// <summary>
+        /// 修改日期
+        /// </summary>
+        [Comment("修改日期")]
+        public DateTime? FModifyDate { get; set; }
+        /// <summary>
+        /// 审核人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("审核人")]
+        public string? FApproverId_Name { get; set; }
+
+        /// <summary>
+        /// 审核日期
+        [Comment("审核日期")]
+        public DateTime? FApproveDate { get; set; }
+        /// <summary>
+        /// 禁用人
+        /// </summary>
+        [Comment("禁用人")]
+        [StringLength(80)]
+        public string? FForbidderId_Name { get; set; }
+        /// <summary>
+        /// 禁用日期
+        /// </summary>
+        [Comment("禁用日期")]
+        public DateTime? FForbidDate { get; set; }
+
+        /// <summary>
+        /// 物料属性
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料属性")]
+        public string? FErpClsID { get; set; }
+        /// <summary>
+        /// 存货类别
+        /// </summary>
+        [Comment("存货类别")]
+        [StringLength(80)]
+        public string? FCategoryID_Name { get; set; }
+        /// <summary>
+        /// 税分类
+        /// </summary>
+        [Comment("税分类")]
+        [StringLength(80)]
+        public string? FTaxType_Name { get; set; }
+        /// <summary>
+        /// 默认税率
+        /// </summary>
+        [Comment("默认税率")]
+        [StringLength(80)]
+        public string? FTaxRateId_Name { get; set; }
+        /// <summary>
+        /// 基本单位
+        /// </summary>
+         [StringLength(80)]
+        [Comment("基本单位")]
+        public string? FBaseUnitId_Name { get; set; }
+        /// <summary>
+        /// 允许采购
+        /// </summary>
+        [Comment("允许采购")]
+         [StringLength(1)]
+        public string? FIsPurchase { get; set; }
+        /// <summary>
+        /// 允许库存
+        /// </summary>
+         [StringLength(1)]
+        [Comment("允许库存")]
+        public string? FIsInventory { get; set; }
+        /// <summary>
+        /// 允许委外
+        /// </summary>
+        [Comment("允许委外")]
+         [StringLength(1)]
+        public string? FIsSubContract { get; set; }
+        /// <summary>
+        /// 允许销售
+        /// </summary>
+        [Comment("允许销售")]
+         [StringLength(1)]
+        public string? FIsSale { get; set; }
+
+        /// <summary>
+        /// 条码
+        /// </summary>
+        [Comment("条码")]
+        [StringLength(80)]
+        public string? FBARCODE { get; set; }
+        /// <summary>
+        /// 毛重
+        /// </summary>
+        [Precision(20,8)]
+        [Comment("毛重")]
+        public decimal? FGROSSWEIGHT { get; set; }
+        /// <summary>
+        /// 净重
+        /// </summary>
+        [Comment("净重")]
+        [Precision(20, 8)]
+        public decimal? FNETWEIGHT { get; set; }
+        /// <summary>
+        /// 尺寸单位
+        /// </summary>
+        [Comment("尺寸单位")]
+        [StringLength(10)]
+        public string? FVOLUMEUNITID_Name { get; set; }
+        /// <summary>
+        /// 长
+        /// </summary>
+        [Comment("长")]
+        [Precision(20, 8)]
+        public decimal? FLENGTH { get; set; }
+        /// <summary>
+        /// 宽
+        /// </summary>
+        [Comment("宽")]
+        [Precision(20, 8)]
+        public decimal? FWIDTH { get; set; }
+
+        /// <summary>
+        /// 高
+        /// </summary>
+        [Comment("高")]
+        [Precision(20, 8)]
+        public decimal? FHEIGHT { get; set; }
+        /// <summary>
+        /// 重量单位
+        /// </summary>
+        [Comment("重量单位")]
+        [StringLength(10)]
+        public string? FWEIGHTUNITID_Name { get; set; }
+        /// <summary>
+        /// 体积
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("体积")]
+        public decimal? FVOLUME { get; set; }
+
+        /// <summary>
+        /// 库存单位
+        /// </summary>
+        [Comment("库存单位")]
+        [StringLength(10)]
+        public string? FStoreUnitID_Name { get; set; }
+        /// <summary>
+        /// 辅助单位
+        /// </summary>
+        [Comment("辅助单位")]
+        [StringLength(10)]
+        public string? FAuxUnitID_Name { get; set; }
+        /// <summary>
+        /// 仓库
+        /// </summary>
+        [Comment("仓库")]
+        [StringLength(80)]
+        public string? FStockId_Name{ get; set;}
+
+        /// <summary>
+        /// 仓位
+        /// </summary>
+        [Comment("仓位")]
+        [StringLength(80)]
+        public string? FStockLoc { get; set; }
+        /// <summary>
+        /// 仓位.客户.编码
+        /// </summary>
+       
+        [Comment("仓位.客户.编码")]
+        [StringLength(80)]
+        public string? FStockPlaceId_FF100002 { get; set; }
+        /// <summary>
+        /// 仓位.客户.名称
+        /// </summary>
+        [Comment("仓位.客户.名称")]
+        [StringLength(80)]
+        public string? FStockPlaceId_FF100002_Name { get; set; }
+
+
+        /// <summary>
+        /// 仓位.供应商.编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("仓位.供应商.编码")]
+        public string? FStockPlaceId_FF100003 { get; set; }
+        /// <summary>
+        /// 仓位.客户.编码
+        /// </summary>
+       
+        [Comment("仓位.供应商.名称")]
+        [StringLength(80)]
+        public string? FStockPlaceId_FF100003_Name { get; set; }
+        /// <summary>
+        /// 仓位.服务机客户.编码
+        /// </summary>
+        [Comment("仓位.服务机客户.编码")]
+        [StringLength(80)]
+        public string? FStockPlaceId_FF100004 { get; set; }
+
+
+        /// <summary>
+        /// 仓位.服务机客户.名称
+        /// </summary>
+        [Comment("仓位.服务机客户.名称")]
+        [StringLength(80)]
+        public string? FStockPlaceId_FF100004_Name { get; set; }
+        /// <summary>
+        /// 可锁库
+        /// </summary>
+        [StringLength(1)]
+        [Comment("可锁库")]
+        public string? FIsLockStock { get; set; }
+        /// <summary>
+        /// 启用盘点周期
+        /// </summary>
+        [Comment("启用盘点周期")]
+        [StringLength(1)]
+        public string? FIsCycleCounting { get; set; }
+
+
+        /// <summary>
+        /// 盘点周期单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("盘点周期单位")]
+        public string? FCountCycle { get; set; }
+        /// <summary>
+        /// 盘点周期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("盘点周期")]
+        public decimal? FCountDay { get; set; }
+        /// <summary>
+        /// 必盘
+        /// </summary>
+        [Comment("必盘")]
+        [StringLength(1)]
+        public string? FIsMustCounting { get; set; }
+
+        /// <summary>
+        /// 启用批号管理
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用批号管理")]
+        public string? FIsBatchManage { get; set; }
+        /// <summary>
+        /// 批号编码规则
+        /// </summary>
+        [StringLength(80)]
+        [Comment("批号编码规则")]
+        public string? FBatchRuleID_Name { get; set; }
+        /// <summary>
+        /// 启用保质期管理
+        /// </summary>
+        [Comment("启用保质期管理")]
+        [StringLength(1)]
+        public string? FIsKFPeriod { get; set; }
+
+
+        /// <summary>
+        /// 批号附属信息
+        /// </summary>
+        [StringLength(1)]
+        [Comment("批号附属信息")]
+        public string? FIsExpParToFlot { get; set; }
+        /// <summary>
+        /// 保质期单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("保质期单位")]
+        public string? FExpUnit { get; set; }
+        /// <summary>
+        /// 保质期
+        /// </summary>
+        [Comment("保质期")]
+        [Precision(20, 8)]
+        public decimal? FExpPeriod { get; set; }
+
+        /// <summary>
+        /// 在架寿命期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("在架寿命期")]
+        public decimal? FOnlineLife { get; set; }
+        /// <summary>
+        /// 参考成本
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("参考成本")]
+        public decimal? FRefCost { get; set; }
+        /// <summary>
+        /// 币别
+        /// </summary>
+        [Comment("币别")]
+        [StringLength(80)]
+        public string? FCurrencyId_Name { get; set; }
+
+        /// <summary>
+        /// 库存管理
+        /// </summary>
+        [StringLength(1)]
+        [Comment("库存管理")]
+        public string? FIsSNManage { get; set; }
+        /// <summary>
+        /// 启用最小库存
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用最小库存")]
+        public string? FIsEnableMinStock { get; set; }
+        /// <summary>
+        /// 启用安全库存
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用安全库存")]
+        public string? FIsEnableSafeStock { get; set; }
+
+
+        /// <summary>
+        /// 序列号编码规则
+        /// </summary>
+        [StringLength(80)]
+        [Comment("序列号编码规则")]
+        public string? FSNCodeRule_Name { get; set; }
+        /// <summary>
+        /// 启用再订货点
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用再订货点")]
+        public string? FIsEnableReOrder { get; set; }
+        /// <summary>
+        /// 启用最大库存
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用最大库存")]
+        public string? FIsEnableMaxStock { get; set; }
+
+
+        /// <summary>
+        /// 序列号单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("序列号单位")]
+        public string? FSNUnit_Name { get; set; }
+        /// <summary>
+        /// 最小库存
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最小库存")]
+        public decimal? FMinStock { get; set; }
+        /// <summary>
+        /// 安全库存
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("安全库存")]
+        public decimal? FSafeStock { get; set; }
+
+
+        /// <summary>
+        /// 再订货点
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("再订货点")]
+        public decimal? FReOrderGood { get; set; }
+        /// <summary>
+        /// 经济订货批量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("经济订货批量")]
+        public decimal? FEconReOrderQty { get; set; }
+        /// <summary>
+        /// 最大库存
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最大库存")]
+        public decimal? FMaxStock { get; set; }
+
+
+        /// <summary>
+        /// 销售单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("销售单位")]
+        public string? FSaleUnitId_Name { get; set; }
+        /// <summary>
+        /// 销售计价单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("销售计价单位")]
+        public string? FSalePriceUnitId_Name { get; set; }
+        /// <summary>
+        /// 起订量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("起订量")]
+        public decimal? FOrderQty { get; set; }
+
+        /// <summary>
+        /// 超发上限(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("超发上限(%)")]
+        public decimal? FOutStockLmtH { get; set; }
+        /// <summary>
+        /// 超发下限(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("超发下限(%)")]
+        public decimal? FOutStockLmtL { get; set; }
+        /// <summary>
+        /// 代理销售减价比例(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("代理销售减价比例(%)")]
+        public decimal? FAgentSalReduceRate { get; set; }
+
+        /// <summary>
+        /// ATP检查
+        /// </summary>
+        [StringLength(1)]
+        [Comment("ATP检查")]
+        public string? FIsATPCheck { get; set; }
+        /// <summary>
+        /// 允许退货
+        /// </summary>
+         [StringLength(1)]
+        [Comment("允许退货")]
+        public string? FIsReturn { get; set; }
+        /// <summary>
+        /// 部件可退
+        /// </summary>
+        [StringLength(1)]
+        [Comment("部件可退")]
+        public string? FIsReturnPart { get; set; }
+
+        /// <summary>
+        /// 允许发布到订货平台
+        /// </summary>
+        [StringLength(1)]
+        [Comment("允许发布到订货平台")]
+        public string? FAllowPublish { get; set; }
+        /// <summary>
+        /// 启用售后服务
+        /// </summary>
+         [StringLength(1)]
+        [Comment("启用售后服务")]
+        public string? FISAFTERSALE { get; set; }
+        /// <summary>
+        /// 生成产品档案
+        /// </summary>
+        [StringLength(1)]
+        [Comment("生成产品档案")]
+        public string? FISPRODUCTFILES { get; set; }
+
+
+        /// <summary>
+        /// 是否保修
+        /// </summary>
+        [StringLength(1)]
+        [Comment("是否保修")]
+        public string? FISWARRANTED { get; set; }
+        /// <summary>
+        /// 保修期单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("保修期单位")]
+        public string? FWARRANTYUNITID { get; set; }
+        /// <summary>
+        /// 采购单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("采购单位")]
+        public string? FPurchaseUnitId_Name { get; set; }
+
+        /// <summary>
+        /// 采购计价单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("采购计价单位")]
+        public string? FPurchasePriceUnitId_Name { get; set; }
+        /// <summary>
+        /// 采购组
+        /// </summary>
+         [StringLength(80)]
+        [Comment("采购组")]
+        public string? FPurchaseGroupId_Name { get; set; }
+        /// <summary>
+        /// 采购员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购员")]
+        public string? FPurchaserId_Name { get; set; }
+
+        /// <summary>
+        /// 配额管理
+        /// </summary>
+        [StringLength(1)]
+        [Comment("配额管理")]
+        public string? FIsQuota { get; set; }
+        /// <summary>
+        /// 配额方式
+        /// </summary>
+         [StringLength(80)]
+        [Comment("配额方式")]
+        public string? FQuotaType { get; set; }
+        /// <summary>
+        /// 最小拆分数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最小拆分数量")]
+        public decimal? FMinSplitQty { get; set; }
+
+
+        /// <summary>
+        /// VMI业务
+        /// </summary>
+        [StringLength(1)]
+        [Comment("VMI业务")]
+        public string? FIsVmiBusiness { get; set; }
+        /// <summary>
+        /// 默认供应商
+        /// </summary>
+         [StringLength(80)]
+        [Comment("默认供应商")]
+        public string? FDefaultVendor_Name { get; set; }
+        /// <summary>
+        /// 费用项目
+        /// </summary>
+        [StringLength(80)]
+        [Comment("费用项目")]
+        public string? FChargeID_Name { get; set; }
+
+
+        /// <summary>
+        /// 货源控制
+        /// </summary>
+        [StringLength(1)]
+        [Comment("货源控制")]
+        public string? FIsSourceControl { get; set; }
+        /// <summary>
+        /// 需要请购
+        /// </summary>
+         [StringLength(1)]
+        [Comment("需要请购")]
+        public string? FIsPR { get; set; }
+        /// <summary>
+        /// 收货上限比例(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("收货上限比例(%)")]
+        public decimal? FReceiveMaxScale { get; set; }
+
+        /// <summary>
+        ///收货下限比例(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("收货下限比例(%)")]
+        public decimal? FReceiveMinScale { get; set; }
+        /// <summary>
+        /// 代理采购加成比例
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("代理采购加成比例")]
+        public decimal? FIFAgentPurPlusRatesPR { get; set; }
+        /// <summary>
+        /// 收货提前天数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("收货提前天数")]
+        public decimal? FReceiveAdvanceDays { get; set; }
+
+        /// <summary>
+        ///收货延迟天数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("收货延迟天数")]
+        public decimal? FReceiveDelayDays { get; set; }
+        /// <summary>
+        /// 允许退料
+        /// </summary>
+        [StringLength(1)]
+        [Comment("允许退料")]
+        public string? FIsReturnMaterial { get; set; }
+        /// <summary>
+        /// 采购组织
+        /// </summary>
+        [StringLength(80)]
+        [Comment("采购组织")]
+        public string? FPurchaseOrgId_Name { get; set; }
+
+        /// <summary>
+        ///委外单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("委外单位")]
+        public string? FSubconUnitId_Name { get; set; }
+        /// <summary>
+        /// 委外计价单位
+        /// </summary>
+         [StringLength(10)]
+        [Comment("委外计价单位")]
+        public string? FSubconPriceUnitId_Name { get; set; }
+        /// <summary>
+        /// 采购类型
+        /// </summary>
+        [StringLength(10)]
+        [Comment("采购类型")]
+        public string? FPOBillTypeId_Name { get; set; }
+
+
+        /// <summary>
+        ///委外类型
+        /// </summary>
+        [StringLength(10)]
+        [Comment("委外类型")]
+        public string? FSubBillType_Name { get; set; }
+        /// <summary>
+        /// 计划策略
+        /// </summary>
+         [StringLength(10)]
+        [Comment("计划策略")]
+        public string? FPlanningStrategy { get; set; }
+        /// <summary>
+        /// 制造策略
+        /// </summary>
+        [StringLength(80)]
+        [Comment("制造策略")]
+        public string? FMfgPolicyId_Name { get; set; }
+
+        /// <summary>
+        ///检验提前期单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("检验提前期单位")]
+        public string? FCheckLeadTimeType { get; set; }
+        /// <summary>
+        /// 订货策略
+        /// </summary>
+         [StringLength(80)]
+        [Comment("订货策略")]
+        public string? FOrderPolicy { get; set; }
+        /// <summary>
+        /// 最小订货量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最小订货量")]
+        public decimal? FMinPOQty { get; set; }
+
+
+        /// <summary>
+        ///计划区
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划区")]
+        public string? FPlanWorkshop_Name { get; set; }
+        /// <summary>
+        /// 订货间隔期单位
+        /// </summary>
+         [StringLength(10)]
+        [Comment("订货间隔期单位")]
+        public string? FOrderIntervalTimeType { get; set; }
+        /// <summary>
+        /// 固定提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("固定提前期")]
+        public decimal? FFixLeadTime { get; set; }
+
+
+        /// <summary>
+        ///最小包装量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最小包装量")]
+        public decimal? FIncreaseQty { get; set; }
+        /// <summary>
+        /// 固定提前期单位
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("固定提前期单位")]
+        public decimal? FFixLeadTimeType { get; set; }
+        /// <summary>
+        /// 订货间隔期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("订货间隔期")]
+        public decimal? FOrderIntervalTime { get; set; }
+
+
+
+        /// <summary>
+        ///变动提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("变动提前期")]
+        public decimal? FVarLeadTime { get; set; }
+        /// <summary>
+        /// 变动提前期批量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("变动提前期批量")]
+        public decimal? FVarLeadTimeLotSize { get; set; }
+        /// <summary>
+        /// 变动提前期单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("变动提前期单位")]
+        public string? FVarLeadTimeType { get; set; }
+
+
+        /// <summary>
+        ///最大订货量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最大订货量")]
+        public decimal? FMaxPOQty { get; set; }
+        /// <summary>
+        /// 检验提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("检验提前期")]
+        public decimal? FCheckLeadTime { get; set; }
+        /// <summary>
+        /// 固定/经济批量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("固定/经济批量")]
+        public decimal? FEOQ { get; set; }
+
+
+        /// <summary>
+        ///批量拆分间隔天数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("批量拆分间隔天数")]
+        public decimal? FPlanIntervalsDays { get; set; }
+        /// <summary>
+        /// 拆分批量
+        /// </summary>
+        [Precision(20, 10)]
+        [Comment("拆分批量")]
+        public decimal? FPlanBatchSplitQty { get; set; }
+        /// <summary>
+        /// MRP计算是否合并需求
+        /// </summary>
+        [StringLength(1)]
+        [Comment("MRP计算是否合并需求")]
+        public string? FIsMrpComReq { get; set; }
+
+        /// <summary>
+        ///需求时界
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("需求时界")]
+        public decimal? FRequestTimeZone { get; set; }
+        /// <summary>
+        /// MRP计算是否按单合并
+        /// </summary>
+        [StringLength(1)]
+        [Comment("MRP计算是否按单合并")]
+        public string? FIsMrpComBill { get; set; }
+        /// <summary>
+        /// 允许提前天数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("允许提前天数")]
+        public decimal? FCanLeadDays { get; set; }
+
+
+        /// <summary>
+        ///计划时界
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("计划时界")]
+        public decimal? FPlanTimeZone { get; set; }
+        /// <summary>
+        /// 预留类型
+        /// </summary>
+         [StringLength(10)]
+        [Comment("预留类型")]
+        public string? FReserveType { get; set; }
+        /// <summary>
+        /// 计划组
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划组")]
+        public string? FPlanGroupId_Name { get; set; }
+
+
+        /// <summary>
+        ///提前宽限期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("提前宽限期")]
+        public decimal? FLeadExtendDay { get; set; }
+        /// <summary>
+        /// 计划员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划员")]
+        public string? FPlanerID_Name { get; set; }
+        /// <summary>
+        /// ATO预测冲销方案
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("ATO预测冲销方案")]
+        public decimal? FATOSchemeId_Name { get; set; }
+
+        /// <summary>
+        ///允许延后天数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("允许延后天数")]
+        public decimal? FCanDelayDays { get; set; }
+        /// <summary>
+        /// 偏置时间
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("偏置时间")]
+        public decimal? FPlanOffsetTime { get; set; }
+        /// <summary>
+        /// 安全库存
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("安全库存")]
+        public decimal? FPlanSafeStockQty { get; set; }
+
+
+        /// <summary>
+        ///按批号匹配供需
+        /// </summary>
+        [StringLength(1)]
+        [Comment("按批号匹配供需")]
+        public string? FDSMatchByLot { get; set; }
+        /// <summary>
+        /// 预计入库允许部分提前
+        /// </summary>
+        [StringLength(1)]
+        [Comment("预计入库允许部分提前")]
+        public string? FAllowPartAhead { get; set; }
+        /// <summary>
+        /// 时间紧迫系数
+        /// </summary>
+        [StringLength(80)]
+        [Comment("时间紧迫系数")]
+        public string? FTimeFactorId_Name { get; set; }
+
+        /// <summary>
+        ///预计入库允许部分延后
+        /// </summary>
+        [StringLength(1)]
+        [Comment("预计入库允许部分延后")]
+        public string? FAllowPartDelay { get; set; }
+        /// <summary>
+        /// 数量负荷系数
+        /// </summary>
+         [StringLength(80)]
+        [Comment("数量负荷系数")]
+        public string? FQtyFactorId_Name { get; set; }
+        /// <summary>
+        /// 供应来源
+        /// </summary>
+        [StringLength(80)]
+        [Comment("供应来源")]
+        public string? FSupplySourceId_Name { get; set; }
+
+        /// <summary>
+        ///延后宽限期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("延后宽限期")]
+        public decimal? FDelayExtendDay { get; set; }
+        /// <summary>
+        /// 时间单位
+        /// </summary>
+         [StringLength(10)]
+        [Comment("时间单位")]
+        public string? FPlanOffsetTimeType { get; set; }
+        /// <summary>
+        /// 发料方式
+        /// </summary>
+        [StringLength(10)]
+        [Comment("发料方式")]
+        public string? FIssueType { get; set; }
+
+
+        /// <summary>
+        ///生产车间
+        /// </summary>
+        [StringLength(80)]
+        [Comment("生产车间")]
+        public string? FWorkShopId_Name { get; set; }
+        /// <summary>
+        /// 可为联副产品
+        /// </summary>
+         [StringLength(1)]
+        [Comment("可为联副产品")]
+        public string? FIsCoby { get; set; }
+        /// <summary>
+        /// 生产单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("生产单位")]
+        public string? FProduceUnitId_Name { get; set; }
+
+
+        /// <summary>
+        ///可为主产品
+        /// </summary>
+        [StringLength(1)]
+        [Comment("可为主产品")]
+        public string? FIsMainPrd { get; set; }
+        /// <summary>
+        /// 倒冲时机
+        /// </summary>
+         [StringLength(80)]
+        [Comment("倒冲时机")]
+        public string? FBKFLTime { get; set; }
+        /// <summary>
+        /// 入库超收比例(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("入库超收比例(%)")]
+        public decimal? FFinishReceiptOverRate { get; set; }
+
+
+        /// <summary>
+        ///发料仓库
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发料仓库")]
+        public string? FPickStockId_Name { get; set; }
+        /// <summary>
+        /// 入库欠收比例(%)
+        /// </summary>
+         [StringLength(255)]
+        [Comment("入库欠收比例(%)")]
+        public string? FFinishReceiptShortRate { get; set; }
+        /// <summary>
+        /// 发料仓位
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发料仓位")]
+        public string? FPickStockLoc { get; set; }
+
+
+        /// <summary>
+        ///发料仓位.客户.编码
+        [Comment("发料仓位.客户.编码")]
+        [StringLength(80)]
+        public string? FPickBinId_FF100002 { get; set; }
+        /// <summary>
+        /// 发料仓位.客户.名称
+        /// </summary>
+         [StringLength(80)]
+        [Comment("发料仓位.客户.名称")]
+        public string? FPickBinId_FF100002_Name { get; set; }
+        /// <summary>
+        ///  发料仓位.供应商.编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发料仓位.供应商.编码")]
+        public string? FPickBinId_FF100003 { get; set; }
+
+
+        /// <summary>
+        ///发料仓位.供应商.名称
+        /// </summary>
+        [Comment("发料仓位.供应商.名称")]
+        [StringLength(80)]
+        public string? FPickBinId_FF100003_Name { get; set; }
+        /// <summary>
+        /// 发料仓位.服务机客户.编码
+        /// </summary>
+         [StringLength(80)]
+        [Comment("发料仓位.服务机客户.编码")]
+        public string? FPickBinId_FF100004 { get; set; }
+        /// <summary>
+        ///发料仓位.服务机客户.名称
+        /// </summary>
+        [StringLength(80)]
+        [Comment("发料仓位.服务机客户.名称")]
+        public string? FPickBinId_FF100004_Name { get; set; }
+
+
+        /// <summary>
+        ///超发控制方式
+        /// </summary>
+        [StringLength(10)]
+        [Comment("超发控制方式")]
+        public string? FOverControlMode { get; set; }
+        /// <summary>
+        /// 子项单位
+        /// </summary>
+         [StringLength(10)]
+        [Comment("子项单位")]
+        public string? FBOMUnitId_Name { get; set; }
+        /// <summary>
+        ///最小发料批量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最小发料批量")]
+        public decimal? FMinIssueQty { get; set; }
+
+
+
+        /// <summary>
+        ///是否关键件
+        /// </summary>
+        [StringLength(1)]
+        [Comment("是否关键件")]
+        public string? FIsKitting { get; set; }
+        /// <summary>
+        /// 是否齐套件
+        /// </summary>
+         [StringLength(1)]
+        [Comment("是否齐套件")]
+        public string? FIsCompleteSet { get; set; }
+        /// <summary>
+        ///标准人员准备工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("标准人员准备工时")]
+        public decimal? FStdLaborPrePareTime { get; set; }
+
+        /// <summary>
+        ///标准人员实作工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("标准人员实作工时")]
+        public decimal? FStdLaborProcessTime { get; set; }
+        /// <summary>
+        /// 默认工艺路线
+        /// </summary>
+         [StringLength(255)]
+        [Comment("默认工艺路线")]
+        public string? FDefaultRouting_Name { get; set; }
+        /// <summary>
+        ///标准工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("标准工时")]
+        public decimal? FPerUnitStandHour { get; set; }
+
+
+        /// <summary>
+        ///标准机器准备工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("标准机器准备工时")]
+        public decimal? FStdMachinePrepareTime { get; set; }
+        /// <summary>
+        /// 消耗波动(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("消耗波动(%)")]
+        public decimal? FConsumVolatility { get; set; }
+        /// <summary>
+        ///变动损耗率(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("变动损耗率(%)")]
+        public decimal? FLOSSPERCENT { get; set; }
+
+
+
+        /// <summary>
+        ///序列号携带到父项
+        /// </summary>
+        [StringLength(1)]
+        [Comment("序列号携带到父项")]
+        public string? FIsSNCarryToParent { get; set; }
+        /// <summary>
+        /// 标准机器实作工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("标准机器实作工时")]
+        public decimal? FStdMachineProcessTime { get; set; }
+        /// <summary>
+        ///生产线生产
+        /// </summary>
+        [StringLength(1)]
+        [Comment("生产线生产")]
+        public string? FIsProductLine { get; set; }
+
+        /// <summary>
+        ///生产类型
+        /// </summary>
+        [StringLength(10)]
+        [Comment("生产类型")]
+        public string? FProduceBillType_Name { get; set; }
+        /// <summary>
+        /// 组织间受托类型
+        /// </summary>
+         [StringLength(10)]
+        [Comment("组织间受托类型")]
+        public string? FOrgTrustBillType_Name { get; set; }
+        /// <summary>
+        ///领料考虑最小发料批量
+        /// </summary>
+        [StringLength(1)]
+        [Comment("领料考虑最小发料批量")]
+        public string? FISMinIssueQty { get; set; }
+
+        /// <summary>
+        ///启用ECN
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用ECN")]
+        public string? FIsECN { get; set; }
+        /// <summary>
+        /// 启用
+        /// </summary>
+         [StringLength(1)]
+        [Comment("启用")]
+        public string? FIsEnable1 { get; set; }
+        /// <summary>
+        ///影响价格
+        /// </summary>
+        [StringLength(1)]
+        [Comment("影响价格")]
+        public string? FIsAffectPrice1 { get; set; }
+
+
+        /// <summary>
+        ///影响计划
+        /// </summary>
+        [StringLength(1)]
+        [Comment("影响计划")]
+        public string? FIsAffectPlan1 { get; set; }
+        /// <summary>
+        /// 影响出库成本
+        /// </summary>
+         [StringLength(1)]
+        [Comment("影响出库成本")]
+        public string? FIsAffectCost1 { get; set; }
+        /// <summary>
+        ///辅助属性
+        /// </summary>
+        [StringLength(255)]
+        [Comment("辅助属性")]
+        public string? FAuxPropertyId_Name { get; set; }
+
+        /// <summary>
+        ///组合控制
+        /// </summary>
+        [StringLength(1)]
+        [Comment("组合控制")]
+        public string? FIsComControl { get; set; }
+        /// <summary>
+        /// 来料检验
+        /// </summary>
+         [StringLength(1)]
+        [Comment("来料检验")]
+        public string? FCheckIncoming { get; set; }
+        /// <summary>
+        ///库存检验
+        /// </summary>
+        [StringLength(1)]
+        [Comment("库存检验")]
+        public string? FCheckStock { get; set; }
+
+        /// <summary>
+        ///产品检验
+        /// </summary>
+        [StringLength(1)]
+        [Comment("产品检验")]
+        public string? FCheckProduct { get; set; }
+        /// <summary>
+        /// 抽样方案
+        /// </summary>
+         [StringLength(255)]
+        [Comment("抽样方案")]
+        public string? FIncSampSchemeId_Name { get; set; }
+        /// <summary>
+        ///质检方案
+        /// </summary>
+        [StringLength(255)]
+        [Comment("质检方案")]
+        public string? FIncQcSchemeId_Name { get; set; }
+
+        /// <summary>
+        ///启用库存周期复检
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用库存周期复检")]
+        public string? FEnableCyclistQCSTK { get; set; }
+        /// <summary>
+        /// 复检周期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("复检周期")]
+        public decimal? FStockCycle { get; set; }
+        /// <summary>
+        ///启用库存周期复检提醒
+        /// </summary>
+        [StringLength(1)]
+        [Comment("启用库存周期复检提醒")]
+        public string? FEnableCyclistQCSTKEW { get; set; }
+
+
+        /// <summary>
+        ///生产追溯
+        /// </summary>
+        [StringLength(1)]
+        [Comment("生产追溯")]
+        public string? FIsSNPRDTracy { get; set; }
+        /// <summary>
+        /// 提醒提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("提醒提前期")]
+        public decimal? FEWLeadDay { get; set; }
+        /// <summary>
+        ///保修期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("保修期")]
+        public decimal? FWARRANTY { get; set; }
+
+
+        /// <summary>
+        ///超发控制单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("超发控制单位")]
+        public string? FOutLmtUnit { get; set; }
+        /// <summary>
+        /// 质检组
+        /// </summary>
+         [StringLength(80)]
+        [Comment("质检组")]
+        public string? FInspectGroupId_Name { get; set; }
+        /// <summary>
+        ///发货检验
+        /// </summary>
+        [StringLength(1)]
+        [Comment("发货检验")]
+        public string? FCheckDelivery { get; set; }
+
+
+        /// <summary>
+        ///默认条码规则
+        /// </summary>
+        [StringLength(255)]
+        [Comment("默认条码规则")]
+        public string? FDefBarCodeRuleId_Name { get; set; }
+        /// <summary>
+        /// 退货检验
+        /// </summary>
+         [StringLength(1)]
+        [Comment("退货检验")]
+        public string? FCheckReturn { get; set; }
+        /// <summary>
+        ///质检员
+        /// </summary>
+        [StringLength(80)]
+        [Comment("质检员")]
+        public string? FInspectorId_Name { get; set; }
+
+
+
+        /// <summary>
+        ///配置生产
+        /// </summary>
+        [StringLength(255)]
+        [Comment("配置生产")]
+        public string? FCONFIGTYPE { get; set; }
+        /// <summary>
+        /// 特征件子项
+        /// </summary>
+         [StringLength(80)]
+        [Comment("特征件子项")]
+        public string? FFeatureItem { get; set; }
+        /// <summary>
+        ///重复打印数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("重复打印数")]
+        public decimal? FPrintCount { get; set; }
+
+
+        /// <summary>
+        ///最小发料批量单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("最小发料批量单位")]
+        public string? FMinIssueUnitId_Name { get; set; }
+        /// <summary>
+        /// 产品模型
+        /// </summary>
+         [StringLength(80)]
+        [Comment("产品模型")]
+        public string? FMdlId_Name { get; set; }
+        /// <summary>
+        ///模型物料
+        /// </summary>
+        [StringLength(80)]
+        [Comment("模型物料")]
+        public string? FMdlMaterialId_Name { get; set; }
+
+
+        /// <summary>
+        ///税收分类编码
+        /// </summary>
+        [StringLength(80)]
+        [Comment("税收分类编码")]
+        public string? FTaxCategoryCodeId_Name { get; set; }
+        /// <summary>
+        /// 受托材料检验
+        /// </summary>
+         [StringLength(1)]
+        [Comment("受托材料检验")]
+        public string? FCheckEntrusted { get; set; }
+        /// <summary>
+        ///套件
+        /// </summary>
+        [StringLength(1)]
+        [Comment("套件")]
+        public string? FSuite { get; set; }
+
+        /// <summary>
+        ///单箱标准数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("单箱标准数量")]
+        public decimal? FBoxStandardQty { get; set; }
+        /// <summary>
+        /// 销售分组
+        /// </summary>
+         [StringLength(80)]
+        [Comment("销售分组")]
+        public string? FSalGroup_Name { get; set; }
+        /// <summary>
+        ///其他检验
+        /// </summary>
+        [StringLength(1)]
+        [Comment("其他检验")]
+        public string? FCheckOther { get; set; }
+
+
+        /// <summary>
+        ///享受税收优惠政策
+        /// </summary>
+        [StringLength(1)]
+        [Comment("享受税收优惠政策")]
+        public string? FIsTaxEnjoy { get; set; }
+        /// <summary>
+        /// 税收优惠政策类型
+        /// </summary>
+         [StringLength(80)]
+        [Comment("税收优惠政策类型")]
+        public string? FTaxDiscountsType { get; set; }
+        /// <summary>
+        ///工时单位
+        /// </summary>
+        [StringLength(10)]
+        [Comment("工时单位")]
+        public string? FStandHourUnitId { get; set; }
+
+        /// <summary>
+        ///结算成本价加减价比例(%)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("结算成本价加减价比例(%)")]
+        public decimal? FCostPriceRate { get; set; }
+        /// <summary>
+        /// 倒冲数量
+        /// </summary>
+         [StringLength(80)]
+        [Comment("倒冲数量")]
+        public string? FBackFlushType { get; set; }
+        /// <summary>
+        ///累计提前期
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("累计提前期")]
+        public decimal? FAccuLeadTime { get; set; }
+
+
+
+        /// <summary>
+        ///产品系列
+        /// </summary>
+        [StringLength(255)]
+        [Comment("产品系列")]
+        public string? FProductLine_Name { get; set; }
+        /// <summary>
+        /// 冲销数量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("冲销数量")]
+        public decimal? FWriteOffQty { get; set; }
+        /// <summary>
+        ///固定损耗
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("固定损耗")]
+        public decimal? FFIXLOSS { get; set; }
+
+
+        /// <summary>
+        ///计划标识
+        /// </summary>
+        [StringLength(80)]
+        [Comment("计划标识")]
+        public string? FPlanIdent_Name { get; set; }
+        /// <summary>
+        /// 订单进度分组
+        /// </summary>
+         [StringLength(80)]
+        [Comment("订单进度分组")]
+        public string? FProScheTrackId_Name { get; set; }
+        /// <summary>
+        ///最小包装数
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("最小包装数")]
+        public decimal? FMinPackCount { get; set; }
+
+        /// <summary>
+        ///日产量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("日产量")]
+        public decimal? FDailyOutQty { get; set; }
+        /// <summary>
+        /// 产品首检
+        /// </summary>
+         [StringLength(1)]
+        [Comment("产品首检")]
+        public string? FIsFirstInspect { get; set; }
+        /// <summary>
+        ///生产退料检验
+        /// </summary>
+        [StringLength(1)]
+        [Comment("生产退料检验")]
+        public string? FCheckReturnMtrl { get; set; }
+
+
+        /// <summary>
+        ///禁用原因
+        /// </summary>
+        [StringLength(255)]
+        [Comment("禁用原因")]
+        public string? FForbidReson_2052 { get; set; }
+        /// <summary>
+        /// 已使用
+        /// </summary>
+         [StringLength(1)]
+        [Comment("已使用")]
+        public string? FForbidResonIsUsed { get; set; }
+        /// <summary>
+        ///不参与可发量统计
+        /// </summary>
+        [StringLength(1)]
+        [Comment("不参与可发量统计")]
+        public string? FUnValidateExpQty { get; set; }
+
+
+        /// <summary>
+        ///物料类型
+        /// </summary>
+        [StringLength(10)]
+        [Comment("物料类型")]
+        public string? F_WLLX { get; set; }
+        /// <summary>
+        /// 启用日排产
+        /// </summary>
+         [StringLength(1)]
+        [Comment("启用日排产")]
+        public string? FIsEnableSchedule { get; set; }
+        /// <summary>
+        ///直接关联物料号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("直接关联物料号")]
+        public string? F_ZJGLWLH_Name { get; set; }
+
+        /// <summary>
+        ///默认产线
+        /// </summary>
+        [StringLength(80)]
+        [Comment("默认产线")]
+        public string? FDefaultLineId_Name { get; set; }
+        /// <summary>
+        /// 电压/电网类型
+        /// </summary>
+         [StringLength(80)]
+        [Comment("电压/电网类型")]
+        public string? F_DYDWLX { get; set; }
+        /// <summary>
+        ///根物料号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("根物料号")]
+        public string? F_GWLH_Name { get; set; }
+
+
+        /// <summary>
+        ///功率段
+        /// </summary>
+        [StringLength(80)]
+        [Comment("功率段")]
+        public string? F_GLD_Name { get; set; }
+        /// <summary>
+        ///电子料属性
+        /// </summary>
+         [StringLength(80)]
+        [Comment("电子料属性")]
+        public string? F_DZLSX { get; set; }
+        /// <summary>
+        ///旧物料编码U8
+        /// </summary>
+        [StringLength(80)]
+        [Comment("旧物料编码U8")]
+        public string? F_JWLBMU8 { get; set; }
+
+        /// <summary>
+        ///品牌
+        /// </summary>
+        [StringLength(255)]
+        [Comment("品牌")]
+        public string? F_PP_Name { get; set; }
+        /// <summary>
+        ///整机测试工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("整机测试工时")]
+        public decimal? F_ZJCSGS { get; set; }
+        /// <summary>
+        ///作业工时
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("作业工时")]
+        public decimal? F_ZYGS { get; set; }
+
+        /// <summary>
+        ///工时最后更改日期
+        /// </summary>
+        [Comment("工时最后更改日期")]
+        public DateTime? F_GSZHGGRQ { get; set; }
+        /// <summary>
+        ///体积重量最后更改日期
+        [Comment("体积重量最后更改日期")]
+        public DateTime? F_TJZLZHGGRQ { get; set; }
+        /// <summary>
+        ///生命周期最后更改日期
+        /// </summary>
+        [Comment("生命周期最后更改日期")]
+        public DateTime? F_SMZQZHGGRQ { get; set; }
+
+
+        /// <summary>
+        ///体积重量最后更改人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("体积重量最后更改人")]
+        public string? F_TJZLZHGGR_Name { get; set; }
+        /// <summary>
+        ///生命周期最后更改人
+        /// </summary>
+         [StringLength(80)]
+        [Comment("生命周期最后更改人")]
+        public string? F_SMZQZHGGR_Name { get; set; }
+        /// <summary>
+        ///工时最后更改人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("工时最后更改人")]
+        public string? F_GSZHGGR_Name { get; set; }
+
+
+        /// <summary>
+        ///整机质保(月)
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("整机质保(月)")]
+        public decimal? F_ZJZB_Name { get; set; }
+        /// <summary>
+        ///是否记录批次号
+        /// </summary>
+         [StringLength(1)]
+        [Comment("是否记录批次号")]
+        public string? F_SFJLPCH { get; set; }
+        /// <summary>
+        ///业务类型
+        /// </summary>
+        [StringLength(80)]
+        [Comment("业务类型")]
+        public string? F_YWLX { get; set; }
+
+        /// <summary>
+        ///产品披露类别
+        /// </summary>
+        [StringLength(80)]
+        [Comment("产品披露类别")]
+        public string? F_CPPLLB { get; set; }
+        /// <summary>
+        ///已终审过
+        /// </summary>
+         [StringLength(10)]
+        [Comment("已终审过")]
+        public string? F_YZSG { get; set; }
+        /// <summary>
+        ///物料申请人
+        /// </summary>
+        [StringLength(80)]
+        [Comment("物料申请人")]
+        public string? F_WLSQR_Name { get; set; }
+
+        /// <summary>
+        ///产品线
+        /// </summary>
+        [StringLength(80)]
+        [Comment("产品线")]
+        public string? F_CPX_Name { get; set; }
+        /// <summary>
+        ///产品分类
+        /// </summary>
+         [StringLength(80)]
+        [Comment("产品分类")]
+        public string? F_CPFL_Name { get; set; }
+        /// <summary>
+        ///料号生命周期
+        /// </summary>
+        [StringLength(80)]
+        [Comment("料号生命周期")]
+        public string? F_SMZQ { get; set; }
+
+        ///<summary>
+        ///允许收料
+        ///</summary>
+        [StringLength(1)]
+        [Comment("允许收料")]
+        public string? F_YXSL { get; set; }
+
+        /// <summary>
+        ///SAJ型号
+        /// </summary>
+        [StringLength(80)]
+        [Comment("SAJ型号")]
+        public string? F_XSXH_2052 { get; set; }
+        /// <summary>
+        ///回料包装量
+        /// </summary>
+        [Precision(20, 8)]
+        [Comment("回料包装量")]
+        public decimal? F_HLBZL { get; set; }
+        /// <summary>
+        ///包装规格
+        /// </summary>
+        [StringLength(255)]
+        [Comment("包装规格")]
+        public string? F_BZGG { get; set; }
+
+        /// <summary>
+        ///供应商
+        /// </summary>
+        [StringLength(255)]
+        [Comment("供应商")]
+        public string? F_GYS { get; set; }
+        /// <summary>
+        ///禁采原因
+        /// </summary>
+        [StringLength(255)]
+        [Comment("禁采原因")]
+        public string? F_JCYY { get; set; }
+
+        /// <summary>
+        ///允许请购
+        /// </summary>
+        [StringLength(1)]
+        [Comment("允许请购")]
+        public string? F_YXQG { get; set; }
+    }
+}