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 bda20d2..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":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\5.珠海派诺科技股份有限公司\\0.软件工程\\Pilot_KD_Parino_yuyubo\\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":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Services\\DBService\\BaseDAL.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.App.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.App.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.DataEntity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.VerificationHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.Web.HTML.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.Web.HTML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.BOS.WebApi.FormService.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.K3.BD.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.K3.BD.NewCode.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\Kingdee.K3.BD.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\2.珠海英搏尔电气股份有限公司\\0.软件工程\\Gatedge.Enpower.BOS\\Library\\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":"E:\\Work\\珠海格致软件有限公司\\0.开发任务\\5.珠海派诺科技股份有限公司\\0.软件工程\\Pilot_KD_Parino_yuyubo\\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
new file mode 100644
index 0000000..389f0b7
--- /dev/null
+++ b/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs
@@ -0,0 +1,105 @@
+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.Dynamic;
+
+namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.AR_SalesVATInvoice.ServicePlugIn
+{
+ [HotUpdate, Description("销售增值税专用发票_保存后事件")]
+ public class AfterSave : AbstractOperationServicePlugIn
+ {
+ public override void OnPreparePropertys(PreparePropertysEventArgs e)
+ {
+ base.OnPreparePropertys(e);
+ // 根据日志中的实际实体属性名来添加
+ e.FieldKeys.Add("FIDD");
+ e.FieldKeys.Add("FSEQQ");
+ e.FieldKeys.Add("SRCBILLTYPEID"); // 实体属性名(没有F前缀)
+ e.FieldKeys.Add("SRCBILLNO"); // 实体属性名(没有F前缀)
+ e.FieldKeys.Add("FSEQ");
+ }
+
+ public override void AfterExecuteOperationTransaction(AfterExecuteOperationTransaction e)
+ {
+ base.AfterExecuteOperationTransaction(e);
+
+ foreach (var dataEntity in e.DataEntitys)
+ {
+ var billObj = dataEntity as DynamicObject;
+ if (billObj == null)
+ continue;
+
+ // 获取单据体
+ var entrys = billObj["SALESICENTRY"] as DynamicObjectCollection;
+ if (entrys == null || entrys.Count == 0)
+ continue;
+
+ foreach (var entry in entrys)
+ {
+ // 使用 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["SRCBILLNO"]?.ToString() ?? "";
+
+ // 判断条件:FIDD != 当前行ID 且 源单编号为空
+ if (fiddValue != entryId && string.IsNullOrWhiteSpace(srcBillNo))
+ {
+ // 查询源单据体信息(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];
+ // 注意:SQL查询返回的是数据库字段名(带F前缀)
+ var srcBillTypeId = srcData["FSRCBILLTYPEID"]?.ToString() ?? "";
+ var srcBillNoValue = srcData["FSRCBILLNO"]?.ToString() ?? "";
+
+ // 回写当前单据体:源单类型、源单编号
+ // 这里使用数据库字段名(带F前缀)
+ var updateSql = $@"/*dialect*/
+UPDATE T_IV_SALESICENTRY
+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 时,把当前行FID赋值给FIDD,同时把FSEQ赋值给FSEQQ
+ var seq = entry["FSEQ"]?.ToString() ?? "0";
+ var updateSql = $@"/*dialect*/
+UPDATE T_IV_SALESICENTRY
+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/Gatedge.K3.Pilot.PlugIn.csproj b/Gatedge.K3.Pilot.PlugIn/Gatedge.K3.Pilot.PlugIn.csproj
index 68b173b..ff4a907 100644
--- a/Gatedge.K3.Pilot.PlugIn/Gatedge.K3.Pilot.PlugIn.csproj
+++ b/Gatedge.K3.Pilot.PlugIn/Gatedge.K3.Pilot.PlugIn.csproj
@@ -103,6 +103,6 @@
- copy $(TargetPath) "E:\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin"
+ copy $(TargetPath) "D:\Program Files (x86)\Kingdee\K3Cloud\WebSite\Bin\$(TargetFileName)"
\ No newline at end of file
diff --git a/NoPackageMachine/.vs/NoPackageMachine.csproj.dtbcache.json b/NoPackageMachine/.vs/NoPackageMachine.csproj.dtbcache.json
new file mode 100644
index 0000000..36bbfcb
--- /dev/null
+++ b/NoPackageMachine/.vs/NoPackageMachine.csproj.dtbcache.json
@@ -0,0 +1 @@
+{"RootPath":"D:\\pairuodaima\\NoPackageMachine","ProjectFileName":"NoPackageMachine.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"GetSingleLuoJi.cs"},{"SourceFile":"GetSonMachines.cs"},{"SourceFile":"Model\\SalOrderEntryModel.cs"},{"SourceFile":"Model\\SalOrderModel.cs"},{"SourceFile":"NoPackageMaterialForm.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Model\\SonMachine.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"D:\\pairuodaima\\Component\\EZ.DB.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\K3Cloud.WebApi.Client.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.App.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.App.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.ApprovalFlow.PlugIns.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.BusinessEntity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.DataEntity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.VerificationHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.WebApi.Client.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.WebApi.FormService.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.BOS.WebApi.ServicesStub.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.FIN.App.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.FIN.CB.App.Report.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.FIN.HS.App.Report.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.MFG.App.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.MFG.PLN.App.MrpModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.App.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.App.Credit.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.App.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.App.Sal.ServicePlugIn.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.App.Stock.Report.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.Business.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.Common.BusinessEntity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.Contracts.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.ServiceHelper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\pairuodaima\\Component\\Kingdee.K3.SCM.Stock.Business.PlugIn.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":"D:\\pairuodaima\\packages\\Newtonsoft.Json.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\\NoPackageMachine\\bin\\Debug\\NoPackageMachine.dll","OutputItemRelativePath":"NoPackageMachine.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]}
\ No newline at end of file
diff --git a/Pilot_KD_Parino.zip b/Pilot_KD_Parino.zip
new file mode 100644
index 0000000..0e58555
Binary files /dev/null and b/Pilot_KD_Parino.zip differ
diff --git a/Pilot_KD_Parino/AR_SalesVATInvoice/Bill.cs b/Pilot_KD_Parino/AR_SalesVATInvoice/Bill.cs
new file mode 100644
index 0000000..1562abf
--- /dev/null
+++ b/Pilot_KD_Parino/AR_SalesVATInvoice/Bill.cs
@@ -0,0 +1,28 @@
+using Kingdee.BOS.Core.Bill.PlugIn;
+using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
+using Kingdee.BOS.Util;
+using System.ComponentModel;
+
+namespace Pilot_KD_Parino.AR_SalesVATInvoice
+{
+ [HotUpdate, Description("销售增值税专用发票_表单插件")]
+ public class Bill : AbstractBillPlugIn
+ {
+ public override void AfterDoOperation(AfterDoOperationEventArgs e)
+ {
+ base.AfterDoOperation(e);
+
+ string opt = e.Operation.Operation;
+
+ // 保存成功后刷新界面(参考收款核销5的刷新方式)
+ if (opt == "Save" && e.OperationResult.IsSuccess)
+ {
+ // 刷新单据体视图
+ this.View.UpdateView("SALESICENTRY");
+ // 刷新整个界面
+ this.View.Refresh();
+ }
+ }
+ }
+}
+
diff --git a/Pilot_KD_Parino/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs b/Pilot_KD_Parino/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs
new file mode 100644
index 0000000..5d98033
--- /dev/null
+++ b/Pilot_KD_Parino/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs
@@ -0,0 +1,104 @@
+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;
+
+namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.AR_SalesVATInvoice.ServicePlugIn
+{
+ [HotUpdate, Description("销售增值税专用发票_保存后事件")]
+ public class AfterSave : AbstractOperationServicePlugIn
+ {
+ public override void OnPreparePropertys(PreparePropertysEventArgs e)
+ {
+ base.OnPreparePropertys(e);
+ // 根据日志中的实际实体属性名来添加
+ e.FieldKeys.Add("FIDD");
+ e.FieldKeys.Add("FSEQQ");
+ e.FieldKeys.Add("SRCBILLTYPEID"); // 实体属性名(没有F前缀)
+ e.FieldKeys.Add("SRCBILLNO"); // 实体属性名(没有F前缀)
+ e.FieldKeys.Add("SEQ");
+ }
+
+
+ public override void EndOperationTransaction(EndOperationTransactionArgs e)
+ {
+ base.EndOperationTransaction(e);
+ foreach (var dataEntity in e.DataEntitys)
+ {
+ var billObj = dataEntity as DynamicObject;
+ if (billObj == null)
+ continue;
+
+ // 获取单据体
+ var entrys = billObj["SALESICENTRY"] as DynamicObjectCollection;
+ if (entrys == null || entrys.Count == 0)
+ continue;
+
+ foreach (var entry in entrys)
+ {
+ // 使用 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["SRCBILLNO"]?.ToString() ?? "";
+
+ // 判断条件:FIDD != 当前行ID 且 源单编号为空
+ if (fiddValue != entryId && string.IsNullOrWhiteSpace(srcBillNo))
+ {
+ // 查询源单据体信息(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];
+ // 注意:SQL查询返回的是数据库字段名(带F前缀)
+ var srcBillTypeId = srcData["FSRCBILLTYPEID"]?.ToString() ?? "";
+ var srcBillNoValue = srcData["FSRCBILLNO"]?.ToString() ?? "";
+
+ // 回写当前单据体:源单类型、源单编号
+ // 这里使用数据库字段名(带F前缀)
+ var updateSql = $@"/*dialect*/
+UPDATE T_IV_SALESICENTRY
+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 时,把当前行FID赋值给FIDD,同时把FSEQ赋值给FSEQQ
+ var seq = entry["SEQ"]?.ToString() ?? "0";
+ var updateSql = $@"/*dialect*/
+UPDATE T_IV_SALESICENTRY
+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/Pilot_KD_Parino/Pilot_KD_Parino.csproj b/Pilot_KD_Parino/Pilot_KD_Parino.csproj
index 5e86c30..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
@@ -322,6 +306,8 @@
+
+
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
diff --git a/Pilot_KD_Parino/bin/Debug/GZ_KD_Parino.dll b/Pilot_KD_Parino/bin/Debug/GZ_KD_Parino.dll
new file mode 100644
index 0000000..141360e
Binary files /dev/null and b/Pilot_KD_Parino/bin/Debug/GZ_KD_Parino.dll differ