Update vor Clone

This commit is contained in:
2021-12-18 11:01:04 +01:00
parent 70148e63ce
commit c05d1ac4e2
612 changed files with 72932 additions and 2064 deletions

View File

@@ -1,4 +1,5 @@
@page "/Teacher/TeacherContact"
@page "/Teacher/TeacherContact/{paramtid:int}"
@inject Blazored.SessionStorage.ISessionStorageService sessionStorage
@inject NavigationManager NavManager
@inherits Admin.ListBase;
@@ -192,6 +193,9 @@
@code {
[Parameter]
public int paramtid { get; set; }
SfTab Tab;
SfGrid<Klasse> Grid { get; set; }
public int Value = 0;
@@ -275,7 +279,14 @@
}
if (firstRender)
{
Lehrerdaten = BlazorApp.Controller.LehrerController.GetByUserID(userid);
if (paramtid!=0)
{
Lehrerdaten = BlazorApp.Controller.LehrerController.GetByID(paramtid);
}
else
{
Lehrerdaten = BlazorApp.Controller.LehrerController.GetByUserID(userid);
}
_lehrer = Lehrerdaten.First<BWPMModels.Lehrer>();
GridData = BlazorApp.Controller.KlasseController.GetByLehrerID(_lehrer.ID);
await sessionStorage.SetItemAsync("LehrerID", _lehrer.ID.ToString());
@@ -286,7 +297,6 @@
private async Task OnBeginHandler(ActionEventArgs<BWPMModels.Klasse> Args)
{
@* try
{
if (_lehrer.ID == 0)