This commit is contained in:
mmrbnjd
2024-05-30 15:08:36 +03:30
parent 85a72bc1ad
commit 579ccf78d6
15 changed files with 1182 additions and 179 deletions

View File

@@ -0,0 +1,28 @@
<PageTitle>صورتحساب</PageTitle>
@using Front.Services
@using Stimulsoft.Base
@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
@inject HttpClientController hc;
@layout EmptyLayout
@page "/InvoiceReport/{InvoiceID:int}"
<StiBlazorViewer Report="@Report" />
@code {
private StiReport Report;
[Parameter] public int InvoiceID { get; set; }
protected async override Task OnParametersSetAsync()
{
//Create empty report object
this.Report = new StiReport();
//Load report template
var reportBytes = await hc._hc.GetByteArrayAsync("Invoice/GetReport");
this.Report.Load(reportBytes);
await base.OnParametersSetAsync();
}
}