| | |
| | | list.json2 = list.json2; |
| | | return Json(list); |
| | | } |
| | | //list.json3 = ExcelCheckData(myModel); //数据验证 |
| | | //if (list.json3.code == "300") |
| | | //{ |
| | | // list.json3 = list.json3; |
| | | // return Json(list); |
| | | //} |
| | | list.json3 = ExcelImportSubmit(dataTable, FileCode); //数据导入 |
| | | if (list.json3.code == "300") |
| | | { |
| | | list.json3 = list.json3; |
| | | return Json(list); |
| | | } |
| | | return Json(list); |
| | | } |
| | | #endregion |
| | |
| | | catch (Exception e) |
| | | { |
| | | mes.code = "300"; |
| | | mes.Message = e.Message; |
| | | mes.message = e.Message; |
| | | } |
| | | return mes; |
| | | } |
| | |
| | | List<DataTable> dataTable = myModel.TableData; |
| | | list = ExcelCheckBLL.ExcelCheckData(FileCode, dataTable, out StuCode, out message, out count); |
| | | mes.code = StuCode; |
| | | mes.Message = message; |
| | | mes.message = message; |
| | | mes.count = count; |
| | | mes.data = list; |
| | | return mes; |
| | |
| | | ToMessage mes = new ToMessage(); |
| | | try |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | //var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | var token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyY29kZSI6Ijk5OSIsInVzZXJuYW1lIjoi5rWL6K-V6LSm5Y-3Iiwic3RvcmdfY29kZSI6IlNDQjAxXzEiLCJzdG9yZ19uYW1lIjoi55Sf5Lqn5LiA6YOoIiwiaXNfc3lzdGVtX2FkbWluIjoiTiIsInJvbGVfY29kZSI6IlIyMzA4MjMwMiw5OTk5Iiwicm9sZV9kYXRhcGVybWlzc2lvbnMiOiIiLCJ1c2VydHlwZSI6IlBDIiwicmVkaXNrZXkiOiJOZXdNRVNMb2dpblVzZXJJRFBDOTk5IiwidGltZW91dCI6IjIwMjMtMTItMTVUMTc6MTg6MjEuMTQyMjc1MiswODowMCJ9.IPaJpspiHjk4Qh9keXNy8lJl1Scj87EnnksKd8Hnj8o"; |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = ExcelCheckBLL.ExcelImportSubmit(FileCode, dataTable, us); |
| | | if (mes.code == "300") |
| | |
| | | catch (Exception e) |
| | | { |
| | | mes.code = "300"; |
| | | mes.Message = e.Message; |
| | | mes.message = e.Message; |
| | | } |
| | | return mes; |
| | | } |