Compare commits

...
5 Commits
2 changed files with 24 additions and 14 deletions
@@ -1478,11 +1478,15 @@ namespace VEPROMS
{ {
ProcedureConfig pc = procedureInfo.MyConfig as ProcedureConfig; ProcedureConfig pc = procedureInfo.MyConfig as ProcedureConfig;
if (pc == null) return; if (pc == null) return;
pc.SelectedSlave = selectedSlave;
//C2026-015 set overall change bar date
pc.Print_ChangeBarDate = dts.ToString("MM/dd/yyyy HH:mm:ss");
pc.SelectedSlave = selectedSlave;
pc.Print_Rev = revNumber; pc.Print_Rev = revNumber;
//AppRevDate Change //AppRevDate Change
pc.Print_RevDate = revDate.ToString("MM/dd/yyyy"); pc.Print_RevDate = revDate.ToString("MM/dd/yyyy");
pc.Print_ChangeBarDate = dts.ToString("MM/dd/yyyy HH:mm:ss"); pc.Print_ChangeBarDate = dts.ToString("MM/dd/yyyy HH:mm:ss"); //this is needed to set the changebar date for an indeividual unit also
using (Item itm = Item.Get(procedureInfo.ItemID)) using (Item itm = Item.Get(procedureInfo.ItemID))
{ {
itm.MyContent.Config = pc.ToString(); itm.MyContent.Config = pc.ToString();
@@ -69,13 +69,16 @@ namespace Volian.Controls.Library
{ {
MyItemInfo = _MyDisplayTabItem.MyItemInfo; MyItemInfo = _MyDisplayTabItem.MyItemInfo;
} }
if (MyItemInfo.IsRNOPart == true) if (MyItemInfo != null)
{ {
btnApplicabilitychg.Enabled = false; if (MyItemInfo.IsRNOPart == true) // Check if step is an RNO disable "Set All To Level" button.
} {
else btnApplicabilitychg.Enabled = false;
{ }
btnApplicabilitychg.Enabled = true; else
{
btnApplicabilitychg.Enabled = true;
}
} }
} }
} }
@@ -402,13 +405,16 @@ namespace Volian.Controls.Library
if (_MyItemInfo != null) if (_MyItemInfo != null)
{ {
if (this.Visible == false) return; if (this.Visible == false) return;
if (_MyItemInfo.IsRNOPart == true) // Check if step is an RNO disable "Set All To Level" button. if (MyItemInfo != null)
{ {
btnApplicabilitychg.Enabled = false; if (MyItemInfo.IsRNOPart == true) // Check if step is an RNO disable "Set All To Level" button.
} {
else btnApplicabilitychg.Enabled = false;
{ }
btnApplicabilitychg.Enabled = true; else
{
btnApplicabilitychg.Enabled = true;
}
} }
IItemConfig cfg = _MyItemInfo.MyConfig as IItemConfig; IItemConfig cfg = _MyItemInfo.MyConfig as IItemConfig;
List<int> apples = cfg.MasterSlave_Applicability.GetFlags(); List<int> apples = cfg.MasterSlave_Applicability.GetFlags();