版本结束

This commit is contained in:
qianhao.xu
2024-01-31 17:51:45 +08:00
parent a2295ee36d
commit fc162aed3b
9 changed files with 773 additions and 240 deletions

View File

@@ -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)