DataEntry.S620 : Purchase order re-read before starting form,at the end of the cycle, ver. 3.1.1873
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user