周工单导出优化2

This commit is contained in:
杨晓东 2025-09-19 09:30:54 +08:00
parent b02ce65487
commit cd59490ec7

View File

@ -1004,7 +1004,7 @@ namespace DOAN.Service.MES.product
{
// 创建字体对象
var font = sheet.Workbook.CreateFont();
font.FontHeightInPoints = 12;
font.FontHeightInPoints = 16;
// 创建单元格样式并应用字体和对齐方式
var style = sheet.Workbook.CreateCellStyle();
@ -1038,10 +1038,10 @@ namespace DOAN.Service.MES.product
foreach (var day in item.proWeeklyDatechildList)
{
// 依次填充4个字段
dataRow.CreateCell(startCol++).SetCellValue((double)day.PlanNum);
dataRow.CreateCell(startCol++).SetCellValue((double)day.ActualQt);
dataRow.CreateCell(startCol++).SetCellValue(day.ProductType);
dataRow.CreateCell(startCol++).SetCellValue(day.IsChange);
dataRow.CreateCell(startCol++).SetCellValue(day.ProductType);
dataRow.CreateCell(startCol++).SetCellValue((double)day.PlanNum);
dataRow.CreateCell(startCol++).SetCellValue(day.IsChange);
dataRow.CreateCell(startCol++).SetCellValue((double)day.ActualQt);
}
dataRowIndex++;
}