Пример #1
0
        public ActionResult GanttViewsPartial()
        {
            DateTime completedDate = DateTime.Parse(Request.Params["CompletedDate"], System.Globalization.CultureInfo.InvariantCulture);

            Session[ChartDemoHelper.CompletedDateKey] = completedDate;
            return(PartialView("GanttViewsPartial", ProjectsProvider.GetProjectTasks(completedDate)));
        }
Пример #2
0
        public ActionResult GanttViews()
        {
            ChartViewTypeDemoOptions options = new ChartViewTypeDemoOptions();

            options.View = DevExpress.XtraCharts.ViewType.Gantt;
            Session[ChartDemoHelper.OptionsKey]       = options;
            Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate;
            return(DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate)));
        }
Пример #3
0
 public ActionResult GanttViews([Bind] ChartViewTypeDemoOptions options)
 {
     Session[ChartDemoHelper.OptionsKey] = options;
     if (options.View == DevExpress.XtraCharts.ViewType.Gantt)
     {
         Session[ChartDemoHelper.CompletedDateKey] = ProjectsProvider.DefaultCompletedDate;
         return(DemoView("GanttViews", ProjectsProvider.GetProjectTasks(ProjectsProvider.DefaultCompletedDate)));
     }
     else
     {
         object model = ProjectsProvider.GetProjectsTasks();
         Session[ChartDemoHelper.ModelKey] = model;
         return(DemoView("GanttViews", model));
     }
 }