|
@ -1,3 +1,4 @@ |
|
|
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
using System.Globalization; |
|
|
using System.Globalization; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Http; |
|
|
using Microsoft.AspNetCore.Http; |
|
@ -180,7 +181,7 @@ public class GenericController<TEntity, TModel, TListModel, TSearchModel, TImpor |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[HttpGet,AllowAnonymous, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|
|
[HttpGet, AllowAnonymous, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|
|
public virtual IActionResult Import() |
|
|
public virtual IActionResult Import() |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
@ -194,8 +195,9 @@ public class GenericController<TEntity, TModel, TListModel, TSearchModel, TImpor |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Consumes("multipart/form-data")] |
|
|
[HttpPost, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|
|
[HttpPost, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|
|
public virtual IActionResult Import(IFormFile importexcelfile) |
|
|
public virtual IActionResult Import([Required] IFormFile importexcelfile, bool partial = false, bool replace = false) |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|