SVN r728
SVN-Revision: r728
This commit is contained in:
@@ -746,7 +746,9 @@ namespace Lskj.PubBomImport
|
|||||||
foreach (int bomRowIndex in bomRowIndexs)
|
foreach (int bomRowIndex in bomRowIndexs)
|
||||||
{
|
{
|
||||||
DataRow dataRow = gridControlEx.GridView.GetDataRow(bomRowIndex);
|
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
|
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"] + ""}'";
|
from p_producttab where productid = '{dataRow["Yproductid"] + ""}'";
|
||||||
string insertId = SqlHelper.ExecuteScalar(sql) + "";
|
string insertId = SqlHelper.ExecuteScalar(sql) + "";
|
||||||
|
|||||||
Reference in New Issue
Block a user