SomeCode
This commit is contained in:
parent
7411f7e081
commit
aa627f014a
@ -8,8 +8,13 @@ namespace SewingDressesContracts.BusinessLogicsContracts
|
||||
{
|
||||
List<ReportDressComponentViewModel> GetDressComponent();
|
||||
List<ReportOrdersViewModel> GetOrders(ReportBindingModel model);
|
||||
List<ReportDateOrdersViewModel> GetDateOrders();
|
||||
List<ReportShopDressViewModel> GetShopsDresses();
|
||||
void SaveComponentsToWordFile(ReportBindingModel model);
|
||||
void SaveDressComponentToExcelFile(ReportBindingModel model);
|
||||
void SaveOrdersToPdfFile(ReportBindingModel model);
|
||||
void SaveShopsToWordFile(ReportBindingModel model);
|
||||
void SaveShopsDressesToExcelFile(ReportBindingModel model);
|
||||
void SaveDatesOrdersToPdfFile(ReportBindingModel model);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
namespace SewingDressesContracts.ViewModels
|
||||
{
|
||||
public class ReportDateOrdersViewModel
|
||||
{
|
||||
public DateTime DateOfOrders { get; set; }
|
||||
public int Count { get; set; }
|
||||
public double Sum { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
|
||||
namespace SewingDressesContracts.ViewModels
|
||||
{
|
||||
public class ReportShopDressViewModel
|
||||
{
|
||||
public string ShopName { get; set; } = string.Empty;
|
||||
public int TotalCount { get; set; }
|
||||
public List<Tuple<string, int>> Dresses { get; set; } = new();
|
||||
}
|
||||
}
|
@ -11,6 +11,7 @@ namespace SewingDressesDataModels.Models
|
||||
string ShopName { get; }
|
||||
string Adress { get; }
|
||||
DateTime DateOpen { get; }
|
||||
Dictionary<int, (IDressModel, int)> ShopDresses { get; }
|
||||
int MaxCount { get; }
|
||||
}
|
||||
}
|
||||
|
@ -31,6 +31,8 @@ namespace SewingDressesDatabaseImplement.Models
|
||||
public virtual List<DressComponent> Components { get; set; } = new();
|
||||
[ForeignKey("DressId")]
|
||||
public virtual List<Order> Orders { get; set; } = new();
|
||||
[ForeignKey("DressId")]
|
||||
public virtual List<Shop> Shops { get; set; } = new();
|
||||
public static Dress Create(SewingDressesDatabase context, DressBindingModel model)
|
||||
{
|
||||
return new Dress()
|
||||
|
Loading…
Reference in New Issue
Block a user