投料验证生产bom
This commit is contained in:
@@ -412,10 +412,10 @@ namespace Tnb.ProductionMgr
|
|||||||
{
|
{
|
||||||
foreach (var item in input.details)
|
foreach (var item in input.details)
|
||||||
{
|
{
|
||||||
// if (!inputMaterials.Contains(item.material_id))
|
if (!inputMaterials.Contains(item.material_id))
|
||||||
// {
|
{
|
||||||
// throw new Exception("该物料不是生产bom投入物料,不能签收");
|
throw new Exception("该物料不是生产bom投入物料,不能签收");
|
||||||
// }
|
}
|
||||||
|
|
||||||
PrdMaterialReceiptD? detail = null;
|
PrdMaterialReceiptD? detail = null;
|
||||||
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)
|
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)
|
||||||
|
|||||||
@@ -498,8 +498,7 @@ public class DataBaseManager : IDataBaseManager, ITransient
|
|||||||
|
|
||||||
if (_sqlSugarClient.CurrentConnectionConfig.DbType == SqlSugar.DbType.Oracle)
|
if (_sqlSugarClient.CurrentConnectionConfig.DbType == SqlSugar.DbType.Oracle)
|
||||||
strSql = strSql.Replace(";", string.Empty);
|
strSql = strSql.Replace(";", string.Empty);
|
||||||
|
|
||||||
Log.Information("查找报错sql:"+strSql);
|
|
||||||
var data = _sqlSugarClient.Ado.GetDataTable(strSql, parameters);
|
var data = _sqlSugarClient.Ado.GetDataTable(strSql, parameters);
|
||||||
_sqlSugarClient.ChangeDatabase(_connectionStrings.ConfigId);
|
_sqlSugarClient.ChangeDatabase(_connectionStrings.ConfigId);
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
Reference in New Issue
Block a user