コード例 #1
0
        //上传考试资格
        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));
        }
コード例 #2
0
        public ActionResult GetHrAuditUser(SearchHrData model)
        {
            HrAuditModel models = new HrAuditModel();

            models.GetHrAuditUser(model);
            return(Json(new { ListHrAuditUser = models.ListHrAuditUser, ListHrAuditSuccessUser = models.ListHrAuditSuccessUser, LExamType = models.LExamType }));
        }
コード例 #3
0
        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 }));
        }
コード例 #4
0
        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 }));
        }
コード例 #5
0
        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 }));
        }
コード例 #6
0
        public ActionResult HrAudit()
        {
            HrAuditModel model = new HrAuditModel();

            return(View(model));
        }