贾荣国
3 years ago
76 changed files with 436 additions and 4138 deletions
@ -0,0 +1,8 @@ |
|||
using System; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi; |
|||
|
|||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)] |
|||
public class HiddenApiAttribute : System.Attribute |
|||
{ |
|||
} |
@ -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; |
|||
|
|||
/// <summary>
|
|||
/// 自定义Swagger隐藏过滤器
|
|||
/// </summary>
|
|||
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); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
@ -1,759 +0,0 @@ |
|||
// <auto-generated />
|
|||
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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("ContactName") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ContactPhone") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<Guid?>("DeleterId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("DeleterId"); |
|||
|
|||
b.Property<DateTime?>("DeletionTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("DeletionTime"); |
|||
|
|||
b.Property<DateTime>("DueDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<bool>("IsConsignment") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<bool>("IsDeleted") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("bit") |
|||
.HasDefaultValue(false) |
|||
.HasColumnName("IsDeleted"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<DateTime>("OrderDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoType") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<int>("Status") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("TaxRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("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<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<bool>("IsConsignment") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<int>("LineStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<decimal?>("OrderQty") |
|||
.IsRequired() |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoLine") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<decimal?>("StdPackQty") |
|||
.IsRequired() |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal?>("SupplierPackConvertRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<decimal?>("SupplierPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierPackUom") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Code") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Color") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("Configuration") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<Guid?>("DeleterId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("DeleterId"); |
|||
|
|||
b.Property<DateTime?>("DeletionTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("DeletionTime"); |
|||
|
|||
b.Property<string>("Desc1") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("Desc2") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("Eco") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("ExtPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ExtPackUom") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<string>("Group") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<bool>("IsBuyPart") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<bool>("IsDeleted") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("bit") |
|||
.HasDefaultValue(false) |
|||
.HasColumnName("IsDeleted"); |
|||
|
|||
b.Property<bool>("IsMakePart") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Project") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Status") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("StdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Type") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("abcClass") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("catalog") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("AsnNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Lot") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<Guid?>("DeleterId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("DeleterId"); |
|||
|
|||
b.Property<DateTime?>("DeletionTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("DeletionTime"); |
|||
|
|||
b.Property<decimal>("DeliverQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<bool>("IsDeleted") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("bit") |
|||
.HasDefaultValue(false) |
|||
.HasColumnName("IsDeleted"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoLine") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("ProductionDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("RcNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("RcType") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("ReceiveQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<DateTime>("ReceiveTime") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("RpNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("StdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierLot") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("SupplierPackConvertRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<decimal>("SupplierPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("TimeWindowEnd") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<DateTime>("TimeWindowBegin") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Warehouse") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Address") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("City") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Code") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("ContactName") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Country") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("Currency") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<Guid?>("DeleterId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("DeleterId"); |
|||
|
|||
b.Property<DateTime?>("DeletionTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("DeletionTime"); |
|||
|
|||
b.Property<string>("Desc") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<string>("Fax") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<bool>("IsActive") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<bool>("IsDeleted") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("bit") |
|||
.HasDefaultValue(false) |
|||
.HasColumnName("IsDeleted"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Phone") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PostId") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Rank") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<Guid?>("DeleterId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("DeleterId"); |
|||
|
|||
b.Property<DateTime?>("DeletionTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("DeletionTime"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<bool>("IsDeleted") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("bit") |
|||
.HasDefaultValue(false) |
|||
.HasColumnName("IsDeleted"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierPartCode") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<decimal>("SupplierStdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("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
|
|||
} |
|||
} |
|||
} |
@ -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<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Code = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Desc1 = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|||
Desc2 = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|||
Status = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
IsMakePart = table.Column<bool>(type: "bit", nullable: false), |
|||
IsBuyPart = table.Column<bool>(type: "bit", nullable: false), |
|||
Uom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
abcClass = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
productline = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Type = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
catalog = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Group = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Color = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Configuration = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Project = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Eco = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
StdPackUom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
ExtPackUom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ExtPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
Site = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
SequenceNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Version = table.Column<string>(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<Guid>(type: "uniqueidentifier", nullable: false), |
|||
PoNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
SupplierCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PoType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Status = table.Column<int>(type: "int", nullable: false), |
|||
IsConsignment = table.Column<bool>(type: "bit", nullable: false), |
|||
OrderDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
DueDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
Version = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
TaxRate = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
Site = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ContactName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ContactPhone = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false), |
|||
RcNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
AsnNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RpNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PoNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
SupplierCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
RcType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Warehouse = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Dock = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
TimeWindowBegin = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
TimeWindowEnd = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ReceiveTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
Site = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PoLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PartCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Lot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
SupplierLot = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
Uom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
DeliverQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
ReceiveQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
StdPackUom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
SupplierPackUom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
SupplierPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
SupplierPackConvertRate = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(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<Guid>(type: "uniqueidentifier", nullable: false), |
|||
SupplierCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PartCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
SupplierPartCode = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|||
SupplierStdPackUom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
SupplierStdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WebApi_SupplierPart", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WebApi_Suppliers", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Code = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Desc = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|||
Rank = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Address = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|||
Country = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
City = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Phone = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Fax = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
PostId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
ContactName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Currency = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
IsActive = table.Column<bool>(type: "bit", nullable: false), |
|||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WebApi_Suppliers", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "WebApi_PODetail", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
PoNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PoLine = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
PartCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
Uom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
OrderQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
StdPackUom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|||
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
SupplierPackUom = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|||
SupplierPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: true), |
|||
SupplierPackConvertRate = table.Column<decimal>(type: "decimal(18,2)", nullable: true), |
|||
IsConsignment = table.Column<bool>(type: "bit", nullable: false), |
|||
LineStatus = table.Column<int>(type: "int", nullable: false), |
|||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_WebApi_PODetail", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_WebApi_PODetail_WebApi_PO_Id", |
|||
column: x => x.Id, |
|||
principalTable: "WebApi_PO", |
|||
principalColumn: "Id"); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_Part_Code", |
|||
table: "WebApi_Part", |
|||
column: "Code", |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_PO_PoNumber", |
|||
table: "WebApi_PO", |
|||
column: "PoNumber", |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_PODetail_PoNumber_PoLine", |
|||
table: "WebApi_PODetail", |
|||
columns: new[] { "PoNumber", "PoLine" }, |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_Receipt_RcNumber_PoLine_PartCode", |
|||
table: "WebApi_Receipt", |
|||
columns: new[] { "RcNumber", "PoLine", "PartCode" }, |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_SupplierPart_SupplierCode_PartCode", |
|||
table: "WebApi_SupplierPart", |
|||
columns: new[] { "SupplierCode", "PartCode" }, |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_Suppliers_CreationTime", |
|||
table: "WebApi_Suppliers", |
|||
column: "CreationTime"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "WebApi_Part"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WebApi_PODetail"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WebApi_Suppliers"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "WebApi_PO"); |
|||
} |
|||
} |
|||
} |
@ -1,728 +0,0 @@ |
|||
// <auto-generated />
|
|||
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("20211021081413_20211021002")] |
|||
partial class _20211021002 |
|||
{ |
|||
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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("ContactName") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ContactPhone") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<DateTime>("DueDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<bool>("IsConsignment") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<DateTime>("OrderDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoType") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<int>("Status") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("TaxRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("PoNumber") |
|||
.IsUnique() |
|||
.HasFilter("[PoNumber] IS NOT NULL"); |
|||
|
|||
b.ToTable("WebApi_PO"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PODetail", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<bool>("IsConsignment") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<int>("LineStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<decimal?>("OrderQty") |
|||
.IsRequired() |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoLine") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<decimal?>("StdPackQty") |
|||
.IsRequired() |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal?>("SupplierPackConvertRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<decimal?>("SupplierPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierPackUom") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Code") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Color") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("Configuration") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("Desc1") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("Desc2") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("Eco") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("ExtPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ExtPackUom") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<string>("Group") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<bool>("IsBuyPart") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<bool>("IsMakePart") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Project") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Status") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("StdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Type") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("abcClass") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("catalog") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("productline") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("Code") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("WebApi_Part"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Receipt", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("AsnNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Lot") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<decimal>("DeliverQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoLine") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("ProductionDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("RcNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("RcType") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("ReceiveQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<DateTime>("ReceiveTime") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("RpNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("StdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierLot") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("SupplierPackConvertRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<decimal>("SupplierPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("TimeWindowEnd") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<DateTime>("TimeWindowBegin") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Warehouse") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Dock") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("RcNumber", "PoLine", "PartCode") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("WebApi_Receipt"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Supplier", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Address") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("City") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Code") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("ContactName") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Country") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("Currency") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Desc") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<string>("Fax") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<bool>("IsActive") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Phone") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PostId") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Rank") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("CreationTime"); |
|||
|
|||
b.ToTable("WebApi_Suppliers"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.SupplierPart", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierPartCode") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<decimal>("SupplierStdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierStdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("SupplierCode", "PartCode") |
|||
.IsUnique(); |
|||
|
|||
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
|
|||
} |
|||
} |
|||
} |
@ -1,363 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Migrations |
|||
{ |
|||
public partial class _20211021002 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_SupplierPart_SupplierCode_PartCode", |
|||
table: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_Receipt_RcNumber_PoLine_PartCode", |
|||
table: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_PO_PoNumber", |
|||
table: "WebApi_PO"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_Part_Code", |
|||
table: "WebApi_Part"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeleterId", |
|||
table: "WebApi_Suppliers"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeletionTime", |
|||
table: "WebApi_Suppliers"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsDeleted", |
|||
table: "WebApi_Suppliers"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeleterId", |
|||
table: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeletionTime", |
|||
table: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsDeleted", |
|||
table: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeleterId", |
|||
table: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeletionTime", |
|||
table: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsDeleted", |
|||
table: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeleterId", |
|||
table: "WebApi_PO"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeletionTime", |
|||
table: "WebApi_PO"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsDeleted", |
|||
table: "WebApi_PO"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeleterId", |
|||
table: "WebApi_Part"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DeletionTime", |
|||
table: "WebApi_Part"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsDeleted", |
|||
table: "WebApi_Part"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_Suppliers", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Version", |
|||
table: "WebApi_Suppliers", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_SupplierPart", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Version", |
|||
table: "WebApi_SupplierPart", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_Receipt", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Version", |
|||
table: "WebApi_Receipt", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "WebApi_PODetail", |
|||
type: "nvarchar(40)", |
|||
maxLength: 40, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "WebApi_PODetail", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Version", |
|||
table: "WebApi_PODetail", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_PO", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_SupplierPart_SupplierCode_PartCode", |
|||
table: "WebApi_SupplierPart", |
|||
columns: new[] { "SupplierCode", "PartCode" }, |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_Receipt_RcNumber_PoLine_PartCode", |
|||
table: "WebApi_Receipt", |
|||
columns: new[] { "RcNumber", "PoLine", "PartCode" }, |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_PO_PoNumber", |
|||
table: "WebApi_PO", |
|||
column: "PoNumber", |
|||
unique: true, |
|||
filter: "[PoNumber] IS NOT NULL"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_Part_Code", |
|||
table: "WebApi_Part", |
|||
column: "Code", |
|||
unique: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_SupplierPart_SupplierCode_PartCode", |
|||
table: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_Receipt_RcNumber_PoLine_PartCode", |
|||
table: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_PO_PoNumber", |
|||
table: "WebApi_PO"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_WebApi_Part_Code", |
|||
table: "WebApi_Part"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_Suppliers"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Version", |
|||
table: "WebApi_Suppliers"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Version", |
|||
table: "WebApi_SupplierPart"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Version", |
|||
table: "WebApi_Receipt"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ConcurrencyStamp", |
|||
table: "WebApi_PODetail"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "WebApi_PODetail"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Version", |
|||
table: "WebApi_PODetail"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SequenceNumber", |
|||
table: "WebApi_PO"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "DeleterId", |
|||
table: "WebApi_Suppliers", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "DeletionTime", |
|||
table: "WebApi_Suppliers", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsDeleted", |
|||
table: "WebApi_Suppliers", |
|||
type: "bit", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "DeleterId", |
|||
table: "WebApi_SupplierPart", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "DeletionTime", |
|||
table: "WebApi_SupplierPart", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsDeleted", |
|||
table: "WebApi_SupplierPart", |
|||
type: "bit", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "DeleterId", |
|||
table: "WebApi_Receipt", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "DeletionTime", |
|||
table: "WebApi_Receipt", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsDeleted", |
|||
table: "WebApi_Receipt", |
|||
type: "bit", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "DeleterId", |
|||
table: "WebApi_PO", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "DeletionTime", |
|||
table: "WebApi_PO", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsDeleted", |
|||
table: "WebApi_PO", |
|||
type: "bit", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "DeleterId", |
|||
table: "WebApi_Part", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "DeletionTime", |
|||
table: "WebApi_Part", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsDeleted", |
|||
table: "WebApi_Part", |
|||
type: "bit", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_SupplierPart_SupplierCode_PartCode", |
|||
table: "WebApi_SupplierPart", |
|||
columns: new[] { "SupplierCode", "PartCode" }, |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_Receipt_RcNumber_PoLine_PartCode", |
|||
table: "WebApi_Receipt", |
|||
columns: new[] { "RcNumber", "PoLine", "PartCode" }, |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_PO_PoNumber", |
|||
table: "WebApi_PO", |
|||
column: "PoNumber", |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_WebApi_Part_Code", |
|||
table: "WebApi_Part", |
|||
column: "Code", |
|||
unique: true, |
|||
filter: "IsDeleted=0"); |
|||
} |
|||
} |
|||
} |
@ -1,726 +0,0 @@ |
|||
// <auto-generated />
|
|||
using System; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
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))] |
|||
partial class WebApiHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot |
|||
{ |
|||
protected override void BuildModel(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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("ContactName") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ContactPhone") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<DateTime>("DueDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<bool>("IsConsignment") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<DateTime>("OrderDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoType") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<int>("Status") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("TaxRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("PoNumber") |
|||
.IsUnique() |
|||
.HasFilter("[PoNumber] IS NOT NULL"); |
|||
|
|||
b.ToTable("WebApi_PO"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.PODetail", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<bool>("IsConsignment") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<int>("LineStatus") |
|||
.HasColumnType("int"); |
|||
|
|||
b.Property<decimal?>("OrderQty") |
|||
.IsRequired() |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoLine") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<decimal?>("StdPackQty") |
|||
.IsRequired() |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal?>("SupplierPackConvertRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<decimal?>("SupplierPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierPackUom") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.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<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Code") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Color") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("Configuration") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("Desc1") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("Desc2") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("Eco") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("ExtPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ExtPackUom") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<string>("Group") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<bool>("IsBuyPart") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<bool>("IsMakePart") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Project") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Status") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("StdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Type") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("abcClass") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("catalog") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("productline") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("Code") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("WebApi_Part"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Receipt", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("AsnNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Lot") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<decimal>("DeliverQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoLine") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PoNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("ProductionDate") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("RcNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("RcType") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("ReceiveQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<DateTime>("ReceiveTime") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("RpNumber") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Site") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("StdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("StdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierLot") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<decimal>("SupplierPackConvertRate") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<decimal>("SupplierPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("TimeWindowEnd") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<DateTime>("TimeWindowBegin") |
|||
.HasColumnType("datetime2"); |
|||
|
|||
b.Property<string>("Uom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Warehouse") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Dock") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("RcNumber", "PoLine", "PartCode") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("WebApi_Receipt"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.Supplier", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("Address") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("City") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Code") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Company") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<string>("ContactName") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Country") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("Currency") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Desc") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<string>("Fax") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<bool>("IsActive") |
|||
.HasColumnType("bit"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Phone") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("PostId") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Rank") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(4096) |
|||
.HasColumnType("nvarchar(max)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("CreationTime"); |
|||
|
|||
b.ToTable("WebApi_Suppliers"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Win_in.Sfs.Scp.WebApi.SupplierPart", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd() |
|||
.HasColumnType("uniqueidentifier"); |
|||
|
|||
b.Property<string>("ConcurrencyStamp") |
|||
.IsConcurrencyToken() |
|||
.HasMaxLength(40) |
|||
.HasColumnType("nvarchar(40)") |
|||
.HasColumnName("ConcurrencyStamp"); |
|||
|
|||
b.Property<DateTime>("CreationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("CreationTime"); |
|||
|
|||
b.Property<Guid?>("CreatorId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("CreatorId"); |
|||
|
|||
b.Property<string>("ExtraProperties") |
|||
.HasColumnType("nvarchar(max)") |
|||
.HasColumnName("ExtraProperties"); |
|||
|
|||
b.Property<DateTime?>("LastModificationTime") |
|||
.HasColumnType("datetime2") |
|||
.HasColumnName("LastModificationTime"); |
|||
|
|||
b.Property<Guid?>("LastModifierId") |
|||
.HasColumnType("uniqueidentifier") |
|||
.HasColumnName("LastModifierId"); |
|||
|
|||
b.Property<string>("PartCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Remark") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SequenceNumber") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierCode") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("SupplierPartCode") |
|||
.HasMaxLength(1024) |
|||
.HasColumnType("nvarchar(1024)"); |
|||
|
|||
b.Property<decimal>("SupplierStdPackQty") |
|||
.HasColumnType("decimal(18,2)"); |
|||
|
|||
b.Property<string>("SupplierStdPackUom") |
|||
.IsRequired() |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.Property<string>("Version") |
|||
.HasMaxLength(64) |
|||
.HasColumnType("nvarchar(64)"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("SupplierCode", "PartCode") |
|||
.IsUnique(); |
|||
|
|||
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
|
|||
} |
|||
} |
|||
} |
@ -1,40 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.POs |
|||
{ |
|||
/// <summary>
|
|||
/// 采购订单新增DTO(Purchase order create DTO)
|
|||
/// </summary>
|
|||
public class POCreateDTO : POCreateOrUpdateDTOBase |
|||
{ |
|||
/// <summary>
|
|||
/// 订单号(PoNumber)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "订单号(PoNumber)")] |
|||
public string PoNumber { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 供应商代码(SupplierCode)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "供应商代码(SupplierCode)")] |
|||
public string SupplierCode { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 地点(Site)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "地点(Site)")] |
|||
public string Site { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 公司(Company)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "公司(Company)")] |
|||
public string Company { set; get; } |
|||
|
|||
|
|||
} |
|||
} |
@ -1,76 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Win_in.Sfs.Scp.WebApi.Domain.Shared; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.POs |
|||
{ |
|||
/// <summary>
|
|||
/// 采购订单创建更新基础Dto
|
|||
/// </summary>
|
|||
public abstract class POCreateOrUpdateDTOBase : EntityDtoBase<Guid> |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// 订单类型(PoType)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "订单类型(PoType)")] |
|||
public string PoType { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 订单状态(Status)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "订单状态(Status)")] |
|||
public int Status { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 是否寄存订单(IsConsignment)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "是否寄存订单(IsConsignment)")] |
|||
public bool IsConsignment { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 订单日期(OrderDate)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "订单日期(OrderDate)")] |
|||
public DateTime OrderDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 截止日期(DueDate)
|
|||
/// </summary>
|
|||
[Display(Name = "截止日期(DueDate)")] |
|||
public DateTime DueDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 税率(TaxRate)
|
|||
/// </summary>
|
|||
[Display(Name = "税率(TaxRate)")] |
|||
public decimal TaxRate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 联系人(ContactName)
|
|||
/// </summary>
|
|||
[Display(Name = "联系人(ContactName)")] |
|||
public string ContactName { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 联系电话(ContactPhone)
|
|||
/// </summary>
|
|||
[Display(Name = "联系电话(ContactPhone)")] |
|||
public string ContactPhone { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 备注(Remark)
|
|||
/// </summary>
|
|||
[Display(Name = "备注(Remark)")] |
|||
public string Remark { set; get; } |
|||
|
|||
|
|||
public virtual ICollection<PODetailDTO> Details { get; set; } |
|||
} |
|||
} |
@ -1,17 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.POs |
|||
{ |
|||
/// <summary>
|
|||
/// 采购订单更新DTO(Purchase order update DTO)
|
|||
/// </summary>
|
|||
public class POUpdateDTO : POCreateOrUpdateDTOBase |
|||
{ |
|||
/// <summary>
|
|||
/// 并发时间戳(Concurrency Stamp)
|
|||
/// </summary>
|
|||
[Display(Name = "并发时间戳(Concurrency Stamp)")] |
|||
public string ConcurrencyStamp { get; set; } |
|||
|
|||
} |
|||
} |
@ -1,31 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Parts |
|||
{ |
|||
/// <summary>
|
|||
/// 零件新增DTO(Part create DTO)
|
|||
/// </summary>
|
|||
public class PartCreateDTO : PartCreateOrUpdateDTOBase |
|||
{ |
|||
/// <summary>
|
|||
/// 代码(Code)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "代码")] |
|||
public string Code { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 地点(Site)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "地点")] |
|||
public string Site { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 公司(Company)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "公司")] |
|||
public string Company { get; set; } |
|||
} |
|||
} |
@ -1,152 +0,0 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Data; |
|||
using Win_in.Sfs.Scp.WebApi.Domain.Shared; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Parts |
|||
{ |
|||
/// <summary>
|
|||
/// 零件创建更新基础Dto
|
|||
/// </summary>
|
|||
public abstract class PartCreateOrUpdateDTOBase : EntityDtoBase<Guid>,IHasExtraProperties |
|||
{ |
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 名称(Name)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "名称")] |
|||
public string Name { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 描述(Desc1)
|
|||
/// </summary>
|
|||
[Display(Name = "描述")] |
|||
public string Desc1 { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 描述2(Desc2)
|
|||
/// </summary>
|
|||
[Display(Name = "描述2")] |
|||
public string Desc2 { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 状态(Status)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "状态")] |
|||
public string Status { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 制造件(Can make)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "制造件")] |
|||
public bool CanMake { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 采购件(Can buy)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "采购件")] |
|||
public bool CanBuy { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 计量单位(Uom)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "计量单位")] |
|||
public string Uom { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// ABC类(abcClass)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "ABC类")] |
|||
public string AbcClass { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 产品类(Product line)
|
|||
/// </summary>
|
|||
[Display(Name = "产品类")] |
|||
public string ProductLine { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 类型(Type)
|
|||
/// </summary>
|
|||
[Display(Name = "类型")] |
|||
public string Type { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 种类(Catalog)
|
|||
/// </summary>
|
|||
[Display(Name = "种类")] |
|||
public string Catalog { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 分组(Group)
|
|||
/// </summary>
|
|||
[Display(Name = "分组")] |
|||
public string Group { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 颜色(Color)
|
|||
/// </summary>
|
|||
[Display(Name = "颜色")] |
|||
public string Color { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 配置(Configuration)
|
|||
/// </summary>
|
|||
[Display(Name = "配置")] |
|||
public string Configuration { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 项目(Project)
|
|||
/// </summary>
|
|||
[Display(Name = "项目")] |
|||
public string Project { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 工程变更通知单(Engineering change order)
|
|||
/// </summary>
|
|||
[Display(Name = "工程变更通知单")] |
|||
public string Eco { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 标包计量单位(Standard Pack Uom)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "标包计量单位")] |
|||
public string StdPackUom { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 标包数量(Standard Pack Qty)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "标包数量")] |
|||
public decimal StdPackQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 替代计量单位(Extra Pack UM)
|
|||
/// </summary>
|
|||
[Display(Name = "替代计量单位")] |
|||
public string ExtPackUom { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 替代包装数量(Extra Pack Qty)
|
|||
/// </summary>
|
|||
[Display(Name = "替代包装数量")] |
|||
public decimal ExtPackQty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 扩展属性(Extra Properties)
|
|||
/// </summary>
|
|||
[Display(Name = "扩展属性(Extra Properties)")] |
|||
public ExtraPropertyDictionary ExtraProperties { get; set; } |
|||
|
|||
} |
|||
} |
@ -1,17 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Parts |
|||
{ |
|||
/// <summary>
|
|||
/// 零件更新DTO(Part update DTO)
|
|||
/// </summary>
|
|||
public class PartUpdateDTO : PartCreateOrUpdateDTOBase |
|||
{ |
|||
/// <summary>
|
|||
/// 并发时间戳(Concurrency Stamp)
|
|||
/// </summary>
|
|||
[Display(Name = "并发时间戳(Concurrency Stamp)")] |
|||
public string ConcurrencyStamp { get; set; } |
|||
|
|||
} |
|||
} |
@ -1,85 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Receipts |
|||
{ |
|||
/// <summary>
|
|||
/// 澗새데劤藤DTO(Receipt create DTO)
|
|||
/// </summary>
|
|||
public class ReceiptCreateDTO : ReceiptCreateOrUpdateDTOBase |
|||
{ |
|||
/// <summary>
|
|||
/// 澗새데뵀(RcNumber)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "澗새데뵀(RcNumber)")] |
|||
public string RcNumber { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 랙새데뵀(AsnNumber)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "랙새데뵀(AsnNumber)")] |
|||
public string AsnNumber { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 狼새셕뺍데뵀(RpNumber)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "狼새셕뺍데뵀(RpNumber)")] |
|||
public string RpNumber { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 땐데뵀(PoNumber)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "땐데뵀(PoNumber)")] |
|||
public string PoNumber { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 묩壇�덜쯤(PoNumber)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "묩壇�덜쯤(SupplierCode)")] |
|||
public string SupplierCode { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 澗새데잚謹(RcType)
|
|||
/// "" :澗새데(Receipts)
|
|||
/// "R":藁새데(Return Document)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "澗새데잚謹(RcType)")] |
|||
public string RcType { set; get; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 뒈듐(Site)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "뒈듐(Site)")] |
|||
public string Site { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 무鱇(Company)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "무鱇(Company)")] |
|||
public string Company { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 땐데契(PoLine)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "땐데契(PoLine)")] |
|||
public string PoLine { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 쥐숭뵀(PartCode)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "쥐숭뵀(PartCode)")] |
|||
public string PartCode { set; get; } |
|||
|
|||
|
|||
} |
|||
} |
@ -1,129 +0,0 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Win_in.Sfs.Scp.WebApi.Domain.Shared; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Receipts |
|||
{ |
|||
public abstract class ReceiptCreateOrUpdateDTOBase : EntityDtoBase<Guid> |
|||
{ |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 仓库(Warehouse)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "仓库(Warehouse)")] |
|||
public string Warehouse { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 收货口(Dock)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "收货口(Dock)")] |
|||
public string Dock { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 时间窗口开始(TimeWindowBegin)
|
|||
/// </summary>
|
|||
[Display(Name = "时间窗口开始(TimeWindowBegin)")] |
|||
public DateTime TimeWindowBegin { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 时间窗口结束(TimeWindowEnd)
|
|||
/// </summary>
|
|||
[Display(Name = "时间窗口结束(TimeWindowEnd)")] |
|||
public DateTime TimeWindowEnd { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 收货日期(ReceiveDate)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "收货日期(ReceiveDate)")] |
|||
public DateTime ReceiveDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 收货时间(ReceiveTime)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "收货时间(ReceiveTime)")] |
|||
public DateTime ReceiveTime { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 批次(Lot)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "批次(Lot)")] |
|||
public string Lot { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 供应商批次(SupplierLot)
|
|||
/// </summary>
|
|||
[Display(Name = "供应商批次(SupplierLot)")] |
|||
public string SupplierLot { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 生产日期(ProductionDate)
|
|||
/// </summary>
|
|||
[Display(Name = "生产日期(ProductionDate)")] |
|||
public DateTime ProductionDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 计量单位(Uom)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "计量单位(Uom)")] |
|||
public string Uom { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发货数量(DeliverQty)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "发货数量(DeliverQty)")] |
|||
public decimal DeliverQty { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 收货数量(ReceiveQty)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "收货数量(ReceiveQty)")] |
|||
public decimal ReceiveQty { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 标包计量单位(Standard Pack Uom)
|
|||
/// </summary>
|
|||
[Display(Name = "标包计量单位(Standard Pack Uom)")] |
|||
public string StdPackUom { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 标包数量(Standard Pack Qty)
|
|||
/// </summary>
|
|||
[Display(Name = "标包数量(Standard Pack Qty)")] |
|||
public decimal StdPackQty { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 供应商计量单位(SupplierPackUom)
|
|||
/// </summary>
|
|||
[Display(Name = "供应商计量单位(SupplierPackUom)")] |
|||
public string SupplierPackUom { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 供应商包装数量(SupplierPackQty)
|
|||
/// </summary>
|
|||
[Display(Name = "供应商包装数量(SupplierPackQty)")] |
|||
public decimal SupplierPackQty { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 供应商包装转换率(SupplierPackConvertRate)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "供应商包装转换率(SupplierPackConvertRate)")] |
|||
public decimal SupplierPackConvertRate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 备注(Remark)
|
|||
/// </summary>
|
|||
[Display(Name = "备注(Remark)")] |
|||
public string Remark { set; get; } |
|||
} |
|||
} |
@ -1,18 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Win_in.Sfs.Scp.WebApi.Receipts; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Receipts |
|||
{ |
|||
/// <summary>
|
|||
/// 收货单更新DTO(Receipt update DTO)
|
|||
/// </summary>
|
|||
public class ReceiptUpdateDTO : ReceiptCreateOrUpdateDTOBase |
|||
{ |
|||
/// <summary>
|
|||
/// 并发时间戳(Concurrency Stamp)
|
|||
/// </summary>
|
|||
[Display(Name = "并发时间戳(Concurrency Stamp)")] |
|||
public string ConcurrencyStamp { get; set; } |
|||
|
|||
} |
|||
} |
@ -1,24 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Suppliers |
|||
{ |
|||
/// <summary>
|
|||
/// 供应商新增DTO(Supplier create DTO)
|
|||
/// </summary>
|
|||
public class SupplierCreateDTO : SupplierCreateOrUpdateDTOBase |
|||
{ |
|||
/// <summary>
|
|||
/// 代码(Code)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "代码(Code)")] |
|||
public string Code { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 公司(Company)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "公司(Company)")] |
|||
public string Company { set; get; } |
|||
} |
|||
} |
@ -1,97 +0,0 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Win_in.Sfs.Scp.WebApi.Domain.Shared; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Suppliers |
|||
{ |
|||
public abstract class SupplierCreateOrUpdateDTOBase : EntityDtoBase<Guid> |
|||
{ |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 简称(Name)
|
|||
/// </summary>
|
|||
[Required] |
|||
[Display(Name = "简称(Name)")] |
|||
public string Name { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 描述(Description)
|
|||
/// </summary>
|
|||
[Display(Name = "描述(Description)")] |
|||
public string Desc { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 级别(Rank)
|
|||
/// </summary>
|
|||
[Display(Name = "级别(Rank)")] |
|||
public string Rank { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 地址
|
|||
/// </summary>
|
|||
[Display(Name = "地址(Address)")] |
|||
public string Address { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 国家(Country)
|
|||
/// </summary>
|
|||
[Display(Name = "国家(Country)")] |
|||
public string Country { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 城市(City)
|
|||
/// </summary>
|
|||
[Display(Name = "城市(City)")] |
|||
public string City { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 电话(Phone)
|
|||
/// </summary>
|
|||
[Display(Name = "电话(Phone)")] |
|||
public string Phone { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 传真(Fax)
|
|||
/// </summary>
|
|||
[Display(Name = "传真(Fax)")] |
|||
public string Fax { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 邮编(PostId)
|
|||
/// </summary>
|
|||
[Display(Name = "邮编(PostId)")] |
|||
public string PostId { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 联系人(ContactName)
|
|||
/// </summary>
|
|||
[Display(Name = "联系人(ContactName)")] |
|||
public string ContactName { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 货币(Currency)
|
|||
/// </summary>
|
|||
[Display(Name = "货币(Currency)")] |
|||
public string Currency { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 是否激活(IsActive)
|
|||
/// </summary>
|
|||
[Display(Name = "是否激活(IsActive)")] |
|||
public bool IsActive { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 备注(Remark)
|
|||
/// </summary>
|
|||
[Display(Name = "备注(Remark)")] |
|||
public string Remark { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 银行(Bank)
|
|||
/// </summary>
|
|||
[Display(Name = "银行(Bank)")] |
|||
public string Bank { set; get; } |
|||
} |
|||
} |
@ -1,18 +0,0 @@ |
|||
using System.ComponentModel; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Suppliers |
|||
{ |
|||
/// <summary>
|
|||
/// 供应商更新DTO(Supplier update DTO)
|
|||
/// </summary>
|
|||
public class SupplierUpdateDTO : SupplierCreateOrUpdateDTOBase, IHasConcurrencyStamp |
|||
{ |
|||
/// <summary>
|
|||
/// 并发时间戳(Concurrency Stamp)
|
|||
/// </summary>
|
|||
[Display(Name = "并发时间戳(Concurrency Stamp)")] |
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
|||
} |
@ -1,89 +0,0 @@ |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.POs |
|||
{ |
|||
/// <summary>
|
|||
/// 采购订单服务
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/scp/po")] |
|||
[ApiExplorerSettings(GroupName = SwaggerGroupConsts.ScpWebApi)] |
|||
public class POAppService : CrudAppService<PO, PODTO, Guid,RequestDTO, POCreateDTO, POUpdateDTO>, IPOAppService |
|||
{ |
|||
private readonly IPORepository _partRepository; |
|||
|
|||
public POAppService(IPORepository repository) : base(repository) |
|||
{ |
|||
_partRepository = repository; |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 按ID获取采购订单 (Get purchase order by ID)
|
|||
/// </summary>
|
|||
/// <param name="id">唯一ID(unique ID)</param>
|
|||
/// <returns></returns>
|
|||
[HttpGet] |
|||
[Route("{id}")] |
|||
public override Task<PODTO> GetAsync(Guid id) |
|||
{ |
|||
return base.GetAsync(id); |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 按条件获取采购订单列表 (Get purchase order list by request condition)
|
|||
/// </summary>
|
|||
/// <param name="requestDTO">请求条件DTO(Request condition DTO)</param>
|
|||
/// <returns></returns>
|
|||
[HttpGet] |
|||
[Route("")] |
|||
public override Task<PagedResultDto<PODTO>> GetListAsync(RequestDTO requestDTO) |
|||
{ |
|||
return base.GetListAsync(requestDTO); |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 新增采购订单(Create New purchase order)
|
|||
/// </summary>
|
|||
/// <returns></returns>
|
|||
[HttpPost] |
|||
[Route("")] |
|||
public override Task<PODTO> CreateAsync(POCreateDTO poCreateDTO) |
|||
{ |
|||
return base.CreateAsync(poCreateDTO); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 按ID修改采购订单 (Modify purchase order by ID)
|
|||
/// </summary>
|
|||
/// <param name="id">唯一ID(unique ID)</param>
|
|||
/// <returns></returns>
|
|||
[HttpPut] |
|||
[Route("{id}")] |
|||
public override Task<PODTO> UpdateAsync(Guid id, POUpdateDTO poUpdateDTO) |
|||
{ |
|||
return base.UpdateAsync(id, poUpdateDTO); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 按ID删除采购订单 (Delete purchase order by ID)
|
|||
/// </summary>
|
|||
/// <param name="id">唯一ID(unique ID)</param>
|
|||
/// <returns>无</returns>
|
|||
[HttpDelete] |
|||
[Route("{id}")] |
|||
public override Task DeleteAsync(Guid id) |
|||
{ |
|||
return base.DeleteAsync(id); |
|||
} |
|||
|
|||
} |
|||
} |
@ -0,0 +1,69 @@ |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
using Win_in.Sfs.Scp.WebApi.Parts; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.POs |
|||
{ |
|||
/// <summary>
|
|||
/// 采购订单服务
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/scp/po")] |
|||
[ApiExplorerSettings(GroupName = SwaggerGroupConsts.ScpWebApi)] |
|||
public class PurchaseOrderAppService : ReadOnlyAppService<PurchaseOrder, PurchaseOrderDTO, Guid,RequestDTO>, IPurchaseOrderAppService |
|||
{ |
|||
private readonly IPurchaseOrderRepository _purchaseOrderRepository; |
|||
|
|||
public PurchaseOrderAppService(IPurchaseOrderRepository repository) : base(repository) |
|||
{ |
|||
_purchaseOrderRepository = repository; |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 按ID获取采购订单 (Get purchase order by ID)
|
|||
/// </summary>
|
|||
/// <param name="id">唯一ID(unique ID)</param>
|
|||
/// <returns></returns>
|
|||
[HttpGet] |
|||
[Route("{id}")] |
|||
public override async Task<PurchaseOrderDTO> GetAsync(Guid id) |
|||
{ |
|||
return await base.GetAsync(id); |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 按条件获取采购订单列表 (Get purchase order list by request condition)
|
|||
/// </summary>
|
|||
/// <returns></returns>
|
|||
[HttpGet] |
|||
[Route("")] |
|||
public override async Task<PagedResultDto<PurchaseOrderDTO>> GetListAsync(RequestDTO input) |
|||
{ |
|||
return await base.GetListAsync(input); |
|||
} |
|||
|
|||
|
|||
|
|||
/// <summary>
|
|||
/// 新增采购订单(Create New purchase order)
|
|||
/// </summary>
|
|||
/// <returns></returns>
|
|||
[HttpPost] |
|||
[Route("")] |
|||
public async Task<PurchaseOrderDTO> CreateAsync(PurchaseOrderDTO poCreateDTO) |
|||
{ |
|||
var entity = ObjectMapper.Map<PurchaseOrderDTO, PurchaseOrder>(poCreateDTO); |
|||
var ret = await _purchaseOrderRepository.InsertAsync(entity); |
|||
var dto = ObjectMapper.Map<PurchaseOrder, PurchaseOrderDTO>(ret); |
|||
return dto; |
|||
} |
|||
|
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "ar", |
|||
"texts": { |
|||
"MyAccount": "إدارة ملفى", |
|||
"SamplePageMessage": "صفحة نموذجية للوحدة النمطية WebApi" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "cs", |
|||
"texts": { |
|||
"MyAccount": "Spravovat profil", |
|||
"SamplePageMessage": "Ukázková stránka pro modul WebApi" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "de-DE", |
|||
"texts": { |
|||
"MyAccount": "Mein Konto", |
|||
"SamplePageMessage": "Eine Beispielseite für das Modul WebApiModul" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "en-GB", |
|||
"texts": { |
|||
"MyAccount": "My account", |
|||
"SamplePageMessage": "A sample page for the WebApi module" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "es", |
|||
"texts": { |
|||
"MyAccount": "Mi cuenta", |
|||
"SamplePageMessage": "Una página de ejemplo para el módulo WebApi " |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "fi", |
|||
"texts": { |
|||
"MyAccount": "Tilini", |
|||
"SamplePageMessage": "Esimerkkisivu WebApi-moduulille" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "fr", |
|||
"texts": { |
|||
"MyAccount": "Mon compte", |
|||
"SamplePageMessage": "Exemple de page pour le module WebApi" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "hi", |
|||
"texts": { |
|||
"MyAccount": "मेरा खाता", |
|||
"SamplePageMessage": "WebApi मॉड्यूल के लिए एक नमूना पृष्ठ" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "hu", |
|||
"texts": { |
|||
"MyAccount": "A fiókom", |
|||
"SamplePageMessage": "Mintaoldal a WebApi modulhoz" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "it", |
|||
"texts": { |
|||
"MyAccount": "Il mio conto", |
|||
"SamplePageMessage": "Una pagina di esempio per il modulo WebApi" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "nl", |
|||
"texts": { |
|||
"MyAccount": "Mijn rekening", |
|||
"SamplePageMessage": "Een voorbeeldpagina voor de WebApi module" |
|||
} |
|||
} |
@ -1,6 +0,0 @@ |
|||
{ |
|||
"culture": "pl-PL", |
|||
"texts": { |
|||
|
|||
} |
|||
} |
@ -1,6 +0,0 @@ |
|||
{ |
|||
"culture": "pt-BR", |
|||
"texts": { |
|||
|
|||
} |
|||
} |
@ -1,6 +0,0 @@ |
|||
{ |
|||
"culture": "sk", |
|||
"texts": { |
|||
"SamplePageMessage": "Ukážka stránky pre modul WebApi" |
|||
} |
|||
} |
@ -1,6 +0,0 @@ |
|||
{ |
|||
"culture": "sl", |
|||
"texts": { |
|||
"MyAccount": "Moj račun" |
|||
} |
|||
} |
@ -1,7 +0,0 @@ |
|||
{ |
|||
"culture": "tr", |
|||
"texts": { |
|||
"MyAccount": "Hesabım", |
|||
"SamplePageMessage": "WebApi modulünden örnek bir sayfa" |
|||
} |
|||
} |
@ -1,6 +0,0 @@ |
|||
{ |
|||
"culture": "vi", |
|||
"texts": { |
|||
|
|||
} |
|||
} |
@ -1,6 +0,0 @@ |
|||
{ |
|||
"culture": "zh-Hant", |
|||
"texts": { |
|||
"MyAccount": "我的賬戶" |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.EntityFrameworkCore; |
|||
|
|||
public class PartRepository:EfCoreRepository<WebApiDbContext,Part,Guid> ,IPartRepository |
|||
{ |
|||
public PartRepository(IDbContextProvider<WebApiDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.EntityFrameworkCore; |
|||
|
|||
public class PurchaseOrderRepository: EfCoreRepository<WebApiDbContext, PurchaseOrder, Guid>, IPurchaseOrderRepository |
|||
{ |
|||
public PurchaseOrderRepository(IDbContextProvider<WebApiDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.EntityFrameworkCore; |
|||
|
|||
public class ReceiptRepository: EfCoreRepository<WebApiDbContext, Receipt, Guid>, IReceiptRepository |
|||
{ |
|||
public ReceiptRepository(IDbContextProvider<WebApiDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.EntityFrameworkCore; |
|||
|
|||
public class SupplierRepository: EfCoreRepository<WebApiDbContext, Supplier, Guid>, ISupplierRepository |
|||
{ |
|||
public SupplierRepository(IDbContextProvider<WebApiDbContext> dbContextProvider) : base(dbContextProvider) |
|||
{ |
|||
} |
|||
} |
Loading…
Reference in new issue