diff --git a/Gatedge.K3.Pilot.PlugIn/.vs/Gatedge.K3.Pilot.PlugIn.csproj.dtbcache.json b/Gatedge.K3.Pilot.PlugIn/.vs/Gatedge.K3.Pilot.PlugIn.csproj.dtbcache.json
index 88a1310..00962a2 100644
--- a/Gatedge.K3.Pilot.PlugIn/.vs/Gatedge.K3.Pilot.PlugIn.csproj.dtbcache.json
+++ b/Gatedge.K3.Pilot.PlugIn/.vs/Gatedge.K3.Pilot.PlugIn.csproj.dtbcache.json
@@ -1 +1 @@
-{"RootPath":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn","ProjectFileName":"Gatedge.K3.Pilot.PlugIn.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"BOSPlugIn\\BD_CustPrice\\Bill.cs"},{"SourceFile":"BOSPlugIn\\BD_CustPrice\\ServicePlugIn\\Save.cs"},{"SourceFile":"BOSPlugIn\\BD_CustPrice\\ServicePlugIn\\SaveValidator.cs"},{"SourceFile":"BOSPlugIn\\CUST_PAYMENT_PERIOD\\List.cs"},{"SourceFile":"BOSPlugIn\\Sal_Order\\Bill.cs"},{"SourceFile":"Models\\Validate\\PeriodValidity.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Services\\DBService\\BaseDAL.cs"},{"SourceFile":"Services\\DBService\\BDCustPriceDAL.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.App.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.App.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.DataEntity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.VerificationHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Web.HTML.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Web.HTML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.WebApi.FormService.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.BD.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.BD.NewCode.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.BD.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"D:\\pairuodaima\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Gatedge.K3.Pilot.PlugIn.dll","OutputItemRelativePath":"Gatedge.K3.Pilot.PlugIn.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]}
\ No newline at end of file
+{"RootPath":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn","ProjectFileName":"Gatedge.K3.Pilot.PlugIn.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"BOSPlugIn\\BD_CustPrice\\Bill.cs"},{"SourceFile":"BOSPlugIn\\BD_CustPrice\\ServicePlugIn\\Save.cs"},{"SourceFile":"BOSPlugIn\\BD_CustPrice\\ServicePlugIn\\SaveValidator.cs"},{"SourceFile":"BOSPlugIn\\CUST_PAYMENT_PERIOD\\List.cs"},{"SourceFile":"BOSPlugIn\\Sal_Order\\Bill.cs"},{"SourceFile":"Models\\Validate\\PeriodValidity.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Services\\DBService\\BaseDAL.cs"},{"SourceFile":"Services\\DBService\\BDCustPriceDAL.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.App.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.App.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.DataEntity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.VerificationHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Web.HTML.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.Web.HTML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.BOS.WebApi.FormService.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.BD.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.BD.NewCode.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.BD.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Kingdee.K3.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"G:\\2WORKS\\珠海项目\\派诺项目\\功能插件\\Gatedge.K3.Pilot.PlugIn\\bin\\Debug\\Gatedge.K3.Pilot.PlugIn.dll","OutputItemRelativePath":"Gatedge.K3.Pilot.PlugIn.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]}
\ No newline at end of file
diff --git a/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs b/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs
index d663ec2..389f0b7 100644
--- a/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs
+++ b/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs
@@ -1,12 +1,14 @@
using Kingdee.BOS;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
+using Kingdee.BOS.Log;
+using Kingdee.BOS.Orm;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using System;
using System.ComponentModel;
-using System.Linq;
+using System.Dynamic;
namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.AR_SalesVATInvoice.ServicePlugIn
{
@@ -16,12 +18,12 @@ namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.AR_SalesVATInvoice.ServicePlugIn
public override void OnPreparePropertys(PreparePropertysEventArgs e)
{
base.OnPreparePropertys(e);
- // 添加需要加载的字段
- e.FieldKeys.Add("FENTRYID");
+ // 根据日志中的实际实体属性名来添加
e.FieldKeys.Add("FIDD");
e.FieldKeys.Add("FSEQQ");
- e.FieldKeys.Add("FSRCBILLTYPEID");
- e.FieldKeys.Add("FSRCBILLNO");
+ e.FieldKeys.Add("SRCBILLTYPEID"); // 实体属性名(没有F前缀)
+ e.FieldKeys.Add("SRCBILLNO"); // 实体属性名(没有F前缀)
+ e.FieldKeys.Add("FSEQ");
}
public override void AfterExecuteOperationTransaction(AfterExecuteOperationTransaction e)
@@ -41,56 +43,63 @@ namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.AR_SalesVATInvoice.ServicePlugIn
foreach (var entry in entrys)
{
- var entryId = Convert.ToInt64(entry["Id"]);
+ // 使用 Id 获取主键值
+ var entryId = Convert.ToInt64(entry.GetPrimaryKeyValue());
var fidd = entry["FIDD"];
var fiddValue = fidd == null ? 0 : Convert.ToInt64(fidd);
if (fiddValue > 0)
{
// FIDD > 0 时,判断是否需要回写
- var srcBillNo = entry["FSRCBILLNO"]?.ToString() ?? "";
+ var srcBillNo = entry["SRCBILLNO"]?.ToString() ?? "";
- // FIDD != 当前行FENTRYID 且 源单编号为空 时才回写
+ // 判断条件:FIDD != 当前行ID 且 源单编号为空
if (fiddValue != entryId && string.IsNullOrWhiteSpace(srcBillNo))
{
- // 查询源单据体信息(主键=FIDD的明细行)
+ // 查询源单据体信息(FID = fiddValue的明细行)
+ // 这里使用数据库字段名(带F前缀)
var sql = $@"/*dialect*/
SELECT FSRCBILLTYPEID, FSRCBILLNO, FSEQ
FROM T_IV_SALESICENTRY
WHERE FENTRYID = {fiddValue}";
-
+ Logger.Error("销售增值税专用发票", sql, new Exception());
+ Logger.Error("销售增值税专用发票", "78", new Exception());
var result = DBServiceHelper.ExecuteDynamicObject(this.Context, sql);
if (result == null || result.Count == 0)
continue;
var srcData = result[0];
- var srcBillTypeId = srcData["FSRCBILLTYPEID"];
- var srcBillNoValue = srcData["FSRCBILLNO"];
+ // 注意:SQL查询返回的是数据库字段名(带F前缀)
+ var srcBillTypeId = srcData["FSRCBILLTYPEID"]?.ToString() ?? "";
+ var srcBillNoValue = srcData["FSRCBILLNO"]?.ToString() ?? "";
// 回写当前单据体:源单类型、源单编号
+ // 这里使用数据库字段名(带F前缀)
var updateSql = $@"/*dialect*/
UPDATE T_IV_SALESICENTRY
-SET FSRCBILLTYPEID = '{srcBillTypeId}',
- FSRCBILLNO = '{srcBillNoValue}'
+SET FSRCBILLTYPEID = '{srcBillTypeId.Replace("'", "''")}',
+ FSRCBILLNO = '{srcBillNoValue.Replace("'", "''")}'
WHERE FENTRYID = {entryId}";
-
+ Logger.Error("销售增值税专用发票", updateSql, new Exception());
+ Logger.Error("销售增值税专用发票", "78", new Exception());
DBServiceHelper.Execute(this.Context, updateSql);
}
}
else
{
- // FIDD <= 0 时,把当前行FENTRYID赋值给FIDD,同时把FSEQ赋值给FSEQQ
+ // FIDD <= 0 时,把当前行FID赋值给FIDD,同时把FSEQ赋值给FSEQQ
+ var seq = entry["FSEQ"]?.ToString() ?? "0";
var updateSql = $@"/*dialect*/
UPDATE T_IV_SALESICENTRY
-SET FIDD = FENTRYID,
- FSEQQ = FSEQ
+SET FIDD = {entryId},
+ FSEQQ = '{seq.Replace("'", "''")}'
WHERE FENTRYID = {entryId}";
-
+ Logger.Error("销售增值税专用发票", updateSql, new Exception());
+ Logger.Error("销售增值税专用发票", "78", new Exception());
DBServiceHelper.Execute(this.Context, updateSql);
}
}
}
}
}
-}
-
+}
\ No newline at end of file
diff --git a/Gatedge.K3.Pilot.PlugIn/bin/Debug/Oracle.DataAccess.dll b/Gatedge.K3.Pilot.PlugIn/bin/Debug/Oracle.DataAccess.dll
deleted file mode 100644
index 910c9c5..0000000
Binary files a/Gatedge.K3.Pilot.PlugIn/bin/Debug/Oracle.DataAccess.dll and /dev/null differ
diff --git a/Gatedge.K3.Pilot.PlugIn/obj/Debug/Gatedge..4146081E.Up2Date b/Gatedge.K3.Pilot.PlugIn/obj/Debug/Gatedge..4146081E.Up2Date
deleted file mode 100644
index e69de29..0000000
diff --git a/Pilot_KD_Parino/Pilot_KD_Parino.csproj b/Pilot_KD_Parino/Pilot_KD_Parino.csproj
index 47db624..a66117b 100644
--- a/Pilot_KD_Parino/Pilot_KD_Parino.csproj
+++ b/Pilot_KD_Parino/Pilot_KD_Parino.csproj
@@ -51,22 +51,6 @@
False
bin\Debug\Castle.Core.dll
-
- False
- ..\..\..\派诺-裴豪\派诺功能\代码\Pilot_KD_Parino (2)\Pilot_KD_Parino\Pilot_KD_Parino\bin\Debug\DevExpress.Data.v13.1.dll
-
-
- False
- ..\..\..\派诺-裴豪\派诺功能\代码\Pilot_KD_Parino (2)\Pilot_KD_Parino\Pilot_KD_Parino\bin\Debug\DevExpress.Printing.v13.1.Core.dll
-
-
- False
- ..\..\..\派诺-裴豪\派诺功能\代码\Pilot_KD_Parino (2)\Pilot_KD_Parino\Pilot_KD_Parino\bin\Debug\DevExpress.Utils.v13.1.dll
-
-
- False
- ..\..\..\派诺-裴豪\派诺功能\代码\Pilot_KD_Parino (2)\Pilot_KD_Parino\Pilot_KD_Parino\bin\Debug\DevExpress.XtraEditors.v13.1.dll
-
..\..\..\派诺-裴豪\派诺功能\代码\Pilot_KD_Parino (2)\Pilot_KD_Parino\Pilot_KD_Parino\bin\Debug\DocumentFormat.OpenXml.dll
diff --git a/Pilot_KD_Parino/QPHY_AutoWrire/Bill3.cs b/Pilot_KD_Parino/QPHY_AutoWrire/Bill3.cs
index 3cae348..00b0cae 100644
--- a/Pilot_KD_Parino/QPHY_AutoWrire/Bill3.cs
+++ b/Pilot_KD_Parino/QPHY_AutoWrire/Bill3.cs
@@ -1,5 +1,4 @@
-using DevExpress.Xpo.DB;
-using Kingdee.BOS.Core.DynamicForm;
+using Kingdee.BOS.Core.DynamicForm;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Orm.DataEntity;
@@ -10,8 +9,6 @@ using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using static Pilot_KD_Parino.QPHY_AutoWrire.Bill2;
namespace Pilot_KD_Parino.QPHY_AutoWrire
diff --git a/Pilot_KD_Parino/QPHY_AutoWrire/Bill5.cs b/Pilot_KD_Parino/QPHY_AutoWrire/Bill5.cs
index 4a7f3b0..b2812f4 100644
--- a/Pilot_KD_Parino/QPHY_AutoWrire/Bill5.cs
+++ b/Pilot_KD_Parino/QPHY_AutoWrire/Bill5.cs
@@ -1,27 +1,12 @@
-using DevExpress.Data.Linq;
-using DevExpress.Data.PLinq.Helpers;
-using DocumentFormat.OpenXml.Drawing.Spreadsheet;
-using FarPoint.Excel;
-using Kingdee.BOS.App.Core.Utils;
-using Kingdee.BOS.BusinessEntity.BusinessFlow;
-using Kingdee.BOS.Core.CommonFilter;
+using Kingdee.BOS.Core.CommonFilter;
using Kingdee.BOS.Core.DynamicForm;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel;
-using Kingdee.BOS.Core.Enums;
-using Kingdee.BOS.Core.List;
-using Kingdee.BOS.Core.Msg;
-using Kingdee.BOS.Core.Report.PlugIn.Args;
using Kingdee.BOS.JSON;
-using Kingdee.BOS.Log;
-using Kingdee.BOS.Orm;
using Kingdee.BOS.Orm.DataEntity;
-using Kingdee.BOS.Orm.Exceptions;
-using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using Newtonsoft.Json;
-using NPOI.SS.Formula.Functions;
using Pilot_KD_Parino.Common;
using System;
using System.Collections.Generic;
@@ -29,10 +14,6 @@ using System.ComponentModel;
using System.Data;
using System.Globalization;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Web.UI.WebControls;
-using static Kingdee.BOS.BusinessEntity.YunZhiJia.ERPInfoEnum;
using static Pilot_KD_Parino.QPHY_AutoWrire.Bill2;
using static Pilot_KD_Parino.QPHY_AutoWrire.Bill3;
diff --git a/Pilot_KD_Parino/QPHY_AutoWrireRecord/HeXiaoJiLuYanZheng.cs b/Pilot_KD_Parino/QPHY_AutoWrireRecord/HeXiaoJiLuYanZheng.cs
index c8fc7c5..f19f3fc 100644
--- a/Pilot_KD_Parino/QPHY_AutoWrireRecord/HeXiaoJiLuYanZheng.cs
+++ b/Pilot_KD_Parino/QPHY_AutoWrireRecord/HeXiaoJiLuYanZheng.cs
@@ -1,18 +1,10 @@
-using DevExpress.Data.PLinq.Helpers;
-using Kingdee.BOS;
-using Kingdee.BOS.App;
-using Kingdee.BOS.App.Data;
-using Kingdee.BOS.Contracts;
-using Kingdee.BOS.Core.DynamicForm;
+using Kingdee.BOS;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
-using Kingdee.BOS.Core.Metadata;
-using Kingdee.BOS.Core.Metadata.FieldElement;
using Kingdee.BOS.Log;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
-using Org.BouncyCastle.Asn1.X509;
using Pilot_KD_Parino.Common;
using System;
using System.ComponentModel;
diff --git a/Pilot_KD_Parino/bin/Debug/DevExpress.Data.v13.1.dll b/Pilot_KD_Parino/bin/Debug/DevExpress.Data.v13.1.dll
deleted file mode 100644
index f8e5b4f..0000000
Binary files a/Pilot_KD_Parino/bin/Debug/DevExpress.Data.v13.1.dll and /dev/null differ
diff --git a/Pilot_KD_Parino/bin/Debug/DevExpress.Printing.v13.1.Core.dll b/Pilot_KD_Parino/bin/Debug/DevExpress.Printing.v13.1.Core.dll
deleted file mode 100644
index d6d6b43..0000000
Binary files a/Pilot_KD_Parino/bin/Debug/DevExpress.Printing.v13.1.Core.dll and /dev/null differ
diff --git a/Pilot_KD_Parino/bin/Debug/DevExpress.Utils.v13.1.dll b/Pilot_KD_Parino/bin/Debug/DevExpress.Utils.v13.1.dll
deleted file mode 100644
index 143cbc7..0000000
Binary files a/Pilot_KD_Parino/bin/Debug/DevExpress.Utils.v13.1.dll and /dev/null differ
diff --git a/Pilot_KD_Parino/bin/Debug/DevExpress.XtraEditors.v13.1.dll b/Pilot_KD_Parino/bin/Debug/DevExpress.XtraEditors.v13.1.dll
deleted file mode 100644
index a157f79..0000000
Binary files a/Pilot_KD_Parino/bin/Debug/DevExpress.XtraEditors.v13.1.dll and /dev/null differ