diff --git a/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/HiddenApiAttribute.cs b/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/HiddenApiAttribute.cs
new file mode 100644
index 0000000..f1a2774
--- /dev/null
+++ b/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/HiddenApiAttribute.cs
@@ -0,0 +1,8 @@
+using System;
+
+namespace Win_in.Sfs.Scp.WebApi;
+
+[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
+public class HiddenApiAttribute : System.Attribute
+{
+}
\ No newline at end of file
diff --git a/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/HiddenApiFilter.cs b/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/HiddenApiFilter.cs
new file mode 100644
index 0000000..1c287a3
--- /dev/null
+++ b/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/HiddenApiFilter.cs
@@ -0,0 +1,35 @@
+using System.Linq;
+using System.Reflection;
+using Microsoft.AspNetCore.Mvc.ApiExplorer;
+using Microsoft.OpenApi.Models;
+using Swashbuckle.AspNetCore.SwaggerGen;
+
+namespace Win_in.Sfs.Scp.WebApi;
+
+///
+/// 自定义Swagger隐藏过滤器
+///
+public class HiddenApiFilter : IDocumentFilter
+{
+ public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
+ {
+ foreach (ApiDescription apiDescription in context.ApiDescriptions)
+ {
+ if (apiDescription.TryGetMethodInfo(out MethodInfo method))
+ {
+ if (method.ReflectedType.CustomAttributes.Any(t => t.AttributeType == typeof(HiddenApiAttribute))
+ || method.CustomAttributes.Any(t => t.AttributeType == typeof(HiddenApiAttribute)))
+ {
+ string key = "/" + apiDescription.RelativePath;
+ if (key.Contains("?"))
+ {
+ int idx = key.IndexOf("?", System.StringComparison.Ordinal);
+ key = key.Substring(0, idx);
+ }
+ swaggerDoc.Paths.Remove(key);
+ }
+ }
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Migrations/20211021072716_20211021001.Designer.cs b/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Migrations/20211021072716_20211021001.Designer.cs
deleted file mode 100644
index ee82423..0000000
--- a/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Migrations/20211021072716_20211021001.Designer.cs
+++ /dev/null
@@ -1,759 +0,0 @@
-//
-using System;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Volo.Abp.EntityFrameworkCore;
-using Win_in.Sfs.Scp.WebApi.EntityFrameworkCore;
-
-namespace Win_in.Sfs.Scp.WebApi.Migrations
-{
- [DbContext(typeof(WebApiHttpApiHostMigrationsDbContext))]
- [Migration("20211021072716_20211021001")]
- partial class _20211021001
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("Relational:MaxIdentifierLength", 128)
- .HasAnnotation("ProductVersion", "5.0.11")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PO", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("Company")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("ContactName")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ContactPhone")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("DueDate")
- .HasColumnType("datetime2");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsConsignment")
- .HasColumnType("bit");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("OrderDate")
- .HasColumnType("datetime2");
-
- b.Property("PoNumber")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("PoType")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Remark")
- .HasMaxLength(4096)
- .HasColumnType("nvarchar(max)");
-
- b.Property("Site")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Status")
- .HasColumnType("int");
-
- b.Property("SupplierCode")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("TaxRate")
- .HasColumnType("decimal(18,2)");
-
- b.Property("Version")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.HasKey("Id");
-
- b.HasIndex("PoNumber")
- .IsUnique()
- .HasFilter("IsDeleted=0");
-
- b.ToTable("WebApi_PO");
- });
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PODetail", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("IsConsignment")
- .HasColumnType("bit");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("LineStatus")
- .HasColumnType("int");
-
- b.Property("OrderQty")
- .IsRequired()
- .HasColumnType("decimal(18,2)");
-
- b.Property("PartCode")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("PoLine")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("PoNumber")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Remark")
- .HasMaxLength(4096)
- .HasColumnType("nvarchar(max)");
-
- b.Property("StdPackQty")
- .IsRequired()
- .HasColumnType("decimal(18,2)");
-
- b.Property("StdPackUom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("SupplierPackConvertRate")
- .HasColumnType("decimal(18,2)");
-
- b.Property("SupplierPackQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("SupplierPackUom")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Uom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.HasKey("Id");
-
- b.HasIndex("PoNumber", "PoLine")
- .IsUnique();
-
- b.ToTable("WebApi_PODetail");
- });
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Part", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("Code")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Color")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Company")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("Configuration")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("Desc1")
- .HasMaxLength(1024)
- .HasColumnType("nvarchar(1024)");
-
- b.Property("Desc2")
- .HasMaxLength(1024)
- .HasColumnType("nvarchar(1024)");
-
- b.Property("Eco")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ExtPackQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("ExtPackUom")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("Group")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("IsBuyPart")
- .HasColumnType("bit");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("IsMakePart")
- .HasColumnType("bit");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Project")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("SequenceNumber")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Site")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Status")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("StdPackQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("StdPackUom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Type")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Uom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Version")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("abcClass")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("catalog")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("productline")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.HasKey("Id");
-
- b.HasIndex("Code")
- .IsUnique()
- .HasFilter("IsDeleted=0");
-
- b.ToTable("WebApi_Part");
- });
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Receipt", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("AsnNumber")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Lot")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Company")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("DeliverQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("PartCode")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("PoLine")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("PoNumber")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ProductionDate")
- .HasColumnType("datetime2");
-
- b.Property("RcNumber")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("RcType")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ReceiveQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("ReceiveTime")
- .HasColumnType("datetime2");
-
- b.Property("Remark")
- .HasMaxLength(4096)
- .HasColumnType("nvarchar(max)");
-
- b.Property("RpNumber")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Site")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("StdPackQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("StdPackUom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("SupplierLot")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("SupplierCode")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("SupplierPackConvertRate")
- .HasColumnType("decimal(18,2)");
-
- b.Property("SupplierPackQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("SupplierPackUom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("TimeWindowEnd")
- .HasColumnType("datetime2");
-
- b.Property("TimeWindowBegin")
- .HasColumnType("datetime2");
-
- b.Property("Uom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Warehouse")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Dock")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.HasKey("Id");
-
- b.HasIndex("RcNumber", "PoLine", "PartCode")
- .IsUnique()
- .HasFilter("IsDeleted=0");
-
- b.ToTable("WebApi_Receipt");
- });
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Supplier", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("Address")
- .HasMaxLength(1024)
- .HasColumnType("nvarchar(1024)");
-
- b.Property("City")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Code")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Company")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("ContactName")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Country")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("Currency")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("Desc")
- .HasMaxLength(1024)
- .HasColumnType("nvarchar(1024)");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("Fax")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("IsActive")
- .HasColumnType("bit");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Phone")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("PostId")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Rank")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Remark")
- .HasMaxLength(4096)
- .HasColumnType("nvarchar(max)");
-
- b.HasKey("Id");
-
- b.HasIndex("CreationTime");
-
- b.ToTable("WebApi_Suppliers");
- });
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.SupplierPart", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("uniqueidentifier");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken()
- .HasMaxLength(40)
- .HasColumnType("nvarchar(40)")
- .HasColumnName("ConcurrencyStamp");
-
- b.Property("CreationTime")
- .HasColumnType("datetime2")
- .HasColumnName("CreationTime");
-
- b.Property("CreatorId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("CreatorId");
-
- b.Property("DeleterId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("DeleterId");
-
- b.Property("DeletionTime")
- .HasColumnType("datetime2")
- .HasColumnName("DeletionTime");
-
- b.Property("ExtraProperties")
- .HasColumnType("nvarchar(max)")
- .HasColumnName("ExtraProperties");
-
- b.Property("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted");
-
- b.Property("LastModificationTime")
- .HasColumnType("datetime2")
- .HasColumnName("LastModificationTime");
-
- b.Property("LastModifierId")
- .HasColumnType("uniqueidentifier")
- .HasColumnName("LastModifierId");
-
- b.Property("PartCode")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("Remark")
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("SupplierCode")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.Property("SupplierPartCode")
- .HasMaxLength(1024)
- .HasColumnType("nvarchar(1024)");
-
- b.Property("SupplierStdPackQty")
- .HasColumnType("decimal(18,2)");
-
- b.Property("SupplierStdPackUom")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("nvarchar(64)");
-
- b.HasKey("Id");
-
- b.HasIndex("SupplierCode", "PartCode")
- .IsUnique()
- .HasFilter("IsDeleted=0");
-
- b.ToTable("WebApi_SupplierPart");
- });
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PODetail", b =>
- {
- b.HasOne("Win_in.Sfs.Scp.WebApi.PO", null)
- .WithMany("PODetails")
- .HasForeignKey("Id")
- .OnDelete(DeleteBehavior.NoAction)
- .IsRequired();
- });
-
- modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PO", b =>
- {
- b.Navigation("PODetails");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Migrations/20211021072716_20211021001.cs b/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Migrations/20211021072716_20211021001.cs
deleted file mode 100644
index 04fee76..0000000
--- a/ScpWebApiService/host/Win_in.Sfs.Scp.WebApi.HttpApi.Host/Migrations/20211021072716_20211021001.cs
+++ /dev/null
@@ -1,291 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace Win_in.Sfs.Scp.WebApi.Migrations
-{
- public partial class _20211021001 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "WebApi_Part",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true),
- Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true),
- Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- IsMakePart = table.Column(type: "bit", nullable: false),
- IsBuyPart = table.Column(type: "bit", nullable: false),
- Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- abcClass = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- productline = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- catalog = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Color = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Configuration = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Project = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Eco = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- StdPackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- StdPackQty = table.Column(type: "decimal(18,2)", nullable: false),
- ExtPackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ExtPackQty = table.Column(type: "decimal(18,2)", nullable: false),
- Site = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true),
- SequenceNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_WebApi_Part", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "WebApi_PO",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- PoType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Status = table.Column(type: "int", nullable: false),
- IsConsignment = table.Column(type: "bit", nullable: false),
- OrderDate = table.Column(type: "datetime2", nullable: false),
- DueDate = table.Column(type: "datetime2", nullable: false),
- Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- TaxRate = table.Column(type: "decimal(18,2)", nullable: false),
- Site = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- ContactName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- ContactPhone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_WebApi_PO", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "WebApi_Receipt",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- RcNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true),
- SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- RcType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Warehouse = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Dock = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- TimeWindowBegin = table.Column(type: "datetime2", nullable: false),
- TimeWindowEnd = table.Column(type: "datetime2", nullable: false),
- ReceiveTime = table.Column(type: "datetime2", nullable: false),
- Site = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- PartCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- SupplierLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- ProductionDate = table.Column(type: "datetime2", nullable: false),
- Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- DeliverQty = table.Column(type: "decimal(18,2)", nullable: false),
- ReceiveQty = table.Column(type: "decimal(18,2)", nullable: false),
- StdPackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- StdPackQty = table.Column(type: "decimal(18,2)", nullable: false),
- SupplierPackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- SupplierPackQty = table.Column(type: "decimal(18,2)", nullable: false),
- SupplierPackConvertRate = table.Column(type: "decimal(18,2)", nullable: false),
- Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true),
- ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true),
- ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true),
- CreationTime = table.Column(type: "datetime2", nullable: false),
- CreatorId = table.Column(type: "uniqueidentifier", nullable: true),
- LastModificationTime = table.Column(type: "datetime2", nullable: true),
- LastModifierId = table.Column(type: "uniqueidentifier", nullable: true),
- IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "uniqueidentifier", nullable: true),
- DeletionTime = table.Column(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_WebApi_Receipt", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "WebApi_SupplierPart",
- columns: table => new
- {
- Id = table.Column(type: "uniqueidentifier", nullable: false),
- SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- PartCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false),
- SupplierPartCode = table.Column