SVN-Revision: r728
This commit is contained in:
wyf
2025-06-13 09:16:29 +00:00
parent 502f269505
commit 63ffd1c539
+3 -1
View File
@@ -746,7 +746,9 @@ namespace Lskj.PubBomImport
foreach (int bomRowIndex in bomRowIndexs)
{
DataRow dataRow = gridControlEx.GridView.GetDataRow(bomRowIndex);
string sql = $@"insert bom_bgRwTab (guid,productid,appellation,spec,yproductid,yappellation,yspec,xdopname,xddate,BomOperatorId,comid) OUTPUT INSERTED.BGID
string sql = $@"delete from bom_bgRwTab where guid = '{guid}';
insert bom_bgRwTab (guid,productid,appellation,spec,yproductid,yappellation,yspec,xdopname,xddate,BomOperatorId,comid) OUTPUT INSERTED.BGID
select '{guid}','{dataRow["productid"] + ""}','{dataRow["appellation"] + ""}','{dataRow["spec"] + ""}',productid,appellation,spec,'{ERPInfo.Instance.UserName}',getdate(),(select top 1 OperatorId from bom_billTab WITH (NOLOCK) where productid = '{dataRow["productid"] + ""}'),2
from p_producttab where productid = '{dataRow["Yproductid"] + ""}'";
string insertId = SqlHelper.ExecuteScalar(sql) + "";