public override void Execute() { try { IBasePlanManager basePlanManager = ManagerFactory.GetBasePlanManager(); _activePlans = basePlanManager.GetActivePlans(); AddMessage("Get active plans successed", MessageType.Information); } catch (Exception ex) { AddMessage(ex.Message, MessageType.Error); } }
public static IBasePlanManager GetBasePlanManager() { IBasePlanManager result = null; switch (DalEngine) { case SQL: result = BasePlanManager.Instance; break; default: break; } return(result); }
public override void Execute() { IBasePlanManager basePlanManager = ManagerFactory.GetBasePlanManager(); _allPlans = basePlanManager.GetAllPlans(); }