Beispiel #1
0
        public ActionResult CheckingProjectPost()
        {
            var httpPostedFileBase = Request.Files["checkingProject"];

            if (httpPostedFileBase == null || httpPostedFileBase.FileName == "")
            {
                ViewBag.ErrorMessage = "上传文件为空!请先上传文件。";
            }
            else
            {
                var path = httpPostedFileBase.UploadKpiFile();
                ViewBag.Message = _workItemService.ImportCheckingProjectExcelFiles(path);
            }
            return(View("WorkItemImport"));
        }