C2019-025_Ability-to-Toggle-Replace-Words
This commit is contained in:
@@ -1654,14 +1654,6 @@ namespace VEPROMS.CSLA.Library
|
||||
return LazyLoad(ref _ProcAppl, "@ProcAppl");
|
||||
}
|
||||
}
|
||||
//private ShwRplWdsData _ShwRplWdsData;
|
||||
//public ShwRplWdsData ShwRplWdsData
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return ShwRplWdsData == null ? ShwRplWdsData = new ShwRplWdsData(SelectSingleNode("ShwRplWdsData")) : ShwRplWdsData;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -2181,71 +2173,6 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
//#region ShwRplWdsData
|
||||
//[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
//public class ShwRplWdsData : vlnFormatItem
|
||||
//{
|
||||
// public ShwRplWdsData(XmlNode xmlNode) : base(xmlNode) { }
|
||||
// private ShwRplWdsList _ShwRplWdsList = null;
|
||||
// public ShwRplWdsList ShwRplWdsList
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// if (_ShwRplWdsList != null) return _ShwRplWdsList;
|
||||
|
||||
// // Get a list of checkoffs that should be included:
|
||||
// // if !UseCheckOffUCF (Baseall has it as false. User can change setting in UCF to true)
|
||||
// // if !IgnoreUCF, i.e. use UCF changes, return original lists with only active items (Inactive = false)
|
||||
// // if IgnoreUCF, return original lists with all items
|
||||
// // if UseCheckOffUCF is true use the merged lists from current format and baseall.xml and
|
||||
// // do the same processing for IgnoreUCF described above.
|
||||
|
||||
// // UseCheckOffUCF is false or there is no FormatConfig (UCF) data:
|
||||
// //FormatConfig fc = PlantFormat.GetFormatConfig(MyFormat);
|
||||
// //if (!MyFormat.PlantFormat.FormatData.ProcData.CheckOffUCF || fc==null)
|
||||
// //{
|
||||
// // _ShwRplWdsList = new ShwRplWdsList(SelectNodes("ShwRplWdsList/ShwRplWds"), MyFormat);
|
||||
// // // B2019-100: If Ignoring the UCF data, just return the entire list. Also, return entire list if there is no UCF data (fc == null)
|
||||
// // if (PlantFormat.IgnoreUCF || fc == null) return _ShwRplWdsList;
|
||||
// // // If not ignoring UCF settings, only return those that are active
|
||||
// // foreach (FormatConfig.ShwRplWds co in fc.PlantFormat.FormatData.ShwRplWdsList)
|
||||
// // {
|
||||
// // foreach (CheckOff coo in _ShwRplWdsList)
|
||||
// // {
|
||||
// // if ((int)coo.Index == Convert.ToInt32(co.Index) && !(bool)co.Active)
|
||||
// // {
|
||||
// // _ShwRplWdsList.Remove(coo);
|
||||
// // break;
|
||||
// // }
|
||||
// // }
|
||||
// // }
|
||||
// // return _ShwRplWdsList;
|
||||
// //}
|
||||
// // UseCheckOfffUCF is true:
|
||||
// // merge the checkoff list from the current format and the checkoff list from the base format
|
||||
// FormatConfig fc = PlantFormat.GetFormatConfig(MyFormat);
|
||||
// _ShwRplWdsList = new ShwRplWdsList(SelectNodes("ShwRplWdsList/ShwRplWds"), MyFormat);
|
||||
// ShwRplWdsList retlist2 = new ShwRplWdsList(SelectNodes("../ShwRplWdsList/ShwRplWds"), MyFormat);
|
||||
// if (retlist2 != null && retlist2.Count > 0) foreach (ShwRplWds co in retlist2) _ShwRplWdsList.Add(co);
|
||||
// if (PlantFormat.IgnoreUCF) return _ShwRplWdsList;
|
||||
|
||||
// // if applying UCF, then remove those that are inactive:
|
||||
// foreach (FormatConfig.ShwRplWds co in fc.PlantFormat.FormatData.ShwRplWdsList)
|
||||
// {
|
||||
// foreach (ShwRplWds coo in _ShwRplWdsList)
|
||||
// {
|
||||
// if ((int)coo.Index == Convert.ToInt32(co.Index) && !(bool)co.Active)
|
||||
// {
|
||||
// _ShwRplWdsList.Remove(coo);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// return _ShwRplWdsList;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//#endregion
|
||||
|
||||
#endregion
|
||||
#region CheckOff
|
||||
@@ -2359,6 +2286,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
#endregion
|
||||
#region ShwRplWds
|
||||
// C2029-025 Show or hide replace words. Can highlight replace words in editor.
|
||||
public class ShwRplWds : vlnFormatItem, IVlnIndexedFormatItem
|
||||
{
|
||||
public ShwRplWds(XmlNode xmlNode) : base(xmlNode) { }
|
||||
@@ -2416,20 +2344,6 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
}
|
||||
//public class ShwRplWdsList : vlnIndexedFormatList<ShwRplWds>
|
||||
//{
|
||||
// public ShwRplWdsList(XmlNodeList xmlNodeList, IFormatOrFormatInfo myFormat) : base(xmlNodeList, myFormat) { }
|
||||
// public override vlnIndexedFormatList<ShwRplWds> InheritedList
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// IFormatOrFormatInfo parentFormat = MyFormat.MyIParent;
|
||||
// if (parentFormat != null)
|
||||
// return parentFormat.PlantFormat.FormatData.ProcData.ShwRplWds;
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
#endregion
|
||||
#region CheckOffHeader
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
|
Reference in New Issue
Block a user