...
This commit is contained in:
28
TaxPayerFull/Pages/InvoiceReport.razor
Normal file
28
TaxPayerFull/Pages/InvoiceReport.razor
Normal 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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user