init
This commit is contained in:
30
KretaWeb/Areas/Orarend/Models/TanoraNaplozasTabok.cs
Normal file
30
KretaWeb/Areas/Orarend/Models/TanoraNaplozasTabok.cs
Normal 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;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user