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:
parent
9690f44dbb
commit
efdd461edf
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user