COmpletata review QRCode cards
This commit is contained in:
@@ -2,14 +2,19 @@
|
||||
|
||||
@inject IJSRuntime JSRuntime
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header py-2 font-weight-bold">
|
||||
<div class="card border-secondary">
|
||||
<div class="card-header py-2 font-weight-bold bg-secondary">
|
||||
<div class="row">
|
||||
<div class="col-4 col-md-4">
|
||||
<img src="img/LogoBlu.svg" class="img-fluid" width="32" /> EgalWare
|
||||
<div class="badge badge-pill badge-light px-2 py-1">
|
||||
<div class="px-1">
|
||||
<span>EgalWare <img width="24" class="img-fluid" src="img/LogoBlu.svg" /></span>
|
||||
</div>
|
||||
</div>
|
||||
@*<img src="img/LogoBlu.svg" class="img-fluid" width="32" /> EgalWare*@
|
||||
</div>
|
||||
<div class="col-8 text-right">
|
||||
<h3 class="py-0 mb-0">@CardMessage</h3>
|
||||
<div class="col-8 text-right text-light">
|
||||
<h4 class="py-0 mb-0">@Environment</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,7 +30,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer text-muted">
|
||||
<div class="card-footer text-muted py-1 bg-secondary">
|
||||
Card login MAPO-TAB
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,15 +40,16 @@
|
||||
[Parameter]
|
||||
public AnagraficaOperatori CurrItem { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string CardMessage { get; set; }
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{CurrItem.MatrOpr}", rawCode);
|
||||
}
|
||||
|
||||
protected string BaseUrl = "http://IIS01/";
|
||||
[Parameter]
|
||||
public string BaseUrl { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string Environment { get; set; }
|
||||
|
||||
protected string rawCode
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
@foreach (var item in ListRecords)
|
||||
{
|
||||
<div class="col-6 my-2 userCard">
|
||||
<UserCard CurrItem="@item"></UserCard>
|
||||
<UserCard CurrItem="@item" BaseUrl="@BaseUrl" Environment="@Environment"></UserCard>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -38,24 +38,23 @@ namespace MP.Land.Pages
|
||||
[Inject]
|
||||
protected MessageService AppMService { get; set; }
|
||||
|
||||
protected string BaseUrl
|
||||
{
|
||||
get => Configuration["BaseUrl"];
|
||||
}
|
||||
|
||||
[Inject]
|
||||
protected AppAuthService DataService { get; set; }
|
||||
|
||||
protected string Environment
|
||||
{
|
||||
get => Configuration["Environment"];
|
||||
}
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected bool authOk(UpdMan currItem)
|
||||
{
|
||||
bool answ = !string.IsNullOrEmpty(currItem.LicenseKey) && Convert.ToBoolean(currItem.IsAuth);
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected string fullUrl(string relUrl)
|
||||
{
|
||||
return $"{Configuration["BaseUrl"]}{relUrl}";
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
AppMService.ShowSearch = false;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"BaseUrl": "https://localhost:44309/",
|
||||
"Environment": "Steam DEV",
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Server=SQL2016DEV;Database=MoonPro;Trusted_Connection=True;MultipleActiveResultSets=true",
|
||||
"MP.Land": "Server=SQL2016DEV;Database=MoonPro;User ID=sa;Password=keyhammer16;integrated security=False;MultipleActiveResultSets=True;App=MP.Land;",
|
||||
|
||||
Reference in New Issue
Block a user