init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
39
KretaWeb/Areas/Hianyzas/Models/IgazolasKeresoModel.cs
Normal file
39
KretaWeb/Areas/Hianyzas/Models/IgazolasKeresoModel.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasKeresoModel
|
||||
{
|
||||
public IgazolasKeresoModel()
|
||||
{
|
||||
var tanevCO = new TanevHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType()).GetTanevInfo();
|
||||
KezdoNap = tanevCO.KezdoNap;
|
||||
UtolsoNap = tanevCO.UtolsoNap;
|
||||
}
|
||||
|
||||
public DateTime KezdoNap { get; set; }
|
||||
|
||||
public DateTime UtolsoNap { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Osztaly), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztCsopId { get; set; }
|
||||
|
||||
public DateTime IgazolasNaplozarasDatum { get; set; }
|
||||
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
|
||||
public int? SzervezetId { get; set; }
|
||||
|
||||
public bool IsFromSzervezet => SzervezetTipusId.HasValue && SzervezetTipusId.Value == (int)SzervezetTipusEnum.Dualis;
|
||||
|
||||
public string ControllerName { get; set; } = Constants.Controllers.Igazolas;
|
||||
|
||||
public string ApiControllerName { get; set; } = Constants.ApiControllers.IgazolasokApi;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue