update nach Schuelererfassung
This commit is contained in:
@@ -27,6 +27,12 @@ namespace BlazorApp.Controller
|
||||
return dbh.ConvertDataTable<SchuelerBeruf>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
public static List<SchuelerBeruf> GetBySchuelerID(int ID)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select * from SchuelerBeruf where aktiv=1 and schuelerid=" + ID.ToString(), false, true);
|
||||
return dbh.ConvertDataTable<SchuelerBeruf>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
public static List<SchuelerBeruf> GetLast()
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
@@ -47,6 +53,20 @@ namespace BlazorApp.Controller
|
||||
return dbh.ConvertDataTable<SchuelerBeruf>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
public static int Get_Prio(int SchuelerID)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select top 1 prioritaet from schuelerberuf where aktiv=1 and schuelerid="+SchuelerID.ToString()+" order by prioritaet desc", 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 int POST(SchuelerBeruf SchuelerBerufdata)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
|
||||
Reference in New Issue
Block a user