@page "/seamanapplication2"
@using ApplicationShared.Models
@using ApplicationShared
@inject AppState _appState
@inject NavigationManager _uriHelper
@inject SeamanService _seamSvc
@if (seaman == null)
{
<div class="sk-circle">
<div class="sk-circle1 sk-child"></div>
<div class="sk-circle2 sk-child"></div>
<div class="sk-circle3 sk-child"></div>
<div class="sk-circle4 sk-child"></div>
<div class="sk-circle5 sk-child"></div>
<div class="sk-circle6 sk-child"></div>
<div class="sk-circle7 sk-child"></div>
<div class="sk-circle8 sk-child"></div>
<div class="sk-circle9 sk-child"></div>
<div class="sk-circle10 sk-child"></div>
<div class="sk-circle11 sk-child"></div>
<div class="sk-circle12 sk-child"></div>
</div>
}
else
{
<EjsDatePicker TValue="DateTime?"></EjsDatePicker>
}
@code {
Int32 SeamanId;
Seaman seaman;
protected IEnumerable<SeamanCertificateExtended> SeamanCertificates;
protected override async Task OnInitializedAsync()
{
if (_appState.UserName != null)
{
SeamanId = _appState.UserID;
seaman = await _seamSvc.GetSeaman(SeamanId);
SeamanCertificates = await _seamSvc.GetSeamanCertificatesExtended(SeamanId);
}
}
}