TURA_IPERL || TURA_SPECIAL : TracingResultsDlg shown after a double-click on a WM results.
This commit is contained in:
@@ -28,7 +28,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
{
|
||||
ParentName = string.Empty;
|
||||
Workplace = "WR10";
|
||||
ConnStr = "SERVER=10.42.128.16; DATABASE=st_wr_shared_config; UID=u9305784; PASSWORD=p89344390; CHARSET=utf8;";
|
||||
ConnStr = "SERVER=10.42.128.16; DATABASE=sledovanie2019; UID=vyroba2019; PASSWORD=qwerty; CHARSET=utf8;";
|
||||
CheckPreviousRecords = true;
|
||||
SaveTracingRecords = true;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
Results.Entities.Batch batch;
|
||||
|
||||
|
||||
ISessionFactory sessionFactory; /// Factory to create database sessions that is initialized in the constructor
|
||||
ISessionFactory sessionFactory; /// Factory to create database sessions that is initialized in the constructor
|
||||
IList<Process> processes;
|
||||
Dictionary<int, Process> processDictionary;
|
||||
Dictionary<int, IList<Workstep>> workstepsDictionary;
|
||||
@@ -83,6 +83,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
: base(cfg)
|
||||
{
|
||||
tracingCfg = cfg as MonitoringCfg;
|
||||
if (tracingCfg == null) throw new ArgumentException("tracingCfg");
|
||||
currentOpState = OpState.None;
|
||||
log.Debug(this.ToString());
|
||||
}
|
||||
@@ -116,6 +117,7 @@ namespace TBF.BenchControl.Output.DB.ProductionTracing
|
||||
DateTime.Now + new TimeSpan(15, 0, 0, 0));
|
||||
session.Flush();
|
||||
session.Close();
|
||||
TracingDB.DB.SessionFactory = sessionFactory;
|
||||
if (session != null) session.Dispose();
|
||||
|
||||
currentProcess = null;
|
||||
|
||||
Reference in New Issue
Block a user