SVN-Revision: r761
This commit is contained in:
wyf
2025-06-19 12:44:42 +00:00
parent 9e417d3d93
commit 30e8452e5d
3 changed files with 448 additions and 325 deletions
+7 -3
View File
@@ -195,7 +195,7 @@ namespace Lskj.PubBomImport
}
return saveResult;
}
public bool BillSaveSql(string guid, int comfirm = 0, bool canTipMsg = true)
public bool BillSaveSql(string guid, string zzqdTag = "", int comfirm = 0, bool canTipMsg = true)
{
bool saveResult = false;
if (ControlObj.VerifyNull())
@@ -243,8 +243,8 @@ namespace Lskj.PubBomImport
//param[7].Value = auditFlag;
//param[8].Value = comfirm;
SqlHelper.ExecuteNonQuery($"delete p_bomImportExecTab where guid = '{guid}'");
SqlHelper.ExecuteNonQuery($"insert into p_bomImportExecTab (guid,detailTable,masterSql,detailSql,billNo,detailGuid,UserId,billWay,billSeq,auditFlag,comfirm,newVer) " +
$"values ('{guid}','{billModel.DetailTable}','{masterSql.Replace("'", "''")}','{detailSql.Replace("'", "''")}','{billNo}','{detailGuid.Replace("'", "''")}','{ERPInfo.Instance.UserId}','{(billModel.SaveState ? 2 : 1)}','{billModel.BillSeq}','0','{comfirm}','{billModel.NewVer}')");
SqlHelper.ExecuteNonQuery($"insert into p_bomImportExecTab (guid,detailTable,masterSql,detailSql,billNo,detailGuid,UserId,billWay,billSeq,auditFlag,comfirm,newVer,zzqdtag) " +
$"values ('{guid}','{billModel.DetailTable}','{masterSql.Replace("'", "''")}','{detailSql.Replace("'", "''")}','{billNo}','{detailGuid.Replace("'", "''")}','{ERPInfo.Instance.UserId}','{(billModel.SaveState ? 2 : 1)}','{billModel.BillSeq}','0','{comfirm}','{billModel.NewVer}','{zzqdTag}')");
//int result = BillImpl.BillSave(masterSql, detailSql, billModel.DetailTable, ref billNo, detailGuid, billModel.BillSeq, billModel.SaveState ? 2 : 1, comfirm, out tipMsg, 0, billModel.NewVer);
//if (result == 1)
//{
@@ -261,6 +261,10 @@ namespace Lskj.PubBomImport
throw new Exception($"保存Bom失败\r\n{ex.Message}");
}
}
else
{
throw new Exception($"保存Bom失败\r\n验证失败");
}
return saveResult;
}
private string GetUpdateRecord(string parmaryValue)