예제 #1
0
        private static String GetDashboardPage(dtoProjectContext context, long idProject, PageListType toPage)
        {
            String url = GetDashboardPlainPage(idProject, toPage) + GetStartContextParameters(context);

            if (idProject > 0)
            {
                url = url + "&pId=" + idProject.ToString();    // +"&v=" + toPage.ToString();
            }
            return(url);
        }
 public dtoDisplayTimelineContext(dtoProjectContext context, Int32 idContainerCommunity, PageContainerType container, PageListType currentPage, PageListType fromPage, SummaryTimeLine timeline, SummaryDisplay display, ProjectFilterBy filterBy = ProjectFilterBy.All, ItemsGroupBy groupBy = ItemsGroupBy.None, ItemListStatus status = ItemListStatus.All)
 {
     FromPage             = fromPage;
     ProjectContext       = context;
     FromPage             = fromPage;
     CurrentPage          = currentPage;
     IdContainerCommunity = idContainerCommunity;
     Display           = display;
     FilterBy          = filterBy;
     ContainerTimeline = timeline;
     Container         = container;
     GroupBy           = groupBy;
     Status            = status;
 }
 public dtoDisplayTimelineContext(dtoProjectContext context, Int32 idContainerCommunity, PageContainerType container, PageListType currentPage, PageListType fromPage, dtoItemsFilter filters, ItemsGroupBy groupBy = ItemsGroupBy.None)
 {
     FromPage             = fromPage;
     ProjectContext       = context;
     FromPage             = fromPage;
     CurrentPage          = currentPage;
     IdContainerCommunity = idContainerCommunity;
     Display           = filters.Display;
     FilterBy          = filters.FilterBy;
     ContainerTimeline = filters.TimeLine;
     Container         = container;
     IdProject         = filters.IdProject;
     if (groupBy != ItemsGroupBy.None)
     {
         GroupBy = groupBy;
     }
     else
     {
         GroupBy = filters.GroupBy;
     }
 }
예제 #4
0
 private static String GetStartContextParameters(dtoProjectContext context)
 {
     return("?cId=" + context.IdCommunity.ToString() + (context.isForPortal ? "&isPortal=" + context.isForPortal.ToString() : "") + (context.isPersonal ? "&isPersonal=" + context.isPersonal.ToString() : ""));
 }
예제 #5
0
 public static String ProjectDashboard(dtoProjectContext context, Int32 idContainerCommunity, long idProject, PageListType fromPageType, PageListType toPage, ItemsGroupBy groupBy, ItemListStatus filterStatus, SummaryTimeLine timeline, UserActivityStatus actStatus = UserActivityStatus.Expired, SummaryTimeLine actTimeline = SummaryTimeLine.Week)
 {
     return(GetDashboardPage(context, idProject, toPage) + GetPageParameters(fromPageType, idContainerCommunity) + GetFilterParameters(groupBy, ProjectFilterBy.All, filterStatus, timeline, SummaryDisplay.Project) + GetDashboardActivityParametes(actStatus, actTimeline));
 }
예제 #6
0
 public static String ProjectDashboard(dtoProjectContext context, Int32 idContainerCommunity, long idProject, PageListType fromPageType, PageListType toPage, SummaryTimeLine timeline, UserActivityStatus actStatus = UserActivityStatus.Expired, SummaryTimeLine actTimeline = SummaryTimeLine.Week)
 {
     return(GetDashboardPage(context, idProject, toPage) + GetPageParameters(fromPageType, idContainerCommunity) + "&tml=" + timeline.ToString() + GetDashboardActivityParametes(actStatus, actTimeline));
 }
예제 #7
0
        public static String ProjectDashboardFromCookies(dtoProjectContext context, Int32 idContainerCommunity, PageListType toPage, long idProject)
        {
            string page = GetDashboardPlainPage(idProject, toPage);

            return(page + "?fromCookies=true" + GetPageParameters(PageListType.None, idContainerCommunity));
        }
예제 #8
0
 public static String Dashboard(dtoProjectContext context, long idProject, Int32 idContainerCommunity, PageContainerType container, PageListType fromPage, PageListType toPage, SummaryTimeLine timeline, SummaryDisplay display, ProjectFilterBy filterBy, ItemsGroupBy groupBy, ItemListStatus status, UserActivityStatus actStatus = UserActivityStatus.Ignore, SummaryTimeLine actTimeline = SummaryTimeLine.Week)
 {
     return(Dashboard(new dtoDisplayTimelineContext(context, idContainerCommunity, container, fromPage, timeline, display, filterBy, groupBy, status), idProject, toPage, actStatus, actTimeline));
 }