public ActionResult Entrance()
        {
            OfflineProblem op = new OfflineProblem();

            op.StartTime = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd ") + "08:00");
            op.EndTime   = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd ") + "21:00");
            return(View(op));
        }
        public ActionResult Entrance([Bind(Include = "WorkerNum, ScheduleMaxTime, StartTime, EndTime, DueDate")] OfflineProblem op)
        {
            //return Content("递交内容:工作人数:" + op.WorkerNum + ",最大调度次数:" + op.ScheduleMaxTime + ",开始时间:" + op.StartTime + ",结束时间:" + op.EndTime);

            Session.Add("history", new List <CResult>());



            return(RedirectToAction("Calculator", new { workerNum = op.WorkerNum, scheduleMaxTime = op.ScheduleMaxTime, startTime = op.StartTime, endTime = op.EndTime, dueDate = op.DueDate }));
        }
        public ActionResult Calculator(int workerNum, int scheduleMaxTime, DateTime startTime, DateTime endTime, int dueDate)
        {
            OfflineProblem op = new OfflineProblem();

            op.StartTime               = startTime;
            op.EndTime                 = endTime;
            op.ScheduleMaxTime         = scheduleMaxTime;
            op.WorkerNum               = workerNum;
            op.DueDate                 = dueDate;
            Session["ScheduleMaxTime"] = op.ScheduleMaxTime;
            Session["WorkerNum"]       = op.WorkerNum;
            Session["StartTime"]       = op.StartTime;
            Session["EndTime"]         = op.EndTime;

            return(View(op));
        }