示例#1
0
        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)));
        }
示例#2
0
        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)));
        }
示例#3
0
        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)));
        }