This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,30 @@
using System.Collections.Generic;
using Kreta.Web.Helpers.TabStrip;
using Newtonsoft.Json;
namespace Kreta.Web.Areas.Orarend.Models
{
public class TanoraNaplozasTabok
{
public TanoraNaplozasTabok(int? szervezetTipusId = null)
{
TanoraMuveletek = new TanoraMuveletek();
TabList = new List<TabStripItemModel>();
SzervezetTipusId = szervezetTipusId;
}
public TanoraMuveletek TanoraMuveletek { get; set; }
public List<TabStripItemModel> TabList { get; set; }
public string SerialisedTanoraMuveletek { get { return JsonConvert.SerializeObject(TanoraMuveletek); } }
//Ezek az attribútumok a modal fejlécéhez kellenek
public int Oraszam { get; set; }
public string Tantargy { get; set; }
public string OsztalyCsoport { get; set; }
public string Fejlec { get; set; }
public int? SzervezetTipusId { get; set; }
public string ControllerName => SzervezetTipusId.HasValue ? Constants.Controllers.DualisTanariOrarend : Constants.Controllers.TanariOrarend;
public string ApiControllerName => SzervezetTipusId.HasValue ? Constants.ApiControllers.DualisTanariOrarendApi : Constants.ApiControllers.TanariOrarendApi;
}
}