public ActionResult Select(decimal id = 0) { TPR_PROJECT project = db.TPR_PROJECT.Include("SET_CLASS").Single(t => t.PROJECT_NO == id); if (project == null) { return(HttpNotFound()); } ViewBag.Project = project; ViewBag.Subjects = db.SET_CLASS_SUBJECT_GET(project.CLASS_NO).ToList(); return(View()); }
public ActionResult MonitorSelect(decimal id = 0) { decimal?USER_NO = Session["sess_USER_NO"] as decimal?; TPR_PROJECT project = db.TPR_PROJECT.Include("SET_CLASS").Single(t => t.PROJECT_NO == id); if (project == null) { return(HttpNotFound()); } ViewBag.Assigned_List = db.TPR_ASSIGN_MONITOR_GET(project.PROJECT_NO, null, null, null, null, USER_NO).ToList(); ViewBag.Project = project; ViewBag.Subjects = db.SET_CLASS_SUBJECT_GET(project.CLASS_NO).ToList(); return(View()); }