public ActionResult Create()
        {
            var projects = pb.GetProjects();

            ViewBag.ProjectID = new SelectList(projects, "ID", "ProjectName");
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            var crpm = crpb.GetCRPByID(id);

            if (crpm != null)
            {
                ViewBag.ProjectID = new SelectList(pb.GetProjects(), "ID", "ProjectName", crpm.ProjectID);
                return(View(crpm));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }
        public ActionResult QueryRemark(string stuno)
        {
            ViewBag.ProjectID = new SelectList(pb.GetProjects(), "ID", "ProjectName");
            int classid = sb.GetStudentModel(stuno).ClassID;

            ViewBag.ClassID = classid;
            ViewBag.StuNo   = stuno;
            return(View(new List <RemarkModel>()));
        }
        public ActionResult Index()
        {
            var pros = pb.GetProjects();

            return(View(pros));
        }