/*================================================================================================================================== * Private Methods *=================================================================================================================================*/ private questStatus initialize() { // Initialize questStatus status = null; try { _dbFilterProcedureParametersMgr = new DbFilterProcedureParametersMgr(this.UserSession); } catch (System.Exception ex) { status = new questStatus(Severity.Fatal, String.Format("EXCEPTION: {0}.{1}: {2}", this.GetType().ToString(), MethodInfo.GetCurrentMethod().Name, ex.Message)); throw new System.Exception(status.Message, ex); } return(new questStatus(Severity.Success)); }
// // Filter Procedure Utility Routines // public questStatus GetFilterProcedure(BulkUpdateRequest bulkUpdateRequest, string Action, out FilterProcedure filterProcedure) { // Initialize questStatus status = null; filterProcedure = null; // Get the filter procedures. FilterId filterId = new FilterId(bulkUpdateRequest.FilterId); List <FilterProcedure> filterProcedureList = null; DbFilterProceduresMgr dbFilterProceduresMgr = new DbFilterProceduresMgr(this.UserSession); status = dbFilterProceduresMgr.Read(filterId, out filterProcedureList); if (!questStatusDef.IsSuccess(status)) { return(status); } // Determine if given action exists. FilterProcedure UPDATEsproc = filterProcedureList.Find(delegate(FilterProcedure fp) { return(fp.Action == Action); }); if (UPDATEsproc == null) { return(new questStatus(Severity.Warning, String.Format("No {0} filter procedure", Action))); } // Get parameters FilterProcedureId filterProcedureId = new FilterProcedureId(UPDATEsproc.Id); List <FilterProcedureParameter> filterProcedureParameterList = null; DbFilterProcedureParametersMgr dbFilterProcedureParametersMgr = new DbFilterProcedureParametersMgr(this.UserSession); status = dbFilterProcedureParametersMgr.Read(filterProcedureId, out filterProcedureParameterList); if (!questStatusDef.IsSuccess(status)) { return(status); } // Return filter procedure with parameters. UPDATEsproc.ParameterList = filterProcedureParameterList; filterProcedure = UPDATEsproc; return(new questStatus(Severity.Success)); }