//上传考试资格 public JsonResult Upload_Qualification(HttpPostedFileBase file) { string filepath = ""; var username = this.UserNameContext; if (file != null) { string path = Server.MapPath(_AttachmentUploadDirectory_temp);//设定上传的文件路径 if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } String gcode = System.Guid.NewGuid().ToString("N"); string filenName = '\\' + gcode + file.FileName; filepath = path + filenName; file.SaveAs(filepath);//上传路径 } var model = new HrAuditModel(); model.Qualification(filepath, username); return(Json(new { Result = model.Result, ListHrAuditUser = model.ListHrAuditUser, ListHrAuditSuccessUser = model.ListHrAuditSuccessUser }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetHrAuditUser(SearchHrData model) { HrAuditModel models = new HrAuditModel(); models.GetHrAuditUser(model); return(Json(new { ListHrAuditUser = models.ListHrAuditUser, ListHrAuditSuccessUser = models.ListHrAuditSuccessUser, LExamType = models.LExamType })); }
public ActionResult SearchPracticeUserDetail(string model) { HrAuditModel models = new HrAuditModel(); var username = this.UserNameContext; models.SearchPracticeUserDetail(model); return(Json(new { LExamUserDetailInfo = models.LExamUserDetailInfo, LPracticeInfo = models.LPracticeInfo })); }
public ActionResult StopHrAuditUser(string model) { HrAuditModel models = new HrAuditModel(); var username = this.UserNameContext; models.StopHrAuditUser(model, username); return(Json(new { ListHrAuditUser = models.ListHrAuditUser, ListHrAuditSuccessUser = models.ListHrAuditSuccessUser })); }
public ActionResult UpdateHrAduitUser(List <ExamUserDetailInfo> model) { var username = this.UserNameContext; HrAuditModel models = new HrAuditModel(); models.UpdateHrAduitUser(model, username); return(Json(new { ListHrAuditUser = models.ListHrAuditUser, ListHrAuditSuccessUser = models.ListHrAuditSuccessUser })); }
public ActionResult HrAudit() { HrAuditModel model = new HrAuditModel(); return(View(model)); }