diff --git a/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.Designer.cs b/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.Designer.cs
index 03671c350..011013289 100644
--- a/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.Designer.cs
+++ b/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.Designer.cs
@@ -75,11 +75,11 @@ namespace TBF.BenchControl.DataEntry.Standard12
this.extensionsGroupBox = new System.Windows.Forms.GroupBox();
this.remarkTextBox = new System.Windows.Forms.TextBox();
this.label16 = new System.Windows.Forms.Label();
- this.textBox3 = new System.Windows.Forms.TextBox();
+ this.snSuffixTextBox = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
- this.textBox2 = new System.Windows.Forms.TextBox();
+ this.snPrefixTextBox = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
- this.textBox1 = new System.Windows.Forms.TextBox();
+ this.idNumberTextBox = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.ext4Label = new System.Windows.Forms.Label();
this.ext4TextBox = new System.Windows.Forms.TextBox();
@@ -90,8 +90,32 @@ namespace TBF.BenchControl.DataEntry.Standard12
this.ext1Label = new System.Windows.Forms.Label();
this.ext1TextBox = new System.Windows.Forms.TextBox();
this.autoSNButton = new System.Windows.Forms.Button();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2 = new System.Windows.Forms.PictureBox();
+ this.pictureBox3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox9 = new System.Windows.Forms.PictureBox();
+ this.pictureBox10 = new System.Windows.Forms.PictureBox();
+ this.pictureBox11 = new System.Windows.Forms.PictureBox();
+ this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.orderGroupBox.SuspendLayout();
this.extensionsGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).BeginInit();
this.SuspendLayout();
//
// okButton
@@ -368,11 +392,11 @@ namespace TBF.BenchControl.DataEntry.Standard12
//
this.extensionsGroupBox.Controls.Add(this.remarkTextBox);
this.extensionsGroupBox.Controls.Add(this.label16);
- this.extensionsGroupBox.Controls.Add(this.textBox3);
+ this.extensionsGroupBox.Controls.Add(this.snSuffixTextBox);
this.extensionsGroupBox.Controls.Add(this.label15);
- this.extensionsGroupBox.Controls.Add(this.textBox2);
+ this.extensionsGroupBox.Controls.Add(this.snPrefixTextBox);
this.extensionsGroupBox.Controls.Add(this.label14);
- this.extensionsGroupBox.Controls.Add(this.textBox1);
+ this.extensionsGroupBox.Controls.Add(this.idNumberTextBox);
this.extensionsGroupBox.Controls.Add(this.label13);
this.extensionsGroupBox.Controls.Add(this.ext4Label);
this.extensionsGroupBox.Controls.Add(this.ext4TextBox);
@@ -396,30 +420,30 @@ namespace TBF.BenchControl.DataEntry.Standard12
resources.ApplyResources(this.label16, "label16");
this.label16.Name = "label16";
//
- // textBox3
+ // snSuffixTextBox
//
- resources.ApplyResources(this.textBox3, "textBox3");
- this.textBox3.Name = "textBox3";
+ resources.ApplyResources(this.snSuffixTextBox, "snSuffixTextBox");
+ this.snSuffixTextBox.Name = "snSuffixTextBox";
//
// label15
//
resources.ApplyResources(this.label15, "label15");
this.label15.Name = "label15";
//
- // textBox2
+ // snPrefixTextBox
//
- resources.ApplyResources(this.textBox2, "textBox2");
- this.textBox2.Name = "textBox2";
+ resources.ApplyResources(this.snPrefixTextBox, "snPrefixTextBox");
+ this.snPrefixTextBox.Name = "snPrefixTextBox";
//
// label14
//
resources.ApplyResources(this.label14, "label14");
this.label14.Name = "label14";
//
- // textBox1
+ // idNumberTextBox
//
- resources.ApplyResources(this.textBox1, "textBox1");
- this.textBox1.Name = "textBox1";
+ resources.ApplyResources(this.idNumberTextBox, "idNumberTextBox");
+ this.idNumberTextBox.Name = "idNumberTextBox";
//
// label13
//
@@ -465,6 +489,7 @@ namespace TBF.BenchControl.DataEntry.Standard12
//
resources.ApplyResources(this.ext1TextBox, "ext1TextBox");
this.ext1TextBox.Name = "ext1TextBox";
+ this.ext1TextBox.TextChanged += new System.EventHandler(this.ext1TextBox_TextChanged);
//
// autoSNButton
//
@@ -474,11 +499,95 @@ namespace TBF.BenchControl.DataEntry.Standard12
this.autoSNButton.UseVisualStyleBackColor = true;
this.autoSNButton.Click += new System.EventHandler(this.autoSNButton_Click);
//
+ // pictureBox1
+ //
+ resources.ApplyResources(this.pictureBox1, "pictureBox1");
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.TabStop = false;
+ //
+ // pictureBox2
+ //
+ resources.ApplyResources(this.pictureBox2, "pictureBox2");
+ this.pictureBox2.Name = "pictureBox2";
+ this.pictureBox2.TabStop = false;
+ //
+ // pictureBox3
+ //
+ resources.ApplyResources(this.pictureBox3, "pictureBox3");
+ this.pictureBox3.Name = "pictureBox3";
+ this.pictureBox3.TabStop = false;
+ //
+ // pictureBox4
+ //
+ resources.ApplyResources(this.pictureBox4, "pictureBox4");
+ this.pictureBox4.Name = "pictureBox4";
+ this.pictureBox4.TabStop = false;
+ //
+ // pictureBox5
+ //
+ resources.ApplyResources(this.pictureBox5, "pictureBox5");
+ this.pictureBox5.Name = "pictureBox5";
+ this.pictureBox5.TabStop = false;
+ //
+ // pictureBox6
+ //
+ resources.ApplyResources(this.pictureBox6, "pictureBox6");
+ this.pictureBox6.Name = "pictureBox6";
+ this.pictureBox6.TabStop = false;
+ //
+ // pictureBox7
+ //
+ resources.ApplyResources(this.pictureBox7, "pictureBox7");
+ this.pictureBox7.Name = "pictureBox7";
+ this.pictureBox7.TabStop = false;
+ //
+ // pictureBox8
+ //
+ resources.ApplyResources(this.pictureBox8, "pictureBox8");
+ this.pictureBox8.Name = "pictureBox8";
+ this.pictureBox8.TabStop = false;
+ //
+ // pictureBox9
+ //
+ resources.ApplyResources(this.pictureBox9, "pictureBox9");
+ this.pictureBox9.Name = "pictureBox9";
+ this.pictureBox9.TabStop = false;
+ //
+ // pictureBox10
+ //
+ resources.ApplyResources(this.pictureBox10, "pictureBox10");
+ this.pictureBox10.Name = "pictureBox10";
+ this.pictureBox10.TabStop = false;
+ //
+ // pictureBox11
+ //
+ resources.ApplyResources(this.pictureBox11, "pictureBox11");
+ this.pictureBox11.Name = "pictureBox11";
+ this.pictureBox11.TabStop = false;
+ //
+ // pictureBox12
+ //
+ resources.ApplyResources(this.pictureBox12, "pictureBox12");
+ this.pictureBox12.Name = "pictureBox12";
+ this.pictureBox12.TabStop = false;
+ //
// CycleBeginningForm
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.DarkGoldenrod;
+ this.BackColor = System.Drawing.Color.DarkGray;
+ this.Controls.Add(this.pictureBox12);
+ this.Controls.Add(this.pictureBox11);
+ this.Controls.Add(this.pictureBox10);
+ this.Controls.Add(this.pictureBox9);
+ this.Controls.Add(this.pictureBox8);
+ this.Controls.Add(this.pictureBox7);
+ this.Controls.Add(this.pictureBox6);
+ this.Controls.Add(this.pictureBox5);
+ this.Controls.Add(this.pictureBox4);
+ this.Controls.Add(this.pictureBox3);
+ this.Controls.Add(this.pictureBox2);
+ this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.autoSNButton);
this.Controls.Add(this.extensionsGroupBox);
this.Controls.Add(this.checkBox12);
@@ -528,6 +637,18 @@ namespace TBF.BenchControl.DataEntry.Standard12
this.orderGroupBox.ResumeLayout(false);
this.extensionsGroupBox.ResumeLayout(false);
this.extensionsGroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -586,12 +707,24 @@ namespace TBF.BenchControl.DataEntry.Standard12
private System.Windows.Forms.TextBox ext1TextBox;
private System.Windows.Forms.TextBox remarkTextBox;
private System.Windows.Forms.Label label16;
- private System.Windows.Forms.TextBox textBox3;
+ private System.Windows.Forms.TextBox snSuffixTextBox;
private System.Windows.Forms.Label label15;
- private System.Windows.Forms.TextBox textBox2;
+ private System.Windows.Forms.TextBox snPrefixTextBox;
private System.Windows.Forms.Label label14;
- private System.Windows.Forms.TextBox textBox1;
+ private System.Windows.Forms.TextBox idNumberTextBox;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Button autoSNButton;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.PictureBox pictureBox2;
+ private System.Windows.Forms.PictureBox pictureBox3;
+ private System.Windows.Forms.PictureBox pictureBox4;
+ private System.Windows.Forms.PictureBox pictureBox5;
+ private System.Windows.Forms.PictureBox pictureBox6;
+ private System.Windows.Forms.PictureBox pictureBox7;
+ private System.Windows.Forms.PictureBox pictureBox8;
+ private System.Windows.Forms.PictureBox pictureBox9;
+ private System.Windows.Forms.PictureBox pictureBox10;
+ private System.Windows.Forms.PictureBox pictureBox11;
+ private System.Windows.Forms.PictureBox pictureBox12;
}
}
\ No newline at end of file
diff --git a/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.cs b/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.cs
index e52ddc06b..80d2e2eeb 100644
--- a/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.cs
+++ b/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.cs
@@ -3,6 +3,8 @@
///
using System;
using System.Collections.Generic;
+using System.Drawing;
+using System.IO;
using System.Windows.Forms;
using log4net;
using TBF.Resources;
@@ -13,6 +15,8 @@ namespace TBF.BenchControl.DataEntry.Standard12
{
private static readonly ILog log = LogManager.GetLogger(typeof(CycleBeginningForm));
+ readonly Results.Entities.WaterMeter[] WaterMeters;
+
/// Number of water meters
public readonly int WaterMetersCount;
public readonly bool SensusExtensions;
@@ -22,9 +26,9 @@ namespace TBF.BenchControl.DataEntry.Standard12
public string[] SNText;
public bool[] Disabled;
- public string IDNumber;
- public string BeforeSN;
- public string AfterSN;
+ public string IdNumber;
+ public string SnPrefix;
+ public string SnSuffix;
public string Remark;
/// Set to 'true' when the form closes
@@ -36,6 +40,7 @@ namespace TBF.BenchControl.DataEntry.Standard12
Label[] labels;
ComboBox[] comboBoxes;
CheckBox[] checkBoxes;
+ PictureBox[] pictureBoxes;
IList enabledComboBoxes;
@@ -53,6 +58,9 @@ namespace TBF.BenchControl.DataEntry.Standard12
checkBoxes = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4, checkBox5, checkBox6,
checkBox7, checkBox8, checkBox9, checkBox10, checkBox11, checkBox12 };
+ pictureBoxes = new PictureBox[] { pictureBox1, pictureBox2, pictureBox3, pictureBox4, pictureBox5, pictureBox6,
+ pictureBox7, pictureBox8, pictureBox9, pictureBox10, pictureBox11, pictureBox12 };
+
if (labels.Length != comboBoxes.Length || labels.Length != checkBoxes.Length) throw new Exception("Error in CycleBeginningForm()");
textBoxesCount = labels.Length;
@@ -70,6 +78,7 @@ namespace TBF.BenchControl.DataEntry.Standard12
public CycleBeginningForm(Results.Entities.WaterMeter[] waterMeters, bool sensusExtensions)
: this()
{
+ this.WaterMeters = waterMeters;
this.WaterMetersCount = waterMeters.Length;
this.SensusExtensions = sensusExtensions;
SNText = new string[WaterMetersCount];
@@ -77,6 +86,8 @@ namespace TBF.BenchControl.DataEntry.Standard12
ShuffleTextBoxes(Config.Data.WMsCount, Config.Data.LineSize);
+ foreach (var wm in WaterMeters) if (wm != null) wm.Passed = wm.PassedFromTests();
+
Height = 147 + WaterMetersCount * 45; /// Adjust the window size
if (sensusExtensions)
@@ -87,11 +98,11 @@ namespace TBF.BenchControl.DataEntry.Standard12
{
/// Hide extensionsGroupBox, etc.
int delta = extensionsGroupBox.Width + 45;
- extensionsGroupBox.Visible = false;
- autoSNButton.Visible = false;
okButton.Left -= delta;
clearButton.Left -= delta;
Width -= delta;
+ extensionsGroupBox.Visible = false;
+ autoSNButton.Visible = false;
}
}
@@ -116,7 +127,8 @@ namespace TBF.BenchControl.DataEntry.Standard12
labels[dest] = labels[l * lineSize + l * gap + i];
comboBoxes[dest] = comboBoxes[l * lineSize + l * gap + i];
checkBoxes[dest] = checkBoxes[l * lineSize + l * gap + i];
- dest++;
+ pictureBoxes[dest] = pictureBoxes[l * lineSize + l * gap + i];
+ dest++;
}
}
textBoxesCount = wmsCount;
@@ -135,15 +147,17 @@ namespace TBF.BenchControl.DataEntry.Standard12
{
comboBoxes[i].Items.Add(Program.LocalSettings.LastSNTexts[i]);
}
- labels[i].Visible = comboBoxes[i].Visible = checkBoxes[i].Visible = true;
+ labels[i].Visible = comboBoxes[i].Visible = checkBoxes[i].Visible = pictureBoxes[i].Visible = true;
enabledComboBoxes.Add(comboBoxes[i]);
}
+ UpdateIcons();
+
if (SensusExtensions)
{
- textBox1.Text = (Program.LocalSettings.LastText1 == null) ? string.Empty : Program.LocalSettings.LastText1;
- textBox2.Text = (Program.LocalSettings.LastText2 == null) ? string.Empty : Program.LocalSettings.LastText2;
- textBox3.Text = (Program.LocalSettings.LastText3 == null) ? string.Empty : Program.LocalSettings.LastText3;
+ idNumberTextBox.Text = (Program.LocalSettings.LastText1 == null) ? string.Empty : Program.LocalSettings.LastText1;
+ snPrefixTextBox.Text = (Program.LocalSettings.LastText2 == null) ? string.Empty : Program.LocalSettings.LastText2;
+ snSuffixTextBox.Text = (Program.LocalSettings.LastText3 == null) ? string.Empty : Program.LocalSettings.LastText3;
remarkTextBox.Text = (Program.LocalSettings.LastRemark == null) ? string.Empty : Program.LocalSettings.LastRemark;
}
}
@@ -177,6 +191,36 @@ namespace TBF.BenchControl.DataEntry.Standard12
}
}
+ void UpdateIcons()
+ {
+ Image imgP = Properties.Resources.TestPassedImage; /// Passed
+ Image imgF = Properties.Resources.TestFailedImage; /// Failed
+ Image imgP2 = Properties.Resources.TestPassedImage2; /// Passed after re-work
+ Image imgF2 = Properties.Resources.TestFailedImage2; /// Failed after re-work
+
+ int nrRedone = 0;
+ if (SensusExtensions)
+ {
+ if (!int.TryParse(ext1TextBox.Text, out nrRedone) || nrRedone < 0 || nrRedone > WaterMetersCount)
+ {
+ nrRedone = 0;
+ }
+ }
+
+ for (int i = 0; i < WaterMetersCount; i++)
+ {
+ Results.Entities.WaterMeter wm = WaterMeters[i];
+ if (wm == null)
+ {
+ checkBoxes[i].Checked = true;
+ }
+ else
+ {
+ pictureBoxes[i].Image = (WaterMetersCount - i > nrRedone) ? (wm.Passed ? imgP : imgF) : (wm.Passed ? imgP2 : imgF2);
+ }
+ }
+ }
+
private void okButton_Click(object sender, EventArgs e)
{
PurchaseOrder = orderComboBox.Text;
@@ -197,10 +241,43 @@ namespace TBF.BenchControl.DataEntry.Standard12
if (SensusExtensions)
{
- Program.LocalSettings.LastText1 = IDNumber = string.IsNullOrEmpty(textBox1.Text) ? null : textBox1.Text;
- Program.LocalSettings.LastText2 = BeforeSN = string.IsNullOrEmpty(textBox2.Text) ? null : textBox2.Text;
- Program.LocalSettings.LastText3 = AfterSN = string.IsNullOrEmpty(textBox3.Text) ? null : textBox3.Text;
+ int nrRedone = 0;
+ if (SensusExtensions)
+ {
+ if (!int.TryParse(ext1TextBox.Text, out nrRedone) || nrRedone < 0 || nrRedone > WaterMetersCount)
+ {
+ nrRedone = 0;
+ }
+ }
+
+ Program.LocalSettings.LastText1 = IdNumber = string.IsNullOrEmpty(idNumberTextBox.Text) ? null : idNumberTextBox.Text;
+ Program.LocalSettings.LastText2 = SnPrefix = string.IsNullOrEmpty(snPrefixTextBox.Text) ? null : snPrefixTextBox.Text;
+ Program.LocalSettings.LastText3 = SnSuffix = string.IsNullOrEmpty(snSuffixTextBox.Text) ? null : snSuffixTextBox.Text;
Program.LocalSettings.LastRemark = Remark = string.IsNullOrEmpty(remarkTextBox.Text) ? null : remarkTextBox.Text;
+
+ for (int i = 0; i < WaterMetersCount; i++)
+ {
+ Results.Entities.WaterMeter wm = WaterMeters[i];
+ {
+ if (wm != null)
+ {
+ bool pressureTestPassed = false;
+ foreach (var mtr in wm.MeterTestRslts)
+ {
+ if ((mtr.Method().Equals("PMax-Test") || mtr.Method().Equals("Leak-Test")) && mtr.Passed)
+ {
+ pressureTestPassed = true;
+ break;
+ }
+ }
+ wm.WaterMeterData.Text1 = IdNumber;
+ wm.WaterMeterData.Text2 = SnPrefix;
+ wm.WaterMeterData.Text3 = SnSuffix;
+ wm.Batch.Remark = Remark;
+ wm.ResultCode = 32 + (wm.Passed ? 0 : 1) + (pressureTestPassed ? 64 : 0) + ((WaterMetersCount - i <= nrRedone) ? 128 : 0);
+ }
+ }
+ }
}
completed = true;
@@ -402,7 +479,37 @@ namespace TBF.BenchControl.DataEntry.Standard12
private void autoSNButton_Click(object sender, EventArgs e)
{
+ try
+ {
+ bool snFound = false;
+ int sn = 1;
+ for (int i = 0; i < textBoxesCount; i++)
+ {
+ if (WaterMeters[i].Passed)
+ {
+ if (!snFound)
+ {
+ sn = int.Parse(comboBoxes[i].Text); /// S/N from the first combo box
+ snFound = true;
+ }
+ else
+ {
+ sn++;
+ comboBoxes[i].Text = sn.ToString(); /// Update combo boxes of other 'good' water meters
+ }
+ }
+ }
+ }
+ catch
+ {
+ /// Don't do anything if int.Parse fails
+ }
+ }
+
+ private void ext1TextBox_TextChanged(object sender, EventArgs e)
+ {
+ UpdateIcons();
}
}
}
diff --git a/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.resx b/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.resx
index 39923d0a0..9702d0927 100644
--- a/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.resx
+++ b/TestBenchFramework/BenchControl/DataEntry/Standard12/CycleBeginningForm.resx
@@ -122,7 +122,7 @@
Verdana, 14.25pt
- 836, 24
+ 886, 24
140, 54
@@ -144,7 +144,7 @@
$this
- 40
+ 52
90, 31
@@ -174,7 +174,7 @@
28, 12
- 397, 82
+ 447, 82
0
@@ -192,7 +192,7 @@
$this
- 39
+ 51
Verdana, 14.25pt
@@ -202,7 +202,7 @@
NoControl
- 836, 124
+ 886, 124
140, 54
@@ -223,7 +223,7 @@
$this
- 38
+ 50
True
@@ -256,7 +256,7 @@
$this
- 37
+ 49
Verdana, 14.25pt
@@ -283,13 +283,13 @@
$this
- 36
+ 48
True
- 410, 135
+ 460, 135
15, 14
@@ -310,7 +310,7 @@
$this
- 35
+ 47
True
@@ -319,7 +319,7 @@
NoControl
- 410, 179
+ 460, 179
15, 14
@@ -340,7 +340,7 @@
$this
- 32
+ 44
Verdana, 14.25pt
@@ -367,7 +367,7 @@
$this
- 33
+ 45
True
@@ -403,7 +403,7 @@
$this
- 34
+ 46
True
@@ -412,7 +412,7 @@
NoControl
- 410, 223
+ 460, 223
15, 14
@@ -433,7 +433,7 @@
$this
- 29
+ 41
Verdana, 14.25pt
@@ -460,7 +460,7 @@
$this
- 30
+ 42
True
@@ -496,7 +496,7 @@
$this
- 31
+ 43
True
@@ -505,7 +505,7 @@
NoControl
- 410, 267
+ 460, 267
15, 14
@@ -526,7 +526,7 @@
$this
- 26
+ 38
Verdana, 14.25pt
@@ -553,7 +553,7 @@
$this
- 27
+ 39
True
@@ -589,7 +589,7 @@
$this
- 28
+ 40
True
@@ -598,7 +598,7 @@
NoControl
- 410, 311
+ 460, 311
15, 14
@@ -619,7 +619,7 @@
$this
- 23
+ 35
Verdana, 14.25pt
@@ -646,7 +646,7 @@
$this
- 24
+ 36
True
@@ -682,7 +682,7 @@
$this
- 25
+ 37
True
@@ -691,7 +691,7 @@
NoControl
- 410, 355
+ 460, 355
15, 14
@@ -712,7 +712,7 @@
$this
- 20
+ 32
Verdana, 14.25pt
@@ -739,7 +739,7 @@
$this
- 21
+ 33
True
@@ -775,7 +775,7 @@
$this
- 22
+ 34
True
@@ -784,7 +784,7 @@
NoControl
- 410, 399
+ 460, 399
15, 14
@@ -805,7 +805,7 @@
$this
- 17
+ 29
Verdana, 14.25pt
@@ -832,7 +832,7 @@
$this
- 18
+ 30
True
@@ -868,7 +868,7 @@
$this
- 19
+ 31
True
@@ -877,7 +877,7 @@
NoControl
- 410, 443
+ 460, 443
15, 14
@@ -898,7 +898,7 @@
$this
- 14
+ 26
Verdana, 14.25pt
@@ -925,7 +925,7 @@
$this
- 15
+ 27
True
@@ -961,7 +961,7 @@
$this
- 16
+ 28
True
@@ -970,7 +970,7 @@
NoControl
- 410, 487
+ 460, 487
15, 14
@@ -991,7 +991,7 @@
$this
- 11
+ 23
Verdana, 14.25pt
@@ -1018,7 +1018,7 @@
$this
- 12
+ 24
True
@@ -1054,7 +1054,7 @@
$this
- 13
+ 25
True
@@ -1063,7 +1063,7 @@
NoControl
- 410, 531
+ 460, 531
15, 14
@@ -1084,7 +1084,7 @@
$this
- 8
+ 20
Verdana, 14.25pt
@@ -1111,7 +1111,7 @@
$this
- 9
+ 21
True
@@ -1147,7 +1147,7 @@
$this
- 10
+ 22
True
@@ -1156,7 +1156,7 @@
NoControl
- 410, 575
+ 460, 575
15, 14
@@ -1177,7 +1177,7 @@
$this
- 5
+ 17
Verdana, 14.25pt
@@ -1204,7 +1204,7 @@
$this
- 6
+ 18
True
@@ -1240,7 +1240,7 @@
$this
- 7
+ 19
True
@@ -1249,7 +1249,7 @@
NoControl
- 410, 619
+ 460, 619
15, 14
@@ -1270,7 +1270,7 @@
$this
- 2
+ 14
Verdana, 14.25pt
@@ -1297,7 +1297,7 @@
$this
- 3
+ 15
True
@@ -1333,7 +1333,7 @@
$this
- 4
+ 16
23, 502
@@ -1386,25 +1386,25 @@
1
-
+
23, 415
-
+
274, 31
-
+
13
-
- textBox3
+
+ snSuffixTextBox
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
extensionsGroupBox
-
+
2
@@ -1437,25 +1437,25 @@
3
-
+
23, 326
-
+
274, 31
-
+
11
-
- textBox2
+
+ snPrefixTextBox
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
extensionsGroupBox
-
+
4
@@ -1488,25 +1488,25 @@
5
-
+
23, 245
-
+
274, 31
-
+
9
-
- textBox1
+
+ idNumberTextBox
-
+
System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
extensionsGroupBox
-
+
6
@@ -1741,7 +1741,7 @@
Verdana, 14.25pt
- 470, 12
+ 520, 12
322, 551
@@ -1762,7 +1762,7 @@
$this
- 1
+ 13
Verdana, 14.25pt
@@ -1771,7 +1771,7 @@
NoControl
- 836, 189
+ 886, 189
140, 54
@@ -1792,6 +1792,327 @@
$this
+ 12
+
+
+ 404, 124
+
+
+ 32, 32
+
+
+ 47
+
+
+ False
+
+
+ pictureBox1
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 11
+
+
+ NoControl
+
+
+ 404, 168
+
+
+ 32, 32
+
+
+ 48
+
+
+ False
+
+
+ pictureBox2
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 10
+
+
+ NoControl
+
+
+ 404, 212
+
+
+ 32, 32
+
+
+ 49
+
+
+ False
+
+
+ pictureBox3
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 9
+
+
+ NoControl
+
+
+ 404, 256
+
+
+ 32, 32
+
+
+ 50
+
+
+ False
+
+
+ pictureBox4
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 8
+
+
+ NoControl
+
+
+ 404, 300
+
+
+ 32, 32
+
+
+ 51
+
+
+ False
+
+
+ pictureBox5
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 7
+
+
+ NoControl
+
+
+ 404, 344
+
+
+ 32, 32
+
+
+ 52
+
+
+ False
+
+
+ pictureBox6
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 6
+
+
+ NoControl
+
+
+ 404, 388
+
+
+ 32, 32
+
+
+ 53
+
+
+ False
+
+
+ pictureBox7
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 5
+
+
+ NoControl
+
+
+ 404, 432
+
+
+ 32, 32
+
+
+ 54
+
+
+ False
+
+
+ pictureBox8
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 4
+
+
+ NoControl
+
+
+ 404, 476
+
+
+ 32, 32
+
+
+ 55
+
+
+ False
+
+
+ pictureBox9
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 3
+
+
+ NoControl
+
+
+ 404, 520
+
+
+ 32, 32
+
+
+ 56
+
+
+ False
+
+
+ pictureBox10
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 2
+
+
+ NoControl
+
+
+ 404, 564
+
+
+ 32, 32
+
+
+ 57
+
+
+ False
+
+
+ pictureBox11
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 1
+
+
+ NoControl
+
+
+ 404, 608
+
+
+ 32, 32
+
+
+ 58
+
+
+ False
+
+
+ pictureBox12
+
+
+ System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
0
@@ -1804,7 +2125,7 @@
True
- 1017, 651
+ 1067, 651
Batch data
diff --git a/TestBenchFramework/BenchControl/DataEntry/Standard12/EntryForm.cs b/TestBenchFramework/BenchControl/DataEntry/Standard12/EntryForm.cs
index 28ca78269..9ea98b40f 100644
--- a/TestBenchFramework/BenchControl/DataEntry/Standard12/EntryForm.cs
+++ b/TestBenchFramework/BenchControl/DataEntry/Standard12/EntryForm.cs
@@ -40,14 +40,6 @@ namespace TBF.BenchControl.DataEntry.Standard12
string[] wmStartStateStr;
- ///
- /// Sensus extensions
- ///
- public string IDNumber;
- public string BeforeSN;
- public string AfterSN;
- public string Remark;
-
System.Windows.Forms.Form modelessDlg;
@@ -210,10 +202,6 @@ namespace TBF.BenchControl.DataEntry.Standard12
serialNr[i] = waterMeters[i].SerialNr = dlg.SNText[i];
disabled[i] = waterMeters[i].Disabled = dlg.Disabled[i];
}
- IDNumber = dlg.IDNumber;
- BeforeSN = dlg.BeforeSN;
- AfterSN = dlg.AfterSN;
- Remark = dlg.Remark;
}
}
}
@@ -281,21 +269,9 @@ namespace TBF.BenchControl.DataEntry.Standard12
/// Test results to be updated with the information
public void UpdateTestResults(Results.BatchResults batchResults)
{
- batchResults.Batch.Remark = Remark;
-
foreach (var wm in batchResults.WaterMeters)
{
- if (wm != null && !wm.Disabled)
- {
- wm.PurchaseOrder = PurchaseOrder;
-
- if (entryFormCfg.SensusExtensions)
- {
- wm.WaterMeterData.Text1 = IDNumber;
- wm.WaterMeterData.Text2 = BeforeSN;
- wm.WaterMeterData.Text3 = AfterSN;
- }
- }
+ if (wm != null && !wm.Disabled) wm.PurchaseOrder = PurchaseOrder;
}
}
}
diff --git a/TestBenchFramework/Properties/Resources.Designer.cs b/TestBenchFramework/Properties/Resources.Designer.cs
index c7bf3ebac..3275f57a1 100644
--- a/TestBenchFramework/Properties/Resources.Designer.cs
+++ b/TestBenchFramework/Properties/Resources.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.18052
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -90,6 +90,16 @@ namespace TBF.Properties {
}
}
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap TestFailedImage2 {
+ get {
+ object obj = ResourceManager.GetObject("TestFailedImage2", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
@@ -109,5 +119,15 @@ namespace TBF.Properties {
return ((System.Drawing.Bitmap)(obj));
}
}
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap TestPassedImage2 {
+ get {
+ object obj = ResourceManager.GetObject("TestPassedImage2", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
}
}
diff --git a/TestBenchFramework/Properties/Resources.resx b/TestBenchFramework/Properties/Resources.resx
index 561300c8d..82f5750b6 100644
--- a/TestBenchFramework/Properties/Resources.resx
+++ b/TestBenchFramework/Properties/Resources.resx
@@ -133,4 +133,10 @@
..\Resources\Headpic.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\TestFailedImage2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\TestPassedImage2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/TestBenchFramework/Resources/TestFailedImage2.png b/TestBenchFramework/Resources/TestFailedImage2.png
new file mode 100644
index 000000000..332a071e4
Binary files /dev/null and b/TestBenchFramework/Resources/TestFailedImage2.png differ
diff --git a/TestBenchFramework/Resources/TestPassedImage2.png b/TestBenchFramework/Resources/TestPassedImage2.png
new file mode 100644
index 000000000..1a6ef0980
Binary files /dev/null and b/TestBenchFramework/Resources/TestPassedImage2.png differ
diff --git a/TestBenchFramework/TBF.csproj b/TestBenchFramework/TBF.csproj
index 6633ae681..dff5a0e61 100644
--- a/TestBenchFramework/TBF.csproj
+++ b/TestBenchFramework/TBF.csproj
@@ -1991,6 +1991,8 @@
+
+
Always