public ActionResult Index()
        {
            ScheduleListVM vm = new ScheduleListVM();

            using (tblScheduleRepository rep = new tblScheduleRepository())
            {
                vm.schedules = rep.get(vm.ScheduleName, vm.CustomerName, vm.Format);
            }
            return(View(vm));
        }
        public ActionResult Load(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(View("Edit", model));
            }

            model.ViewStatus         = "E";
            model.originScheduleName = id;
            model.UserID             = userInfo.Account;

            using (tblScheduleRepository rep = new tblScheduleRepository())
            {
                tblSchedule s = rep.get(id);
                model.ScheduleName = s.ScheduleName;
                model.ModeType     = s.ModeType;
                model.Format       = s.Format;
                model.CustomerName = s.CustomerName;
                model.SettingName  = s.SettingName;
                model.Destination  = s.Destination;
                model.Path         = s.Path;
                model.Email        = s.Email;
                model.FTPServer    = s.FTPServer;
                model.FTPAccount   = s.FTPAccount;
                model.FTPPassword  = s.FTPPassword;
                model.WorkType     = s.WorkType;
                model.Month        = s.Month;
                model.Date         = s.Date;
                model.Day          = s.Day;
                model.Hour         = s.Hour;
                model.Min          = s.Min;
                model.Active       = s.Active;
            }

            return(View("Edit", model));
        }