版本结束
This commit is contained in:
@@ -169,9 +169,9 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
|
||||
IWebHostEnvironment webHostEnvironment = (IWebHostEnvironment)App.ServiceProvider.GetService(typeof(IWebHostEnvironment));
|
||||
string sFileName = DateTime.Now.ToString("yyyyMMddHHmmss") + formFile.FileName;
|
||||
string target = Path.Combine(webHostEnvironment.WebRootPath, "workplan", sFileName);
|
||||
if (!Directory.Exists(target))
|
||||
if (!Directory.Exists(Path.Combine(webHostEnvironment.WebRootPath, "workplan")))
|
||||
{
|
||||
Directory.CreateDirectory(target);
|
||||
Directory.CreateDirectory(Path.Combine(webHostEnvironment.WebRootPath, "workplan"));
|
||||
}
|
||||
int year = 0;
|
||||
int week = 0;
|
||||
@@ -196,7 +196,6 @@ namespace ZR.Admin.WebApi.Controllers.mes.pro
|
||||
//读取第一行 解析 年和月
|
||||
var row = stream.Query().Take(1).First();
|
||||
year = Convert.ToInt32(row.A);
|
||||
|
||||
week = Convert.ToInt32(row.B);
|
||||
var list = stream.Query<ProWorklplan_v2>(sheetName: "Sheet1", startCell: "B3")
|
||||
.Where(it => it.Partnumber != null)
|
||||
|
||||
Reference in New Issue
Block a user