Ejemplo n.º 1
0
        public ActionResult AlarmWorkItemPost()
        {
            var httpPostedFileBase = Request.Files["AlarmWorkItem"];

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