You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.9 KiB
88 lines
2.9 KiB
@page "/Admin/Zuteilung/Zuteilung"
|
|
@inject Blazored.SessionStorage.ISessionStorageService sessionStorage
|
|
@inherits Admin.ListBase;
|
|
@using System.ComponentModel.DataAnnotations
|
|
@using Syncfusion.Blazor.Spinner;
|
|
@using Syncfusion.Blazor.Navigations;
|
|
@using Syncfusion.Blazor.Popups;
|
|
@using Syncfusion.Blazor.DropDowns
|
|
@using Syncfusion.Blazor.Lists
|
|
@using Syncfusion.Blazor.Inputs;
|
|
@using Syncfusion.Blazor.Notifications;
|
|
@using BlazorApp.Helper
|
|
@using BWPMModels;
|
|
|
|
<div class="col-lg-12 control-section">
|
|
<div class="content-wrapper">
|
|
@*<EditForm>*@
|
|
<div class="card">
|
|
<h6 class="card-header card-header1">Automatische Berufs-Zuteilung </h6>
|
|
<div class="card-body">
|
|
Drücken Sie auf "Zuteilung ausführen" um die automatische Berufszuteilung durchzuführen."<br /><br>
|
|
<p style="color:red">Achtung! Sämtliche vorhandenen Zuteilungen werden gelöscht.</p>
|
|
<br />
|
|
<br />
|
|
<p><b>Zuteilungsart</b></p>
|
|
<label>
|
|
<input type="radio" name="edition" checked="@(Variante == 1)" /> Zuteilung ab Priorität 2 zufällig
|
|
</label>
|
|
<br />
|
|
<label>
|
|
<input type="radio" name="edition" checked="@(Variante == 2)" /> Berücksichtigung der Prioritäten
|
|
</label>
|
|
<br>
|
|
<br />
|
|
<input type="submit" class="btn btn-primary" @onclick="zuteilen" value="Zuteilung ausführen" />
|
|
</div>
|
|
</div>
|
|
@*</EditForm>*@
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-12 control-section toast-default-section">
|
|
<SfToast ID="toast_default" @ref="ToastObj" Content="@ToastContent" Timeout="5000" Icon="e-meeting">
|
|
<ToastPosition X="Right" Y="Bottom"></ToastPosition>
|
|
<ToastAnimationSettings>
|
|
<ToastShowAnimationSettings Effect="@ShowAnimation"></ToastShowAnimationSettings>
|
|
<ToastHideAnimationSettings Effect="@HideAnimation"></ToastHideAnimationSettings>
|
|
</ToastAnimationSettings>
|
|
</SfToast>
|
|
</div>
|
|
<style>
|
|
.bootstrap4 #toast_default .e-meeting::before {
|
|
content: "\e763";
|
|
font-size: 20px;
|
|
}
|
|
.e-toast-container .e-toast {
|
|
background-color: lightgreen;
|
|
}
|
|
</style>
|
|
|
|
@code {
|
|
|
|
SfToast ToastObj;
|
|
private string ToastPosition = "Right";
|
|
private string ToastContent = "Zuteilung erfolgreich durchgeführt";
|
|
private ToastEffect ShowAnimation = ToastEffect.FadeIn;
|
|
private ToastEffect HideAnimation = ToastEffect.FadeOut;
|
|
|
|
private int @Variante = 1;
|
|
public void zuteilen()
|
|
{
|
|
try
|
|
{
|
|
dbhelper dbh = new dbhelper();
|
|
dbh.Zuteilen(@Variante);
|
|
ToastObj.ShowAsync();
|
|
}
|
|
catch
|
|
{
|
|
ToastContent = "Bei der automatischen Zuteilung ist ein Fehler aufgetreten.";
|
|
ToastObj.ShowAsync();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
} |