Changes for Xylem Nanjing, ver. 3.1.1676
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
using NHibernate;
|
||||
using log4net;
|
||||
using Common;
|
||||
using Config.Entities;
|
||||
using TBF.Rig;
|
||||
using TBF.Resources;
|
||||
@@ -27,9 +28,9 @@ namespace TBF.UI.Bench.Uncertainties
|
||||
|
||||
/// SharedDlgButtons configuration
|
||||
#if KEMPNO_50
|
||||
sharedButtons.RequiredGroupMembership = new Users.Entities.GID[] { Users.Entities.GID.MetrologicalAuthority };
|
||||
sharedButtons.RequiredGroupMembership = new Common.GID[] { Common.GID.MetrologicalAuthority };
|
||||
#else
|
||||
sharedButtons.RequiredGroupMembership = new Users.Entities.GID[] { Users.Entities.GID.Metrologists };
|
||||
sharedButtons.RequiredGroupMembership = new Common.GID[] { Common.GID.Metrologists };
|
||||
#endif
|
||||
sharedButtons.OptionalButtons = SharedButtons.Buttons.Add | SharedButtons.Buttons.Remove;
|
||||
sharedButtons.Unlocked += unlockButton_Click;
|
||||
@@ -54,7 +55,7 @@ namespace TBF.UI.Bench.Uncertainties
|
||||
int tempMetersCount = 0;
|
||||
int evaporationsCount = 0;
|
||||
|
||||
session = Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config);
|
||||
session = Config.FluentCommon.CreateSession(DBKind.Config);
|
||||
cmpntEntities = session.QueryOver<Component>()
|
||||
.OrderBy(x => x. ItemNr).Asc
|
||||
.List();
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Windows.Forms;
|
||||
using log4net;
|
||||
using Common;
|
||||
using Config.Entities;
|
||||
using Results.Forms;
|
||||
using TBF.Resources;
|
||||
@@ -90,7 +91,7 @@ namespace TBF.UI.Bench.Uncertainties
|
||||
foreach (var uncrtnty in MeterEntity.Uncertainties) AddOneLVI(uncrtnty);
|
||||
}
|
||||
|
||||
void AddOneLVI(Uncertainty corr)
|
||||
void AddOneLVI(IUncertainty corr)
|
||||
{
|
||||
int nr = listViewEx.Items.Count + 1;
|
||||
ListViewItem lvi = new ListViewItem(nr.ToString());
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Windows.Forms;
|
||||
using log4net;
|
||||
using Common;
|
||||
using Config.Entities;
|
||||
using Results.Forms;
|
||||
using TBF.Resources;
|
||||
@@ -85,7 +86,7 @@ namespace TBF.UI.Bench.Uncertainties
|
||||
foreach (var uncrtnty in MeterEntity.Uncertainties) AddOneLVI(uncrtnty);
|
||||
}
|
||||
|
||||
void AddOneLVI(Uncertainty corr)
|
||||
void AddOneLVI(IUncertainty corr)
|
||||
{
|
||||
int nr = listViewEx.Items.Count + 1;
|
||||
ListViewItem lvi = new ListViewItem(nr.ToString());
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Windows.Forms;
|
||||
using log4net;
|
||||
using Common;
|
||||
using Config.Entities;
|
||||
using Results.Forms;
|
||||
using TBF.Resources;
|
||||
@@ -91,7 +92,7 @@ namespace TBF.UI.Bench.Uncertainties
|
||||
foreach (var uncrtnty in MeterEntity.Uncertainties) AddOneLVI(uncrtnty);
|
||||
}
|
||||
|
||||
void AddOneLVI(Uncertainty corr)
|
||||
void AddOneLVI(IUncertainty corr)
|
||||
{
|
||||
int nr = listViewEx.Items.Count + 1;
|
||||
ListViewItem lvi = new ListViewItem(nr.ToString());
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Windows.Forms;
|
||||
using log4net;
|
||||
using Common;
|
||||
using Config.Entities;
|
||||
using Results.Forms;
|
||||
using TBF.Resources;
|
||||
@@ -85,7 +86,7 @@ namespace TBF.UI.Bench.Uncertainties
|
||||
foreach (var uncrtnty in MeterEntity.Uncertainties) AddOneLVI(uncrtnty);
|
||||
}
|
||||
|
||||
void AddOneLVI(Uncertainty corr)
|
||||
void AddOneLVI(IUncertainty corr)
|
||||
{
|
||||
int nr = listViewEx.Items.Count + 1;
|
||||
ListViewItem lvi = new ListViewItem(nr.ToString());
|
||||
|
||||
Reference in New Issue
Block a user