Merge branch 'MCUT_test' into MCUT

This commit is contained in:
張家睿 2024-07-29 10:33:18 +08:00
commit d9895d3573

View File

@ -981,8 +981,8 @@ namespace FrontendWebApi.ApiControllers
row = sheet.GetRow(rowInit++) ?? sheet.CreateRow(rowInit++);
colInit = 0;
cell = row.GetCell(colInit++) ?? row.CreateCell(colInit++);
DateTime timeDay = date.AddMonths(1).AddDays(-1); // 用來記錄每個月的最後一天是幾月幾號
string timeRange = start_year + "." + start_month + ".01~" + timeDay.ToString("yyy.MM.dd");
DateTime timeDay = DateTime.Parse(input.startTime).AddMonths(1).AddDays(-1); // 用來記錄每個月的最後一天是幾月幾號
string timeRange = start_year + "." + start_month + ".01~" + start_year + "." + timeDay.ToString("MM.dd");
cell.SetCellValue("電錶週期:" + timeRange);
//row = sheet.GetRow(rowInit++) ?? sheet.CreateRow(rowInit++);