Shop report contacts

This commit is contained in:
ShabOl 2024-05-05 22:02:16 +04:00
parent a07aff9438
commit 6d525876bc
4 changed files with 34 additions and 2 deletions

View File

@ -8,11 +8,21 @@ namespace AutoWorkshopContracts.BusinessLogicContracts
List<ReportRepairComponentViewModel> GetRepairComponents();
List<ReportOrdersViewModel> GetOrders(ReportBindingModel Model);
List<ReportShopsViewModel> GetShops();
List<ReportGroupedOrdersViewModel> GetGroupedOrders();
void SaveRepairsToWordFile(ReportBindingModel Model);
void SaveRepairComponentToExcelFile(ReportBindingModel Model);
void SaveOrdersToPdfFile(ReportBindingModel Model);
void SaveShopsToWordFile(ReportBindingModel Model);
void SaveShopsToExcelFile(ReportBindingModel Model);
void SaveGroupedOrdersToPdfFile(ReportBindingModel Model);
}
}

View File

@ -0,0 +1,11 @@
namespace AutoWorkshopContracts.ViewModels
{
public class ReportGroupedOrdersViewModel
{
public DateTime Date { get; set; } = DateTime.Now;
public int OrdersCount { get; set; }
public double OrdersSum { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace AutoWorkshopContracts.ViewModels
{
public class ReportShopsViewModel
{
public string ShopName { get; set; } = string.Empty;
public int TotalCount { get; set; }
public List<(string Repair, int Count)> Repairs { get; set; } = new();
}
}

View File

@ -53,7 +53,7 @@
// MenuStrip
//
MenuStrip.ImageScalingSize = new Size(20, 20);
MenuStrip.Items.AddRange(new ToolStripItem[] { ToolStripMenu, OperationToolStripMenuItem });
MenuStrip.Items.AddRange(new ToolStripItem[] { ToolStripMenu, OperationToolStripMenuItem, ReportsToolStripMenuItem });
MenuStrip.Location = new Point(0, 0);
MenuStrip.Name = "MenuStrip";
MenuStrip.Padding = new Padding(5, 2, 0, 2);