Refactor: Remove sample data and add invoice processing

Removed `SampleDataController`, `SampleData`, and `SampleOrder`
classes, along with the `DevExtreme` DataGrid in `Index.cshtml`,
to eliminate reliance on mock data and sample orders.

Updated `Index.cshtml` to introduce a welcome message and
informational section about ZUGFeRD/Factur-X invoice processing,
highlighting features like PDF/A upload, XML extraction, and
result PDF creation. Added navigation links for invoice-related
actions.

Updated `DXApp.TemplateKitProject.csproj` to include a new
`<ItemGroup>` for the `Controllers` folder, preparing the
project structure for future development.
This commit is contained in:
OlgunR
2026-06-02 16:21:18 +02:00
parent f7cac8c0a7
commit a55e53521f
5 changed files with 38 additions and 431 deletions

View File

@@ -1,28 +1,37 @@
@page
@using DXApp.TemplateKitProject.Models
@model DXApp.TemplateKitProject.Pages.IndexModel
@{
ViewData["Title"] = "Home";
}
<h2 class="content-block">Home</h2>
<div class="content-block">
<h2>Willkommen bei DXApp.TemplateKitProject</h2>
<div class="alert alert-info mt-4">
<h4>?? ZUGFeRD-Rechnungsverarbeitung</h4>
<p>Diese Anwendung ermöglicht die Verarbeitung von ZUGFeRD/Factur-X Rechnungen:</p>
<ul>
<li>? Upload von PDF/A-Rechnungen</li>
<li>? Automatische Extraktion von ZUGFeRD-XML</li>
<li>? Parsing und Speicherung in der Datenbank</li>
<li>? Erstellung von Result-PDFs mit Verarbeitungsstempel</li>
<li>? Anzeige von Anhängen (XML, PDF, Bilder)</li>
</ul>
</div>
@(Html.DevExtreme().DataGrid<SampleOrder>()
.ElementAttr(new { @class = "dx-card wide-card" })
.DataSource(d => d.Mvc().Controller("SampleData").LoadAction("Get").Key("OrderID"))
.ShowBorders(false)
.FilterRow(f => f.Visible(true))
.FocusedRowEnabled(true)
.FocusedRowIndex(0)
.ColumnAutoWidth(true)
.ColumnHidingEnabled(true)
.Columns(columns => {
columns.AddFor(m => m.OrderID);
columns.AddFor(m => m.OrderDate);
columns.AddFor(m => m.CustomerName);
columns.AddFor(m => m.ShipCountry);
columns.AddFor(m => m.ShipCity);
})
.Paging(p => p.PageSize(10))
.Pager(p => p
.ShowPageSizeSelector(true)
.AllowedPageSizes(new[] { 5, 10, 20 })
.ShowInfo(true)
)
)
<div class="mt-4">
<h4>Navigation</h4>
<div class="list-group">
<a href="/Invoices/Upload" class="list-group-item list-group-item-action">
<strong>?? PDF hochladen</strong>
<br/>
<small class="text-muted">Laden Sie eine ZUGFeRD-Rechnung hoch und verarbeiten Sie diese.</small>
</a>
<a href="/Invoices" class="list-group-item list-group-item-action">
<strong>?? Rechnungen</strong>
<br/>
<small class="text-muted">Zeigen Sie alle importierten Rechnungen an.</small>
</a>
</div>
</div>
</div>