public override ICollection GetItemsByFilter(DaoFactory daofactory) { DealSortedByType sortBy; EnumExtension.TryParse(SortBy, true, out sortBy); DealMilestoneStatus?stageType = null; DealMilestoneStatus stage; if (EnumExtension.TryParse(StageType, true, out stage)) { stageType = stage; } return(daofactory.GetDealDao().GetDeals( FilterValue, ResponsibleId, OpportunityStageId, Tags, ContactId, stageType, ContactAlsoIsParticipant, FromDate, ToDate, 0, 0, new OrderBy(sortBy, IsAsc))); }
public override ICollection GetItemsByFilter(DaoFactory daofactory) { SortedByType sortBy; if (!EnumExtension.TryParse(SortBy, true, out sortBy)) { sortBy = SortedByType.Title; } return(daofactory.GetCasesDao().GetCases( FilterValue, 0, IsClosed, Tags, 0, 0, new OrderBy(sortBy, IsAsc))); }
public override ICollection GetItemsByFilter(DaoFactory daofactory) { TaskSortedByType sortBy; if (!EnumExtension.TryParse(SortBy, true, out sortBy)) { sortBy = TaskSortedByType.DeadLine; } return(daofactory.GetTaskDao().GetTasks( FilterValue, ResponsibleId, CategoryId, IsClosed, FromDate, ToDate, ContactId > 0 ? EntityType.Contact : EntityType.Any, ContactId, 0, 0, new OrderBy(sortBy, IsAsc))); }