Update vor Blazorise

This commit is contained in:
2021-08-17 21:40:36 +02:00
parent e16ec943e1
commit 1746401541
150 changed files with 26965 additions and 4583 deletions

View File

@@ -67,6 +67,41 @@ namespace BlazorApp.Controller
}
public static int Get_Anzahl(int SchuelerID)
{
dbhelper dbh = new dbhelper();
dbh.Get_Tabledata("Select count(*) from schuelerberuf where aktiv=1 and schuelerid=" + SchuelerID.ToString(), false, true);
if (dbh.dsdaten.Tables[0].Rows.Count == 0)
{
return 0;
}
else
{
return Convert.ToInt32(dbh.dsdaten.Tables[0].Rows[0][0]);
}
}
public static Boolean Has_Prio1(int SchuelerID)
{
dbhelper dbh = new dbhelper();
dbh.Get_Tabledata("Select count(*) from schuelerberuf where prioritaet=1 and aktiv=1 and schuelerid=" + SchuelerID.ToString(), false, true);
if (dbh.dsdaten.Tables[0].Rows.Count == 0)
{
return false;
}
else
{
if (dbh.dsdaten.Tables[0].Rows[0][0].ToString() == "0")
{
return false;
}
else
{
return true;
}
}
}
public static int POST(SchuelerBeruf SchuelerBerufdata)
{
dbhelper dbh = new dbhelper();