예제 #1
0
        //
        // GET: /ScheduleModes/

        public ActionResult GanttScheduleModes()
        {
            var datasource = GanttScheduleModeData.GetDataSource();

            ViewBag.datasource = datasource;
            return(View());
        }
        //
        // GET: /ScheduleModes/

        public ActionResult GanttScheduleModes()
        {
            List <WeekStartDay> startDayData = new List <WeekStartDay>();
            var datasource = GanttScheduleModeData.GetDataSource();

            ViewBag.datasource = datasource;
            startDayData.Add(new WeekStartDay {
                value = 0, text = "Sunday"
            });
            startDayData.Add(new WeekStartDay {
                value = 1, text = "Monday"
            });
            startDayData.Add(new WeekStartDay {
                value = 2, text = "Tuesday"
            });
            startDayData.Add(new WeekStartDay {
                value = 3, text = "Wednesday"
            });
            startDayData.Add(new WeekStartDay {
                value = 4, text = "Thursday"
            });
            startDayData.Add(new WeekStartDay {
                value = 5, text = "Friday"
            });
            startDayData.Add(new WeekStartDay {
                value = 6, text = "Saturday"
            });
            ViewBag.startDayDataSource = startDayData;
            return(View());
        }