DataEntry.S620 : Purchase order re-read before starting form,at the end of the cycle, ver. 3.1.1873

This commit is contained in:
Milan Hanajik
2022-03-23 07:57:53 +01:00
parent 3c59cd1bee
commit 938da3ac62
6 changed files with 62 additions and 57 deletions
@@ -177,7 +177,7 @@ namespace TBF.Rig.Output.DB.ProductionTracing
var result = session.QueryOver<OrderInfo>()
.Where(x => (x.POState == (sbyte)OrderState.New || x.POState == (sbyte)OrderState.Active))
.List<OrderInfo>();
.List();
if (openAndCloseSession) session.Close();
@@ -190,7 +190,7 @@ namespace TBF.Rig.Output.DB.ProductionTracing
}
}
public OrderInfo ReReadOneOrder(string poName, ISession session = null)
public OrderInfo ReadOrder(string poName, ISession session = null)
{
bool openAndCloseSession = (session == null) || !session.IsOpen;
@@ -208,7 +208,7 @@ namespace TBF.Rig.Output.DB.ProductionTracing
}
catch (Exception exc)
{
log.ErrorFormat("Cannot re-read order {0} from the tracing DB: {1}", poName, exc.Message);
log.ErrorFormat("Cannot read order {0} from the tracing DB: {1}", poName, exc.Message);
return null;
}
}