Skip to content

Commit

Permalink
Merge pull request #1 from fabien-ss/pdf
Browse files Browse the repository at this point in the history
Evaluation done
  • Loading branch information
fabien-ss authored Jun 20, 2024
2 parents a88b84f + eb79d19 commit 52101c0
Show file tree
Hide file tree
Showing 235 changed files with 11,770 additions and 979 deletions.
17 changes: 17 additions & 0 deletions AspnetCoreMvcFull.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CsvHelper" Version="32.0.1" />
<PackageReference Include="iTextSharp" Version="5.5.13.3" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.3" />
Expand All @@ -25,6 +26,12 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Controllers\admin\" />
<Folder Include="Controllers\documents\" />
<Folder Include="database\jour-3\" />
<Folder Include="Pages\" />
<Folder Include="wwwroot\documents\pdf\" />
<Folder Include="wwwroot\img\construction\logo\" />
<Folder Include="wwwroot\uploads\documents\csv\" />
<Folder Include="wwwroot\uploads\images\" />
</ItemGroup>
Expand All @@ -35,6 +42,16 @@
<_ContentIncludedByDefault Remove="Views\Chauffeur\Details.cshtml" />
<_ContentIncludedByDefault Remove="Views\Chauffeur\Edit.cshtml" />
<_ContentIncludedByDefault Remove="Views\Chauffeur\Index.cshtml" />
<_ContentIncludedByDefault Remove="Views\Produit\Create.cshtml" />
<_ContentIncludedByDefault Remove="Views\Produit\Delete.cshtml" />
<_ContentIncludedByDefault Remove="Views\Produit\Details.cshtml" />
<_ContentIncludedByDefault Remove="Views\Produit\Edit.cshtml" />
<_ContentIncludedByDefault Remove="Views\Produit\Index.cshtml" />
<_ContentIncludedByDefault Remove="Views\Unite\Create.cshtml" />
<_ContentIncludedByDefault Remove="Views\Unite\Delete.cshtml" />
<_ContentIncludedByDefault Remove="Views\Unite\Details.cshtml" />
<_ContentIncludedByDefault Remove="Views\Unite\Edit.cshtml" />
<_ContentIncludedByDefault Remove="Views\Unite\Index.cshtml" />
</ItemGroup>

<ItemGroup>
Expand Down
412 changes: 412 additions & 0 deletions Context/ConstructionDb.cs

Large diffs are not rendered by default.

281 changes: 0 additions & 281 deletions Context/Prom13.cs

This file was deleted.

37 changes: 37 additions & 0 deletions Controllers/AdminDashBoardController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using AspnetCoreMvcFull.Context;
using AspnetCoreMvcFull.Models.dashboard;
using Microsoft.AspNetCore.Mvc;

namespace AspnetCoreMvcFull.Controllers;

public class AdminDashBoardController : Controller
{
private readonly ConstructionDb ConstructionDb;

public AdminDashBoardController(ConstructionDb constructionDb)
{
this.ConstructionDb = constructionDb;
}
// GET
[HttpGet]
public IActionResult Index()
{
DashBoard dashBoard = new DashBoard();
dashBoard.setMontantParMois(constructionDb:ConstructionDb);
dashBoard.setMontantTotal(ConstructionDb);
dashBoard.VSommePaiements = ConstructionDb.VSommePaiements.ToList();
return View(dashBoard);
}
[HttpPost]
public IActionResult Index(string annee)
{
DashBoard dashBoard = new DashBoard();
Console.WriteLine("annee ",annee);
dashBoard.TargetYear = annee;
dashBoard.setMontantParMois(constructionDb:ConstructionDb);
dashBoard.setMontantTotal(ConstructionDb);
dashBoard.VSommePaiements = ConstructionDb.VSommePaiements.ToList();
return View(dashBoard);
}

}
Loading

0 comments on commit 52101c0

Please sign in to comment.