public ActionResult PracticalCourseVerifyPage(int memberPCourseid) { ViewBag.Title = "实践审核"; //小类 Traning_CategoryBLL traning_CategoryBLL = new Traning_CategoryBLL(); ViewBag.TraingCategoryList = traning_CategoryBLL.GetList(" Field=3 and Delflag='false' and Display='true'", " Sort"); //初始化model PracticalCourse_DetailBLL pcBLL = new PracticalCourse_DetailBLL(); PracticalCourseEdit data = new PracticalCourseEdit(); PracticalCourse_AttachmentBLL practicalCourse_AttachmentBLL = new PracticalCourse_AttachmentBLL(); if ( memberPCourseid > 0) { ViewBag.Title = "实践审核"; data = pcBLL.GetPracticeModel((int)memberPCourseid); ViewBag.AttachData = practicalCourse_AttachmentBLL.GetTable("Delflag=0 and Display=1 and PracticalCourseId=" + data.Id, ""); } else { return RedirectToAction("PracticalCourseList", "PracticalCourse", new { area = "Practice" }); } return View(data); }
public ActionResult PracticalCourseAddSingle(int? memberPCourseid) { //小类 Traning_CategoryBLL traning_CategoryBLL = new Traning_CategoryBLL(); ViewBag.TraingCategoryList = traning_CategoryBLL.GetList(" Field=3 and Delflag='false' and Display='true'", " Sort"); //初始化model PracticalCourse_DetailBLL pcBLL = new PracticalCourse_DetailBLL(); PracticalCourseEdit data = new PracticalCourseEdit(); PracticalCourse_AttachmentBLL practicalCourse_AttachmentBLL = new PracticalCourse_AttachmentBLL(); if (memberPCourseid != null && memberPCourseid > 0) { ViewBag.Type = "update"; ViewBag.Title = "修改实践记录"; data = pcBLL.GetPracticeModel((int)memberPCourseid); ViewBag.AttachData = practicalCourse_AttachmentBLL.GetTable("Delflag=0 and Display=1 and PracticalCourseId=" + data.Id, ""); } else { ViewBag.Type = "insert"; ViewBag.Title = "新增实践记录"; ViewBag.AttachData = null; } return View(data); }
public ActionResult PracticalCourseEditSingle(int? Type,int? memberPCourseid) { ViewBag.Type = Type; //小类 Traning_CategoryBLL traning_CategoryBLL = new Traning_CategoryBLL(); ViewBag.TraingCategoryList = traning_CategoryBLL.GetList(" Field=3 and Delflag='false' and Display='true'", " Sort"); //初始化model PracticalCourse_DetailBLL pcBLL = new PracticalCourse_DetailBLL(); PracticalCourseEdit data = new PracticalCourseEdit(); PracticalCourse_AttachmentBLL practicalCourse_AttachmentBLL = new PracticalCourse_AttachmentBLL(); if (memberPCourseid != null && memberPCourseid > 0) { ViewBag.Group = Code.SiteCache.Instance.GroupId; ViewBag.Title = "修改实践记录"; data = pcBLL.GetPracticeModel((int)memberPCourseid); ViewBag.AttachData = practicalCourse_AttachmentBLL.GetTable("Delflag=0 and Display=1 and PracticalCourseId=" + data.Id, ""); } //Member_PracticalCourseApplicationBLL member_PracticalCourseApplicationBLL = new Member_PracticalCourseApplicationBLL(); //List<Member_PracticalCourseApplication> mPcaList = member_PracticalCourseApplicationBLL.GetList("Delflag='false' and FlowId='" + memberPCourseid + "'", "CreateDate"); //ViewBag.mPcaList = mPcaList; return View(data); }
/// <summary> /// 学校--批量增加课程实践 /// </summary> /// <returns></returns> public ActionResult PracticalCourseAdd() { //小类 Traning_CategoryBLL traning_CategoryBLL = new Traning_CategoryBLL(); ViewBag.TraingCategoryList = traning_CategoryBLL.GetList(" Field=3 and Delflag='false' and Display='true'", " Sort"); //初始化model Member_PracticalCourseBLL mpcBLL = new Member_PracticalCourseBLL(); var data = new MPracticalCourseModel(); ViewBag.Title = "新增实践记录"; return View(data); }