Update 20231515
This commit is contained in:
@@ -1,51 +1,88 @@
|
||||
@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>
|
||||
|
||||
|
||||
|
||||
|
||||
@code {
|
||||
private int @Variante = 1;
|
||||
void zuteilen()
|
||||
{
|
||||
|
||||
}
|
||||
@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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user