TURA_IPERL || TURA_SPECIAL : TracingResultsDlg shown after a double-click on a WM results.

This commit is contained in:
Milan Hanajik
2019-06-05 09:02:28 +02:00
parent dfd8e879d1
commit 05bdf0dc06
14 changed files with 542 additions and 15 deletions
@@ -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;