Update vor Blazorise
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user