Browse Source

接口修改

集成Redis
lvzb 2 years ago
parent
commit
9e38bee936
  1. 4
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Tyrp/appsettings.json
  2. 4
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/appsettings.json
  3. 4
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent/appsettings.json
  4. 114
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs
  5. 14
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/TyrpAgentModule.cs
  6. 9
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.csproj
  7. 19
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/appsettings.json
  8. 16
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/AgentModule.cs
  9. 76
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsExtensions.cs
  10. 15
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs
  11. 5
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/Win_in.Sfs.Wms.DataExchange.Agent.csproj
  12. 18
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/appsettings.json
  13. 6
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.DbMigrator/appsettings.json
  14. 3178
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.Designer.cs
  15. 1216
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.cs
  16. 3179
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.Designer.cs
  17. 74
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.cs
  18. 56
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.cs
  19. 286
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.Designer.cs
  20. 1713
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.cs
  21. 282
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/DataExchangeDbContextModelSnapshot.cs
  22. 1689
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.Designer.cs
  23. 664
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.cs
  24. 2080
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.Designer.cs
  25. 76
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.cs
  26. 4400
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.Designer.cs
  27. 22
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.cs
  28. 4353
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.Designer.cs
  29. 330
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.cs
  30. 4397
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.Designer.cs
  31. 37
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.cs
  32. 4353
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.Designer.cs
  33. 333
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.cs
  34. 4543
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.Designer.cs
  35. 33
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.cs
  36. 1968
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.Designer.cs
  37. 156
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.cs
  38. 2007
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.Designer.cs
  39. 884
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.cs
  40. 1756
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.Designer.cs
  41. 43
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.cs
  42. 1689
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.Designer.cs
  43. 16
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.cs
  44. 4350
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.Designer.cs
  45. 1361
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.cs
  46. 1756
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.Designer.cs
  47. 38
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.cs
  48. 4537
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.Designer.cs
  49. 66
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.cs
  50. 4
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.MesAgent/appsettings.json
  51. 1
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Boms/IBomAppService.cs
  52. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Customers/ICustomerAppService.cs
  53. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/InterfaceCalendars/IInterfaceCalendarAppService.cs
  54. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs
  55. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Suppliers/ISupplierAppService.cs
  56. 13
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Boms/BomAppService.cs
  57. 12
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAppService.cs
  58. 8
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Customers/CustomerAppService.cs
  59. 6
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Dicts/DictAutoMapperProfile.cs
  60. 7
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs
  61. 7
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Suppliers/SupplierAppService.cs
  62. 1
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Boms/IBomRepository.cs
  63. 1
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Customers/ICustomerRepository.cs
  64. 4
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/InterfaceCalendars/IInterfaceCalendarRepository.cs
  65. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/ItemBasics/IItemBasicRepository.cs
  66. 1
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Suppliers/ISupplierRepository.cs
  67. 31
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Boms/BomEfCoreRepository.cs
  68. 18
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Customers/CustomerEfCoreRepository.cs
  69. 18
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/InterfaceCalenders/InterfaceCalendarEfCoreRepository.cs
  70. 25
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs
  71. 23
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Suppliers/SupplierEfCoreRepository.cs
  72. 3
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Requests/MaterialRequests/IMaterialRequestAppService.cs
  73. 1
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAppService.cs
  74. 1
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/IssueNoteAppService.cs
  75. 51
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/MaterialRequests/MaterialRequestAppService.cs
  76. 1
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IIssueNoteManager.cs
  77. 1
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IssueNoteManager.cs
  78. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/IMaterialRequestManager.cs
  79. 22
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/MaterialRequestManager.cs

4
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Tyrp/appsettings.json

@ -1,5 +1,5 @@
{
{
"ConnectionStrings": {
"TYRP": "Server=dev.ccwin-in.com,13319;Database=TYRP;Uid=ccwin-in;Pwd=Microsoft@2022;"
"TYRP": "Server=dev.ccwin-in.com,21195;Database=TYRP;Uid=sa;Pwd=aA123456!;"
}
}

4
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/appsettings.json

@ -1,7 +1,7 @@
{
{
"ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13319;Database=DyWmsAuth;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;",
"EOS": "Server=dev.ccwin-in.com,13319;Database=EOS;Uid=ccwin-in;Pwd=Microsoft@2022;"
},

4
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent/appsettings.json

@ -1,7 +1,7 @@
{
{
"ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13319;Database=DyWmsAuth;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;",
"MES": "Server=dev.ccwin-in.com;Port=13306;Database=MES;Uid=ccwinin;Pwd=Microsoft@2022;"
},

114
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs

@ -59,26 +59,26 @@ public class TyrpIncomingBackgroundWorker : AsyncPeriodicBackgroundWorkerBase
common.updatedt = DateTime.Now;
common.isupdate = false;
Logger.LogInformation($"Read ItemBasic");//零件
var itemBasicReader = workerContext.ServiceProvider.GetRequiredService<ItemBasicReader>();
var itemBasicConverter = workerContext.ServiceProvider.GetRequiredService<ItemBasicConverter>();
//读取并保存itemBasic
var itemBasicOutsFromExternalList = await itemBasicReader.ReadAsync().ConfigureAwait(false);
//转换itemBasic
await itemBasicConverter.ConvertAsync(itemBasicOutsFromExternalList).ConfigureAwait(false);
Logger.LogInformation($"Read User");//用户和部门
var userReader = workerContext.ServiceProvider.GetRequiredService<UserReader>();
var userConverter = workerContext.ServiceProvider.GetRequiredService<UserConverter>();
var departmentConverter = workerContext.ServiceProvider.GetRequiredService<DepartmentConverter>();
//读取并保存user
var outsFromExternalList = await userReader.ReadAsync().ConfigureAwait(false);
var userOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.User.ToString()).ToList();
var departmentOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.Department.ToString()).ToList();
//转换user
await userConverter.ConvertAsync(userOutsFromExternalList).ConfigureAwait(false);
//转换department
await departmentConverter.ConvertAsync(departmentOutsFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read ItemBasic");//零件
//var itemBasicReader = workerContext.ServiceProvider.GetRequiredService<ItemBasicReader>();
//var itemBasicConverter = workerContext.ServiceProvider.GetRequiredService<ItemBasicConverter>();
////读取并保存itemBasic
//var itemBasicOutsFromExternalList = await itemBasicReader.ReadAsync().ConfigureAwait(false);
////转换itemBasic
//await itemBasicConverter.ConvertAsync(itemBasicOutsFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read User");//用户和部门
//var userReader = workerContext.ServiceProvider.GetRequiredService<UserReader>();
//var userConverter = workerContext.ServiceProvider.GetRequiredService<UserConverter>();
//var departmentConverter = workerContext.ServiceProvider.GetRequiredService<DepartmentConverter>();
////读取并保存user
//var outsFromExternalList = await userReader.ReadAsync().ConfigureAwait(false);
//var userOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.User.ToString()).ToList();
//var departmentOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.Department.ToString()).ToList();
////转换user
//await userConverter.ConvertAsync(userOutsFromExternalList).ConfigureAwait(false);
////转换department
//await departmentConverter.ConvertAsync(departmentOutsFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read InterfaceCalendar");//账期
//var interfaceCalendarReader = workerContext.ServiceProvider.GetRequiredService<InterfaceCalendarReader>();
@ -96,49 +96,49 @@ public class TyrpIncomingBackgroundWorker : AsyncPeriodicBackgroundWorkerBase
//转换Dict
await dictConverter.ConvertAsync(dictOutsFromExternalList).ConfigureAwait(false);
Logger.LogInformation($"Read Bom");
var BomReader = workerContext.ServiceProvider.GetRequiredService<BomReader>();
var BomConverter = workerContext.ServiceProvider.GetRequiredService<BomConverter>();
//读取并保存Bom
var bomsFromExternalList = await BomReader.ReadAsync().ConfigureAwait(false);
//转换Bom
await BomConverter.ConvertAsync(bomsFromExternalList).ConfigureAwait(false);
Logger.LogInformation($"Read Supplier");//供应商
var SupplierReader = workerContext.ServiceProvider.GetRequiredService<SupplierReader>();
var SupplierConverter = workerContext.ServiceProvider.GetRequiredService<SupplierConverter>();
//读取并保存Supplier
var suppliersFromExternalList = await SupplierReader.ReadAsync().ConfigureAwait(false);
//转换Supplier
await SupplierConverter.ConvertAsync(suppliersFromExternalList).ConfigureAwait(false);
Logger.LogInformation($"Read Dictpj");//专案代码
var DictpjReader = workerContext.ServiceProvider.GetRequiredService<DictpjReader>();
//读取并保存Dictpj
var dictpjOutsFromExternalList = await DictpjReader.ReadAsync().ConfigureAwait(false);
//转换Dictpj
await dictConverter.ConvertAsync(dictOutsFromExternalList).ConfigureAwait(false);
Logger.LogInformation($"Read Customer");//客户资料
var CustomerReader = workerContext.ServiceProvider.GetRequiredService<CustomerReader>();
var CustomerConverter = workerContext.ServiceProvider.GetRequiredService<CustomerConverter>();
//读取并保存Customer
var customersFromExternalList = await CustomerReader.ReadAsync().ConfigureAwait(false);
//转换Customer
await CustomerConverter.ConvertAsync(customersFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read Bom");
//var BomReader = workerContext.ServiceProvider.GetRequiredService<BomReader>();
//var BomConverter = workerContext.ServiceProvider.GetRequiredService<BomConverter>();
////读取并保存Bom
//var bomsFromExternalList = await BomReader.ReadAsync().ConfigureAwait(false);
////转换Bom
//await BomConverter.ConvertAsync(bomsFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read Supplier");//供应商
//var SupplierReader = workerContext.ServiceProvider.GetRequiredService<SupplierReader>();
//var SupplierConverter = workerContext.ServiceProvider.GetRequiredService<SupplierConverter>();
////读取并保存Supplier
//var suppliersFromExternalList = await SupplierReader.ReadAsync().ConfigureAwait(false);
////转换Supplier
//await SupplierConverter.ConvertAsync(suppliersFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read Dictpj");//专案代码
//var DictpjReader = workerContext.ServiceProvider.GetRequiredService<DictpjReader>();
////读取并保存Dictpj
//var dictpjOutsFromExternalList = await DictpjReader.ReadAsync().ConfigureAwait(false);
////转换Dictpj
//await dictConverter.ConvertAsync(dictOutsFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read Customer");//客户资料
//var CustomerReader = workerContext.ServiceProvider.GetRequiredService<CustomerReader>();
//var CustomerConverter = workerContext.ServiceProvider.GetRequiredService<CustomerConverter>();
////读取并保存Customer
//var customersFromExternalList = await CustomerReader.ReadAsync().ConfigureAwait(false);
////转换Customer
//await CustomerConverter.ConvertAsync(customersFromExternalList).ConfigureAwait(false);
}
else
{
common.isupdate = true;
}
}
Logger.LogInformation($"Read BackFlush");//耗用单
var BackFlushReader = workerContext.ServiceProvider.GetRequiredService<BackFluReader>();
var BackFlushConverter = workerContext.ServiceProvider.GetRequiredService<BackFluConverter>();
//读取并保存Customer
var backFlushsFromExternalList = await BackFlushReader.ReadAsync().ConfigureAwait(false);
//转换Customer
await BackFlushConverter.ConvertAsync(backFlushsFromExternalList).ConfigureAwait(false);
//Logger.LogInformation($"Read BackFlush");//耗用单
//var BackFlushReader = workerContext.ServiceProvider.GetRequiredService<BackFluReader>();
//var BackFlushConverter = workerContext.ServiceProvider.GetRequiredService<BackFluConverter>();
////读取并保存Customer
//var backFlushsFromExternalList = await BackFlushReader.ReadAsync().ConfigureAwait(false);
////转换Customer
//await BackFlushConverter.ConvertAsync(backFlushsFromExternalList).ConfigureAwait(false);
Logger.LogInformation($"Completed: Handling {Incoming}");
}

14
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/TyrpAgentModule.cs

@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Polly;
using Volo.Abp;
using Volo.Abp.Account;
using Volo.Abp.Autofac;
using Volo.Abp.AutoMapper;
using Volo.Abp.BackgroundJobs;
@ -43,7 +44,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent;
typeof(DataExchangeEntityFrameworkCoreModule),
typeof(DataExchangeDomainFawtygTyrpModule),
typeof(DataExchangeDapperFawtygModule),
typeof(DataExchangeEntityFrameworkCoreFawtygModule)
typeof(DataExchangeEntityFrameworkCoreFawtygModule),
typeof(AbpAccountApplicationContractsModule)
)]
public class TyrpAgentModule : AbpModule
{
@ -149,6 +151,10 @@ public class TyrpAgentModule : AbpModule
typeof(BasedataApplicationContractsModule).Assembly,
"BaseData"
);
context.Services.AddHttpClientProxies(
typeof(AbpAccountApplicationContractsModule).Assembly,
"Auth"
);
context.Services.AddHttpClientProxies(
typeof(StoreApplicationContractsModule).Assembly,
"Store"
@ -162,12 +168,12 @@ public class TyrpAgentModule : AbpModule
"Auth");
}
public override async Task OnApplicationInitializationAsync(
public override void OnApplicationInitialization(
ApplicationInitializationContext context)
{
await context.AddBackgroundWorkerAsync<TyrpIncomingBackgroundWorker>().ConfigureAwait(false);
await context.AddBackgroundWorkerAsync<TyrpOutgoingBackgroundWorker>().ConfigureAwait(false);
context.AddBackgroundWorkerAsync<TyrpIncomingBackgroundWorker>();
// context.AddBackgroundWorker<TyrpOutgoingBackgroundWorker>();
}
}

9
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.csproj

@ -15,8 +15,15 @@
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="6.0.12" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="5.3.5" />
<PackageReference Include="Serilog.AspNetCore" Version="6.1.0" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="6.3.0" />
<PackageReference Include="Volo.Abp.Autofac" Version="6.0.2" />
<PackageReference Include="Volo.Abp.BackgroundJobs" Version="5.3.5" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="5.3.5" />
<PackageReference Include="Volo.Abp.BackgroundWorkers" Version="5.3.5" />
<PackageReference Include="Volo.Abp.AutoMapper" Version="5.3.5" />
<PackageReference Include="Volo.Abp.Http.Client" Version="5.3.5" />

19
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/appsettings.json

@ -1,13 +1,13 @@
{
{
"ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13319;Database=DyWmsAuth;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;",
"TYRP": "Server=dev.ccwin-in.com,13319;Database=TYRP;Uid=ccwin-in;Pwd=Microsoft@2022;",
"SYBASE_TYRP": "Data Source=dev.ccwin-in.com; Port=15000; Database=TYRP; Uid=sa; Pwd=Microsoft2008;Charset=utf8;" //iso_1
"Default": "Server=dev.ccwin-in.com,21195;Database=Wms;uid=sa;pwd=aA123456!;TrustServerCertificate=True",
"DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;TrustServerCertificate=True",
"TYRP": "Server=dev.ccwin-in.com,21195;Database=TYRP;Uid=sa;Pwd=aA123456!;TrustServerCertificate=True",
"SYBASE_TYRP": "Data Source=10.164.1.11; Port=5000; Database=mesdb; Uid=mesuser; Pwd=mesuser1234;Charset=cp850;" //iso_1
},
"AuthServer": {
"Authority": "http://dev.ccwin-in.com:59093/",
"Authority": "http://dev.ccwin-in.com:21293/",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "admin",
"SwaggerClientSecret": "1q2w3E*",
@ -17,10 +17,11 @@
"Authentication": {
"client_id": "Auth_App",
"client_secret": "1q2w3e*",
"client_secret": "1q2w3E*",
"grant_type": "password",
"username": "jiekou1",
"password": "1q2w3E*"
"password": "1q2w3E*",
"company": "Faty"
},
"RemoteServices": {
@ -34,7 +35,7 @@
"BaseUrl": "http://dev.ccwin-in.com:59092/"
},
"Auth": {
"BaseUrl": "http://dev.ccwin-in.com:59093/"
"BaseUrl": "http://dev.ccwin-in.com:21293/"
}
},
"TyrpOptions": {

16
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/AgentModule.cs

@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Polly;
using Volo.Abp;
using Volo.Abp.Account;
using Volo.Abp.Autofac;
using Volo.Abp.AutoMapper;
using Volo.Abp.BackgroundJobs;
@ -38,7 +39,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Agent;
typeof(BasedataApplicationContractsModule),
typeof(StoreApplicationContractsModule),
typeof(LabelApplicationContractsModule),
typeof(AuthApplicationContractsModule)
typeof(AuthApplicationContractsModule),
typeof(AbpAccountApplicationContractsModule)
)]
public class AgentModule : AbpModule
{
@ -128,6 +130,10 @@ public class AgentModule : AbpModule
"BaseData"
);
context.Services.AddHttpClientProxies(
typeof(AbpAccountApplicationContractsModule).Assembly,
"Auth"
);
context.Services.AddHttpClientProxies(
typeof(StoreApplicationContractsModule).Assembly,
"Store"
);
@ -140,10 +146,10 @@ public class AgentModule : AbpModule
"Auth");
}
public override async Task OnApplicationInitializationAsync(
ApplicationInitializationContext context)
public override void OnApplicationInitialization(
ApplicationInitializationContext context)
{
await context.AddBackgroundWorkerAsync<IncomingToWmsWorker>().ConfigureAwait(false);
await context.AddBackgroundWorkerAsync<OutgoingFromWmsWorker>().ConfigureAwait(false);
context.AddBackgroundWorkerAsync<IncomingToWmsWorker>();
// context.AddBackgroundWorker<OutgoingFromWmsWorker>();
}
}

76
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsExtensions.cs

@ -1,3 +1,4 @@
using System.Collections.Generic;
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
@ -7,11 +8,12 @@ using Win_in.Sfs.Auth.Users;
using Win_in.Sfs.Auth.Users.Inputs;
using Win_in.Sfs.Basedata.Application.Contracts;
using Win_in.Sfs.Label.Application.Contracts;
using Win_in.Sfs.Shared.Domain.Shared;
using Win_in.Sfs.Wms.DataExchange.Domain;
using Win_in.Sfs.Wms.Inventory.Application.Contracts;
using Win_in.Sfs.Wms.Store.Application.Contracts;
namespace Win_in.Sfs.Wms.DataExchange.Agent;
public static class IncomingToWmsExtensions
{
public static async Task HandlePurchaseOrdersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
@ -31,7 +33,16 @@ public static class IncomingToWmsExtensions
{
var Dict = JsonSerializer.Deserialize<DictEditInput>(incomingConverted.DataContent);
var DictBasicAppService = workerContext.ServiceProvider.GetRequiredService<IDictAppService>();
await DictBasicAppService.UpdateAsync(Dict).ConfigureAwait(false);
try
{
await DictBasicAppService.UpdateAsync(Dict).ConfigureAwait(false);
}
catch (System.Exception ex)
{
throw;
}
}
public static async Task HandleUsersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
{
@ -46,11 +57,12 @@ public static class IncomingToWmsExtensions
await DepartmentBasicAppService.UpdateAsync(Department).ConfigureAwait(false);
}
public static async Task HandleItemsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
{
var item = JsonSerializer.Deserialize<ItemBasicEditInput>(incomingConverted.DataContent);
var itemBasicAppService = workerContext.ServiceProvider.GetRequiredService<IItemBasicAppService>();
await itemBasicAppService.UpsertAsync(item).ConfigureAwait(false);
await itemBasicAppService.UpsertAsyncByInterface(item).ConfigureAwait(false);
}
public static async Task HandleErpLocationsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
@ -64,14 +76,14 @@ public static class IncomingToWmsExtensions
{
var bom = JsonSerializer.Deserialize<BomEditInput>(incomingConverted.DataContent);
var bomAppService = workerContext.ServiceProvider.GetRequiredService<IBomAppService>();
await bomAppService.UpsertAsync(bom).ConfigureAwait(false);
await bomAppService.UpsertAsyncByInterface(bom).ConfigureAwait(false);
}
public static async Task HandleSuppliersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
{
var supplier = JsonSerializer.Deserialize<SupplierEditInput>(incomingConverted.DataContent);
var supplierAppService = workerContext.ServiceProvider.GetRequiredService<ISupplierAppService>();
await supplierAppService.UpsertAsync(supplier).ConfigureAwait(false);
await supplierAppService.UpsertAsyncByInterface(supplier).ConfigureAwait(false);
}
public static async Task HandleSupplierItemsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
@ -92,7 +104,7 @@ public static class IncomingToWmsExtensions
{
var customer = JsonSerializer.Deserialize<CustomerEditInput>(incomingConverted.DataContent);
var customerAppService = workerContext.ServiceProvider.GetRequiredService<ICustomerAppService>();
await customerAppService.UpsertAsync(customer).ConfigureAwait(false);
await customerAppService.UpsertAsyncByInterface(customer).ConfigureAwait(false);
}
public static async Task HandleCustomerItemsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
@ -101,7 +113,12 @@ public static class IncomingToWmsExtensions
var customerItemAppService = workerContext.ServiceProvider.GetRequiredService<ICustomerItemAppService>();
await customerItemAppService.UpsertAsync(customerItem).ConfigureAwait(false);
}
public static async Task HandleInterfaceCalendarsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
{
var interfaceCalendar = JsonSerializer.Deserialize<InterfaceCalendarEditInput>(incomingConverted.DataContent);
var interfaceCalendarAppService = workerContext.ServiceProvider.GetRequiredService<IInterfaceCalendarAppService>();
await interfaceCalendarAppService.UpsertAsync(interfaceCalendar).ConfigureAwait(false);
}
public static async Task HandleSaleOrdersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
{
var saleOrder = JsonSerializer.Deserialize<SaleOrderEditInput>(incomingConverted.DataContent);
@ -120,7 +137,7 @@ public static class IncomingToWmsExtensions
{
var materialRequest = JsonSerializer.Deserialize<MaterialRequestEditInput>(incomingConverted.DataContent);
var materialRequestAppService = workerContext.ServiceProvider.GetRequiredService<IMaterialRequestAppService>();
await materialRequestAppService.CreateAndHandleAsync(materialRequest).ConfigureAwait(false);
await materialRequestAppService.CreateAndHandleByAPIAsync(materialRequest).ConfigureAwait(false);
}
public static async Task HandleScrapsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
@ -137,10 +154,53 @@ public static class IncomingToWmsExtensions
await issueNoteAppService.ConfirmAsync(number).ConfigureAwait(false);
}
public static async Task HandleInventoryLabelsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
{
var inventoryLabel = JsonSerializer.Deserialize<InventoryLabelEditInput>(incomingConverted.DataContent);
var inventoryLabelAppService = workerContext.ServiceProvider.GetRequiredService<IInventoryLabelAppService>();
await inventoryLabelAppService.CreateAsync(inventoryLabel).ConfigureAwait(false);
}
public static async Task HandleBackFlushsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext)
{
var backFlush = JsonSerializer.Deserialize<BackFlushNoteEditInput>(incomingConverted.DataContent);
var balanceAppService = workerContext.ServiceProvider.GetRequiredService<IBalanceAppService>();
var balanceDtos = await balanceAppService.GetRecommendBalancesAsync(new RecommendBalanceRequestInput()
{
Qty = backFlush.Qty,
ItemCode = backFlush.ItemCode,
LocationAreas = new List<string>() { backFlush.LocationArea },
LocationTypes = new List<EnumLocationType>()
{
EnumLocationType.WIP,
},
Statuses = new List<EnumInventoryStatus>()
{
EnumInventoryStatus.OK,
}
}).ConfigureAwait(false);
foreach (var balanceDto in balanceDtos)
{
backFlush.Details.Add(new BackFlushNoteDetailInput()
{
Qty = balanceDto.Qty,
ItemCode = balanceDto.ItemCode,
ArriveDate = balanceDto.ArriveDate,
BomVersion = string.Empty,
ContainerCode = string.Empty,
ExpireDate = balanceDto.ExpireDate,
Lot = balanceDto.Lot,
LocationCode = balanceDto.LocationCode,
LocationErpCode = balanceDto.LocationErpCode,
LocationArea = balanceDto.LocationArea,
LocationGroup = balanceDto.LocationGroup
});
}
var backFlushAppService = workerContext.ServiceProvider.GetRequiredService<IBackFlushNoteAppService>();
// await backFlushAppService.CreateAsync(backFlush);
}
}

15
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs

@ -78,6 +78,12 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase
//TODO 完成全部接口
switch (dataType)
{
case EnumIncomingDataType.Department:
await incomingToWms.HandleDepartmentsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.User:
await incomingToWms.HandleUsersAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.Item:
await incomingToWms.HandleItemsAsync(workerContext).ConfigureAwait(false);
break;
@ -87,6 +93,9 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase
case EnumIncomingDataType.Bom:
await incomingToWms.HandleBomsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.Dict:
await incomingToWms.HandleDictsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.Supplier:
await incomingToWms.HandleSuppliersAsync(workerContext).ConfigureAwait(false);
break;
@ -102,6 +111,9 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase
case EnumIncomingDataType.CustomerItem:
await incomingToWms.HandleCustomerItemsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.InterfaceCalendar:
await incomingToWms.HandleInterfaceCalendarsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.PurchaseOrder:
await incomingToWms.HandlePurchaseOrdersAsync(workerContext).ConfigureAwait(false);
break;
@ -126,6 +138,9 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase
case EnumIncomingDataType.PurchaseLabel:
await incomingToWms.HandleInventoryLabelsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.BackFlush:
await incomingToWms.HandleBackFlushsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.None:
default:
throw new ArgumentOutOfRangeException();

5
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/Win_in.Sfs.Wms.DataExchange.Agent.csproj

@ -11,6 +11,11 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.12" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.*" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="6.0.12" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Volo.Abp.Autofac" Version="6.0.2" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="5.3.5" />
<PackageReference Include="Volo.Abp.BackgroundJobs" Version="5.3.5" />
<PackageReference Include="Volo.Abp.BackgroundWorkers" Version="5.3.5" />

18
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/appsettings.json

@ -1,13 +1,13 @@
{
{
"ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;"
"Default": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;TrustServerCertificate=True",
"DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;TrustServerCertificate=True"
},
"AuthServer": {
"Authority": "http://dev.ccwin-in.com:59093/",
"Authority": "http://dev.ccwin-in.com:21293/",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "admin",
"SwaggerClientSecret": "1q2w3E*",
@ -17,7 +17,7 @@
"Authentication": {
"client_id": "Auth_App",
"client_secret": "1q2w3e*",
"client_secret": "1q2w3E*",
"grant_type": "password",
"username": "jiekou1",
"password": "1q2w3E*"
@ -26,16 +26,16 @@
"RemoteServices": {
"BaseData": {
"BaseUrl": "http://localhost:59094/"
"BaseUrl": "http://dev.ccwin-in.com:21294/"
},
"Store": {
"BaseUrl": "http://localhost:59095/"
"BaseUrl": "http://dev.ccwin-in.com:21295/"
},
"Label": {
"BaseUrl": "http://localhost:59092/"
"BaseUrl": "http://dev.ccwin-in.com:21292/"
},
"Auth": {
"BaseUrl": "http://localhost:59093/"
"BaseUrl": "http://dev.ccwin-in.com:21293/"
}
},
"DataExchangeOptions": {

6
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.DbMigrator/appsettings.json

@ -1,7 +1,7 @@
{
"ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;"
"Default": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;",
"DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;"
},
"IdentityServer": {
"Clients": {
@ -22,4 +22,4 @@
}
}
}
}
}

3178
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.Designer.cs

File diff suppressed because it is too large

1216
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.cs

File diff suppressed because it is too large

3179
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.Designer.cs

File diff suppressed because it is too large

74
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.cs

@ -1,74 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class _202210250002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SystemType",
table: "DataExchange_ArchivedOutgoingFromWms");
migrationBuilder.RenameColumn(
name: "SystemType",
table: "IncomingToWms",
newName: "SourceSystem");
migrationBuilder.RenameColumn(
name: "SystemType",
table: "DataExchange_OutgoingFromWms",
newName: "DestinationSystem");
migrationBuilder.RenameColumn(
name: "SystemType",
table: "ArchivedIncomingToWms",
newName: "SourceSystem");
migrationBuilder.AddColumn<string>(
name: "SourceSystem",
table: "DataExchange_OutgoingFromWms",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "SourceSystem",
table: "DataExchange_ArchivedOutgoingFromWms",
type: "nvarchar(max)",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SourceSystem",
table: "DataExchange_OutgoingFromWms");
migrationBuilder.DropColumn(
name: "SourceSystem",
table: "DataExchange_ArchivedOutgoingFromWms");
migrationBuilder.RenameColumn(
name: "SourceSystem",
table: "IncomingToWms",
newName: "SystemType");
migrationBuilder.RenameColumn(
name: "DestinationSystem",
table: "DataExchange_OutgoingFromWms",
newName: "SystemType");
migrationBuilder.RenameColumn(
name: "SourceSystem",
table: "ArchivedIncomingToWms",
newName: "SystemType");
migrationBuilder.AddColumn<string>(
name: "SystemType",
table: "DataExchange_ArchivedOutgoingFromWms",
type: "nvarchar(64)",
maxLength: 64,
nullable: false,
defaultValue: "");
}
}

56
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.cs

@ -1,56 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class _202210280001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "TableType",
table: "OutgoingToExternal",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "TableType",
table: "DataExchange_IncomingFromExternal",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "TableType",
table: "DataExchange_ArchivedIncomingFromExternal",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "TableType",
table: "ArchivedOutgoingToExternal",
type: "int",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "TableType",
table: "OutgoingToExternal");
migrationBuilder.DropColumn(
name: "TableType",
table: "DataExchange_IncomingFromExternal");
migrationBuilder.DropColumn(
name: "TableType",
table: "DataExchange_ArchivedIncomingFromExternal");
migrationBuilder.DropColumn(
name: "TableType",
table: "ArchivedOutgoingToExternal");
}
}

286
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.Designer.cs → be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.Designer.cs

@ -8,20 +8,23 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
using Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore;
#nullable disable
namespace Win_in.Sfs.Wms.DataExchange.Migrations
{
[DbContext(typeof(DataExchangeDbContext))]
[Migration("20221028020303_202210280001")]
partial class _202210280001
[Migration("20230410014843_20230410init")]
partial class _20230410init
{
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.17")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasAnnotation("ProductVersion", "6.0.15")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{
@ -97,16 +100,28 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("uniqueidentifier")
.HasColumnName("ImpersonatorTenantId");
b.Property<string>("ImpersonatorTenantName")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("ImpersonatorTenantName");
b.Property<Guid?>("ImpersonatorUserId")
.HasColumnType("uniqueidentifier")
.HasColumnName("ImpersonatorUserId");
b.Property<string>("ImpersonatorUserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)")
.HasColumnName("ImpersonatorUserName");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property<string>("TenantName")
.HasColumnType("nvarchar(max)");
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("TenantName");
b.Property<string>("Url")
.HasMaxLength(256)
@ -128,7 +143,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "UserId", "ExecutionTime");
b.ToTable("AbpAuditLogs");
b.ToTable("AbpAuditLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
@ -178,7 +193,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
b.ToTable("AbpAuditLogActions");
b.ToTable("AbpAuditLogActions", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
@ -228,7 +243,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
b.ToTable("AbpEntityChanges");
b.ToTable("AbpEntityChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
@ -270,7 +285,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("EntityChangeId");
b.ToTable("AbpEntityPropertyChanges");
b.ToTable("AbpEntityPropertyChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
@ -328,7 +343,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("IsAbandoned", "NextTryTime");
b.ToTable("AbpBackgroundJobs");
b.ToTable("AbpBackgroundJobs", (string)null);
});
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
@ -357,9 +372,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique()
.HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL");
b.ToTable("AbpFeatureValues");
b.ToTable("AbpFeatureValues", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
@ -405,7 +422,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("AbpClaimTypes");
b.ToTable("AbpClaimTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
@ -431,7 +448,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.IsUnique()
.HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL");
b.ToTable("AbpLinkUsers");
b.ToTable("AbpLinkUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
@ -479,7 +496,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("NormalizedName");
b.ToTable("AbpRoles");
b.ToTable("AbpRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
@ -507,7 +524,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("RoleId");
b.ToTable("AbpRoleClaims");
b.ToTable("AbpRoleClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
@ -581,7 +598,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpSecurityLogs");
b.ToTable("AbpSecurityLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
@ -633,6 +650,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsActive")
.HasColumnType("bit");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
@ -732,7 +752,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserName");
b.ToTable("AbpUsers");
b.ToTable("AbpUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
@ -760,7 +780,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserId");
b.ToTable("AbpUserClaims");
b.ToTable("AbpUserClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
@ -789,7 +809,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("LoginProvider", "ProviderKey");
b.ToTable("AbpUserLogins");
b.ToTable("AbpUserLogins", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
@ -816,7 +836,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserId", "OrganizationUnitId");
b.ToTable("AbpUserOrganizationUnits");
b.ToTable("AbpUserOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
@ -835,7 +855,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("RoleId", "UserId");
b.ToTable("AbpUserRoles");
b.ToTable("AbpUserRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
@ -860,7 +880,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AbpUserTokens");
b.ToTable("AbpUserTokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
@ -933,7 +953,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("ParentId");
b.ToTable("AbpOrganizationUnits");
b.ToTable("AbpOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
@ -960,7 +980,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("RoleId", "OrganizationUnitId");
b.ToTable("AbpOrganizationUnitRoles");
b.ToTable("AbpOrganizationUnitRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
@ -1034,7 +1054,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
b.ToTable("IdentityServerApiResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
@ -1048,7 +1068,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Type");
b.ToTable("IdentityServerApiResourceClaims");
b.ToTable("IdentityServerApiResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b =>
@ -1066,7 +1086,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Key", "Value");
b.ToTable("IdentityServerApiResourceProperties");
b.ToTable("IdentityServerApiResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b =>
@ -1080,7 +1100,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Scope");
b.ToTable("IdentityServerApiResourceScopes");
b.ToTable("IdentityServerApiResourceScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b =>
@ -1105,7 +1125,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Type", "Value");
b.ToTable("IdentityServerApiResourceSecrets");
b.ToTable("IdentityServerApiResourceSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b =>
@ -1181,7 +1201,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerApiScopes");
b.ToTable("IdentityServerApiScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b =>
@ -1195,7 +1215,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiScopeId", "Type");
b.ToTable("IdentityServerApiScopeClaims");
b.ToTable("IdentityServerApiScopeClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b =>
@ -1213,7 +1233,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiScopeId", "Key", "Value");
b.ToTable("IdentityServerApiScopeProperties");
b.ToTable("IdentityServerApiScopeProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
@ -1397,7 +1417,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("ClientId");
b.ToTable("IdentityServerClients");
b.ToTable("IdentityServerClients", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
@ -1415,7 +1435,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientClaims");
b.ToTable("IdentityServerClientClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
@ -1429,7 +1449,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Origin");
b.ToTable("IdentityServerClientCorsOrigins");
b.ToTable("IdentityServerClientCorsOrigins", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
@ -1443,7 +1463,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "GrantType");
b.ToTable("IdentityServerClientGrantTypes");
b.ToTable("IdentityServerClientGrantTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
@ -1457,7 +1477,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Provider");
b.ToTable("IdentityServerClientIdPRestrictions");
b.ToTable("IdentityServerClientIdPRestrictions", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
@ -1471,7 +1491,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "PostLogoutRedirectUri");
b.ToTable("IdentityServerClientPostLogoutRedirectUris");
b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
@ -1489,7 +1509,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Key", "Value");
b.ToTable("IdentityServerClientProperties");
b.ToTable("IdentityServerClientProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
@ -1503,7 +1523,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "RedirectUri");
b.ToTable("IdentityServerClientRedirectUris");
b.ToTable("IdentityServerClientRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
@ -1517,7 +1537,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Scope");
b.ToTable("IdentityServerClientScopes");
b.ToTable("IdentityServerClientScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
@ -1542,7 +1562,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientSecrets");
b.ToTable("IdentityServerClientSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b =>
@ -1614,7 +1634,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserCode");
b.ToTable("IdentityServerDeviceFlowCodes");
b.ToTable("IdentityServerDeviceFlowCodes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
@ -1680,7 +1700,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("SubjectId", "SessionId", "Type");
b.ToTable("IdentityServerPersistedGrants");
b.ToTable("IdentityServerPersistedGrants", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b =>
@ -1756,7 +1776,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerIdentityResources");
b.ToTable("IdentityServerIdentityResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b =>
@ -1770,7 +1790,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("IdentityResourceId", "Type");
b.ToTable("IdentityServerIdentityResourceClaims");
b.ToTable("IdentityServerIdentityResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b =>
@ -1788,7 +1808,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("IdentityResourceId", "Key", "Value");
b.ToTable("IdentityServerIdentityResourceProperties");
b.ToTable("IdentityServerIdentityResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
@ -1818,9 +1838,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey")
.IsUnique()
.HasFilter("[TenantId] IS NOT NULL");
b.ToTable("AbpPermissionGrants");
b.ToTable("AbpPermissionGrants", (string)null);
});
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
@ -1849,9 +1871,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique()
.HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL");
b.ToTable("AbpSettings");
b.ToTable("AbpSettings", (string)null);
});
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
@ -1908,7 +1932,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("Name");
b.ToTable("AbpTenants");
b.ToTable("AbpTenants", (string)null);
});
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
@ -1927,7 +1951,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("TenantId", "Name");
b.ToTable("AbpTenantConnectionStrings");
b.ToTable("AbpTenantConnectionStrings", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingFromExternal", b =>
@ -1935,12 +1959,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -1978,12 +1996,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2008,8 +2028,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2037,8 +2057,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("TableType")
.HasColumnType("int");
@ -2056,7 +2078,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_ArchivedIncomingFromExternal");
b.ToTable("DataExchange_ArchivedIncomingFromExternal", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingToWms", b =>
@ -2064,9 +2086,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2149,12 +2168,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2188,12 +2201,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2214,8 +2229,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("datetime2");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2224,8 +2239,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<string>("SourceSystem")
.HasColumnType("nvarchar(max)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
@ -2236,7 +2253,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_ArchivedOutgoingFromWms");
b.ToTable("DataExchange_ArchivedOutgoingFromWms", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingToExternal", b =>
@ -2244,9 +2261,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2353,12 +2367,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2396,12 +2404,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2417,8 +2427,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");
@ -2428,8 +2439,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2457,8 +2468,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("TableType")
.HasColumnType("int");
@ -2476,7 +2489,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_IncomingFromExternal");
b.ToTable("DataExchange_IncomingFromExternal", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingToWms", b =>
@ -2484,9 +2497,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2536,8 +2546,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");
@ -2596,8 +2607,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<string>("MessageFileName")
.HasColumnType("nvarchar(max)");
b.Property<int>("ReceiveStatus")
.HasColumnType("int");
b.Property<string>("ReceiveStatus")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime>("ReceiveTime")
.HasColumnType("datetime2");
@ -2607,7 +2620,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_MessageReceive");
b.ToTable("DataExchange_MessageReceive", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingFromWms", b =>
@ -2615,12 +2628,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2659,12 +2666,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2680,15 +2689,16 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2697,8 +2707,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<string>("SourceSystem")
.HasColumnType("nvarchar(max)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
@ -2709,7 +2721,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_OutgoingFromWms");
b.ToTable("DataExchange_OutgoingFromWms", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingToExternal", b =>
@ -2717,9 +2729,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2772,8 +2781,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");

1713
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.cs

File diff suppressed because it is too large

282
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/DataExchangeDbContextModelSnapshot.cs

@ -7,6 +7,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
using Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore;
#nullable disable
namespace Win_in.Sfs.Wms.DataExchange.Migrations
{
[DbContext(typeof(DataExchangeDbContext))]
@ -17,9 +19,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("ProductVersion", "5.0.17")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasAnnotation("ProductVersion", "6.0.15")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{
@ -95,16 +98,28 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("uniqueidentifier")
.HasColumnName("ImpersonatorTenantId");
b.Property<string>("ImpersonatorTenantName")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("ImpersonatorTenantName");
b.Property<Guid?>("ImpersonatorUserId")
.HasColumnType("uniqueidentifier")
.HasColumnName("ImpersonatorUserId");
b.Property<string>("ImpersonatorUserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)")
.HasColumnName("ImpersonatorUserName");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property<string>("TenantName")
.HasColumnType("nvarchar(max)");
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("TenantName");
b.Property<string>("Url")
.HasMaxLength(256)
@ -126,7 +141,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "UserId", "ExecutionTime");
b.ToTable("AbpAuditLogs");
b.ToTable("AbpAuditLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
@ -176,7 +191,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
b.ToTable("AbpAuditLogActions");
b.ToTable("AbpAuditLogActions", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
@ -226,7 +241,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
b.ToTable("AbpEntityChanges");
b.ToTable("AbpEntityChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
@ -268,7 +283,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("EntityChangeId");
b.ToTable("AbpEntityPropertyChanges");
b.ToTable("AbpEntityPropertyChanges", (string)null);
});
modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
@ -326,7 +341,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("IsAbandoned", "NextTryTime");
b.ToTable("AbpBackgroundJobs");
b.ToTable("AbpBackgroundJobs", (string)null);
});
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
@ -355,9 +370,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique()
.HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL");
b.ToTable("AbpFeatureValues");
b.ToTable("AbpFeatureValues", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
@ -403,7 +420,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("AbpClaimTypes");
b.ToTable("AbpClaimTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
@ -429,7 +446,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.IsUnique()
.HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL");
b.ToTable("AbpLinkUsers");
b.ToTable("AbpLinkUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
@ -477,7 +494,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("NormalizedName");
b.ToTable("AbpRoles");
b.ToTable("AbpRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
@ -505,7 +522,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("RoleId");
b.ToTable("AbpRoleClaims");
b.ToTable("AbpRoleClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
@ -579,7 +596,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("TenantId", "UserId");
b.ToTable("AbpSecurityLogs");
b.ToTable("AbpSecurityLogs", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
@ -631,6 +648,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsActive")
.HasColumnType("bit");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
@ -730,7 +750,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserName");
b.ToTable("AbpUsers");
b.ToTable("AbpUsers", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
@ -758,7 +778,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserId");
b.ToTable("AbpUserClaims");
b.ToTable("AbpUserClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
@ -787,7 +807,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("LoginProvider", "ProviderKey");
b.ToTable("AbpUserLogins");
b.ToTable("AbpUserLogins", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
@ -814,7 +834,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserId", "OrganizationUnitId");
b.ToTable("AbpUserOrganizationUnits");
b.ToTable("AbpUserOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
@ -833,7 +853,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("RoleId", "UserId");
b.ToTable("AbpUserRoles");
b.ToTable("AbpUserRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
@ -858,7 +878,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AbpUserTokens");
b.ToTable("AbpUserTokens", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
@ -931,7 +951,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("ParentId");
b.ToTable("AbpOrganizationUnits");
b.ToTable("AbpOrganizationUnits", (string)null);
});
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
@ -958,7 +978,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("RoleId", "OrganizationUnitId");
b.ToTable("AbpOrganizationUnitRoles");
b.ToTable("AbpOrganizationUnitRoles", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b =>
@ -1032,7 +1052,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
b.ToTable("IdentityServerApiResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b =>
@ -1046,7 +1066,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Type");
b.ToTable("IdentityServerApiResourceClaims");
b.ToTable("IdentityServerApiResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b =>
@ -1064,7 +1084,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Key", "Value");
b.ToTable("IdentityServerApiResourceProperties");
b.ToTable("IdentityServerApiResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b =>
@ -1078,7 +1098,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Scope");
b.ToTable("IdentityServerApiResourceScopes");
b.ToTable("IdentityServerApiResourceScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b =>
@ -1103,7 +1123,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiResourceId", "Type", "Value");
b.ToTable("IdentityServerApiResourceSecrets");
b.ToTable("IdentityServerApiResourceSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b =>
@ -1179,7 +1199,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerApiScopes");
b.ToTable("IdentityServerApiScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b =>
@ -1193,7 +1213,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiScopeId", "Type");
b.ToTable("IdentityServerApiScopeClaims");
b.ToTable("IdentityServerApiScopeClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b =>
@ -1211,7 +1231,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ApiScopeId", "Key", "Value");
b.ToTable("IdentityServerApiScopeProperties");
b.ToTable("IdentityServerApiScopeProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b =>
@ -1395,7 +1415,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("ClientId");
b.ToTable("IdentityServerClients");
b.ToTable("IdentityServerClients", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b =>
@ -1413,7 +1433,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientClaims");
b.ToTable("IdentityServerClientClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b =>
@ -1427,7 +1447,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Origin");
b.ToTable("IdentityServerClientCorsOrigins");
b.ToTable("IdentityServerClientCorsOrigins", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b =>
@ -1441,7 +1461,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "GrantType");
b.ToTable("IdentityServerClientGrantTypes");
b.ToTable("IdentityServerClientGrantTypes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b =>
@ -1455,7 +1475,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Provider");
b.ToTable("IdentityServerClientIdPRestrictions");
b.ToTable("IdentityServerClientIdPRestrictions", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b =>
@ -1469,7 +1489,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "PostLogoutRedirectUri");
b.ToTable("IdentityServerClientPostLogoutRedirectUris");
b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b =>
@ -1487,7 +1507,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Key", "Value");
b.ToTable("IdentityServerClientProperties");
b.ToTable("IdentityServerClientProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b =>
@ -1501,7 +1521,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "RedirectUri");
b.ToTable("IdentityServerClientRedirectUris");
b.ToTable("IdentityServerClientRedirectUris", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b =>
@ -1515,7 +1535,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Scope");
b.ToTable("IdentityServerClientScopes");
b.ToTable("IdentityServerClientScopes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b =>
@ -1540,7 +1560,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("ClientId", "Type", "Value");
b.ToTable("IdentityServerClientSecrets");
b.ToTable("IdentityServerClientSecrets", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b =>
@ -1612,7 +1632,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("UserCode");
b.ToTable("IdentityServerDeviceFlowCodes");
b.ToTable("IdentityServerDeviceFlowCodes", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b =>
@ -1678,7 +1698,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("SubjectId", "SessionId", "Type");
b.ToTable("IdentityServerPersistedGrants");
b.ToTable("IdentityServerPersistedGrants", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b =>
@ -1754,7 +1774,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("IdentityServerIdentityResources");
b.ToTable("IdentityServerIdentityResources", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b =>
@ -1768,7 +1788,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("IdentityResourceId", "Type");
b.ToTable("IdentityServerIdentityResourceClaims");
b.ToTable("IdentityServerIdentityResourceClaims", (string)null);
});
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b =>
@ -1786,7 +1806,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("IdentityResourceId", "Key", "Value");
b.ToTable("IdentityServerIdentityResourceProperties");
b.ToTable("IdentityServerIdentityResourceProperties", (string)null);
});
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
@ -1816,9 +1836,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey")
.IsUnique()
.HasFilter("[TenantId] IS NOT NULL");
b.ToTable("AbpPermissionGrants");
b.ToTable("AbpPermissionGrants", (string)null);
});
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
@ -1847,9 +1869,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.HasIndex("Name", "ProviderName", "ProviderKey");
b.HasIndex("Name", "ProviderName", "ProviderKey")
.IsUnique()
.HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL");
b.ToTable("AbpSettings");
b.ToTable("AbpSettings", (string)null);
});
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
@ -1906,7 +1930,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasIndex("Name");
b.ToTable("AbpTenants");
b.ToTable("AbpTenants", (string)null);
});
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
@ -1925,7 +1949,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("TenantId", "Name");
b.ToTable("AbpTenantConnectionStrings");
b.ToTable("AbpTenantConnectionStrings", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingFromExternal", b =>
@ -1933,12 +1957,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -1976,12 +1994,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2006,8 +2026,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2035,8 +2055,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("TableType")
.HasColumnType("int");
@ -2054,7 +2076,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_ArchivedIncomingFromExternal");
b.ToTable("DataExchange_ArchivedIncomingFromExternal", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingToWms", b =>
@ -2062,9 +2084,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2147,12 +2166,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2186,12 +2199,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2212,8 +2227,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("datetime2");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2222,8 +2237,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<string>("SourceSystem")
.HasColumnType("nvarchar(max)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
@ -2234,7 +2251,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_ArchivedOutgoingFromWms");
b.ToTable("DataExchange_ArchivedOutgoingFromWms", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingToExternal", b =>
@ -2242,9 +2259,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2351,12 +2365,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2394,12 +2402,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2415,8 +2425,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");
@ -2426,8 +2437,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasColumnType("nvarchar(64)");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2455,8 +2466,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<int>("TableType")
.HasColumnType("int");
@ -2474,7 +2487,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_IncomingFromExternal");
b.ToTable("DataExchange_IncomingFromExternal", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingToWms", b =>
@ -2482,9 +2495,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2534,8 +2544,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");
@ -2594,8 +2605,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<string>("MessageFileName")
.HasColumnType("nvarchar(max)");
b.Property<int>("ReceiveStatus")
.HasColumnType("int");
b.Property<string>("ReceiveStatus")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<DateTime>("ReceiveTime")
.HasColumnType("datetime2");
@ -2605,7 +2618,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_MessageReceive");
b.ToTable("DataExchange_MessageReceive", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingFromWms", b =>
@ -2613,12 +2626,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2657,12 +2664,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<DateTime>("EffectiveDate")
.HasColumnType("datetime2(7)");
b.Property<int>("ErrorCode")
.HasColumnType("int");
b.Property<string>("ErrorCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<string>("ErrorMessage")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
@ -2678,15 +2687,16 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");
b.Property<string>("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasMaxLength(3072)
.HasColumnType("nvarchar(3072)")
.HasColumnName("Remark");
b.Property<int>("RetryTimes")
@ -2695,8 +2705,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<string>("SourceSystem")
.HasColumnType("nvarchar(max)");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
@ -2707,7 +2719,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.HasKey("Id");
b.ToTable("DataExchange_OutgoingFromWms");
b.ToTable("DataExchange_OutgoingFromWms", (string)null);
});
modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingToExternal", b =>
@ -2715,9 +2727,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier");
b.Property<string>("Company")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
@ -2770,8 +2779,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations
b.Property<long>("Number")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Number"), 1L, 1);
b.Property<DateTime?>("ReadTime")
.HasColumnType("datetime2");

1689
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.Designer.cs

File diff suppressed because it is too large

664
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.cs

@ -1,664 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class Init : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DataExchange_AsnMstr",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
AsnNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
RpNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PoNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
VendorCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Phone = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
TruckNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Whse = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Dock = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ShipDate = table.Column<DateTime>(type: "datetime2", nullable: false),
DueDate = table.Column<DateTime>(type: "datetime2", nullable: false),
TimeWindow = table.Column<string>(type: "nvarchar(max)", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_AsnMstr", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_Bom",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Parent = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Component = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PerQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Ref2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
Type = table.Column<string>(type: "nvarchar(max)", nullable: true),
Op = table.Column<int>(type: "int", nullable: false),
ScrapPct = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
SeqNumber = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
OptionGroup = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Process = table.Column<string>(type: "nvarchar(200)", maxLength: 200, 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_Bom", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_Cust",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Addr1 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Addr2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Addr3 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Country = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
City = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Phone = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Fax = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PstId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Curr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Active = table.Column<bool>(type: "bit", nullable: false),
Type = table.Column<int>(type: "int", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_Cust", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_CustPart",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
CustCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CustPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CustPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
CustPackUm = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_CustPart", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_IncomingData",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Number = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
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),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false),
Status = table.Column<int>(type: "int", nullable: false),
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
RetryTimes = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_IncomingData", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_IncomingDataHistory",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Number = table.Column<long>(type: "bigint", 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),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false),
Status = table.Column<int>(type: "int", nullable: false),
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
RetryTimes = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_IncomingDataHistory", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_Inventory",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Part = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Lot = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Um = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Loc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
SuppConsignQty = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
CustConsignQty = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Reference = table.Column<string>(type: "nvarchar(max)", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_Inventory", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_Loc",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Whse = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Desc = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true),
Type = table.Column<string>(type: "nvarchar(max)", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_Loc", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_OutgoingData",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Number = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
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),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false),
Status = table.Column<int>(type: "int", nullable: false),
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
RetryTimes = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_OutgoingData", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_OutgoingDataHistory",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Number = table.Column<long>(type: "bigint", 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),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false),
Status = table.Column<int>(type: "int", nullable: false),
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
RetryTimes = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_OutgoingDataHistory", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_Part",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Desc1 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Desc2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
CanMake = table.Column<bool>(type: "bit", nullable: false),
CanBuy = table.Column<bool>(type: "bit", nullable: false),
Um = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
AbcClass = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ProdKind = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PartType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PartCatalog = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PartGroup = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Color = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Config = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Project = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Version = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Eco = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
StdPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
ExtPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ExtPackQty = 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_Part", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_PoMstr",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PoNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
VendorCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ModType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Consignment = table.Column<bool>(type: "bit", nullable: false),
OrderDate = table.Column<DateTime>(type: "datetime2", nullable: false),
DueDate = table.Column<DateTime>(type: "datetime2", nullable: false),
TaxRate = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Buyer = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Contract = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Project = table.Column<string>(type: "nvarchar(200)", maxLength: 200, 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_PoMstr", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_ProdLine",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Code = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Desc = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true),
Part = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Rate = table.Column<int>(type: "int", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_ProdLine", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_SodDet",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
SoNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
SoLine = table.Column<int>(type: "int", nullable: false),
CustCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Um = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
StdPackQty = table.Column<string>(type: "nvarchar(max)", nullable: true),
Loc = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Project = table.Column<string>(type: "nvarchar(max)", nullable: true),
ShipTo = table.Column<string>(type: "nvarchar(200)", maxLength: 200, 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_SodDet", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_Vend",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Addr1 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Addr2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Addr3 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Country = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
City = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Phone = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Fax = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PstId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Bank = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Curr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
TaxRate = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Active = table.Column<bool>(type: "bit", nullable: false),
Type = table.Column<string>(type: "nvarchar(max)", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_Vend", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_VendPart",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
VendorCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
VendPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
VendPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
VendPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_VendPart", x => x.Id);
});
migrationBuilder.CreateTable(
name: "DataExchange_AsnDet",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
AsnNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PoNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PoLine = table.Column<int>(type: "int", nullable: false),
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Lot = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: true),
WareClass = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
WareCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
PoUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
LocUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
UmConv = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
PartType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Supplierlot = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
LabelCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
EntireBarCode = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
PalletLabelCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
AsnMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_AsnDet", x => x.Id);
table.ForeignKey(
name: "FK_DataExchange_AsnDet_DataExchange_AsnMstr_AsnMstrId",
column: x => x.AsnMstrId,
principalTable: "DataExchange_AsnMstr",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "DataExchange_PoDet",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PoNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PoLine = table.Column<int>(type: "int", nullable: false),
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Um = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
OrderQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
RcQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
StdPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
VendPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
VendPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
UmConv = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Consignment = table.Column<bool>(type: "bit", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true),
PoMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_PoDet", x => x.Id);
table.ForeignKey(
name: "FK_DataExchange_PoDet_DataExchange_PoMstr_PoMstrId",
column: x => x.PoMstrId,
principalTable: "DataExchange_PoMstr",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_DataExchange_AsnDet_AsnMstrId",
table: "DataExchange_AsnDet",
column: "AsnMstrId");
migrationBuilder.CreateIndex(
name: "IX_DataExchange_PoDet_PoMstrId",
table: "DataExchange_PoDet",
column: "PoMstrId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DataExchange_AsnDet");
migrationBuilder.DropTable(
name: "DataExchange_Bom");
migrationBuilder.DropTable(
name: "DataExchange_Cust");
migrationBuilder.DropTable(
name: "DataExchange_CustPart");
migrationBuilder.DropTable(
name: "DataExchange_IncomingData");
migrationBuilder.DropTable(
name: "DataExchange_IncomingDataHistory");
migrationBuilder.DropTable(
name: "DataExchange_Inventory");
migrationBuilder.DropTable(
name: "DataExchange_Loc");
migrationBuilder.DropTable(
name: "DataExchange_OutgoingData");
migrationBuilder.DropTable(
name: "DataExchange_OutgoingDataHistory");
migrationBuilder.DropTable(
name: "DataExchange_Part");
migrationBuilder.DropTable(
name: "DataExchange_PoDet");
migrationBuilder.DropTable(
name: "DataExchange_ProdLine");
migrationBuilder.DropTable(
name: "DataExchange_SodDet");
migrationBuilder.DropTable(
name: "DataExchange_Vend");
migrationBuilder.DropTable(
name: "DataExchange_VendPart");
migrationBuilder.DropTable(
name: "DataExchange_AsnMstr");
migrationBuilder.DropTable(
name: "DataExchange_PoMstr");
}
}

2080
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.Designer.cs

File diff suppressed because it is too large

76
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.cs

@ -1,76 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class L7Part20220704 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "InfoType",
table: "DataExchange_MesProductL7PartsNote");
migrationBuilder.RenameColumn(
name: "ProjectNo",
table: "DataExchange_MesProductL7PartsNote",
newName: "Program");
migrationBuilder.RenameColumn(
name: "L7PartCode",
table: "DataExchange_MesProductL7PartsNote",
newName: "L7Part");
migrationBuilder.AddColumn<DateTime>(
name: "CreateDate",
table: "DataExchange_MesProductL7PartsNote",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<int>(
name: "Qty",
table: "DataExchange_MesProductL7PartsNote",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "State",
table: "DataExchange_MesProductL7PartsNote",
type: "int",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreateDate",
table: "DataExchange_MesProductL7PartsNote");
migrationBuilder.DropColumn(
name: "Qty",
table: "DataExchange_MesProductL7PartsNote");
migrationBuilder.DropColumn(
name: "State",
table: "DataExchange_MesProductL7PartsNote");
migrationBuilder.RenameColumn(
name: "Program",
table: "DataExchange_MesProductL7PartsNote",
newName: "ProjectNo");
migrationBuilder.RenameColumn(
name: "L7Part",
table: "DataExchange_MesProductL7PartsNote",
newName: "L7PartCode");
migrationBuilder.AddColumn<string>(
name: "InfoType",
table: "DataExchange_MesProductL7PartsNote",
type: "nvarchar(max)",
nullable: true);
}
}

4400
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.Designer.cs

File diff suppressed because it is too large

22
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.cs

@ -1,22 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class MesProductL7PartsNote20220826 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Year",
table: "DataExchange_MesProductL7PartsNote",
type: "nvarchar(max)",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Year",
table: "DataExchange_MesProductL7PartsNote");
}
}

4353
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.Designer.cs

File diff suppressed because it is too large

330
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.cs

@ -1,330 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class MessageReceive20220817 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_VendPart",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_Vend",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_SodDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_PoMstr",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "RcQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "OrderQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_Part",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "ExtPackQty",
table: "DataExchange_Part",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AddColumn<bool>(
name: "IsPhantom",
table: "DataExchange_Part",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AlterColumn<decimal>(
name: "SuppConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,6)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_Inventory",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "CustConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,6)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "CustPackQty",
table: "DataExchange_CustPart",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "PerQty",
table: "DataExchange_Bom",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_AsnDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_AsnDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_AsnDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_VendPart",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_Vend",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_SodDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_PoMstr",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "RcQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "OrderQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_Part",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "ExtPackQty",
table: "DataExchange_Part",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "SuppConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_Inventory",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "CustConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "CustPackQty",
table: "DataExchange_CustPart",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "PerQty",
table: "DataExchange_Bom",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_AsnDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_AsnDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_AsnDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
}
}

4397
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.Designer.cs

File diff suppressed because it is too large

37
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.cs

@ -1,37 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class MessageReceive2022081702 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DataExchange_MessageReceive",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
MessageFileName = table.Column<string>(type: "nvarchar(max)", nullable: true),
MessageContent = table.Column<string>(type: "nvarchar(max)", nullable: true),
ReceiveStatus = table.Column<int>(type: "int", nullable: false),
ReceiveTime = table.Column<DateTime>(type: "datetime2", nullable: false),
LastUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
ErrorCount = table.Column<int>(type: "int", nullable: true),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true),
Type = table.Column<string>(type: "nvarchar(max)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_MessageReceive", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DataExchange_MessageReceive");
}
}

4353
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.Designer.cs

File diff suppressed because it is too large

333
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.cs

@ -1,333 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class Part20220815 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_VendPart",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_Vend",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_SodDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_PoMstr",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "RcQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "OrderQty",
table: "DataExchange_PoDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_Part",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "ExtPackQty",
table: "DataExchange_Part",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AddColumn<bool>(
name: "IsPhantom",
table: "DataExchange_Part",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AlterColumn<decimal>(
name: "SuppConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,6)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_Inventory",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "CustConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,6)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "CustPackQty",
table: "DataExchange_CustPart",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "PerQty",
table: "DataExchange_Bom",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_AsnDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_AsnDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_AsnDet",
type: "decimal(18,6)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsPhantom",
table: "DataExchange_Part");
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_VendPart",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_Vend",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_SodDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "TaxRate",
table: "DataExchange_PoMstr",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "VendPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "RcQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "OrderQty",
table: "DataExchange_PoDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_Part",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "ExtPackQty",
table: "DataExchange_Part",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "SuppConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_Inventory",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "CustConsignQty",
table: "DataExchange_Inventory",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "CustPackQty",
table: "DataExchange_CustPart",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "PerQty",
table: "DataExchange_Bom",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "UmConv",
table: "DataExchange_AsnDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "StdPackQty",
table: "DataExchange_AsnDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_AsnDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)");
}
}

4543
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.Designer.cs

File diff suppressed because it is too large

33
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.cs

@ -1,33 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class PrhHist_add_Loc_status_20209040932 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "LocationCode",
table: "DataExchange_PrhHist",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "Status",
table: "DataExchange_PrhHist",
type: "int",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LocationCode",
table: "DataExchange_PrhHist");
migrationBuilder.DropColumn(
name: "Status",
table: "DataExchange_PrhHist");
}
}

1968
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.Designer.cs

File diff suppressed because it is too large

156
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.cs

@ -1,156 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class ReceiptReturn : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Receipts",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(max)", nullable: true),
Site = table.Column<string>(type: "nvarchar(max)", nullable: true),
PoNbr = table.Column<string>(type: "nvarchar(max)", nullable: true),
RpNbr = table.Column<string>(type: "nvarchar(max)", nullable: true),
AsnNbr = table.Column<string>(type: "nvarchar(max)", nullable: true),
RcNbr = table.Column<string>(type: "nvarchar(max)", nullable: true),
RcTime = table.Column<DateTime>(type: "datetime2", nullable: false),
RcWorker = table.Column<string>(type: "nvarchar(max)", nullable: true),
Whse = table.Column<string>(type: "nvarchar(max)", nullable: true),
VendorCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Receipts", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Returns",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(max)", nullable: true),
Site = table.Column<string>(type: "nvarchar(max)", nullable: true),
PoNbr = table.Column<string>(type: "nvarchar(max)", nullable: true),
AsnNbr = table.Column<string>(type: "nvarchar(max)", nullable: true),
RtNbr = table.Column<string>(type: "nvarchar(max)", nullable: true),
RtTime = table.Column<DateTime>(type: "datetime2", nullable: false),
RtWorker = table.Column<string>(type: "nvarchar(max)", nullable: true),
Whse = table.Column<string>(type: "nvarchar(max)", nullable: true),
VendorCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Returns", x => x.Id);
});
migrationBuilder.CreateTable(
name: "ReceiptDet",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PoLine = table.Column<int>(type: "int", nullable: false),
PartCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
PackingCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
ContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
Lot = table.Column<string>(type: "nvarchar(max)", nullable: true),
VendorLot = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductionDate = table.Column<string>(type: "nvarchar(max)", nullable: true),
Loc = table.Column<string>(type: "nvarchar(max)", nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Um = table.Column<string>(type: "nvarchar(max)", nullable: true),
Status = table.Column<int>(type: "int", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
ReceiptMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ReceiptDet", x => x.Id);
table.ForeignKey(
name: "FK_ReceiptDet_Receipts_ReceiptMstrId",
column: x => x.ReceiptMstrId,
principalTable: "Receipts",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateTable(
name: "ReturnDet",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PoLine = table.Column<int>(type: "int", nullable: false),
PartCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
PackingCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
ContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
Lot = table.Column<string>(type: "nvarchar(max)", nullable: true),
VendorLot = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductionDate = table.Column<string>(type: "nvarchar(max)", nullable: true),
Loc = table.Column<string>(type: "nvarchar(max)", nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Um = table.Column<string>(type: "nvarchar(max)", nullable: true),
Status = table.Column<int>(type: "int", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
ReturnMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_ReturnDet", x => x.Id);
table.ForeignKey(
name: "FK_ReturnDet_Returns_ReturnMstrId",
column: x => x.ReturnMstrId,
principalTable: "Returns",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_ReceiptDet_ReceiptMstrId",
table: "ReceiptDet",
column: "ReceiptMstrId");
migrationBuilder.CreateIndex(
name: "IX_ReturnDet_ReturnMstrId",
table: "ReturnDet",
column: "ReturnMstrId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ReceiptDet");
migrationBuilder.DropTable(
name: "ReturnDet");
migrationBuilder.DropTable(
name: "Receipts");
migrationBuilder.DropTable(
name: "Returns");
}
}

2007
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.Designer.cs

File diff suppressed because it is too large

884
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.cs

@ -1,884 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class ReceiptReturn1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_ReceiptDet_Receipts_ReceiptMstrId",
table: "ReceiptDet");
migrationBuilder.DropForeignKey(
name: "FK_ReturnDet_Returns_ReturnMstrId",
table: "ReturnDet");
migrationBuilder.DropPrimaryKey(
name: "PK_Returns",
table: "Returns");
migrationBuilder.DropPrimaryKey(
name: "PK_ReturnDet",
table: "ReturnDet");
migrationBuilder.DropPrimaryKey(
name: "PK_Receipts",
table: "Receipts");
migrationBuilder.DropPrimaryKey(
name: "PK_ReceiptDet",
table: "ReceiptDet");
migrationBuilder.RenameTable(
name: "Returns",
newName: "DataExchange_ReturnMstr");
migrationBuilder.RenameTable(
name: "ReturnDet",
newName: "DataExchange_ReturnDet");
migrationBuilder.RenameTable(
name: "Receipts",
newName: "DataExchange_ReceiptMstr");
migrationBuilder.RenameTable(
name: "ReceiptDet",
newName: "DataExchange_ReceiptDet");
migrationBuilder.RenameIndex(
name: "IX_ReturnDet_ReturnMstrId",
table: "DataExchange_ReturnDet",
newName: "IX_DataExchange_ReturnDet_ReturnMstrId");
migrationBuilder.RenameIndex(
name: "IX_ReceiptDet_ReceiptMstrId",
table: "DataExchange_ReceiptDet",
newName: "IX_DataExchange_ReceiptDet_ReceiptMstrId");
migrationBuilder.AlterColumn<string>(
name: "Whse",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorCode",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RtWorker",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RtNbr",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PoNbr",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Company",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "AsnNbr",
table: "DataExchange_ReturnMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorLot",
table: "DataExchange_ReturnDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Um",
table: "DataExchange_ReturnDet",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_ReturnDet",
type: "decimal(18,6)",
precision: 18,
scale: 6,
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "DataExchange_ReturnDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PartCode",
table: "DataExchange_ReturnDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PackingCode",
table: "DataExchange_ReturnDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Lot",
table: "DataExchange_ReturnDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Loc",
table: "DataExchange_ReturnDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ContainerCode",
table: "DataExchange_ReturnDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Whse",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorCode",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RpNbr",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RcWorker",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RcNbr",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PoNbr",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Company",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "AsnNbr",
table: "DataExchange_ReceiptMstr",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorLot",
table: "DataExchange_ReceiptDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Um",
table: "DataExchange_ReceiptDet",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "DataExchange_ReceiptDet",
type: "decimal(18,6)",
precision: 18,
scale: 6,
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "DataExchange_ReceiptDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PartCode",
table: "DataExchange_ReceiptDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PackingCode",
table: "DataExchange_ReceiptDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Lot",
table: "DataExchange_ReceiptDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Loc",
table: "DataExchange_ReceiptDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ContainerCode",
table: "DataExchange_ReceiptDet",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AddPrimaryKey(
name: "PK_DataExchange_ReturnMstr",
table: "DataExchange_ReturnMstr",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_DataExchange_ReturnDet",
table: "DataExchange_ReturnDet",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_DataExchange_ReceiptMstr",
table: "DataExchange_ReceiptMstr",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_DataExchange_ReceiptDet",
table: "DataExchange_ReceiptDet",
column: "Id");
migrationBuilder.AddForeignKey(
name: "FK_DataExchange_ReceiptDet_DataExchange_ReceiptMstr_ReceiptMstrId",
table: "DataExchange_ReceiptDet",
column: "ReceiptMstrId",
principalTable: "DataExchange_ReceiptMstr",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_DataExchange_ReturnDet_DataExchange_ReturnMstr_ReturnMstrId",
table: "DataExchange_ReturnDet",
column: "ReturnMstrId",
principalTable: "DataExchange_ReturnMstr",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_DataExchange_ReceiptDet_DataExchange_ReceiptMstr_ReceiptMstrId",
table: "DataExchange_ReceiptDet");
migrationBuilder.DropForeignKey(
name: "FK_DataExchange_ReturnDet_DataExchange_ReturnMstr_ReturnMstrId",
table: "DataExchange_ReturnDet");
migrationBuilder.DropPrimaryKey(
name: "PK_DataExchange_ReturnMstr",
table: "DataExchange_ReturnMstr");
migrationBuilder.DropPrimaryKey(
name: "PK_DataExchange_ReturnDet",
table: "DataExchange_ReturnDet");
migrationBuilder.DropPrimaryKey(
name: "PK_DataExchange_ReceiptMstr",
table: "DataExchange_ReceiptMstr");
migrationBuilder.DropPrimaryKey(
name: "PK_DataExchange_ReceiptDet",
table: "DataExchange_ReceiptDet");
migrationBuilder.RenameTable(
name: "DataExchange_ReturnMstr",
newName: "Returns");
migrationBuilder.RenameTable(
name: "DataExchange_ReturnDet",
newName: "ReturnDet");
migrationBuilder.RenameTable(
name: "DataExchange_ReceiptMstr",
newName: "Receipts");
migrationBuilder.RenameTable(
name: "DataExchange_ReceiptDet",
newName: "ReceiptDet");
migrationBuilder.RenameIndex(
name: "IX_DataExchange_ReturnDet_ReturnMstrId",
table: "ReturnDet",
newName: "IX_ReturnDet_ReturnMstrId");
migrationBuilder.RenameIndex(
name: "IX_DataExchange_ReceiptDet_ReceiptMstrId",
table: "ReceiptDet",
newName: "IX_ReceiptDet_ReceiptMstrId");
migrationBuilder.AlterColumn<string>(
name: "Whse",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorCode",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RtWorker",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RtNbr",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PoNbr",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Company",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "AsnNbr",
table: "Returns",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorLot",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Um",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "ReturnDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldPrecision: 18,
oldScale: 6);
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PartCode",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PackingCode",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Lot",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Loc",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ContainerCode",
table: "ReturnDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Whse",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorCode",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RpNbr",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RcWorker",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RcNbr",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PoNbr",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Company",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "AsnNbr",
table: "Receipts",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VendorLot",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Um",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "Qty",
table: "ReceiptDet",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,6)",
oldPrecision: 18,
oldScale: 6);
migrationBuilder.AlterColumn<string>(
name: "ProductionDate",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PartCode",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PackingCode",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Lot",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Loc",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ContainerCode",
table: "ReceiptDet",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AddPrimaryKey(
name: "PK_Returns",
table: "Returns",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_ReturnDet",
table: "ReturnDet",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_Receipts",
table: "Receipts",
column: "Id");
migrationBuilder.AddPrimaryKey(
name: "PK_ReceiptDet",
table: "ReceiptDet",
column: "Id");
migrationBuilder.AddForeignKey(
name: "FK_ReceiptDet_Receipts_ReceiptMstrId",
table: "ReceiptDet",
column: "ReceiptMstrId",
principalTable: "Receipts",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
migrationBuilder.AddForeignKey(
name: "FK_ReturnDet_Returns_ReturnMstrId",
table: "ReturnDet",
column: "ReturnMstrId",
principalTable: "Returns",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}
}

1756
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.Designer.cs

File diff suppressed because it is too large

43
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.cs

@ -1,43 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class _0608 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "MesProductL7PartsNotes",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RowID = table.Column<int>(type: "int", nullable: false),
InfoType = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductNo = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProjectNo = table.Column<string>(type: "nvarchar(max)", nullable: true),
Position = table.Column<string>(type: "nvarchar(max)", nullable: true),
FATA = table.Column<string>(type: "nvarchar(max)", nullable: true),
Configuration = table.Column<string>(type: "nvarchar(max)", nullable: true),
L7PartCode = table.Column<string>(type: "nvarchar(max)", 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),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_MesProductL7PartsNotes", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "MesProductL7PartsNotes");
}
}

1689
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.Designer.cs

File diff suppressed because it is too large

16
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.cs

@ -1,16 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class _20220524 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}

4350
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.Designer.cs

File diff suppressed because it is too large

1361
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.cs

File diff suppressed because it is too large

1756
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.Designer.cs

File diff suppressed because it is too large

38
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.cs

@ -1,38 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class mesproductL7part : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
name: "PK_MesProductL7PartsNotes",
table: "MesProductL7PartsNotes");
migrationBuilder.RenameTable(
name: "MesProductL7PartsNotes",
newName: "DataExchange_MesProductL7PartsNote");
migrationBuilder.AddPrimaryKey(
name: "PK_DataExchange_MesProductL7PartsNote",
table: "DataExchange_MesProductL7PartsNote",
column: "Id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
name: "PK_DataExchange_MesProductL7PartsNote",
table: "DataExchange_MesProductL7PartsNote");
migrationBuilder.RenameTable(
name: "DataExchange_MesProductL7PartsNote",
newName: "MesProductL7PartsNotes");
migrationBuilder.AddPrimaryKey(
name: "PK_MesProductL7PartsNotes",
table: "MesProductL7PartsNotes",
column: "Id");
}
}

4537
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.Designer.cs

File diff suppressed because it is too large

66
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.cs

@ -1,66 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win_in.Sfs.Wms.DataExchange.Migrations;
public partial class prhhist20220905 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DataExchange_PrhHist",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ReceiveNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
PoNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
AsnNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
ReceiveDate = table.Column<DateTime>(type: "datetime2", nullable: false),
ReceiveType = table.Column<string>(type: "nvarchar(max)", nullable: true),
Vendor = table.Column<string>(type: "nvarchar(max)", nullable: true),
Buyer = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
ShipDate = table.Column<DateTime>(type: "datetime2", nullable: false),
ShipTo = table.Column<string>(type: "nvarchar(max)", nullable: true),
PoSite = table.Column<string>(type: "nvarchar(max)", nullable: true),
Line = table.Column<int>(type: "int", nullable: false),
Part = table.Column<string>(type: "nvarchar(max)", nullable: true),
Lot = table.Column<string>(type: "nvarchar(max)", nullable: true),
OrderQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
AsnQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
Qty = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
Um = table.Column<string>(type: "nvarchar(max)", nullable: true),
UmConv = table.Column<decimal>(type: "decimal(18,6)", nullable: false),
VendorLot = table.Column<string>(type: "nvarchar(max)", nullable: true),
Reason = table.Column<string>(type: "nvarchar(max)", nullable: true),
Request = table.Column<string>(type: "nvarchar(max)", nullable: true),
Rev = table.Column<string>(type: "nvarchar(max)", nullable: true),
Rma_type = table.Column<string>(type: "nvarchar(max)", nullable: true),
Type = table.Column<string>(type: "nvarchar(max)", nullable: true),
PackageNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
PalletNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: false),
Whse = table.Column<string>(type: "nvarchar(max)", nullable: true),
Dock = table.Column<string>(type: "nvarchar(max)", 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),
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true),
ErrorCode = table.Column<int>(type: "int", nullable: false),
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataExchange_PrhHist", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DataExchange_PrhHist");
}
}

4
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.MesAgent/appsettings.json

@ -1,6 +1,6 @@
{
{
"ConnectionStrings": {
"DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;",
"DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;",
"OutMesData": "Server=dev.ccwin-in.com,13319;Database=OutMesData_Test;uid=ccwin-in;pwd=Microsoft@2022;"
},

1
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Boms/IBomAppService.cs

@ -32,4 +32,5 @@ public interface IBomAppService
/// <returns></returns>
Task<List<Bom>> GetListOfComponentAsync(string component);
Task AddOrUpsertListAsync(List<BomEditInput> inputs);
Task UpsertAsyncByInterface(BomEditInput input);
}

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Customers/ICustomerAppService.cs

@ -1,3 +1,4 @@
using System.Threading.Tasks;
using Win_in.Sfs.Shared.Application.Contracts;
namespace Win_in.Sfs.Basedata.Application.Contracts;
@ -8,4 +9,5 @@ public interface ICustomerAppService
, ISfsUpsertAppService<CustomerEditInput>
{
Task UpsertAsyncByInterface(CustomerEditInput input);
}

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/InterfaceCalendars/IInterfaceCalendarAppService.cs

@ -8,4 +8,6 @@ public interface IInterfaceCalendarAppService : ISfsBaseDataAppServiceBase<Inter
Task<DateTime> GetActiveDateAsync(DateTime clockNow);
Task<InterfaceCalendarDTO> GetByTimeAsync(DateTime time);
Task UpsertAsync(InterfaceCalendarEditInput input);
}

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs

@ -22,4 +22,6 @@ public interface IItemBasicAppService
Task<EnumItemManageType> GetManageTypeAsync(string itemCode);
Task<Dictionary<string, EnumItemManageType>> GetManageTypesAsync(List<string> itemCodes);
Task UpsertAsyncByInterface(ItemBasicEditInput input);
}

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Suppliers/ISupplierAppService.cs

@ -1,3 +1,4 @@
using System.Threading.Tasks;
using Win_in.Sfs.Shared.Application.Contracts;
namespace Win_in.Sfs.Basedata.Application.Contracts;
@ -8,4 +9,5 @@ public interface ISupplierAppService
, ISfsUpsertAppService<SupplierEditInput>
{
Task UpsertAsyncByInterface(SupplierEditInput input);
}

13
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Boms/BomAppService.cs

@ -136,6 +136,19 @@ public class BomAppService :
return;
}
[HttpPost("upsert-interface")]
public virtual async Task UpsertAsyncByInterface(BomEditInput input)
{
var entity = ObjectMapper.Map<BomEditInput, Bom>(input);
entity.ComponentUom = input.ComponentUom;
entity.ComponentQty = input.ComponentQty;
await _repository.UpsertAsyncByInterface(entity);
return;
}
[HttpPost("add-upsert-lsit")]
public virtual async Task AddOrUpsertListAsync(List<BomEditInput> inputs)
{

12
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAppService.cs

@ -14,12 +14,14 @@ namespace Win_in.Sfs.Basedata.Application;
[Route($"{BasedataConsts.RootPath}interface-calendar")]
public class InterfaceCalendarAppService : SfsBaseDataAppServiceBase<InterfaceCalendar, InterfaceCalendarDTO, SfsBaseDataRequestInputBase, InterfaceCalendarEditInput, InterfaceCalendarImportInput>, IInterfaceCalendarAppService
{
private new readonly IInterfaceCalendarRepository _repository;
public InterfaceCalendarAppService(
IInterfaceCalendarRepository repository
, IDistributedCache<InterfaceCalendarDTO> cache
) : base(repository, cache)
{
_repository = repository;
base.CreatePolicyName = InterfaceCalendarPermissions.Create;
base.UpdatePolicyName = InterfaceCalendarPermissions.Update;
base.DeletePolicyName = InterfaceCalendarPermissions.Delete;
@ -57,4 +59,14 @@ public class InterfaceCalendarAppService : SfsBaseDataAppServiceBase<InterfaceCa
var dto = ObjectMapper.Map<InterfaceCalendar, InterfaceCalendarDTO>(calendar);
return dto;
}
[HttpPost("upsert")]
public virtual async Task UpsertAsync(InterfaceCalendarEditInput input)
{
var entity = ObjectMapper.Map<InterfaceCalendarEditInput, InterfaceCalendar>(input);
await _repository.UpsertAsync(entity).ConfigureAwait(false);
}
}

8
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Customers/CustomerAppService.cs

@ -36,4 +36,12 @@ public class CustomerAppService
var entity = ObjectMapper.Map<CustomerEditInput, Customer>(input);
await _repository.UpsertAsync(entity).ConfigureAwait(false);
}
[HttpPost("upsert-interface")]
public virtual async Task UpsertAsyncByInterface(CustomerEditInput input)
{
var entity = ObjectMapper.Map<CustomerEditInput, Customer>(input);
await _repository.UpsertAsyncByInterface(entity).ConfigureAwait(false);
}
}

6
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Dicts/DictAutoMapperProfile.cs

@ -39,7 +39,11 @@ public partial class BasedataApplicationAutoMapperProfile : Profile
CreateMap<DictItemInput, DictItem>()
.IgnoreAuditedObjectProperties()
;
;
CreateMap<DictEditInput, Dict>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.Id);
}
}

7
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs

@ -183,7 +183,12 @@ public class ItemBasicAppService
var entity = ObjectMapper.Map<ItemBasicEditInput, ItemBasic>(input);
await _repository.UpsertAsync(entity).ConfigureAwait(false);
}
[HttpPost("upsert-interface")]
public virtual async Task UpsertAsyncByInterface(ItemBasicEditInput input)
{
var entity = ObjectMapper.Map<ItemBasicEditInput, ItemBasic>(input);
await _repository.UpsertAsyncByInterface(entity).ConfigureAwait(false);
}
protected override Expression<Func<ItemBasic, bool>> BuildSearchExpression(string keyWord)
{
Expression<Func<ItemBasic, bool>> expression = p =>

7
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Suppliers/SupplierAppService.cs

@ -36,7 +36,12 @@ public class SupplierAppService :
var entity = ObjectMapper.Map<SupplierEditInput, Supplier>(input);
await _repository.UpsertAsync(entity).ConfigureAwait(false);
}
[HttpPost("upsert-interface")]
public virtual async Task UpsertAsyncByInterface(SupplierEditInput input)
{
var entity = ObjectMapper.Map<SupplierEditInput, Supplier>(input);
await _repository.UpsertAsyncByInterface(entity).ConfigureAwait(false);
}
/// <summary>
/// 【获取】集合 根据 【代码集合】
/// </summary>

1
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Boms/IBomRepository.cs

@ -6,4 +6,5 @@ namespace Win_in.Sfs.Basedata.Domain;
public interface IBomRepository : ISfsBaseDataRepositoryBase<Bom>, ISfsBulkRepositoryBase<Bom>
{
Task UpsertAsync(Bom entity);
Task UpsertAsyncByInterface(Bom entity);
}

1
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Customers/ICustomerRepository.cs

@ -6,4 +6,5 @@ namespace Win_in.Sfs.Basedata.Domain;
public interface ICustomerRepository : ISfsBaseDataRepositoryBase<Customer>, ISfsBulkRepositoryBase<Customer>
{
Task UpsertAsync(Customer entity);
Task UpsertAsyncByInterface(Customer entity);
}

4
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/InterfaceCalendars/IInterfaceCalendarRepository.cs

@ -1,6 +1,8 @@
using System.Threading.Tasks;
namespace Win_in.Sfs.Basedata.Domain;
public interface IInterfaceCalendarRepository : ISfsBaseDataRepositoryBase<InterfaceCalendar>
{
Task UpsertAsync(InterfaceCalendar entity);
}

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/ItemBasics/IItemBasicRepository.cs

@ -8,4 +8,6 @@ public interface IItemBasicRepository : ISfsBaseDataRepositoryBase<ItemBasic>, I
public Task UpsertAsync(ItemBasic entity);
public Task InsertAutoSaveAsync(ItemBasic entity);
public Task UpsertAsyncByInterface(ItemBasic entity);
}

1
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Suppliers/ISupplierRepository.cs

@ -6,4 +6,5 @@ namespace Win_in.Sfs.Basedata.Domain;
public interface ISupplierRepository : ISfsBaseDataRepositoryBase<Supplier>, ISfsBulkRepositoryBase<Supplier>
{
Task UpsertAsync(Supplier entity);
Task UpsertAsyncByInterface(Supplier entity);
}

31
be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Boms/BomEfCoreRepository.cs

@ -1,3 +1,4 @@
using System;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
@ -22,7 +23,7 @@ public class BomEfCoreRepository : SfsBaseDataEfCoreRepositoryBase<BasedataDbCon
}
else
{
exist.ComponentQty = entity.ComponentQty;
exist.ComponentUom = entity.ComponentUom;
exist.ComponentQty = entity.ComponentQty;
exist.BeginTime = entity.BeginTime;
exist.EndTime = entity.EndTime;
@ -54,4 +55,32 @@ public class BomEfCoreRepository : SfsBaseDataEfCoreRepositoryBase<BasedataDbCon
// };
// });
}
public virtual async Task UpsertAsyncByInterface(Bom entity)
{
var dbSet = await GetDbSetAsync().ConfigureAwait(false);
var exist = await dbSet.FirstOrDefaultAsync(p => p.Product == entity.Product && p.Component == entity.Component).ConfigureAwait(false);
if (exist == null)
{
var insRet = await InsertAsync(entity).ConfigureAwait(false);
}
else
{
exist.ComponentUom = entity.ComponentUom;
exist.ComponentQty = entity.ComponentQty;
exist.BeginTime = entity.BeginTime;
exist.EndTime = entity.EndTime;
exist.ERPOp = entity.ERPOp;
exist.Layer = entity.Layer;
exist.MFGOp = entity.MFGOp;
exist.DistributionType = entity.DistributionType;
exist.TruncType = entity.TruncType;
exist.PlannedSplitRule = entity.PlannedSplitRule;
exist.TenantId = entity.TenantId;
exist.Remark = entity.Remark;
exist.Layer = entity.Layer;
exist.LastModificationTime = DateTimeOffset.Now.DateTime;
}
}
}

18
be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Customers/CustomerEfCoreRepository.cs

@ -1,3 +1,4 @@
using System;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
@ -54,4 +55,21 @@ public class CustomerEfCoreRepository : SfsBaseDataEfCoreRepositoryBase<Basedata
// };
// });
}
public virtual async Task UpsertAsyncByInterface(Customer entity)
{
var dbSet = await GetDbSetAsync().ConfigureAwait(false);
var exist = await dbSet.FirstOrDefaultAsync(p => p.Code == entity.Code).ConfigureAwait(false);
if (exist == null)
{
var insRet = await InsertAsync(entity).ConfigureAwait(false);
}
else
{
exist.Name = entity.Name;
exist.ShortName = entity.ShortName;
exist.LastModificationTime = DateTime.Now;
}
}
}

18
be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/InterfaceCalenders/InterfaceCalendarEfCoreRepository.cs

@ -1,3 +1,5 @@
using Microsoft.EntityFrameworkCore;
using System.Threading.Tasks;
using Volo.Abp.EntityFrameworkCore;
using Win_in.Sfs.Basedata.Domain;
@ -8,4 +10,20 @@ public class InterfaceCalendarEfCoreRepository : SfsBaseDataEfCoreRepositoryBase
public InterfaceCalendarEfCoreRepository(IDbContextProvider<BasedataDbContext> dbContextProvider) : base(dbContextProvider)
{
}
public virtual async Task UpsertAsync(InterfaceCalendar entity)
{
var dbSet = await GetDbSetAsync().ConfigureAwait(false);
var exist = await dbSet.FirstOrDefaultAsync(p =>p.Code == entity.Code && p.Year == entity.Year && p.Month == entity.Month).ConfigureAwait(false); ;
if (exist == null)
{
var insRet = await InsertAsync(entity).ConfigureAwait(false); ;
}
else
{
exist.BeginTime = entity.BeginTime;
exist.EndTime = entity.EndTime;
exist.LastModificationTime = entity.LastModificationTime;
}
}
}

25
be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs

@ -12,7 +12,30 @@ public class ItemBasicEfCoreRepository : SfsBaseDataEfCoreRepositoryBase<Basedat
public ItemBasicEfCoreRepository(IDbContextProvider<BasedataDbContext> dbContextProvider) : base(dbContextProvider)
{
}
public virtual async Task UpsertAsyncByInterface(ItemBasic entity)
{
var dbSet = await GetDbSetAsync().ConfigureAwait(false);
var exist = await dbSet.FirstOrDefaultAsync(p => p.Code == entity.Code).ConfigureAwait(false);
if (exist == null)
{
var insRet = await InsertAsync(entity).ConfigureAwait(false);
}
else
{
exist.Name = entity.Name;
exist.Desc1 = entity.Desc1;
exist.Desc2 = entity.Desc2;
exist.Configuration = entity.Configuration;
entity.Type = entity.Type;
exist.BasicUom = entity.BasicUom;
exist.CanBuy = entity.CanBuy;
exist.CanMake = entity.CanMake;
exist.CanOutsourcing = entity.CanOutsourcing;
exist.IsRecycled = entity.IsRecycled;
exist.Status = entity.Status;
exist.LastModificationTime = DateTimeOffset.Now.DateTime;
}
}
public virtual async Task UpsertAsync(ItemBasic entity)
{
var dbSet = await GetDbSetAsync().ConfigureAwait(false);

23
be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Suppliers/SupplierEfCoreRepository.cs

@ -1,3 +1,4 @@
using System;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
@ -58,4 +59,26 @@ public class SupplierEfCoreRepository : SfsBaseDataEfCoreRepositoryBase<Basedata
// };
// });
}
public virtual async Task UpsertAsyncByInterface(Supplier entity)
{
var dbSet = await GetDbSetAsync().ConfigureAwait(false);
var exist = await dbSet.FirstOrDefaultAsync(p => p.Code == entity.Code).ConfigureAwait(false);
if (exist == null)
{
var insRet = await InsertAsync(entity).ConfigureAwait(false);
}
else
{
exist.ShortName = entity.ShortName;
exist.Name = entity.Name;
exist.IsActive = entity.IsActive;
exist.TaxRate = entity.TaxRate;
exist.Contacts = entity.Contacts;
exist.Phone = entity.Phone;
exist.Address = entity.Address;
exist.Fax = entity.Fax;
exist.LastModificationTime = DateTimeOffset.Now.DateTime;
}
}
}

3
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Requests/MaterialRequests/IMaterialRequestAppService.cs

@ -17,6 +17,8 @@ public interface IMaterialRequestAppService
/// <returns></returns>
Task<MaterialRequestDTO> CreateAndHandleByPreparationPlan(string productionPlanNumber);
Task<MaterialRequestDTO> CreateAndHandleByAPIAsync(MaterialRequestEditInput input);
/// <summary>
/// 根据类型获取叫料请求
/// </summary>
@ -29,4 +31,5 @@ public interface IMaterialRequestAppService
string type, bool includeDetails = false, CancellationToken cancellationToken = default);
Task<List<MaterialRequestDTO>> GetListByTypeAsync(string type);
}

1
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAppService.cs

@ -23,7 +23,6 @@ public class BackFlushNoteAppService :
{
_backFlushNoteManager = backFlushNoteManager;
}
[HttpPost("create-many")]
public virtual async Task<List<BackFlushNoteDTO>> CreateManyAsync(List<BackFlushNoteEditInput> inputs)
{

1
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/IssueNoteAppService.cs

@ -64,7 +64,6 @@ public class IssueNoteAppService :
var dto = ObjectMapper.Map<IssueNote, IssueNoteDTO>(result);
return dto;
}
/// <summary>
/// 根据叫料请求类型获取发料记录
/// </summary>

51
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/MaterialRequests/MaterialRequestAppService.cs

@ -84,6 +84,57 @@ public class MaterialRequestAppService : SfsStoreRequestAppServiceBase<MaterialR
return dto;
}
/// <summary>
/// 创建并且执行叫料请求
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
/// <exception cref="UserFriendlyException"></exception>
[HttpPost("create-and-handle-api")]
//[Authorize(MaterialRequestPermissions.Create)]
public virtual async Task<MaterialRequestDTO> CreateAndHandleByAPIAsync(MaterialRequestEditInput input)
{
foreach (var item in input.Details)
{
if (item.Qty <= 0)
{
throw new UserFriendlyException($"{item.ItemCode} 物料的需求量必须大于 0");
}
}
//检验备料计划是否存在要料请求
if (!string.IsNullOrWhiteSpace(input.PreparationPlanNumber))
{
var exist = await CheckExistByPreparationPlanAsync(input.PreparationPlanNumber).ConfigureAwait(false);
if (exist.Count > 0)
{
throw new UserFriendlyException($"{input.PreparationPlanNumber} 备料计划已存在要料申请");
}
}
foreach (var item in input.Details) //赋值生产线
{
var location = await LocationAclService.GetByCodeAsync(item.ToLocationCode).ConfigureAwait(false);
item.ProdLine = location.LocationGroupCode;
input.ProdLine = location.LocationGroupCode;
input.Worker = input.Worker;
}
input.AutoSubmit = true;
input.AutoAgree = true;
input.AutoHandle = true;
var entity = ObjectMapper.Map<MaterialRequestEditInput, MaterialRequest>(input);
var result = await _materialRequestManager.CreateBynNumberAsync(entity).ConfigureAwait(false);
var dto = ObjectMapper.Map<MaterialRequest, MaterialRequestDTO>(result);
return dto;
}
/// <summary>
/// 创建并且执行叫料请求
/// </summary>

1
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IIssueNoteManager.cs

@ -6,4 +6,5 @@ namespace Win_in.Sfs.Wms.Store.Domain;
public interface IIssueNoteManager : ISfsStoreManager<IssueNote, IssueNoteDetail>
{
Task<IssueNote> ConfirmAsync(Guid id);
}

1
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IssueNoteManager.cs

@ -25,7 +25,6 @@ public class IssueNoteManager : SfsStoreManagerBase<IssueNote, IssueNoteDetail>,
await PublishConfirmedAsync(entity).ConfigureAwait(false);
return await Repository.UpdateAsync(entity).ConfigureAwait(false);
}
private async Task PublishConfirmedAsync(IssueNote entity)
{
try

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/IMaterialRequestManager.cs

@ -11,4 +11,6 @@ public interface IMaterialRequestManager : ISfsStoreRequestManager<MaterialReque
Task UpdateDetailsAsync(MaterialRequest entity);
Task CompleteAsync(string number);
Task<MaterialRequest> CreateBynNumberAsync(MaterialRequest entity);
}

22
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/MaterialRequestManager.cs

@ -17,6 +17,28 @@ public class MaterialRequestManager
_repository = repository;
}
/// <summary>
/// 创建
/// </summary>
/// <param name="entity"></param>
/// <returns></returns>
public virtual async Task<MaterialRequest> CreateBynNumberAsync(MaterialRequest entity)
{
var number = string.IsNullOrEmpty(entity.Number) ? await GenerateNumberAsync(typeof(MaterialRequest).Name, entity.ActiveDate).ConfigureAwait(false) : entity.Number;
entity.SetIdAndNumberWithDetails(GuidGenerator, number);
await PublishCreatedAsync(entity).ConfigureAwait(false);
if (entity.AutoSubmit)
{
return await SubmitAsync(entity).ConfigureAwait(false);
}
else
{
return await Repository.InsertAsync(entity).ConfigureAwait(false);
}
}
#region 公有
/*

Loading…
Cancel
Save