Added checkboxes for Placekeepers and Phonelist
Supporting logic to save/retrieve Placekeeper and Phonelist information Supporting logic to save/retrieve Placekeeper information Added Placekeeper logic Null reference fix Logic to get PrintPhoneList flag Rearranged the panel and added Placekeeper checkbox
This commit is contained in:
@@ -631,6 +631,28 @@ namespace VEPROMS.CSLA.Library
|
||||
(MyDocStyle.StructureStyle.Style & E_DocStructStyle.TableOfContents) == E_DocStructStyle.TableOfContents);
|
||||
}
|
||||
}
|
||||
public bool IsPlacekeeperSection
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!IsSection) return false;
|
||||
if (MyDocStyle.StructureStyle.Style == null) return false;
|
||||
return ((ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoPlacekeeper) == E_PurchaseOptions.AutoPlacekeeper &&
|
||||
(MyDocStyle.StructureStyle.Style & E_DocStructStyle.Placekeeper) == E_DocStructStyle.Placekeeper);
|
||||
}
|
||||
}
|
||||
public bool CanSetPlacekeeper
|
||||
{
|
||||
get
|
||||
{
|
||||
SectionConfig scfg = (SectionConfig)MyActiveSection.MyConfig;
|
||||
if (MyDocStyle.StructureStyle.Style == null || scfg == null) return false;
|
||||
bool PlacekeepOption = ((ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoPlacekeeper) == E_PurchaseOptions.AutoPlacekeeper)
|
||||
&& scfg.Section_Placekeeper.Equals("Y");
|
||||
//return (PlacekeepOption && IsHigh);
|
||||
return (PlacekeepOption);
|
||||
}
|
||||
}
|
||||
public bool MoreThanOneStepSection()
|
||||
{
|
||||
if (IsProcedure || IsSection) return false;
|
||||
|
@@ -173,8 +173,8 @@ namespace VEPROMS.CSLA.Library
|
||||
private Dictionary<string, ROFSTLookup> dicLookups = new Dictionary<string, ROFSTLookup>();
|
||||
public ROFSTLookup GetROFSTLookup(DocVersionInfo dvi)
|
||||
{
|
||||
string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave);
|
||||
if (!dicLookups.ContainsKey(key))
|
||||
//string key = string.Format("{0}.{1}",dvi.DocVersionAssociations[0].ROFstID,dvi.DocVersionConfig.SelectedSlave);
|
||||
string key = string.Format("{0}.{1}.{2}", ROFstID, dvi.DocVersionConfig.MaxSlaveIndex, dvi.DocVersionConfig.SelectedSlave); if (!dicLookups.ContainsKey(key))
|
||||
dicLookups.Add(key, new ROFSTLookup(this, dvi));
|
||||
return dicLookups[key];
|
||||
}
|
||||
|
Reference in New Issue
Block a user