Ejemplo n.º 1
0
        public ActionResult SavePracticeInfo(PracticeInfo model)
        {
            SupervisorAuditModel models = new SupervisorAuditModel();

            models.InsertPracticeInfo(model);
            return(Json(new {}, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public ActionResult SearchPracticeByCode(string model)
        {
            SupervisorAuditModel models = new SupervisorAuditModel();

            models.SearchPracticeInfo(model);
            return(Json(new { LPracticeInfo = models.LPracticeInfo }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public ActionResult StopUser(string model)
        {
            SupervisorAuditModel models = new SupervisorAuditModel();
            var username = this.UserNameContext;

            models.Stopuser(model, username);
            return(Json(new { ListExamUserDetailInfos = models.ListDirectorUserInfos, LSignedupUser = models.LSignedupUser }));
        }
Ejemplo n.º 4
0
        public ActionResult SerachDetail(string model)
        {
            SupervisorAuditModel models = new SupervisorAuditModel();

            models.SerachDetailByUserCode(model);

            return(Json(new { LExamUserDetailInfo = models.LExamUserDetailInfo }));
        }
Ejemplo n.º 5
0
        public ActionResult InsertUserDetail(List <ExamUserDetailInfo> model)
        {
            var username = this.UserNameContext;
            SupervisorAuditModel models = new SupervisorAuditModel();
            var Result = models.InsertUserDetail(model, username);

            return(Json(new { LCheckAudtiUser = models.LCheckAudtiUser, LSignedupUser = models.LSignedupUser, Result }));
        }
Ejemplo n.º 6
0
        public ActionResult GetSupervisorAuditUser()
        {
            SupervisorAuditModel model = new SupervisorAuditModel();
            var name = this.UserNameContext;

            model.GetAllExamUserDetailInfo(name);
            return(Json(new { LCheckAudtiUser = model.LCheckAudtiUser, LRules = model.LRules, LSignedupUser = model.LSignedupUser }));
        }
Ejemplo n.º 7
0
        //Excel上传实践
        public JsonResult Upload_TEL_Practice(HttpPostedFileBase file)
        {
            string filepath = "";

            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 SupervisorAuditModel();

            model.UploadPractice(filepath);

            return(Json(new { Result = model.Result }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 8
0
        public ActionResult SupervisorAudit()
        {
            SupervisorAuditModel model = new SupervisorAuditModel();

            return(View(model));
        }