public override void AfterConstruction() { base.AfterConstruction(); var currentUser = StaticHelpers.GetCurrentUser(Session); User = currentUser; }
public static PivotGridLoadedLayout FindLoadedLayout(Session session, UIPlatform platform, string typeName) { var currentUser = StaticHelpers.GetCurrentUser(session); CriteriaOperator criteria = null; if (currentUser == null) { criteria = CriteriaOperator.Parse( "UIPlatform = ? And User Is Null And TypeName = ?", platform, typeName); } else { criteria = CriteriaOperator.Parse( "UIPlatform = ? And User = ? And TypeName = ?", platform, currentUser, typeName); } var loadedLayoutObj = session.FindObject <PivotGridLoadedLayout>(criteria); return(loadedLayoutObj); }