Shop report contacts
This commit is contained in:
parent
a07aff9438
commit
6d525876bc
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
11
AutoWorkshopContracts/ViewModels/ReportShopsViewModel.cs
Normal file
11
AutoWorkshopContracts/ViewModels/ReportShopsViewModel.cs
Normal 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();
|
||||
}
|
||||
}
|
2
AutoWorkshopView/MainForm.Designer.cs
generated
2
AutoWorkshopView/MainForm.Designer.cs
generated
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user