Specific changes to Byron/Braidwood fomat files

Added default parameter to GetCombinedSlaveValue method and revised calls to method to utilize default parameter
Added code to convert xF8 to degree symbol
Revised CheckNoteCautionTab to handle when step format data calls for separate boxes for notes and cautions
Added BoxLeftAdj property to support Braidwood boxed items
This commit is contained in:
Rich
2014-01-17 16:10:22 +00:00
parent eff27f334e
commit 7793bd2397
5 changed files with 58 additions and 15 deletions

View File

@@ -1017,7 +1017,7 @@ namespace VEPROMS.CSLA.Library
{
get
{
string s = GetCombinedSlaveValue("ProcedureNumber") ?? _Xp["Unit", "ProcedureNumber"];// get the saved value
string s = GetCombinedSlaveValue("ProcedureNumber", null) ?? _Xp["Unit", "ProcedureNumber"];// get the saved value
if (SelectedSlave > 0)
s = _Xp["Slave[@index='" + SelectedSlave.ToString() + "']", "ProcedureNumber"];
return s;
@@ -1039,7 +1039,7 @@ namespace VEPROMS.CSLA.Library
{
get
{
string s = GetCombinedSlaveValue("SetName") ?? _Xp["ProcedureSet", "Name"];// get the saved value
string s = GetCombinedSlaveValue("SetName", null) ?? _Xp["ProcedureSet", "Name"];// get the saved value
if (SelectedSlave > 0)
s = _Xp["Slave[@index='" + SelectedSlave.ToString() + "']", "SetName"];
return s;
@@ -1061,7 +1061,7 @@ namespace VEPROMS.CSLA.Library
{
get
{
string s = GetCombinedSlaveValue("SetID") ?? _Xp["ProcedureSet", "ID"];// get the saved value
string s = GetCombinedSlaveValue("SetID", null) ?? _Xp["ProcedureSet", "ID"];// get the saved value
if (SelectedSlave > 0)
s = _Xp["Slave[@index='" + SelectedSlave.ToString() + "']", "SetID"];
return s;
@@ -1640,7 +1640,7 @@ OnPropertyChanged("Default_BkColor");
}
}
//added by jcb to fix master issue byron/braidwood
private string GetCombinedSlaveValue(string item)
private string GetCombinedSlaveValue(string item, string defaultValue)
{
if (MaxSlaveIndex > 0)
{
@@ -1655,7 +1655,11 @@ OnPropertyChanged("Default_BkColor");
}
return s;
}
return null;
return defaultValue;
}
private string GetCombinedSlaveValue(string item)
{
return GetCombinedSlaveValue(item, "0");
}
//end added by jcb to fix master issue byron/braidwood
}

View File

@@ -206,6 +206,7 @@ namespace VEPROMS.CSLA.Library
{
string orig = s2;
s2 = s2.Replace("`", @"\'b0"); // convert backquote to degree - left over from DOS days.
s2 = s2.Replace("\xf8", @"\'b0"); // convert \xf8 to degree.
s2 = s2.Replace("\xa0", @"\u160?"); // hardspace
s2 = s2.Replace("\xb0", @"\'b0"); // degree
s2 = s2.Replace("\x7f", @"\u916?"); // delta