123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using System.IO;
- using Bowin.Web.Controls.Mvc;
- using EMIS.Web.Controls;
- using EMIS.Utility;
- using EMIS.ViewModel;
- using EMIS.ViewModel.StudentManage.StudentProfile;
- using EMIS.CommonLogic.StudentManage.StudentProfile;
- namespace EMIS.Web.Controllers.StudentWeb.InfoCenter
- {
- [Authorization]
- public class PostPracticeController : Controller
- {
- public Lazy<IStudentPostPracticeServices> StudentPostPracticeServices { get; set; }
- /// <summary>
- /// 顶岗实习(学生)页面
- /// </summary>
- /// <returns></returns>
- public ActionResult List()
- {
- return View();
- }
- /// <summary>
- /// 顶岗实习(学生)列表查询
- /// </summary>
- /// <param name="pararms"></param>
- /// <returns></returns>
- [HttpPost]
- public ActionResult List(QueryParamsModel pararms)
- {
- var user = HttpContext.User as EMIS.Utility.FormValidate.CustomPrincipal;
- return Json(StudentPostPracticeServices.Value.GetStudentPostPracticeViewGrid(user.UserID, 1, pararms.page, pararms.rows));
- }
- /// <summary>
- /// 编辑
- /// </summary>
- /// <returns></returns>
- public ActionResult Edit()
- {
- var user = HttpContext.User as EMIS.Utility.FormValidate.CustomPrincipal;
- return View();
- }
- /// <summary>
- /// 编辑
- /// </summary>
- /// <returns></returns>
- [HttpPost]
- public ActionResult Edit(StudentPostPracticeView studentPostPracticeView)
- {
- try
- {
- var user = HttpContext.User as EMIS.Utility.FormValidate.CustomPrincipal;
- var studentPostPracticeViewList = DataGrid.GetTableData<StudentPostPracticeView>("dgStudentPostPracticeList");
- this.StudentPostPracticeServices.Value.StudentPostPracticeEdit(user.UserID, studentPostPracticeViewList);
- return Json(new ReturnMessage { IsSuccess = true, Message = "保存成功。" });
- }
- catch (Exception ex)
- {
- return Json(new ReturnMessage { IsSuccess = false, Message = "保存失败:" + ex.Message });
- }
- }
- /// <summary>
- /// 鉴定报表
- /// </summary>
- /// <returns></returns>
- public ActionResult AppraiseReport()
- {
- var curUser = EMIS.Utility.FormValidate.CustomPrincipal.Current;
- ViewBag.LoginUserID = curUser.UserID.ToString();
-
- return View();
- }
- /// <summary>
- /// Excel导出
- /// </summary>
- /// <returns></returns>
- [HttpPost]
- public ActionResult Excel()
- {
- return null;
- }
- }
- }
|