150 lines
4.8 KiB
Plaintext
150 lines
4.8 KiB
Plaintext
@using LiMan.UI.Components
|
|
@using Microsoft.Extensions.Configuration
|
|
@inject IConfiguration Configuration
|
|
|
|
@using System.IO
|
|
@inject IJSRuntime JS
|
|
|
|
<div class="row">
|
|
<div class="@mainCss">
|
|
<div class="card">
|
|
<div class="card-header bg-success py-1 text-light">
|
|
<h3>Tickets</h3>
|
|
</div>
|
|
|
|
<div class="card-body bg-light p-1">
|
|
|
|
@if (ListRecords == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
|
|
}
|
|
else
|
|
{
|
|
|
|
<table class="table table-sm table-striped table-responsive-lg">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<button type="button" class="btn btn-sm btn-warning btn-block" @onclick="() => ReloadAllData()"><i class="fas fa-times"></i></button>
|
|
</th>
|
|
<th>#</th>
|
|
<th>Richiedente</th>
|
|
<th>Contatti</th>
|
|
<th>
|
|
Descrizione
|
|
</th>
|
|
</tr>
|
|
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<button type="button" class="btn btn-sm btn-primary" @onclick="() => showDet(record)"><i class="fas fa-search"></i></button>
|
|
</td>
|
|
<td>
|
|
@record.IdxTicket<br />
|
|
@record.Status
|
|
</td>
|
|
<td>
|
|
<div><b>@record.ContactName</b></div>
|
|
<div>@record.DtReq</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.ContactEmail</div>
|
|
<div>@record.ContactPhone</div>
|
|
</td>
|
|
<td>
|
|
@record.ReqBody
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
|
|
</table>
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
@if (idxTicketSel > 0)
|
|
{
|
|
<div class="col-3">
|
|
<div>
|
|
<table class="table table-sm table-striped table-responsive-lg">
|
|
<thead>
|
|
<tr>
|
|
<th>Nome File</th>
|
|
<th>FullStoragePath</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in FileAttached)
|
|
{
|
|
|
|
<tr>
|
|
<td>
|
|
@*<button @onclick="() => DownloadFileFromURL(record.OriginalName, record.FullStoragePath)"> @record.OriginalName</button>*@
|
|
<a href="@(Configuration["ApiUrl"]+"/ELM.API/api/filesave/"+@record.FullStoragePath+"/"+@record.OriginalName)" target="_blank">@record.OriginalName</a>
|
|
@*<a @onclick="() => DownloadFileFromURL(record.OriginalName, record.FullStoragePath)"> @record.OriginalName</a>*@
|
|
|
|
|
|
</td>
|
|
<td>
|
|
<div>@record.FullStoragePath</div>
|
|
</td>
|
|
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
@* <button @onclick="DownloadFileFromURL">
|
|
Download File From URL
|
|
</button>*@
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@*<div class="card-body bg-light p-2">
|
|
@if (idxTicketSel > 0)
|
|
{
|
|
<div>
|
|
<table class="table table-sm table-striped table-responsive-lg">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>OriginalName</th>
|
|
@*<th>FullStoragePath</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in FileAttached)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@record.OriginalName<br />
|
|
|
|
</td>
|
|
@*<td>
|
|
<div>@record.FullStoragePath</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
</div>
|
|
*@ |