From d473fe0be70d1d9b8df52860b1dbdb20cd3a6000 Mon Sep 17 00:00:00 2001 From: barhen Date: Sat, 1 Jul 2023 17:45:39 -0500 Subject: [PATCH] Products and sales pages complete --- Client/Biskilog Accounting.Client.csproj | 57 ++--- Client/Elements/Headbar.razor | 46 +++- Client/Elements/Headbar.razor.cs | 26 +++ Client/Layouts/MainLayout.razor | 75 ++++++- Client/Layouts/MainLayout.razor.cs | 40 +++- Client/Models/NavItem.cs | 59 +++--- Client/Pages/Dashboard/Dashboard.razor | 101 ++++----- Client/Pages/Dashboard/Dashboard.razor.cs | 44 +++- .../Dashboard/Elements/ChartElement.razor | 37 +--- .../Dashboard/Elements/ChartElement.razor.cs | 18 +- .../Dashboard/Elements/LowStockItems.razor | 24 +-- .../Elements/MostPurchasedElement.razor | 18 +- .../Elements/ProductPriceHistory.razor | 4 +- .../Elements/ProductPriceHistory.razor.cs | 47 +++- .../Dashboard/Elements/TransactionCard.razor | 17 +- Client/Pages/Product/Brands.razor | 19 ++ Client/Pages/Product/Brands.razor.cs | 37 ++++ Client/Pages/Product/Categories.razor | 19 ++ Client/Pages/Product/Categories.razor.cs | 37 ++++ .../Product/Elements/ProductDialog.razor | 186 ++++++++++++++++ .../Product/Elements/ProductDialog.razor.cs | 25 +++ Client/Pages/Product/Products.razor | 29 +++ Client/Pages/Product/Products.razor.cs | 68 ++++++ .../Transactions/Elements/ReceiptDialog.razor | 95 +++++++++ .../Elements/ReceiptDialog.razor.cs | 67 ++++++ .../Transactions/Elements/SaleSummary.razor | 25 +++ .../Elements/SaleSummary.razor.cs | 24 +++ Client/Pages/Transactions/Sales.razor | 77 +++++++ Client/Pages/Transactions/Sales.razor.cs | 102 +++++++++ Client/Program.cs | 19 +- Client/Repos/MainInterfaceService.cs | 98 +++++++++ Client/Repos/ProductRepository.cs | 143 +++++++++++++ Client/Repos/SalesRepository.cs | 98 +++++++++ Client/_Imports.razor | 2 + Client/wwwroot/assets/img/box.png | Bin 0 -> 19727 bytes Client/wwwroot/assets/vendor/css/core.css | 5 +- Client/wwwroot/css/app.css | 151 +++++++++++++ Client/wwwroot/fonts/CCode39.woff | Bin 0 -> 2464 bytes Client/wwwroot/fonts/CCodeIND2of5.woff | Bin 0 -> 1872 bytes Client/wwwroot/fonts/CCodePostnet.woff | Bin 0 -> 1824 bytes Client/wwwroot/index.html | 32 ++- Server/BiskAcdbContext.cs | 9 + Server/Controllers/AnalyticsController.cs | 9 + Server/Controllers/CompanyInfoController.cs | 37 ++++ Server/Controllers/ProductsController.cs | 55 +++++ Server/Controllers/SalesController.cs | 49 +++++ Server/Program.cs | 4 +- Server/Services/AnalyticalService.cs | 31 +++ Server/Services/CompanyService.cs | 53 +++++ Server/Services/ProductRepo.cs | 200 ++++++++++++++++++ Server/Services/SalesService.cs | 169 +++++++++++++++ Shared/CustomModels/ProductItem.cs | 4 +- Shared/CustomModels/ProductUnits.cs | 26 +++ Shared/CustomModels/WeeklySaleItem.cs | 6 + Shared/Interfaces/IAnalytics.cs | 5 + Shared/Interfaces/ICompanyInfo.cs | 18 ++ Shared/Interfaces/IMainInterface.cs | 15 ++ Shared/Interfaces/IProducts.cs | 32 +++ Shared/Interfaces/ISalesInterface.cs | 24 +++ Shared/Interfaces/ISearchService.cs | 16 ++ Shared/POSModels/Tblcart.cs | 4 + Shared/ServiceRepo/SearchService.cs | 33 +++ 62 files changed, 2539 insertions(+), 231 deletions(-) create mode 100644 Client/Elements/Headbar.razor.cs create mode 100644 Client/Pages/Product/Brands.razor create mode 100644 Client/Pages/Product/Brands.razor.cs create mode 100644 Client/Pages/Product/Categories.razor create mode 100644 Client/Pages/Product/Categories.razor.cs create mode 100644 Client/Pages/Product/Elements/ProductDialog.razor create mode 100644 Client/Pages/Product/Elements/ProductDialog.razor.cs create mode 100644 Client/Pages/Product/Products.razor create mode 100644 Client/Pages/Product/Products.razor.cs create mode 100644 Client/Pages/Transactions/Elements/ReceiptDialog.razor create mode 100644 Client/Pages/Transactions/Elements/ReceiptDialog.razor.cs create mode 100644 Client/Pages/Transactions/Elements/SaleSummary.razor create mode 100644 Client/Pages/Transactions/Elements/SaleSummary.razor.cs create mode 100644 Client/Pages/Transactions/Sales.razor create mode 100644 Client/Pages/Transactions/Sales.razor.cs create mode 100644 Client/Repos/MainInterfaceService.cs create mode 100644 Client/Repos/ProductRepository.cs create mode 100644 Client/Repos/SalesRepository.cs create mode 100644 Client/wwwroot/assets/img/box.png create mode 100644 Client/wwwroot/fonts/CCode39.woff create mode 100644 Client/wwwroot/fonts/CCodeIND2of5.woff create mode 100644 Client/wwwroot/fonts/CCodePostnet.woff create mode 100644 Server/Controllers/CompanyInfoController.cs create mode 100644 Server/Controllers/ProductsController.cs create mode 100644 Server/Controllers/SalesController.cs create mode 100644 Server/Services/CompanyService.cs create mode 100644 Server/Services/ProductRepo.cs create mode 100644 Server/Services/SalesService.cs create mode 100644 Shared/CustomModels/ProductUnits.cs create mode 100644 Shared/Interfaces/ICompanyInfo.cs create mode 100644 Shared/Interfaces/IMainInterface.cs create mode 100644 Shared/Interfaces/IProducts.cs create mode 100644 Shared/Interfaces/ISalesInterface.cs create mode 100644 Shared/Interfaces/ISearchService.cs create mode 100644 Shared/ServiceRepo/SearchService.cs diff --git a/Client/Biskilog Accounting.Client.csproj b/Client/Biskilog Accounting.Client.csproj index 54f710b..93bc9d7 100644 --- a/Client/Biskilog Accounting.Client.csproj +++ b/Client/Biskilog Accounting.Client.csproj @@ -1,35 +1,38 @@ - - net7.0 - enable - enable - service-worker-assets.js - $(AssemblyName.Replace(' ', '_')) - + + net7.0 + enable + enable + service-worker-assets.js + $(AssemblyName.Replace(' ', '_')) + - - - + + + - - - - - - - - - - - + + + + + + + + + + + + + + - - - + + + - - - + + + diff --git a/Client/Elements/Headbar.razor b/Client/Elements/Headbar.razor index d6c5c7b..e0105cd 100644 --- a/Client/Elements/Headbar.razor +++ b/Client/Elements/Headbar.razor @@ -1,5 +1,8 @@ - +@using Biskilog_Accounting.Shared.Interfaces; +@inject ISearchService m_searchService +@inject IJSRuntime JSRuntime; +