29 lines
736 B
Plaintext
29 lines
736 B
Plaintext
![]() |
<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();
|
||
|
}
|
||
|
|
||
|
}
|