diff --git a/code/.gitignore b/code/.gitignore
index 4e191f0f..390269f5 100644
--- a/code/.gitignore
+++ b/code/.gitignore
@@ -17,3 +17,5 @@ obj/
*.db-shm
*.db-wal
+influxdb/data/
+
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/.gitignore b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/.gitignore
index 816f02db..1d72fd7a 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/.gitignore
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/.gitignore
@@ -1,3 +1,4 @@
files/
btsecsummary/
-secsummary/
\ No newline at end of file
+secsummary/
+influxdb/data/**
\ No newline at end of file
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
index a7c27f10..17967d8a 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
@@ -22,7 +22,7 @@ export default {
v-model="model[prop]"
:placeholder="$t('select')"
:multiple="!!schema.multiple"
- clearable
+ :clearable="!!schema.clearable"
style="width:100%"
:title="JSON.stringify(options)"
>
@@ -56,7 +56,7 @@ export default {
-
-
+
+
+
+
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
index 3e61c4df..b0436d44 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/list/index.js
@@ -258,21 +258,17 @@ export default {
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -429,11 +425,9 @@ export default {
enumBusinessType: route.meta.enumBusinessType,
};
const exportModel = ref(defaultExportModel);
- const defaultImportModel = {
- factory: "",
- version: "",
- };
- const importModel = ref(defaultExportModel);
+ const defaultImportModel = config.import?.schema ? schemaToModel(config.import.schema) : {};
+ const importModel = ref(defaultImportModel);
+
const factories = ref([]);
const versions = ref([]);
const fileList = ref([]);
@@ -688,8 +682,15 @@ export default {
editFormloading.value = true;
const url = config.edit.importUrl;
const formData = new FormData();
- formData.append("version", importModel.value.version);
- formData.append("factory", importModel.value.factory);
+ // formData.append("version", importModel.value.version);
+ // // formData.append("factory", importModel.value.factory);
+ // Object.keys(importModel.value).forEach((q) => {if(importModel.value)
+ Object.keys(importModel.value).forEach((q) => {
+ if (importModel.value[q]) {
+ formData.append(q, importModel.value[q]);
+ }
+ });
+
for (let i = 0; i < fileList.value.length; i++) {
formData.append(`files`, fileList.value[i].raw);
}
@@ -828,6 +829,20 @@ export default {
}
return postData;
}
+ function buildImport() {
+ importModel.value.maxResultCount = pageModel.pageSize;
+ importModel.value.skipCount = (pageModel.pageIndex - 1) * pageModel.pageSize;
+ //
+ const postData = JSON.parse(JSON.stringify(importModel.value));
+ postData.filters = filterList.value.filter((o) => o.column && o.action && (o.value || o.value === false));
+ if (postData.items) {
+ delete postData["items"];
+ }
+ if (postData.import?.id) {
+ delete postData.import["id"];
+ }
+ return postData;
+ }
function isNotJit() {
return (
route.meta.enumBusinessType !== "ZhiGongJian" ||
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/influxd.exe b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/influxd.exe
new file mode 100644
index 00000000..c19c20a2
Binary files /dev/null and b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/influxd.exe differ
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/influxdb.conf b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/influxdb.conf
new file mode 100644
index 00000000..d8684f07
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/influxdb.conf
@@ -0,0 +1,6 @@
+[meta]
+ dir = "./data/meta"
+
+[data]
+ dir = "./data/data"
+ wal-dir = "./data/wal"
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/start.cmd b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/start.cmd
new file mode 100644
index 00000000..53bd52af
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/start.cmd
@@ -0,0 +1,11 @@
+@echo off
+
+tasklist|find /i "influxd.exe"
+
+if %errorlevel% == 0 (
+exit
+)
+
+%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit
+
+start /b ./influxd.exe -config ./influxdb.conf
\ No newline at end of file
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/stop.cmd b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/stop.cmd
new file mode 100644
index 00000000..d8259131
--- /dev/null
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/influxdb/stop.cmd
@@ -0,0 +1,3 @@
+@ECHO OFF
+
+taskkill /im influxd.exe /f /t
\ No newline at end of file
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js
index b8c925af..41586761 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/centralized-control.js
@@ -122,6 +122,7 @@ export default function () {
table: {
schema: schema,
},
+
edit: {
detailsUrl,
createUrl,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material-relationship.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material-relationship.js
index fd6156b1..38d54298 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material-relationship.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/material-relationship.js
@@ -82,6 +82,16 @@ export default function () {
table: {
schema: schema,
},
+ import: {
+ schema: {
+ properties: {
+ isBj: {
+ title: "是否为备件",
+ type: "boolean",
+ },
+ },
+ },
+ },
edit: {
importUrl,
exportUrl,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js
index 6c3b058a..73739a59 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list-app-service-bj.js
@@ -86,6 +86,7 @@ export default function () {
table: {
schema: schema,
},
+
edit: {
importUrl,
exportUrl,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js
index 27322cbf..499350b1 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js
@@ -98,6 +98,7 @@ export default function () {
table: {
schema: schema,
},
+
edit: {
importUrl,
exportUrl,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js
index e8fa348b..f501aca5 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/purchase_price_service.js
@@ -78,6 +78,7 @@ export default function () {
table: {
schema: schema,
},
+
edit: {
importUrl,
exportUrl,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js
index 77d35223..b68de9ca 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js
@@ -86,6 +86,7 @@ export default function () {
table: {
schema: schema,
},
+
edit: {
importUrl,
exportUrl,
diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js
index 794e4987..0bb02076 100644
--- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js
+++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/version.js
@@ -5,4 +5,5 @@ export default {
url: "settleaccount/centralized-control/get-all",
value: "version",
label: "version",
+ clearable: false,
};
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs
index 49e7c293..a0890649 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_NOT_SA_SERVICE.cs
@@ -14,6 +14,7 @@ using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
+using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ
@@ -30,53 +31,26 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
BBAC_NOT_SA_DETAIL_REQ_DTO,
BBAC_NOT_SA_DETAIL_EXP_DTO>
{
+
+
+ private readonly BBAC_NOT_SA_MNG _bbacNotMng;
+
public BBAC_NOT_SA_SERVICE(
+ BBAC_NOT_SA_MNG bbacNotMng,
IExcelImportAppService excelImportService,
INormalEfCoreRepository detailRepository) : base(excelImportService, detailRepository)
{
+ _bbacNotMng = bbacNotMng;
+
}
[HttpPost]
public override async Task GenerateSettlementOrder(BBAC_NOT_SA_DETAIL_REQ_DTO input)
{
+
var entitys = await _detailRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount);
+ await _bbacNotMng.GenerateSettlementOrder(entitys);
- var billNum=OrderNumberGenerator.GenerateOrderNumber("C");
- var bbac = new BBAC_CAN_SA(guid: GuidGenerator.Create(),
- version: input.Version,
- billNum: billNum,
- settleBillNum: string.Empty,
- state: SettleBillState.未结状态,
- invGroupNum: billNum,
- site:entitys.FirstOrDefault().Site
-
- );
-
- List ls = new List();
- foreach (var entity in entitys) {
-
- new BBAC_CAN_SA_DETAIL(guid:entity.Id
- , keyCode: entity.KeyCode
- , version: entity.Version
- , billNum: billNum
- , settleBillNum: entity.SettleBillNum
- , lU: entity.LU
- , pN: entity.PN
- , site: entity.Site
- , qty: entity.Qty
- , price: entity.Price
- , category: entity.BusinessType
- , isReturn: entity.IsReturn
- , settleDate: entity.SettleDate
- , groupNum: entity.GroupNum
- , invGroupNum: entity.InvGroupNum
- ,contactid:entity.ContractDocID
- );
- }
-
- await _detailRepository.DbContext.BulkInsertAsync(ls);
- await _detailRepository.DbContext.BulkDeleteAsync(entitys);
- await _detailRepository.DbContext.BulkInsertAsync(new List() { bbac});
return ApplicationConsts.SuccessStr;
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs
index 33001b34..cc5772b2 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_NOT_SA_SERVICE.cs
@@ -14,6 +14,7 @@ using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
+using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ
@@ -28,53 +29,22 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
HBPO_NOT_SA_DETAIL_DTO,
HBPO_NOT_SA_DETAIL_REQ_DTO,
HBPO_NOT_SA_DETAIL_EXP_DTO>
+
{
- public HBPO_NOT_SA_SERVICE(IExcelImportAppService excelImportService, INormalEfCoreRepository detailRepository) : base(excelImportService, detailRepository)
+ private readonly HBPO_NOT_SA_MNG _hbpoNotMng;
+ public HBPO_NOT_SA_SERVICE(IExcelImportAppService excelImportService,
+ INormalEfCoreRepository detailRepository,
+ HBPO_NOT_SA_MNG hbpoNotMng
+ ) : base(excelImportService, detailRepository)
{
+ _hbpoNotMng= hbpoNotMng;
}
public override async Task GenerateSettlementOrder(HBPO_NOT_SA_DETAIL_REQ_DTO input)
{
var entitys = await _detailRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount);
-
- var billNum = OrderNumberGenerator.GenerateOrderNumber("C");
- var hbpo= new HBPO_CAN_SA(guid: GuidGenerator.Create(),
- version: input.Version,
- billNum: billNum,
- settleBillNum: string.Empty,
- state: SettleBillState.未结状态,
- invGroupNum: billNum,
- site:entitys.FirstOrDefault().Site
-
- );
-
- List ls = new List();
- foreach (var entity in entitys)
- {
-
- new HBPO_CAN_SA_DETAIL(guid: entity.Id
- , keyCode: entity.KeyCode
- , version: entity.Version
- , billNum: billNum
- , settleBillNum: entity.SettleBillNum
- , lU: entity.LU
- , pN: entity.PN
- , site: entity.Site
- , qty: entity.Qty
- , price: entity.Price
-
- , settleDate: entity.SettleDate
- , groupNum: entity.GroupNum
- , invGroupNum: entity.InvGroupNum
- ,businessType: entity.BusinessType
-
- );
- }
- await _detailRepository.DbContext.BulkInsertAsync(ls);
- await _detailRepository.DbContext.BulkDeleteAsync(entitys);
- await _detailRepository.DbContext.BulkInsertAsync(new List() { hbpo});
+ await _hbpoNotMng.GenerateSettlementOrder(entitys);
return ApplicationConsts.SuccessStr;
-
-
+
}
}
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_NOT_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_NOT_SA_SERVICE.cs
index 5b486b6f..b0abc85f 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_NOT_SA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_NOT_SA_SERVICE.cs
@@ -1,4 +1,4 @@
-using EFCore.BulkExtensions;
+using EFCore.BulkExtensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -14,6 +14,7 @@ using Win.Sfs.BaseData.ImportExcelCommon;
using Win.Sfs.SettleAccount.Bases;
using Win.Sfs.SettleAccount.Constant;
using Win.Sfs.SettleAccount.Entities.BQ.Dtos;
+using Win.Sfs.SettleAccount.Entities.BQ.Managers;
using Win.Sfs.Shared.RepositoryBase;
namespace Win.Sfs.SettleAccount.Entities.BQ
@@ -26,49 +27,20 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
PUB_NOT_SA_DETAIL_REQ_DTO,
PUB_NOT_SA_DETAIL_EXP_DTO>
{
- public PUB_NOT_SA_SERVICE(IExcelImportAppService excelImportService, INormalEfCoreRepository detailRepository) : base(excelImportService, detailRepository)
+ private readonly PUB_NOT_SA_MNG _pubNotMng;
+ public PUB_NOT_SA_SERVICE(
+ IExcelImportAppService excelImportService,
+ INormalEfCoreRepository detailRepository,
+ PUB_NOT_SA_MNG pubNotMng
+ ) : base(excelImportService, detailRepository)
{
+ _pubNotMng = pubNotMng;
}
public override async Task GenerateSettlementOrder(PUB_NOT_SA_DETAIL_REQ_DTO input)
{
var entitys = await _detailRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount);
- var billNum = OrderNumberGenerator.GenerateOrderNumber("C");
- var hbpo = new PUB_CAN_SA(guid: GuidGenerator.Create(),
- version: input.Version,
- billNum: billNum,
- settleBillNum: string.Empty,
- state: SettleBillState.未结状态,
- invGroupNum: billNum,
- businessType:entitys.FirstOrDefault().BusinessType
- );
-
- List ls = new List();
- foreach (var entity in entitys)
- {
-
- new PUB_CAN_SA_DETAIL(
- guid: entity.Id
- , keyCode: entity.KeyCode
- , version: entity.Version
- , billNum: billNum
- , settleBillNum: entity.SettleBillNum
- , lU: entity.LU
- , pN: entity.PN
- , site: entity.Site
- , qty: entity.Qty
- , price: entity.Price
- ,businessType:entity.BusinessType
-
- , settleDate: entity.SettleDate
- , groupNum: entity.GroupNum
- , invGroupNum: entity.InvGroupNum
-
- );
- }
- await _detailRepository.DbContext.BulkInsertAsync(ls);
- await _detailRepository.DbContext.BulkDeleteAsync(entitys);
- await _detailRepository.DbContext.BulkInsertAsync(new List() { hbpo });
+ _pubNotMng.GenerateSettlementOrder(entitys);
return ApplicationConsts.SuccessStr;
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_ADJ_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_ADJ_DETAIL.cs
new file mode 100644
index 00000000..645bfb46
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_ADJ_DETAIL.cs
@@ -0,0 +1,125 @@
+using SettleAccount.Bases;
+using System;
+using System.ComponentModel.DataAnnotations;
+using Win.Sfs.SettleAccount;
+
+namespace SettleAccount.Domain.BQ;
+
+
+[Display(Name = "BBAC不可结算导入明细")]
+public class BBAC_ADJ_DETAIL:SA_NOT_BASE
+{
+ /////
+ ///// 对应字段(Material+ExternalCalNumber)
+ /////
+ //[Display(Name = "LU+生产码")]
+ //public string KeyCode { get; set; } = null!;
+
+ /////
+ ///// 期间
+ /////
+ //[Display(Name = "期间")]
+ //public int Version { get; set; }
+
+ /////
+ ///// 结算单号
+ /////
+ //[Display(Name = "结算单号")]
+ //public string SettleBillNum { get; set; } = null!;
+
+ /////
+ ///// 对应字段Material
+ /////
+ //[Display(Name = "零件号")]
+ //public string LU { get; set; } = null!;
+
+ /////
+ ///// 对应字段ExternalCalNumber
+ /////
+ //[Display(Name = "生产码")]
+ //public string PN { get; set; } = null!;
+
+ ///
+ /// 选择工厂导入
+ ///
+ [Display(Name = "工厂地点")]
+ public string Site { get; set; } = null!;
+
+ ///
+ /// 对应字段Quantity
+ ///
+ //[Display(Name = "结算数量")]
+ //public decimal Qty { get; set; }
+
+ /////
+ ///// 匹配价格表对应区间对应地点带出
+ /////
+ //[Display(Name = "单价")]
+ //public decimal Price { get; set; }
+
+ ///
+ /// ExternalCallNumber包含(R0)为买单件 1为JIS 2.为买单件
+ ///
+ [Display(Name = "业务类别")]
+ public EnumBusinessType BusinessType { get; set; }
+
+ ///
+ /// 对应字段MovementType,996正常,997为退货
+ ///
+ [Display(Name = "是否退货")]
+ public string IsReturn { get; set; } = null!;
+
+ //[Display(Name = "发票分组号")]
+ //public string InvGroupNum { get; set; } = null!;
+
+ /////
+ ///// 对应字段PostingDate
+ /////
+ //[Display(Name = "结算日期(收货日期)")]
+ //public DateTime SettleDate { get; set; }
+
+ ///
+ /// 对应字段Reference
+ ///
+ //[Display(Name = "结算分组")]
+ //public string GroupNum { get; set; } = null!;
+
+ [Display(Name = "合同号")]
+ public string ContractDocID { get; set; }
+ [Display(Name = "作废发票号")]
+ public string OldInvBillNum { get; set; }
+
+ [Display(Name = "发票号")]
+ public string InvBillNum { get; set; }
+
+ public BBAC_ADJ_DETAIL()
+ {
+
+ }
+
+ public BBAC_ADJ_DETAIL(Guid guid, string keyCode, int version, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, EnumBusinessType category, string isReturn, string invGroupNum, DateTime settleDate, string groupNum,string contractDocID, string oldinv, string inv)
+ {
+ Id = guid;
+ KeyCode = keyCode;
+ Version = version;
+ SettleBillNum = settleBillNum;
+ LU = lU;
+ PN = pN;
+ Site = site;
+ Qty = qty;
+ Price = price;
+ BusinessType = category;
+ IsReturn = isReturn;
+ InvGroupNum = invGroupNum;
+ SettleDate = settleDate;
+ GroupNum = groupNum;
+ ContractDocID = contractDocID;
+
+
+ OldInvBillNum = oldinv;
+
+
+ InvBillNum =inv;
+
+ }
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs
index f026484b..00c8aa21 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_CAN_SA.cs
@@ -28,14 +28,14 @@ public class BBAC_CAN_SA : SA_CAN_BASE_MAIN
/////
//[Display(Name = "发票分组号")]
//public string InvGroupNum { get; set; } = null!;
+ public EnumBusinessType BusinessType { get; set; }
public BBAC_CAN_SA()
{
}
-
- public BBAC_CAN_SA(Guid guid, int version, string billNum, string settleBillNum, SettleBillState state, string invGroupNum,string site):base(guid)
+ public BBAC_CAN_SA(Guid guid, int version, string billNum, string settleBillNum, SettleBillState state, string invGroupNum,string site, EnumBusinessType businessType) :base(guid)
{
Version = version;
@@ -44,6 +44,7 @@ public class BBAC_CAN_SA : SA_CAN_BASE_MAIN
State = state;
InvGroupNum = invGroupNum;
Site = site;
+ BusinessType = businessType;
}
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_ADJ_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_ADJ_DETAIL.cs
new file mode 100644
index 00000000..a56c0168
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_ADJ_DETAIL.cs
@@ -0,0 +1,133 @@
+using SettleAccount.Bases;
+using System;
+using System.ComponentModel.DataAnnotations;
+using Win.Sfs.SettleAccount;
+
+namespace SettleAccount.Domain.BQ;
+//
+//[Display(Name = "HBPO不可结算导入")]
+//public class HBPO_NOT_SA: BaseEntity
+//{
+// [Display(Name = "期间")]
+// public int Version { get; set; }
+
+// [Display(Name = "结算单据")]
+// [OneToMany]
+// public string BillNum { get; set; } = null!;
+
+// [Display(Name = "出库单号")]
+// public string DNBillNum { get; set; } = null!;
+
+// ///
+// /// 1、新建 2、已有出库3、已有扣减寄售库
+// ///
+// [Display(Name = "状态")]
+// public string State { get; set; } = null!;
+
+// ///
+// /// 明细记录行数
+// ///
+// [Display(Name = "明细记录行数")]
+// public string RecordCount { get; set; } = null!;
+//}
+[Display(Name = "HBPO不可结算导入明细")]
+public class HBPO_ADJ_DETAIL : SA_NOT_BASE
+{
+ /////
+ ///// 对应字段(PartNumber+ProductioNumber)
+ /////
+ //[Display(Name = "LU+生产码")]
+ //public string KeyCode { get; set; } = null!;
+
+ /////
+ ///// 期间
+ /////
+ //[Display(Name = "期间")]
+ //public int Version { get; set; }
+
+ //[Display(Name = "结算单号")]
+ //public string SettleBillNum { get; set; } = null!;
+
+ /////
+ ///// 对应字段PartNumber
+ /////
+ //[Display(Name = "零件号")]
+ //public string LU { get; set; } = null!;
+
+ /////
+ ///// 对应字段productionlumber
+ /////
+ //[Display(Name = "生产码")]
+ //public string PN { get; set; } = null!;
+
+ ///
+ /// 对应字段filename 区分 cn1、cn5
+ ///
+ [Display(Name = "工厂地点")]
+ public string Site { get; set; } = null!;
+
+ ///
+ /// 对应字段Qty
+ ///
+ //[Display(Name = "结算数量")]
+ //public decimal Qty { get; set; }
+
+ ///
+ /// 匹配价格表对应区间带出
+ ///
+ //[Display(Name = "单价")]
+ //public decimal Price { get; set; }
+
+ ///
+ /// 对应字段ReceiveDate
+ ///
+ //[Display(Name = "结算日期(收货日期)")]
+ //public DateTime SettleDate { get; set; }
+
+ /////
+ ///// 对应字段DeliveryNode
+ /////
+ //[Display(Name = "结算分组")]
+ //public string GroupNum { get; set; } = null!;
+
+ //[Display(Name = "发票分组号")]
+ //public string InvGroupNum { get; set; } = null!;
+
+ ///
+ /// 业务类型
+ ///
+ public EnumBusinessType BusinessType { get; set; }
+
+
+ [Display(Name = "作废发票号")]
+ public string OldInvBillNum { get; set; }
+
+ [Display(Name = "发票号")]
+ public string InvBillNum { get; set; }
+
+
+
+
+ public HBPO_ADJ_DETAIL(Guid guid ,string keyCode, int version, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, DateTime settleDate, string groupNum, string invGroupNum, EnumBusinessType businessType, string oldinv, string inv)
+ {
+ Id = guid;
+ KeyCode = keyCode;
+ Version = version;
+ SettleBillNum = settleBillNum;
+ LU = lU;
+ PN = pN;
+ Site = site;
+ Qty = qty;
+ Price = price;
+ SettleDate = settleDate;
+ GroupNum = groupNum;
+ InvGroupNum = invGroupNum;
+ BusinessType = businessType;
+ OldInvBillNum = oldinv;
+ InvBillNum = inv;
+ }
+
+ public HBPO_ADJ_DETAIL()
+ {
+ }
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/BBAC_NOT_SA_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/BBAC_NOT_SA_MNG.cs
new file mode 100644
index 00000000..1b099345
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/BBAC_NOT_SA_MNG.cs
@@ -0,0 +1,78 @@
+using SettleAccount.Bases;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp.Domain.Services;
+using Volo.Abp;
+using Win.Sfs.Shared.RepositoryBase;
+using Win.Sfs.SettleAccount.Bases;
+using EFCore.BulkExtensions;
+using SettleAccount.Domain.BQ;
+
+namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
+{
+ ///
+ /// 不能結算管理
+ ///
+ ///
+ ///
+ ///
+ public class BBAC_NOT_SA_MNG : DomainService
+
+ {
+ private readonly INormalEfCoreRepository _repository;
+ private readonly INormalEfCoreRepository _detailRepository;
+ private readonly INormalEfCoreRepository _notRepository;
+
+ public BBAC_NOT_SA_MNG()
+ {
+ }
+ public BBAC_NOT_SA_MNG
+ (
+ INormalEfCoreRepository repository,
+ INormalEfCoreRepository detailRepository,
+ INormalEfCoreRepository notRepository
+ )
+ {
+ _repository = repository;
+ _detailRepository = detailRepository;
+ _notRepository = notRepository;
+ }
+ public virtual async Task GenerateSettlementOrder(List p_list)
+ {
+ var billNumber = OrderNumberGenerator.GenerateOrderNumber("N");
+ var _entity = new BBAC_CAN_SA();
+ _entity.BillNum = billNumber;
+ _entity.InvGroupNum = billNumber;
+ _entity.Version = DateTime.Now.Year + DateTime.Now.Month;
+ _entity.State = SettleBillState.未结状态;
+ _entity.SettleBillNum = string.Empty;
+ _entity.BusinessType = EnumBusinessType.BBAC;
+ var _entityList = new List();
+ foreach (var itm in p_list)
+ {
+ var _detailEntity = new BBAC_CAN_SA_DETAIL();
+ {
+ _detailEntity.SettleBillNum = itm.SettleBillNum;
+ _detailEntity.BillNum = billNumber;
+ _detailEntity.InvGroupNum = billNumber;
+ _detailEntity.LU = itm.LU;
+ _detailEntity.PN = itm.PN;
+ _detailEntity.GroupNum = itm.GroupNum;
+ _detailEntity.KeyCode = itm.KeyCode;
+ _detailEntity.Price = itm.Price;
+ _detailEntity.Version = itm.Version;
+ };
+ _entityList.Add(_detailEntity);
+ }
+ await _repository.DbContext.BulkDeleteAsync(p_list);
+ await _repository.DbContext.BulkInsertAsync(new List() { _entity });
+ await _repository.DbContext.BulkInsertAsync(_entityList);
+ return true;
+ }
+
+
+ }
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/HBPO_NOT_SA_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/HBPO_NOT_SA_MNG.cs
new file mode 100644
index 00000000..c035f2ca
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/HBPO_NOT_SA_MNG.cs
@@ -0,0 +1,87 @@
+using SettleAccount.Bases;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp.Domain.Services;
+using Volo.Abp;
+using Win.Sfs.Shared.RepositoryBase;
+using Win.Sfs.SettleAccount.Bases;
+using EFCore.BulkExtensions;
+using SettleAccount.Domain.BQ;
+
+namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
+{
+ ///
+ /// 不能結算管理
+ ///
+ ///
+ ///
+ ///
+ public class HBPO_NOT_SA_MNG : DomainService
+ //where TEntity : SA_CAN_BASE_MAIN, new()
+ //where TEntityDetail : SA_CAN_BASE, new()
+ //where TNOTDetail : SA_NOT_BASE
+ {
+ private readonly INormalEfCoreRepository _repository;
+ private readonly INormalEfCoreRepository _detailRepository;
+ private readonly INormalEfCoreRepository _notRepository;
+
+ public HBPO_NOT_SA_MNG()
+ {
+ }
+
+ public HBPO_NOT_SA_MNG
+ (
+ INormalEfCoreRepository repository,
+ INormalEfCoreRepository detailRepository,
+ INormalEfCoreRepository notRepository
+ )
+ {
+ _repository = repository;
+ _detailRepository = detailRepository;
+ _notRepository = notRepository;
+ }
+ public virtual async Task GenerateSettlementOrder(List p_list)
+ {
+
+
+ var billNumber = OrderNumberGenerator.GenerateOrderNumber("N");
+ var _entity = new HBPO_CAN_SA();
+ _entity.BillNum = billNumber;
+ _entity.InvGroupNum = billNumber;
+ _entity.Version = DateTime.Now.Year + DateTime.Now.Month;
+ _entity.State = SettleBillState.未结状态;
+ _entity.SettleBillNum = string.Empty;
+ _entity.BusinessType = p_list.FirstOrDefault().BusinessType;
+ var _entityList = new List();
+ foreach (var itm in p_list)
+ {
+ var _detailEntity = new HBPO_CAN_SA_DETAIL(
+ GuidGenerator.Create(),
+ settleBillNum: itm.SettleBillNum,
+ billNum: billNumber,
+ invGroupNum: billNumber,
+ lU: itm.LU,
+ pN: itm.PN,
+ groupNum: itm.GroupNum,
+ keyCode: itm.KeyCode,
+ price: itm.Price,
+ version: itm.Version,
+ businessType: itm.BusinessType,
+ qty: itm.Qty,
+ settleDate: itm.SettleDate,
+ site: itm.Site
+ );
+ _entityList.Add(_detailEntity);
+ }
+ await _notRepository.DbContext.BulkDeleteAsync(p_list);
+ await _repository.DbContext.BulkInsertAsync(new List() { _entity });
+ await _repository.DbContext.BulkInsertAsync(_entityList);
+ return true;
+ }
+
+
+ }
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PUB_NOT_SA_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PUB_NOT_SA_MNG.cs
new file mode 100644
index 00000000..cf7677b1
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PUB_NOT_SA_MNG.cs
@@ -0,0 +1,80 @@
+using SettleAccount.Bases;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp.Domain.Services;
+using Volo.Abp;
+using Win.Sfs.Shared.RepositoryBase;
+using Win.Sfs.SettleAccount.Bases;
+using EFCore.BulkExtensions;
+using SettleAccount.Domain.BQ;
+
+namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
+{
+ ///
+ /// 不能結算管理
+ ///
+ ///
+ ///
+ ///
+ public class PUB_NOT_SA_MNG : DomainService
+ //where TEntity : SA_CAN_BASE_MAIN, new()
+ //where TEntityDetail : SA_CAN_BASE, new()
+ //where TNOTDetail : SA_NOT_BASE
+ {
+ private readonly INormalEfCoreRepository _repository;
+ private readonly INormalEfCoreRepository _detailRepository;
+ private readonly INormalEfCoreRepository _notRepository;
+
+ public PUB_NOT_SA_MNG()
+ {
+ }
+
+ public PUB_NOT_SA_MNG
+ (
+ INormalEfCoreRepository repository,
+ INormalEfCoreRepository detailRepository,
+ INormalEfCoreRepository notRepository
+ )
+ {
+ _repository = repository;
+ _detailRepository = detailRepository;
+ _notRepository = notRepository;
+ }
+ public virtual async Task GenerateSettlementOrder(List p_list)
+ {
+ var billNumber = OrderNumberGenerator.GenerateOrderNumber("N");
+ var _entity = new PUB_CAN_SA();
+ _entity.BillNum = billNumber;
+ _entity.InvGroupNum = billNumber;
+ _entity.Version = DateTime.Now.Year + DateTime.Now.Month;
+ _entity.State = SettleBillState.未结状态;
+ _entity.SettleBillNum = string.Empty;
+ var _entityList = new List();
+ foreach (var itm in p_list)
+ {
+ var _detailEntity = new PUB_CAN_SA_DETAIL();
+ {
+ _detailEntity.SettleBillNum = itm.SettleBillNum;
+ _detailEntity.BillNum = billNumber;
+ _detailEntity.InvGroupNum = billNumber;
+ _detailEntity.LU = itm.LU;
+ _detailEntity.PN = itm.PN;
+ _detailEntity.GroupNum = itm.GroupNum;
+ _detailEntity.KeyCode = itm.KeyCode;
+ _detailEntity.Price = itm.Price;
+ _detailEntity.Version = itm.Version;
+ };
+ _entityList.Add(_detailEntity);
+ }
+ await _notRepository.DbContext.BulkDeleteAsync(p_list);
+ await _repository.DbContext.BulkInsertAsync(new List() { _entity });
+ await _repository.DbContext.BulkInsertAsync(_entityList);
+ return true;
+ }
+
+
+ }
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_ADJ_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_ADJ_DETAIL.cs
new file mode 100644
index 00000000..5c69b5e2
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_ADJ_DETAIL.cs
@@ -0,0 +1,98 @@
+using SettleAccount.Bases;
+using System;
+using System.ComponentModel.DataAnnotations;
+using Win.Sfs.SettleAccount;
+
+namespace SettleAccount.Domain.BQ;
+
+[Display(Name = "PUB不可结算导入明细")]
+public class PUB_ADJ_DETAIL : SA_NOT_BASE
+{
+ //[Display(Name = "LU+生产码")]
+ //public string KeyCode { get; set; } = null!;
+
+ /////
+ ///// 期间
+ /////
+ //[Display(Name = "期间")]
+ //public int Version { get; set; }
+
+ /////
+ ///// 结算单号
+ /////
+ //[Display(Name = "结算单号")]
+ //public string SettleBillNum { get; set; } = null!;
+
+ ///
+ /// 对应字段Material
+ ///
+ //[Display(Name = "零件号")]
+ //public string LU { get; set; } = null!;
+
+ /////
+ ///// 对应字段ExternalCalNumber
+ /////
+ //[Display(Name = "生产码")]
+ //public string PN { get; set; } = null!;
+
+ ///
+ /// 选择工厂导入
+ ///
+ [Display(Name = "工厂地点")]
+ public string Site { get; set; } = null!;
+
+ ///
+ /// 对应字段Quantity
+ ///
+ //[Display(Name = "结算数量")]
+ //public decimal Qty { get; set; }
+
+ [Display(Name = "扩展1")]
+ public string Extend1 { get; set; } = null!;
+
+
+ //[Display(Name = "单价")]
+ //public decimal Price { get; set; }
+ //[Display(Name = "发票分组号")]
+ //public string InvGroupNum { get; set; } = null!;
+ ///
+ /// 对应字段PostingDate
+ ///
+ //[Display(Name = "结算日期(收货日期)")]
+ //public DateTime SettleDate { get; set; }
+ [Display(Name = "业务分类")]
+ public EnumBusinessType BusinessType { get; set; }
+ //[Display(Name = "结算分组")]
+ //public string GroupNum { get; set; } = null!;
+ [Display(Name = "作废发票号")]
+ public string OldInvBillNum { get; set; }
+
+ [Display(Name = "发票号")]
+ public string InvBillNum { get; set; }
+
+
+ public PUB_ADJ_DETAIL(string keyCode, int version, string settleBillNum, string lU, string pN,
+ string site, decimal qty, string extend1, decimal price, string invGroupNum, DateTime settleDate,
+ EnumBusinessType businessType, string groupNum,string oldinv,string inv)
+ {
+ KeyCode = keyCode;
+ Version = version;
+ SettleBillNum = settleBillNum;
+ LU = lU;
+ PN = pN;
+ Site = site;
+ Qty = qty;
+ Extend1 = extend1;
+ Price = price;
+ InvGroupNum = invGroupNum;
+ SettleDate = settleDate;
+ BusinessType = businessType;
+ GroupNum = groupNum;
+ OldInvBillNum= oldinv;
+ InvBillNum = inv;
+ }
+
+ public PUB_ADJ_DETAIL()
+ {
+ }
+}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
index 7582fdb3..b140ff4b 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
@@ -100,6 +100,11 @@ namespace Win.Sfs.SettleAccount
builder.ConfigurePUB_SEC_DETAIL(options);
builder.ConfigureHBPO_SEC_DETAIL(options);
builder.ConfigureBBAC_SEC_DETAIL(options);
+
+
+ builder.ConfigurePUB_ADJ_DETAIL(options);
+ builder.ConfigureBBAC_ADJ_DETAIL(options);
+ builder.ConfigureHBPO_ADJ_DETAIL(options);
//大众发票导入
//builder.ConfigureInvoice(options);
//builder.ConfigureInvoiceVersion(options);
@@ -1151,6 +1156,75 @@ namespace Win.Sfs.SettleAccount
});
}
+ private static void ConfigurePUB_ADJ_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
+ {
+
+ builder.Entity(b =>
+ {
+
+ b.ToTable($"{options.TablePrefix}_PUB_ADJ_DETAIL", options.Schema);
+
+ b.ConfigureByConvention();
+ b.Property(x => x.Site).HasMaxLength(50);
+ b.Property(x => x.Extend1).HasMaxLength(50);
+ b.Property(x => x.OldInvBillNum).HasMaxLength(50);
+ b.Property(x => x.InvBillNum).HasMaxLength(50);
+ b.Property(x => x.SettleBillNum).HasMaxLength(50);
+ b.Property(x => x.InvGroupNum).HasMaxLength(50);
+ b.Property(x => x.LU).HasMaxLength(50);
+ b.Property(x => x.PN).HasMaxLength(50);
+ b.Property(x => x.KeyCode).HasMaxLength(50);
+ b.Property(x => x.GroupNum).HasMaxLength(50);
+ b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
+ });
+ }
+
+ private static void ConfigureHBPO_ADJ_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
+ {
+
+ builder.Entity(b =>
+ {
+
+ b.ToTable($"{options.TablePrefix}_HBPO_ADJ_DETAIL", options.Schema);
+
+ b.ConfigureByConvention();
+ b.Property(x => x.Site).HasMaxLength(50);
+ b.Property(x => x.OldInvBillNum).HasMaxLength(50);
+ b.Property(x => x.InvBillNum).HasMaxLength(50);
+ b.Property(x => x.SettleBillNum).HasMaxLength(50);
+ b.Property(x => x.InvGroupNum).HasMaxLength(50);
+ b.Property(x => x.LU).HasMaxLength(50);
+ b.Property(x => x.PN).HasMaxLength(50);
+ b.Property(x => x.KeyCode).HasMaxLength(50);
+ b.Property(x => x.GroupNum).HasMaxLength(50);
+ b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
+ });
+ }
+ private static void ConfigureBBAC_ADJ_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
+ {
+
+ builder.Entity(b =>
+ {
+
+ b.ToTable($"{options.TablePrefix}_BBAC_ADJ_DETAIL", options.Schema);
+
+ b.ConfigureByConvention();
+ b.Property(x => x.Site).HasMaxLength(50);
+ b.Property(x => x.IsReturn).HasMaxLength(50);
+ b.Property(x => x.ContractDocID).HasMaxLength(50);
+ b.Property(x => x.OldInvBillNum).HasMaxLength(50);
+ b.Property(x => x.InvBillNum).HasMaxLength(50);
+ b.Property(x => x.SettleBillNum).HasMaxLength(50);
+ b.Property(x => x.InvGroupNum).HasMaxLength(50);
+ b.Property(x => x.LU).HasMaxLength(50);
+ b.Property(x => x.PN).HasMaxLength(50);
+ b.Property(x => x.KeyCode).HasMaxLength(50);
+ b.Property(x => x.GroupNum).HasMaxLength(50);
+ b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
+ });
+ }
+
+
private static void ConfigureVmi(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
{
builder.Entity(b =>
@@ -1200,6 +1274,15 @@ namespace Win.Sfs.SettleAccount
b.ConfigureByConvention();
});
+
+
+
+
+
+
+
+
+
//seed
builder.Entity().HasData(new JobItem("vmi".ToGuid()) { Name = "库存快照", Cron = "0 0 8 26 *", Service = "Win.Sfs.SettleAccount.Entities.BQ.VmiService" });
builder.Entity().HasData(new VmiCategory("发运".ToGuid()) { Type = VmiType.In, Name = "发运", Number = "100" });
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs
new file mode 100644
index 00000000..cdae582c
--- /dev/null
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs
@@ -0,0 +1,4993 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Volo.Abp.EntityFrameworkCore;
+using Win.Sfs.SettleAccount;
+
+namespace Win.Sfs.SettleAccount.Migrations
+{
+ [DbContext(typeof(SettleAccountDbContext))]
+ [Migration("20230726021913_202307260001")]
+ partial class _202307260001
+ {
+ 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);
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("BusinessType")
+ .HasColumnType("int");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ContractDocID")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("GroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("InvBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("InvGroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsReturn")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("KeyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("OldInvBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("PN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("Qty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("SettleBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("SettleDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Site")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_ADJ_DETAIL");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("BillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("BusinessType")
+ .HasColumnType("int");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("InvGroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("SettleBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Site")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("State")
+ .HasMaxLength(50)
+ .HasColumnType("int");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_CAN_SA");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA_DETAIL", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("BillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("BusinessType")
+ .HasColumnType("int");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ContractDocID")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("GroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("InvGroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsReturn")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("KeyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("Qty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("SettleBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("SettleDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Site")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_CAN_SA_DETAIL");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_NOT_SA_DETAIL", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("BusinessType")
+ .HasColumnType("int");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("ContractDocID")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("GroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("InvGroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsReturn")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("KeyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("Qty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("SettleBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("SettleDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Site")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_NOT_SA_DETAIL");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_PD_DETAIL", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("BillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Extend1")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Extend2")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Extend3")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Extend4")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("GroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("InvGroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("KeyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("Qty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("RELU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("REPN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("SettleDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Site")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_PD_DETAIL");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("BillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DNBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("Site")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("State")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_SA");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SA_DETAIL", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("BillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Category")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("GroupNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsReturn")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("KeyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Price")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("Qty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("SettleDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Site")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_SA_DETAIL");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_DETAIL", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AssemblyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("BeginDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("InjectionCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("KeyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Qty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("SeqNumber")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("ShippingDate")
+ .HasColumnType("datetime2");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.Property("WmsBillNum")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_SE_DETAIL");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_EDI", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AssemblyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("BeginDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("Extend1")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Extend2")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Extend3")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Extend4")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("InjectionCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property("KeyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LU")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("LastModificationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("LastModificationTime");
+
+ b.Property("LastModifierId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("LastModifierId");
+
+ b.Property("PN")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Qty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("SeqNumber")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("Site")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("Set_BBAC_SE_EDI");
+ });
+
+ modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_SE_REPORT", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AssemblyCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("BeginDate")
+ .HasColumnType("datetime2");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)")
+ .HasColumnName("ConcurrencyStamp");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("CreatorId");
+
+ b.Property("DeleterId")
+ .HasColumnType("uniqueidentifier")
+ .HasColumnName("DeleterId");
+
+ b.Property("DeletionTime")
+ .HasColumnType("datetime2")
+ .HasColumnName("DeletionTime");
+
+ b.Property("EDIQty")
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("ExtraProperties")
+ .HasColumnType("nvarchar(max)")
+ .HasColumnName("ExtraProperties");
+
+ b.Property("InjectionCode")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar(50)");
+
+ b.Property("IsDeleted")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false)
+ .HasColumnName("IsDeleted");
+
+ b.Property