init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
using System.Data;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.Core.ConnectionType;
|
||||
|
||||
namespace Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Logic
|
||||
{
|
||||
public static class HelyettesitesLogic
|
||||
{
|
||||
public class Tanar
|
||||
{
|
||||
public Tanar(int tanarId, int tanevId, int intezmenyId, string intezmenyAzonosito, Enums.OktNevelesiKategoriaEnum? oktatasNevelesKategoriaEnum = null)
|
||||
{
|
||||
TanarHelyettesiteseiDt = new HelyettesitesHelper(new MobileConnectionType(tanarId, intezmenyId, intezmenyAzonosito, tanevId)).GetHelyettesitesekListajaGrid(new HelperClasses.HelyettesitesekListajaSearchCO
|
||||
{
|
||||
HelyettesitoTanarSearch = tanarId,
|
||||
FeladatKategoriaId = oktatasNevelesKategoriaEnum.HasValue ? (int)oktatasNevelesKategoriaEnum : (int)default
|
||||
|
||||
}).Tables[0];
|
||||
}
|
||||
|
||||
private DataTable TanarHelyettesiteseiDt { get; set; }
|
||||
|
||||
public bool IsHelyettesito(int osztalyCsoportId, int tantargyId)
|
||||
=> TanarHelyettesiteseiDt.Select($"OsztalyCsoportId = {osztalyCsoportId} AND TantargyId = {tantargyId}").Length > 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue