Added method to retrieve ROFst based upon RODBID

Added property to get DocVersion for a ProcedureInfo
Added method to check to see if a particular RO database is a setpoint database
This commit is contained in:
Rich 2010-10-15 21:13:52 +00:00
parent 9690f44dbb
commit efdd461edf
3 changed files with 18 additions and 1 deletions

View File

@ -428,6 +428,15 @@ namespace VEPROMS.CSLA.Library
}
#endregion
public ROFstInfo GetROFst(int rodbid)
{
foreach (AssociationInfo dva in DocVersionAssociations)
{
if (dva.MyROFst.RODbID == rodbid)
return dva.MyROFst;
}
return null;
}
}
public enum VersionTypeEnum : int
{

View File

@ -1634,7 +1634,6 @@ namespace VEPROMS.CSLA.Library
return true;
}
}
public ProcedureInfo MyProcedure
{
get
@ -2821,6 +2820,10 @@ namespace VEPROMS.CSLA.Library
{
get { return ProcedureConfig ; }
}
public DocVersionInfo MyDocVersion
{
get { return ActiveParent as DocVersionInfo; }
}
}
#endregion
#region Procedure

View File

@ -323,5 +323,10 @@ namespace VEPROMS.CSLA.Library
}
#endregion
#endregion
public bool IsSetpointDB(int id)
{
ROFSTLookup.rodbi[] dbs = ROFSTLookup.GetRODatabaseList();
return dbs[id].dbiAP.StartsWith("SP");
}
}
}