public static int GetReclamationsCount( /*ReclamationTracking.ReclamationType?*/int reclamationType, DateTime? reclamationDateBegin, DateTime? reclamationDateEnd, int sort, int startIndex, int size) { //if ( CurrentReclamationsCount == null ) //{ var filter = new ReclamationTracking.ReclamationFilter(); if ( reclamationType != -1 ) { filter.ReclamationType = (ReclamationTracking.ReclamationType)reclamationType; } filter.ReclamationDateBegin = reclamationDateBegin; filter.ReclamationDateEnd = reclamationDateEnd; CurrentReclamationsCount = ReclamationTracking.GetReclamationsCount( SiteContext.Current.CurrentClient.Profile.ClientId, filter ); //} return CurrentReclamationsCount; }
public static RmsAuto.Store.Entities.Reclamation[] GetReclamations( /*ReclamationTracking.ReclamationType?*/int reclamationType, DateTime? reclamationDateBegin, DateTime? reclamationDateEnd, int sort, int startIndex, int size) { if ( CurrentReclamations == null ) { var filter = new ReclamationTracking.ReclamationFilter(); if ( reclamationType != -1 ) { filter.ReclamationType = (ReclamationTracking.ReclamationType)reclamationType; } filter.ReclamationDateBegin = reclamationDateBegin; filter.ReclamationDateEnd = reclamationDateEnd; CurrentReclamations = ReclamationTracking.GetReclamations( SiteContext.Current.CurrentClient.Profile.ClientId, filter, (ReclamationTracking.ReclamationSortFields)sort, startIndex, size ); } return CurrentReclamations; }