@@ -32,7 +32,7 @@ public MemoryStream Generate(MonthlyReportSummary summary)
32
32
private static void FormatCarSheet ( IWorksheet workSheet , MonthlyReportSummary summary )
33
33
{
34
34
// Title
35
- workSheet . Range [ "A2:D2 " ] . Merge ( ) ;
35
+ workSheet . Range [ "A2:I2 " ] . Merge ( ) ;
36
36
workSheet . Range [ "A2" ] . Text = "Oylik avtomobillar xisoboti" ;
37
37
workSheet . Range [ "A2" ] . CellStyle . Font . Bold = true ;
38
38
workSheet . Range [ "A2" ] . CellStyle . Font . Size = 20 ;
@@ -50,10 +50,11 @@ private static void FormatCarSheet(IWorksheet workSheet, MonthlyReportSummary su
50
50
workSheet . Range [ "B6" ] . Number = ( double ) summary . LimitsExceededCarsCount ;
51
51
workSheet . Range [ "A7" ] . Text = "Limitga yaqinlashgan avtomobillar soni" ;
52
52
workSheet . Range [ "B7" ] . Number = summary . TotalAnomalies ;
53
+
53
54
workSheet . Range [ "A4:A7" ] . CellStyle . Font . Bold = true ;
54
55
workSheet . Range [ "B4:B7" ] . CellStyle . Font . Bold = true ;
55
- workSheet . Range [ "A4:A7" ] . CellStyle . Font . RGBColor = Syncfusion . Drawing . Color . FromArgb ( 0 , 128 , 128 , 128 ) ;
56
- workSheet . Range [ "B4:B7" ] . CellStyle . Font . RGBColor = Syncfusion . Drawing . Color . FromArgb ( 0 , 174 , 170 , 170 ) ;
56
+ workSheet . Range [ "A4:A7" ] . CellStyle . Font . RGBColor = Syncfusion . Drawing . Color . DimGray ;
57
+ workSheet . Range [ "B4:B7" ] . CellStyle . Font . RGBColor = Syncfusion . Drawing . Color . DimGray ;
57
58
workSheet . Range [ "A4:B7" ] . CellStyle . Font . FontName = "Verdana" ;
58
59
59
60
// Main Report Table Headers
@@ -62,6 +63,7 @@ private static void FormatCarSheet(IWorksheet workSheet, MonthlyReportSummary su
62
63
workSheet . Range [ "A9:I9" ] . CellStyle . Font . Color = ExcelKnownColors . White ;
63
64
workSheet . Range [ "A9:I9" ] . CellStyle . Font . FontName = "Verdana" ;
64
65
workSheet . Range [ "A9:I9" ] . CellStyle . Font . Size = 10 ;
66
+
65
67
workSheet . Range [ "A9" ] . Text = "Avtomobil" ;
66
68
workSheet . Range [ "B9" ] . Text = "Yoqilg'i turi" ;
67
69
workSheet . Range [ "C9" ] . Text = "O'rtacha yoqilg'i sarfi" ;
@@ -80,7 +82,7 @@ private static void FormatCarSheet(IWorksheet workSheet, MonthlyReportSummary su
80
82
81
83
if ( row % 2 == 0 )
82
84
{
83
- workSheet . Range [ $ "A{ row } :I{ row } "] . CellStyle . Color = Syncfusion . Drawing . Color . LightGray ;
85
+ workSheet . Range [ $ "A{ row } :I{ row } "] . CellStyle . Color = Syncfusion . Drawing . Color . FromArgb ( 231 , 239 , 246 ) ;
84
86
}
85
87
86
88
workSheet . Range [ $ "A{ row } "] . Text = car . CarName ;
@@ -124,7 +126,7 @@ private static void FormatOilMarkSheet(IWorksheet sheet, List<OilMarkConsumption
124
126
sheet . Range [ $ "A{ row } :C{ row } "] . CellStyle . Font . Size = 10 ;
125
127
if ( row % 2 == 0 )
126
128
{
127
- sheet . Range [ $ "A{ row } :C { row } "] . CellStyle . Color = Syncfusion . Drawing . Color . LightGray ;
129
+ sheet . Range [ $ "A{ row } :I { row } "] . CellStyle . Color = Syncfusion . Drawing . Color . FromArgb ( 231 , 239 , 246 ) ;
128
130
}
129
131
sheet . Range [ $ "A{ row } "] . Text = "Ai-" + oil . OilMark ;
130
132
sheet . Range [ $ "B{ row } "] . Number = ( double ) oil . TotalFuelConsumed ;
0 commit comments