Administrator
3 years ago
15 changed files with 35588 additions and 105 deletions
@ -1,21 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore; |
|
||||
using Volo.Abp.EntityFrameworkCore; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount |
|
||||
{ |
|
||||
public class SettleAccountHttpApiHostMigrationsDbContext : AbpDbContext<SettleAccountHttpApiHostMigrationsDbContext> |
|
||||
{ |
|
||||
public SettleAccountHttpApiHostMigrationsDbContext(DbContextOptions<SettleAccountHttpApiHostMigrationsDbContext> options) |
|
||||
: base(options) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder) |
|
||||
{ |
|
||||
base.OnModelCreating(modelBuilder); |
|
||||
|
|
||||
modelBuilder.ConfigureSettleAccount(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,29 +0,0 @@ |
|||||
using System.IO; |
|
||||
using Microsoft.EntityFrameworkCore; |
|
||||
using Microsoft.EntityFrameworkCore.Design; |
|
||||
using Microsoft.Extensions.Configuration; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount |
|
||||
{ |
|
||||
public class SettleAccountHttpApiHostMigrationsDbContextFactory : IDesignTimeDbContextFactory<SettleAccountHttpApiHostMigrationsDbContext> |
|
||||
{ |
|
||||
public SettleAccountHttpApiHostMigrationsDbContext CreateDbContext(string[] args) |
|
||||
{ |
|
||||
var configuration = BuildConfiguration(); |
|
||||
|
|
||||
var builder = new DbContextOptionsBuilder<SettleAccountHttpApiHostMigrationsDbContext>() |
|
||||
.UseSqlServer(configuration.GetConnectionString("SettleAccountService")); |
|
||||
|
|
||||
return new SettleAccountHttpApiHostMigrationsDbContext(builder.Options); |
|
||||
} |
|
||||
|
|
||||
private static IConfigurationRoot BuildConfiguration() |
|
||||
{ |
|
||||
var builder = new ConfigurationBuilder() |
|
||||
.SetBasePath(Directory.GetCurrentDirectory()) |
|
||||
.AddJsonFile("appsettings.json", optional: false); |
|
||||
|
|
||||
return builder.Build(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,62 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win.Sfs.SettleAccount.Migrations |
||||
|
{ |
||||
|
public partial class _20220207 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "Set_WmsDetailReport", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
LineNumber = table.Column<int>(type: "int", nullable: false), |
||||
|
Version = table.Column<string>(type: "nvarchar(max)", nullable: true), |
||||
|
Client = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
||||
|
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
||||
|
SettleCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
SaleCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
ClientCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
BillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
||||
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
||||
|
OutputQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
||||
|
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
||||
|
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
||||
|
Amt = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
||||
|
OutPutAmt = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
||||
|
DiffAmt = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
||||
|
MaterialGroupCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
MaterialGroup = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
MaterialDesc = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true), |
||||
|
Remark1 = table.Column<string>(type: "nvarchar(max)", nullable: true), |
||||
|
State = table.Column<int>(type: "int", nullable: false), |
||||
|
AccountDate = table.Column<DateTime>(type: "datetime2", 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), |
||||
|
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
Enabled = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_Set_WmsDetailReport", x => x.Id); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "Set_WmsDetailReport"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
Loading…
Reference in new issue