| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using VueWebCoreApi.DLL.DAL; |
| | |
| | | public class ExcelCheckBLL |
| | | { |
| | | #region【Excel导入模板验证】 |
| | | public static ToMessage ExcelCheck(string fileCode, string savePath) |
| | | public static ToMessage ExcelCheck(string fileCode, List<DataTable> dataTable) |
| | | { |
| | | return ExcelCheckDAL.ExcelCheck(fileCode, savePath); |
| | | return ExcelCheckDAL.ExcelCheck(fileCode, dataTable); |
| | | } |
| | | #endregion |
| | | |
| | | #region[Excel导入数据验证] |
| | | public static List<ExcelErro> ExcelCheckData(string fileCode, string savePath, out string stuCode, out string message, out int count) |
| | | public static List<ExcelErro> ExcelCheckData(string fileCode, List<DataTable> dataTable, out string stuCode, out string message, out int count) |
| | | { |
| | | return ExcelCheckDAL.ExcelCheckData(fileCode, savePath, out stuCode, out message, out count); |
| | | return ExcelCheckDAL.ExcelCheckData(fileCode, dataTable, out stuCode, out message, out count); |
| | | } |
| | | #endregion |
| | | |
| | | #region[Excel导入数据] |
| | | public static ToMessage ExcelImportSubmit(string fileCode, string savePath, string username) |
| | | public static ToMessage ExcelImportSubmit(string FileCode, List<DataTable> dataTable, User us) |
| | | { |
| | | return ExcelCheckDAL.ExcelImportSubmit(fileCode, savePath, username); |
| | | return ExcelCheckDAL.ExcelImportSubmit(FileCode, dataTable, us); |
| | | } |
| | | #endregion |
| | | } |