SVN-Revision: r439
This commit is contained in:
wyf
2025-04-02 11:14:48 +00:00
parent f32e7b52a1
commit 82c1baca7e
+1 -1
View File
@@ -523,7 +523,7 @@ namespace Lskj.PubBomImport
frmBillInfo.AddOrUpdateBill(masterRow, detailTable);
SetProcessBar(60, 0);
//备份Bom清单明细
string bakBomListSql = @"delete bom_BillListlogTab where parentProduct = '{0}';insert into bom_BillListlogTab select * from bom_BillListTab where parentProduct = '{0}';";
string bakBomListSql = @"delete bom_BillListlogTab where parentProduct = '{0}' and historyVer = (select top 1 historyVer from bom_BillListTab where parentProduct = '{0}');insert into bom_BillListlogTab select * from bom_BillListTab where parentProduct = '{0}';";
SqlHelper.ExecuteNonQuery(string.Format(bakBomListSql, productCode));
string billNo = "";
frmBillInfo.BillSave(ref billNo);