// GET: Celltemplate
        public ActionResult Celltemplate()
        {
            var DataSource = new ScheduleDataDataContext().MultipleResources.Take(10);

            ViewBag.datasource = DataSource;
            return(View());
        }
        public ActionResult HorizontalResourceGrouping()
        {
            var DataSource = new ScheduleDataDataContext().MultipleResources.ToList();

            ViewBag.datasource = DataSource;

            HorizontalRooms.Add(new Rooms {
                text = "ROOM 1", id = "1", color = "#cb6bb2"
            });
            HorizontalRooms.Add(new Rooms {
                text = "ROOM 2", id = "2", color = "#56ca85"
            });
            ViewBag.Rooms = HorizontalRooms;

            HorizontalOwner.Add(new Rooms {
                text = "Nancy", id = "1", groupId = "1", color = "#ffaa00"
            });
            HorizontalOwner.Add(new Rooms {
                text = "Steven", id = "3", groupId = "2", color = "#f8a398"
            });
            HorizontalOwner.Add(new Rooms {
                text = "Michael", id = "5", groupId = "1", color = "#7499e1"
            });
            ViewBag.Owners = HorizontalOwner;

            List <String> resources = new List <String>();

            resources.Add("Rooms"); resources.Add("Owners");
            ViewBag.Resources = resources;

            return(View());
        }
        //
        // GET: /Validation/

        public ActionResult Validation()
        {
            List <Categorize> CategorizeValue = new List <Categorize>();

            CategorizeValue.Add(new Categorize {
                text = "Blue Category", id = 1, color = "#43b496", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Green Category", id = 2, color = "#7f993e", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Orange Category", id = 3, color = "#cc8638", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Purple Category", id = 4, color = "#ab54a0", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Red Category", id = 5, color = "#dd654e", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Yellow Category", id = 6, color = "#d0af2b", fontColor = "#ffffff"
            });
            var DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();

            ViewBag.dataSource = DataSource;
            ViewBag.categorize = CategorizeValue;
            return(View());
        }
Exemplo n.º 4
0
        //
        // GET: /CustomViews/

        public ActionResult CustomViews()
        {
            var DataSource = new ScheduleDataDataContext().Viewcustomizations.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
Exemplo n.º 5
0
        //
        // GET: /Localization/

        public ActionResult Localization()
        {
            var DataSource = new ScheduleDataDataContext().Localizations.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
        public ActionResult AdaptiveSchedule()
        {
            var DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();

            ViewBag.datasource = DataSource;
            return(PartialView());
        }
        //
        // GET: /Templates/

        public ActionResult Templates()
        {
            var DataSource = new ScheduleDataDataContext().Templates.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
Exemplo n.º 8
0
        //
        // GET: /Default/

        public ActionResult Default()
        {
            var DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
Exemplo n.º 9
0
        public ActionResult SaveDefault(IEnumerable <HttpPostedFileBase> UploadDefault)
        {
            var destinationPath = "";

            foreach (var file in UploadDefault)
            {
                var fileName = Path.GetFileName(file.FileName);
                destinationPath = Path.Combine(Server.MapPath("~/App_Data"), fileName);
                file.SaveAs(destinationPath);
            }
            ScheduleImport importApps = new ScheduleImport();
            var            app        = importApps.renderingImportAppointments(destinationPath);
            var            dataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();
            int            intMax     = dataSource.Max(a => a.Id);

            for (var i = 0; i < app.Count; i++)
            {
                app[i].Id = intMax + 1;
                DefaultSchedule row = new DefaultSchedule(app[i].Id, app[i].Subject, app[i].Location, app[i].StartTime, app[i].EndTime, app[i].Description, null, null, app[i].Recurrence, null, null, app[i].AppointmentCategorize, null, app[i].AllDay, null, null, app[i].RecurrenceRules);
                dataSource.Add(row);
                intMax = app[i].Id;
            }
            ViewBag.dataSource     = dataSource;
            TempData["dataSource"] = dataSource;
            return(RedirectToAction("ScheduleImport", "ScheduleImport"));
        }
        //
        // GET: /RemoteDataBinding/

        public ActionResult RemoteDataBinding()
        {
            var DataSource = new ScheduleDataDataContext().StartEndHours.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
        //
        // GET: /KeyboardInteraction/

        public ActionResult KeyboardInteraction()
        {
            var DataSource = new ScheduleDataDataContext().KeyboardInteractions.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
Exemplo n.º 12
0
        //
        // GET: /CustomAppWindow/

        public ActionResult CustomAppWindow()
        {
            var DataSource = new ScheduleDataDataContext().StartEndHours.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
        //
        // GET: /LocalDataBinding/

        public ActionResult LocalDataBinding()
        {
            var DataSource = new ScheduleDataDataContext().TimeModes.ToList();

            ViewBag.dataSource = DataSource;
            return(View());
        }
Exemplo n.º 14
0
        //
        // GET: /API/

        public ActionResult AppointmentSearch()
        {
            var DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();

            string[] startHour = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23" };
            ViewBag.dataSource = DataSource;
            ViewBag.Hour       = startHour;
            return(View());
        }
Exemplo n.º 15
0
        public static IList <DefaultSchedule> GetAllRecords()
        {
            IList <DefaultSchedule> appoint = (IList <DefaultSchedule>)HttpContext.Current.Session["Appointments"];

            if (appoint == null)
            {
                HttpContext.Current.Session["Appointments"] = appoint = new ScheduleDataDataContext().DefaultSchedules.ToList();
            }
            return(appoint);
        }
Exemplo n.º 16
0
        public ActionResult ScheduleImportData()
        {
            IEnumerable DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();
            var         data       = DataSource;

            if (TempData["dataSource"] != null)
            {
                data = (IEnumerable)TempData["dataSource"];
            }
            else
            {
                data = DataSource;
            }
            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 17
0
        //
        // GET: /Print/

        public ActionResult Print()
        {
            List <Appointment> appointment = new List <Appointment>();

            appointment.Add(new Appointment()
            {
                Id = "open", Text = "Open Appointment"
            });
            appointment.Add(new Appointment()
            {
                Id = "delete", Text = "Delete Appointment"
            });
            appointment.Add(new Appointment()
            {
                Id = "print", Text = "Print Appointment"
            });
            var DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();

            ViewBag.dataSource = DataSource;
            ViewBag.app        = appointment;
            return(View());
        }
        public ActionResult CustomResourceDays()
        {
            var DataSource = new ScheduleDataDataContext().MultipleResources.ToList();

            ViewBag.datasource = DataSource;

            Rooms1.Add(new ResRoom {
                text = "ROOM 1", id = "1", color = "#cb6bb2", groupId = "1"
            });
            Rooms1.Add(new ResRoom {
                text = "ROOM 2", id = "2", color = "#56ca85", groupId = "1"
            });
            ViewBag.Rooms = Rooms1;

            Owners1.Add(new ResOwner {
                text = "Nancy", id = "1", groupId = "1", color = "#ffaa00", on = "10", off = "18", customDays = new List <string> {
                    "monday", "wednesday", "friday"
                }
            });
            Owners1.Add(new ResOwner {
                text = "Steven", id = "3", groupId = "2", color = "#f8a398", on = "6", off = "10", customDays = new List <string> {
                    "tuesday", "thursday"
                }
            });
            Owners1.Add(new ResOwner {
                text = "Michael", id = "5", groupId = "1", color = "#7499e1", on = "11", off = "15", customDays = new List <string> {
                    "sunday", "tuesday", "thursday", "saturday"
                }
            });
            ViewBag.Owners = Owners1;

            List <String> Resources1 = new List <String>();

            Resources1.Add("Rooms");
            Resources1.Add("Owners");
            ViewBag.Resources = Resources1;

            return(View());
        }
        public ActionResult ExternalDragAndDrop()
        {
            var DataSource = new ScheduleDataDataContext().MultipleResources.ToList();

            ViewBag.datasource = DataSource;

            Externalowners.Add(new Rooms {
                text = "Nancy", id = "1", color = "#f8a398"
            });
            Externalowners.Add(new Rooms {
                text = "Steven", id = "3", color = "#56ca85"
            });
            Externalowners.Add(new Rooms {
                text = "Michael", id = "5", color = "#51a0ed"
            });
            ViewBag.Owners = Externalowners;

            List <String> resources = new List <String>();

            resources.Add("Owners");
            ViewBag.Resources = resources;
            return(View());
        }
Exemplo n.º 20
0
        public ActionResult ScheduleICSExport()
        {
            var DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();

            ViewBag.dataSource = DataSource;

            //
            List <Appointment> appointment = new List <Appointment>();

            appointment.Add(new Appointment()
            {
                Id = "open", Text = "Open Appointment"
            });
            appointment.Add(new Appointment()
            {
                Id = "delete", Text = "Delete Appointment"
            });
            appointment.Add(new Appointment()
            {
                Id = "exportApp", Text = "Export Appointment"
            });

            List <Cells> cells = new List <Cells>();

            cells.Add(new Cells()
            {
                Id = "new", Text = "New Appointment"
            });
            cells.Add(new Cells()
            {
                Id = "recurrence", Text = "New Recurring Appointment"
            });
            cells.Add(new Cells()
            {
                Id = "settings", Text = "Settings"
            });
            cells.Add(new Cells()
            {
                Id = "view", Text = "View", ParentId = "settings"
            });
            cells.Add(new Cells()
            {
                Id = "timemode", Text = "TimeMode", ParentId = "settings"
            });
            cells.Add(new Cells()
            {
                Id = "view_Day", Text = "Day", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "view_Week", Text = "Week", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "view_Workweek", Text = "Workweek", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "view_Month", Text = "Month", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "timemode_Hour12", Text = "12 Hours", ParentId = "timemode"
            });
            cells.Add(new Cells()
            {
                Id = "timemode_Hour24", Text = "24 Hours", ParentId = "timemode"
            });
            ViewBag.app  = appointment;
            ViewBag.cell = cells;


            return(View());
        }
Exemplo n.º 21
0
        //
        // GET: /Default/

        public ActionResult CategorizeOption()
        {
            List <Appointment> appointment = new List <Appointment>();

            appointment.Add(new Appointment()
            {
                Id = "open", Text = "Open Appointment"
            });
            appointment.Add(new Appointment()
            {
                Id = "delete", Text = "Delete Appointment"
            });
            appointment.Add(new Appointment()
            {
                Id = "custommenu3", Text = "Custom Menu3"
            });
            appointment.Add(new Appointment()
            {
                Id = "custommenu4", Text = "Custom Menu4"
            });
            appointment.Add(new Appointment()
            {
                Id = "categorize", Text = "Categorize"
            });
            List <Cells> cells = new List <Cells>();

            cells.Add(new Cells()
            {
                Id = "new", Text = "New Appointment"
            });
            cells.Add(new Cells()
            {
                Id = "recurrence", Text = "New Recurring Appointment"
            });
            cells.Add(new Cells()
            {
                Id = "today", Text = "Today"
            });
            cells.Add(new Cells()
            {
                Id = "gotodate", Text = "Go to date"
            });
            cells.Add(new Cells()
            {
                Id = "settings", Text = "Settings"
            });
            cells.Add(new Cells()
            {
                Id = "view", Text = "View", ParentId = "settings"
            });
            cells.Add(new Cells()
            {
                Id = "timemode", Text = "TimeMode", ParentId = "settings"
            });
            cells.Add(new Cells()
            {
                Id = "view_Day", Text = "Day", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "view_Week", Text = "Week", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "view_Workweek", Text = "Workweek", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "view_Month", Text = "Month", ParentId = "view"
            });
            cells.Add(new Cells()
            {
                Id = "timemode_Hour12", Text = "12 Hours", ParentId = "timemode"
            });
            cells.Add(new Cells()
            {
                Id = "timemode_Hour24", Text = "24 Hours", ParentId = "timemode"
            });
            cells.Add(new Cells()
            {
                Id = "workhours", Text = "Work Hours", ParentId = "settings"
            });
            cells.Add(new Cells()
            {
                Id = "custommenu1", Text = "Custom Menu1"
            });
            cells.Add(new Cells()
            {
                Id = "custommenu2", Text = "Custom Menu2"
            });
            List <Categorize> CategorizeValue = new List <Categorize>();

            CategorizeValue.Add(new Categorize {
                text = "Blue Category", id = 1, color = "#43b496", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Green Category", id = 2, color = "#7f993e", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Orange Category", id = 3, color = "#cc8638", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Purple Category", id = 4, color = "#ab54a0", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Red Category", id = 5, color = "#dd654e", fontColor = "#ffffff"
            });
            CategorizeValue.Add(new Categorize {
                text = "Yellow Category", id = 6, color = "#d0af2b", fontColor = "#ffffff"
            });
            var DataSource = new ScheduleDataDataContext().DefaultSchedules.ToList();

            ViewBag.dataSource = DataSource;
            ViewBag.app        = appointment;
            ViewBag.cell       = cells;
            ViewBag.categorize = CategorizeValue;
            return(View());
        }