Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update colors #40

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public MemoryStream Generate(MonthlyReportSummary summary)
private static void FormatCarSheet(IWorksheet workSheet, MonthlyReportSummary summary)
{
// Title
workSheet.Range["A2:D2"].Merge();
workSheet.Range["A2:I2"].Merge();
workSheet.Range["A2"].Text = "Oylik avtomobillar xisoboti";
workSheet.Range["A2"].CellStyle.Font.Bold = true;
workSheet.Range["A2"].CellStyle.Font.Size = 20;
Expand All @@ -50,10 +50,11 @@ private static void FormatCarSheet(IWorksheet workSheet, MonthlyReportSummary su
workSheet.Range["B6"].Number = (double)summary.LimitsExceededCarsCount;
workSheet.Range["A7"].Text = "Limitga yaqinlashgan avtomobillar soni";
workSheet.Range["B7"].Number = summary.TotalAnomalies;

workSheet.Range["A4:A7"].CellStyle.Font.Bold = true;
workSheet.Range["B4:B7"].CellStyle.Font.Bold = true;
workSheet.Range["A4:A7"].CellStyle.Font.RGBColor = Syncfusion.Drawing.Color.FromArgb(0, 128, 128, 128);
workSheet.Range["B4:B7"].CellStyle.Font.RGBColor = Syncfusion.Drawing.Color.FromArgb(0, 174, 170, 170);
workSheet.Range["A4:A7"].CellStyle.Font.RGBColor = Syncfusion.Drawing.Color.DimGray;
workSheet.Range["B4:B7"].CellStyle.Font.RGBColor = Syncfusion.Drawing.Color.DimGray;
workSheet.Range["A4:B7"].CellStyle.Font.FontName = "Verdana";

// Main Report Table Headers
Expand All @@ -62,6 +63,7 @@ private static void FormatCarSheet(IWorksheet workSheet, MonthlyReportSummary su
workSheet.Range["A9:I9"].CellStyle.Font.Color = ExcelKnownColors.White;
workSheet.Range["A9:I9"].CellStyle.Font.FontName = "Verdana";
workSheet.Range["A9:I9"].CellStyle.Font.Size = 10;

workSheet.Range["A9"].Text = "Avtomobil";
workSheet.Range["B9"].Text = "Yoqilg'i turi";
workSheet.Range["C9"].Text = "O'rtacha yoqilg'i sarfi";
Expand All @@ -80,7 +82,7 @@ private static void FormatCarSheet(IWorksheet workSheet, MonthlyReportSummary su

if (row % 2 == 0)
{
workSheet.Range[$"A{row}:I{row}"].CellStyle.Color = Syncfusion.Drawing.Color.LightGray;
workSheet.Range[$"A{row}:I{row}"].CellStyle.Color = Syncfusion.Drawing.Color.FromArgb(231, 239, 246);
}

workSheet.Range[$"A{row}"].Text = car.CarName;
Expand Down Expand Up @@ -124,7 +126,7 @@ private static void FormatOilMarkSheet(IWorksheet sheet, List<OilMarkConsumption
sheet.Range[$"A{row}:C{row}"].CellStyle.Font.Size = 10;
if (row % 2 == 0)
{
sheet.Range[$"A{row}:C{row}"].CellStyle.Color = Syncfusion.Drawing.Color.LightGray;
sheet.Range[$"A{row}:I{row}"].CellStyle.Color = Syncfusion.Drawing.Color.FromArgb(231, 239, 246);
}
sheet.Range[$"A{row}"].Text = "Ai-" + oil.OilMark;
sheet.Range[$"B{row}"].Number = (double)oil.TotalFuelConsumed;
Expand Down
Loading