Changes for Xylem Nanjing, ver. 3.1.1676
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using log4net;
|
||||
using Common;
|
||||
using Config.Entities;
|
||||
using Results.Forms;
|
||||
using TBF.Rig.Generic;
|
||||
@@ -50,7 +51,7 @@ namespace TBF.UI.Bench.TestProfiles
|
||||
InitializeComponent();
|
||||
|
||||
/// SharedDlgButtons configuration
|
||||
sharedButtons.RequiredGroupMembership = new Users.Entities.GID[] { Users.Entities.GID.MetrologicalAuthority };
|
||||
sharedButtons.RequiredGroupMembership = new GID[] { GID.MetrologicalAuthority };
|
||||
|
||||
sharedButtons.OptionalButtons = SharedButtons.Buttons.Add | SharedButtons.Buttons.Remove |
|
||||
SharedButtons.Buttons.Up | SharedButtons.Buttons.Down;
|
||||
@@ -87,7 +88,7 @@ namespace TBF.UI.Bench.TestProfiles
|
||||
this.usedNames = usedNames;
|
||||
this.openUnlocked = openUnlocked;
|
||||
|
||||
sharedButtons.RequiredGroupMembership = new Users.Entities.GID[] { Users.Entities.GID.MetrologicalAuthority };
|
||||
sharedButtons.RequiredGroupMembership = new GID[] { GID.MetrologicalAuthority };
|
||||
}
|
||||
|
||||
private void TestProfileDlg_Load(object sender, EventArgs e)
|
||||
@@ -243,7 +244,7 @@ namespace TBF.UI.Bench.TestProfiles
|
||||
lv.Columns.Add(new ColumnHeader { Text = Strings.Evaluate, Width = 80 });
|
||||
|
||||
ComboBox publishCBox = new ComboBox(); /// control for Publish
|
||||
for (Config.Entities.Publish pb = 0; pb < Config.Entities.Publish.Count; pb++)
|
||||
for (Publish pb = 0; pb < Publish.Count; pb++)
|
||||
{
|
||||
publishCBox.Items.Add(pb.ToDescription());
|
||||
}
|
||||
@@ -309,7 +310,7 @@ namespace TBF.UI.Bench.TestProfiles
|
||||
lvi.SubItems.Add(pTest.TempLimHi.ToString());
|
||||
lvi.SubItems.Add(pTest.PressLimLo.ToString());
|
||||
lvi.SubItems.Add(pTest.PressLimHi.ToString());
|
||||
lvi.SubItems.Add(((Config.Entities.Publish)pTest.Publish).ToDescription());
|
||||
lvi.SubItems.Add(((Publish)pTest.Publish).ToDescription());
|
||||
lvi.SubItems.Add(pTest.Evaluate ? Strings.yes : Strings.no);
|
||||
|
||||
metrologyListViewEx.Items.Add(lvi);
|
||||
@@ -356,7 +357,7 @@ namespace TBF.UI.Bench.TestProfiles
|
||||
|
||||
entity.Evaluate = lvi.SubItems[(int)MtrlgyClmn.Evaluate].Text.Equals(Strings.yes);
|
||||
|
||||
for (Config.Entities.Publish pb = 0; pb < Config.Entities.Publish.Count; pb++)
|
||||
for (Publish pb = 0; pb < Publish.Count; pb++)
|
||||
{
|
||||
if (lvi.SubItems[(int)MtrlgyClmn.Publish].Text.Equals(pb.ToDescription()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user