init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class CsoportMulasztasokGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
public SzerepkorViewTypeEnum SzerepkorViewType { get; set; }
|
||||
|
||||
public int? CsoportTipusId { get; set; }
|
||||
public bool IsTanorai { get; set; }
|
||||
public CsoportvezetokIgazolasiJogosultsagaEnum MulasztasJogosultsagSetting { get; set; }
|
||||
}
|
||||
}
|
7
KretaWeb/Areas/Hianyzas/Models/FelmentesTorlesModel.cs
Normal file
7
KretaWeb/Areas/Hianyzas/Models/FelmentesTorlesModel.cs
Normal file
|
@ -0,0 +1,7 @@
|
|||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class FelmentesTorlesModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
135
KretaWeb/Areas/Hianyzas/Models/FelmentesekGridModel.cs
Normal file
135
KretaWeb/Areas/Hianyzas/Models/FelmentesekGridModel.cs
Normal file
|
@ -0,0 +1,135 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
using static Kreta.Core.Constants;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class FelmentesekGridModel : IKretaIdentity
|
||||
{
|
||||
#region Fields
|
||||
|
||||
public const string FelmentesekGridExportAttributeId = nameof(FelmentesekGridExportAttributeId);
|
||||
public const string AktivFelmentesekGridExportAttributeId = nameof(AktivFelmentesekGridExportAttributeId);
|
||||
public const string ToroltFelmentesekGridExportAttributeId = nameof(ToroltFelmentesekGridExportAttributeId);
|
||||
|
||||
#endregion
|
||||
|
||||
public FelmentesekGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public FelmentesekGridModel(FelmentesGridItemCo itemCo, bool isTeljesFelmentesOka = false)
|
||||
{
|
||||
ID = itemCo.ID;
|
||||
TanuloNeve = itemCo.TanuloNeve;
|
||||
TanuloOsztalya = itemCo.TanuloOsztalya;
|
||||
TantargyNev = itemCo.TantargyNev;
|
||||
KezdeteDate = itemCo.KezdeteDate.HasValue ? itemCo.KezdeteDate.Value.ToString(ToStringPattern.HungarianDate) : "-";
|
||||
VegeDate = itemCo.VegeDate.HasValue ? itemCo.VegeDate.Value.ToString(ToStringPattern.HungarianDate) : "-";
|
||||
TanoraLatogatasaAloli = itemCo.IsTanoraLatogatasaAloli ? IgenNemEnum.Igen.GetDisplayName(ClaimData.SelectedTanevID.Value) : IgenNemEnum.Nem.GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
ErtekelesAloli = itemCo.IsErtekelesAloli ? IgenNemEnum.Igen.GetDisplayName(ClaimData.SelectedTanevID.Value) : IgenNemEnum.Nem.GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
SzovegesenErtekelheto = itemCo.IsSzovegesenErtekelheto ? IgenNemEnum.Igen.GetDisplayName(ClaimData.SelectedTanevID.Value) : IgenNemEnum.Nem.GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
FelmentesOka = itemCo.FelmentesOka.Length > 16 && !isTeljesFelmentesOka ? itemCo.FelmentesOka.Substring(0, 12) + "..." : itemCo.FelmentesOka;
|
||||
RogzitesDate = itemCo.RogzitesDate.HasValue ? itemCo.RogzitesDate.Value.ToString(Kreta.Core.Constants.ToStringPattern.HungarianDate) : "-";
|
||||
RogzitoNeve = itemCo.RogzitoNeve == SpecialUserName.KretaTechnicalUserName ? AdatszolgaltatasokResource.NincsAdat : itemCo.RogzitoNeve;
|
||||
ModositasDate = itemCo.ModositasDate.HasValue ? itemCo.ModositasDate.Value.ToString(Kreta.Core.Constants.ToStringPattern.HungarianDate) : "-";
|
||||
ModositoNeve = itemCo.ModositoNeve == SpecialUserName.KretaTechnicalUserName ? AdatszolgaltatasokResource.NincsAdat : itemCo.ModositoNeve;
|
||||
Torolt = itemCo.Torolt;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 00, nameof(FelmentesResource.TanuloNeve), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 00, nameof(FelmentesResource.TanuloNeve), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 00, nameof(FelmentesResource.TanuloNeve), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.TanuloNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string TanuloNeve { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 01, nameof(FelmentesResource.TanuloOsztalya), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 01, nameof(FelmentesResource.TanuloOsztalya), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 01, nameof(FelmentesResource.TanuloOsztalya), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.TanuloOsztalya), ResourceType = typeof(FelmentesResource))]
|
||||
public string TanuloOsztalya { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 02, nameof(FelmentesResource.Tantargy), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 02, nameof(FelmentesResource.Tantargy), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 02, nameof(FelmentesResource.Tantargy), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.Tantargy), ResourceType = typeof(FelmentesResource))]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 03, nameof(FelmentesResource.KezdeteDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 03, nameof(FelmentesResource.KezdeteDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 03, nameof(FelmentesResource.KezdeteDate), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.KezdeteDate), ResourceType = typeof(FelmentesResource))]
|
||||
public string KezdeteDate { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 04, nameof(FelmentesResource.VegeDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 04, nameof(FelmentesResource.VegeDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 04, nameof(FelmentesResource.VegeDate), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.VegeDate), ResourceType = typeof(FelmentesResource))]
|
||||
public string VegeDate { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 05, nameof(FelmentesResource.IsTanoraLatogatasaAloli), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 05, nameof(FelmentesResource.IsTanoraLatogatasaAloli), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 05, nameof(FelmentesResource.IsTanoraLatogatasaAloli), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.IsTanoraLatogatasaAloli), ResourceType = typeof(FelmentesResource))]
|
||||
public string TanoraLatogatasaAloli { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 06, nameof(FelmentesResource.IsErtekelesAloli), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 06, nameof(FelmentesResource.IsErtekelesAloli), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 06, nameof(FelmentesResource.IsErtekelesAloli), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.IsErtekelesAloli), ResourceType = typeof(FelmentesResource))]
|
||||
public string ErtekelesAloli { get; set; }
|
||||
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 07, nameof(FelmentesResource.IsSzovegesenErtekelheto), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 07, nameof(FelmentesResource.IsSzovegesenErtekelheto), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 07, nameof(FelmentesResource.IsSzovegesenErtekelheto), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.IsSzovegesenErtekelheto), ResourceType = typeof(FelmentesResource))]
|
||||
public string SzovegesenErtekelheto { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 08, nameof(FelmentesResource.FelmentesOka), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 08, nameof(FelmentesResource.FelmentesOka), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 08, nameof(FelmentesResource.FelmentesOka), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.FelmentesOka), ResourceType = typeof(FelmentesResource))]
|
||||
public string FelmentesOka { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 09, nameof(FelmentesResource.RogzitesDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 09, nameof(FelmentesResource.RogzitesDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 09, nameof(FelmentesResource.RogzitesDate), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.RogzitesDate), ResourceType = typeof(FelmentesResource))]
|
||||
public string RogzitesDate { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 10, nameof(FelmentesResource.RogzitoNeve), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 10, nameof(FelmentesResource.RogzitoNeve), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 10, nameof(FelmentesResource.RogzitoNeve), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.RogzitoNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string RogzitoNeve { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 11, nameof(FelmentesResource.ModositasDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 11, nameof(FelmentesResource.ModositasDate), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 11, nameof(FelmentesResource.ModositasDate), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.ModositasDate), ResourceType = typeof(FelmentesResource))]
|
||||
public string ModositasDate { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 12, nameof(FelmentesResource.ModositoNeve), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(ToroltFelmentesekGridExportAttributeId, 12, nameof(FelmentesResource.ModositoNeve), typeof(FelmentesResource))]
|
||||
[SimpleExportColumn(AktivFelmentesekGridExportAttributeId, 12, nameof(FelmentesResource.ModositoNeve), typeof(FelmentesResource))]
|
||||
[Display(Name = nameof(FelmentesResource.ModositoNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string ModositoNeve { get; set; }
|
||||
|
||||
public bool Torolt { get; set; }
|
||||
|
||||
[SimpleExportColumn(FelmentesekGridExportAttributeId, 13, nameof(FelmentesResource.ToroltStr), typeof(FelmentesResource))]
|
||||
public string Torolt_Str => Torolt ? IgenNemEnum.Igen.GetDisplayName(ClaimData.SelectedTanevID.Value) : IgenNemEnum.Nem.GetDisplayName(ClaimData.SelectedTanevID.Value);
|
||||
}
|
||||
}
|
87
KretaWeb/Areas/Hianyzas/Models/FelmentesekSearchModel.cs
Normal file
87
KretaWeb/Areas/Hianyzas/Models/FelmentesekSearchModel.cs
Normal file
|
@ -0,0 +1,87 @@
|
|||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class FelmentesekSearchModel
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public FelmentesekSearchModel() { }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.TanuloNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string TanuloNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.TanuloOsztalya), ResourceType = typeof(FelmentesResource))]
|
||||
public int? OsztalyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.Tantargy), ResourceType = typeof(FelmentesResource))]
|
||||
public int? TantargyIdSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.KezdeteDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? KezdeteDateFrom { get; set; }
|
||||
public DateTime? KezdeteDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.VegeDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? VegeDateFrom { get; set; }
|
||||
public DateTime? VegeDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.IsTanoraLatogatasaAloli), ResourceType = typeof(FelmentesResource))]
|
||||
public int? IsTanoraLatogatasaAloli { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.IsErtekelesAloli), ResourceType = typeof(FelmentesResource))]
|
||||
public int? IsErtekelesAloli { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.IsSzovegesenErtekelheto), ResourceType = typeof(FelmentesResource))]
|
||||
public int? IsSzovegesenErtekelheto { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.FelmentesOka), ResourceType = typeof(FelmentesResource))]
|
||||
public string FelmentesOka { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.RogzitesDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? RogzitesDateFrom { get; set; }
|
||||
public DateTime? RogzitesDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.RogzitoNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string RogzitoNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.ModositasDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? ModositasDateFrom { get; set; }
|
||||
public DateTime? ModositasDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.ModositoNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string ModositoNeve { get; set; }
|
||||
|
||||
public bool? Torolt { get; set; }
|
||||
|
||||
public FelmentesSearchCo ToCo()
|
||||
{
|
||||
var felmentesSearchCo = new FelmentesSearchCo
|
||||
{
|
||||
ID = ID,
|
||||
TanuloNeve = TanuloNeve,
|
||||
TanuloOsztalyId = OsztalyId,
|
||||
TantargyId = TantargyIdSearch,
|
||||
KezdeteDateFrom = KezdeteDateFrom,
|
||||
KezdeteDateTo = KezdeteDateTo,
|
||||
VegeDateFrom = VegeDateFrom,
|
||||
VegeDateTo = VegeDateTo,
|
||||
IsTanoraLatogatasaAloli = IsTanoraLatogatasaAloli,
|
||||
IsErtekelesAloli = IsErtekelesAloli,
|
||||
IsSzovegesenErtekelheto = IsSzovegesenErtekelheto,
|
||||
FelmentesOka = FelmentesOka,
|
||||
RogzitesDateFrom = RogzitesDateFrom,
|
||||
RogzitesDateTo = RogzitesDateTo.HasValue ? RogzitesDateTo.Value.AddDays(1) : (DateTime?)null,
|
||||
RogzitoNeve = RogzitoNeve,
|
||||
ModositasDateFrom = ModositasDateFrom,
|
||||
ModositasDateTo = ModositasDateTo.HasValue ? ModositasDateTo.Value.AddDays(1) : (DateTime?)null,
|
||||
ModositoNeve = ModositoNeve,
|
||||
Torolt = Torolt
|
||||
};
|
||||
return felmentesSearchCo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
44
KretaWeb/Areas/Hianyzas/Models/HianyzasGridModel.cs
Normal file
44
KretaWeb/Areas/Hianyzas/Models/HianyzasGridModel.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class HianyzasGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[KretaDisplayName(1842)] //Rögzítés dátuma
|
||||
public DateTime RogzitesDatum { get; set; }
|
||||
|
||||
[KretaDisplayName(1795)] /*Mulasztás dátuma*/
|
||||
public DateTime MulasztasDatum { get; set; }
|
||||
|
||||
[KretaDisplayName(219)] /*Óra*/
|
||||
public string Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Targy { get; set; }
|
||||
|
||||
[KretaDisplayName(271)] /*Téma*/
|
||||
public string Tema { get; set; }
|
||||
|
||||
public int MulasztasTipus { get; set; }
|
||||
|
||||
[KretaDisplayName(1720)] /*Mulasztás típusa*/
|
||||
public string MulasztasTipus_DNAME { get; set; }
|
||||
|
||||
public bool? Igazolt_BOOL { get; set; }
|
||||
|
||||
[KretaDisplayName(1723)] /*Igazolt?*/
|
||||
public string Igazolt_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.TanoraiCeluMulasztas), ResourceType = typeof(HianyzasResource))]
|
||||
public string TanoraiCeluMulasztas_BNAME { get; set; }
|
||||
|
||||
[KretaDisplayName(485)] /*Igazolás típusa*/
|
||||
public string IgazolasTipus_DNAME { get; set; }
|
||||
}
|
||||
}
|
62
KretaWeb/Areas/Hianyzas/Models/HianyzasokSearchModel.cs
Normal file
62
KretaWeb/Areas/Hianyzas/Models/HianyzasokSearchModel.cs
Normal file
|
@ -0,0 +1,62 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Core;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class HianyzasokSearchModel
|
||||
{
|
||||
[Display(Name = nameof(HianyzasResource.MulasztasiIdoszak), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? IdoszakKezdete { get; set; }
|
||||
public DateTime? IdoszakVege { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Ora), ResourceType = typeof(HianyzasResource))]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Tantargy), ResourceType = typeof(HianyzasResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyResource.Tema), ResourceType = typeof(TantargyResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.MulasztasTipusa), ResourceType = typeof(HianyzasResource))]
|
||||
public int? MulasztasTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolt), ResourceType = typeof(HianyzasResource))]
|
||||
public int? Igazolt { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.TanoraiCeluMulasztas), ResourceType = typeof(HianyzasResource))]
|
||||
public string TanoraiCeluMulasztas { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.IgazolasTipus), ResourceType = typeof(HianyzasResource))]
|
||||
public int? IgazolasTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.RogzitesDatuma), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? RogzitesKezdete { get; set; }
|
||||
public DateTime? RogzitesVege { get; set; }
|
||||
|
||||
public int? MulaszatasId { get; set; }
|
||||
|
||||
public MulasztasokCo ConvertToMulasztasokCo()
|
||||
{
|
||||
return new MulasztasokCo
|
||||
{
|
||||
Tol = this.IdoszakKezdete,
|
||||
Ig = this.IdoszakVege,
|
||||
TanuloId = ClaimData.FelhasznaloId,
|
||||
TanoraiCeluMulasztas = this.TanoraiCeluMulasztas,
|
||||
Oraszam = this.Oraszam,
|
||||
TantargyId = this.TantargyId,
|
||||
Tema = this.Tema,
|
||||
MulTip = this.MulasztasTipus,
|
||||
Igazolt = this.Igazolt.ToNullableBoolean(),
|
||||
IgazolasTipus = this.IgazolasTipus,
|
||||
RogzitesKezdete = this.RogzitesKezdete,
|
||||
RogzitesVege = this.RogzitesVege,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
27
KretaWeb/Areas/Hianyzas/Models/IgazolasDetailGridModel.cs
Normal file
27
KretaWeb/Areas/Hianyzas/Models/IgazolasDetailGridModel.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasDetailGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(IgazolasResource.IgazolasElsoNapja), ResourceType = typeof(IgazolasResource))]
|
||||
public DateTime Kezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(IgazolasResource.IgazolasUtolsoNapja), ResourceType = typeof(IgazolasResource))]
|
||||
public DateTime Vege { get; set; }
|
||||
|
||||
[Display(Name = nameof(IgazolasResource.IgazolasTipusa), ResourceType = typeof(IgazolasResource))]
|
||||
public string IgazolasTipusa_DNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(IgazolasResource.IgazoloTanar), ResourceType = typeof(IgazolasResource))]
|
||||
public string Rogzito { get; set; }
|
||||
|
||||
[Display(Name = nameof(IgazolasResource.Megjegyzes), ResourceType = typeof(IgazolasResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
}
|
||||
}
|
21
KretaWeb/Areas/Hianyzas/Models/IgazolasDetailModel.cs
Normal file
21
KretaWeb/Areas/Hianyzas/Models/IgazolasDetailModel.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasDetailModel
|
||||
{
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
|
||||
public int? SzervezetId { get; set; }
|
||||
|
||||
public SzervezetTipusEnum? SzervezetTipusEnum { get; set; } = null;
|
||||
|
||||
public bool IsFromSzervezet => SzervezetTipusEnum.HasValue;
|
||||
|
||||
public string ControllerName { get; set; } = Constants.Controllers.MulasztasKereso;
|
||||
|
||||
public string ApiControllerName { get; set; } = Constants.ApiControllers.MulasztasKeresoApi;
|
||||
}
|
||||
}
|
27
KretaWeb/Areas/Hianyzas/Models/IgazolasGridModel.cs
Normal file
27
KretaWeb/Areas/Hianyzas/Models/IgazolasGridModel.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[KretaDisplayName(108)] //Név
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
[KretaDisplayName(108)] //Név
|
||||
public string TanuloNevElotagNelkul { get; set; }
|
||||
|
||||
public DateTime? IgazolasElsoNap { get; set; }
|
||||
|
||||
public DateTime? IgazolasUtolsoNap { get; set; }
|
||||
|
||||
public string IgazolasTipus { get; set; }
|
||||
|
||||
public string IgazolasSzovegesTartalma { get; set; }
|
||||
|
||||
public bool Valid { get; set; }
|
||||
}
|
||||
}
|
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;
|
||||
}
|
||||
}
|
23
KretaWeb/Areas/Hianyzas/Models/IgazolasMentesModel.cs
Normal file
23
KretaWeb/Areas/Hianyzas/Models/IgazolasMentesModel.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasMentesModel
|
||||
{
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public DateTime IgazolasElsoNap { get; set; }
|
||||
|
||||
public DateTime IgazolasUtolsoNap { get; set; }
|
||||
|
||||
public int IgazolasTipus { get; set; }
|
||||
|
||||
public string IgazolasSzovegesTartalma { get; set; }
|
||||
|
||||
public int? SzervezetId { get; set; }
|
||||
}
|
||||
}
|
74
KretaWeb/Areas/Hianyzas/Models/IgazolasModel.cs
Normal file
74
KretaWeb/Areas/Hianyzas/Models/IgazolasModel.cs
Normal file
|
@ -0,0 +1,74 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasModel
|
||||
{
|
||||
public IgazolasModel()
|
||||
{
|
||||
OsztCsopList = new List<SelectListItem>();
|
||||
RogzitoList = new List<SelectListItem>();
|
||||
IgazolasTipusList = new List<SelectListItem>();
|
||||
}
|
||||
public int? ID { get; set; }
|
||||
public int? RogzitoId { get; set; }
|
||||
|
||||
[KretaDisplayName(4229)]
|
||||
public string RogzitoNev { get; set; }
|
||||
public DateTime RogzDatum { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2033)] /*Az igazolás első napját kötelező megadni!*/
|
||||
[KretaDisplayName(2021)] //Igazolás első napja
|
||||
public DateTime? ErvKezdete { get; set; }
|
||||
|
||||
[KretaDisplayName(2021)] //Igazolás első napja
|
||||
public string ErvKezdeteRoviddatum { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2034)] /*Az igazolás utolsó napját kötelező megadni!*/
|
||||
[KretaDisplayName(2022)] //Igazolás utolsó napja
|
||||
public DateTime? ErvVege { get; set; }
|
||||
|
||||
[KretaDisplayName(2022)] //Igazolás utolsó napja
|
||||
public string ErvVegeRoviddatum { get; set; }
|
||||
|
||||
[KretaDisplayName(1842)] //Rögzítés dátuma
|
||||
public string RogzDatumRoviddatum { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 2035)] /*Az igazolás típusát kötelező megadni!*/
|
||||
[KretaDisplayName(485)] //Igazolás típusa
|
||||
public int? IgazolasTipus { get; set; }
|
||||
|
||||
[KretaDisplayName(485)] //Igazolás típusa
|
||||
public string IgazolasTipusNev { get { return IgazolasTipus.HasValue ? IgazolasTipus.Value.GetDisplayName<IgazolasTipusEnum>(ClaimData.SelectedTanevID.Value) : string.Empty; } }
|
||||
|
||||
[KretaDisplayName(2023)] //Igazolás szöveges tartalma
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[KretaRequired(StringResourcesId = 4233)] /*Tanuló kiválasztása kötelező!*/
|
||||
[KretaDisplayName(455)] //Tanuló neve
|
||||
public int? TanuloId { get; set; }
|
||||
|
||||
[KretaDisplayName(455)] //Tanuló neve
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztCsopId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string OsztCsopNev { get; set; }
|
||||
|
||||
public List<SelectListItem> OsztCsopList { get; set; }
|
||||
|
||||
public List<SelectListItem> RogzitoList { get; set; }
|
||||
|
||||
public List<SelectListItem> IgazolasTipusList { get; set; }
|
||||
}
|
||||
}
|
82
KretaWeb/Areas/Hianyzas/Models/IgazolasokListajaGridModel.cs
Normal file
82
KretaWeb/Areas/Hianyzas/Models/IgazolasokListajaGridModel.cs
Normal file
|
@ -0,0 +1,82 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasokListajaGridModel : IKretaIdentity
|
||||
{
|
||||
public const string IgazolasokExportAttributeId = nameof(IgazolasokExportAttributeId);
|
||||
|
||||
public IgazolasokListajaGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public IgazolasokListajaGridModel(IgazolasItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.Id.ToString();
|
||||
Kezdete = itemCo.Kezdete;
|
||||
Vege = itemCo.Vege;
|
||||
OsztalyCsoport = itemCo.OsztalyCsoport;
|
||||
Nev = itemCo.Nev;
|
||||
NevElotagNelkul = itemCo.NevElotagNelkul;
|
||||
SzuletesiDatum = itemCo.SzuletesiDatum;
|
||||
OktatasiAzonosito = itemCo.OktatasiAzonosito;
|
||||
IgazolasTipusaNev = itemCo.IgazolasTipusaNev;
|
||||
RogzitesDatuma = itemCo.RogzitesDatuma;
|
||||
Rogzito = itemCo.Rogzito;
|
||||
RogzitoElotagNelkul = itemCo.RogzitoElotagNelkul;
|
||||
Megjegyzes = itemCo.Megjegyzes;
|
||||
}
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 04, nameof(HianyzasResource.ErvenyessegKezdete), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.ErvenyessegKezdete), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime Kezdete { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 05, nameof(HianyzasResource.ErvenyessegVege), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.ErvenyessegVege), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime Vege { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 01, nameof(HianyzasResource.Osztaly), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.Osztaly), ResourceType = typeof(HianyzasResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 00, nameof(HianyzasResource.TanuloNeve), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.Nev), ResourceType = typeof(HianyzasResource))]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Nev), ResourceType = typeof(HianyzasResource))]
|
||||
public string NevElotagNelkul { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 02, nameof(TanuloResource.SzuletesiDatum), typeof(TanuloResource))]
|
||||
public DateTime SzuletesiDatum { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 03, nameof(TanuloResource.OktatasiAzonosito), typeof(TanuloResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 09, nameof(HianyzasResource.IgazolasTipusa), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.IgazolasTipusa), ResourceType = typeof(HianyzasResource))]
|
||||
public string IgazolasTipusaNev { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 07, nameof(HianyzasResource.RogzitesDatuma), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.RogzitesDatuma), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime RogzitesDatuma { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 08, nameof(HianyzasResource.Rogzito), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.Rogzito), ResourceType = typeof(HianyzasResource))]
|
||||
public string Rogzito { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Rogzito), ResourceType = typeof(HianyzasResource))]
|
||||
public string RogzitoElotagNelkul { get; set; }
|
||||
|
||||
[SimpleExportColumn(IgazolasokExportAttributeId, 06, nameof(HianyzasResource.Megjegyzes), typeof(HianyzasResource))]
|
||||
[Display(Name = nameof(HianyzasResource.Megjegyzes), ResourceType = typeof(HianyzasResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class IgazolasokListajaSearchModel
|
||||
{
|
||||
[Display(Name = nameof(HianyzasResource.ErvenyessegIdeje), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? IgazolasKezdteteSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.ErvenyessegIdeje), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? IgazolasVegeSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Osztaly), ResourceType = typeof(HianyzasResource))]
|
||||
public int? OsztalySearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
|
||||
public int? FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
|
||||
public bool? IsKellKapcsolodoCsoportok { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Nev), ResourceType = typeof(HianyzasResource))]
|
||||
public string NevSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.IgazolasTipusa), ResourceType = typeof(HianyzasResource))]
|
||||
public int? IgazolasTipusaSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.RogzitesDatuma), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? RogzitesDatumaTolSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.RogzitesDatuma), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? RogzitesDatumaIgSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Rogzito), ResourceType = typeof(HianyzasResource))]
|
||||
public int? RogzitoSearch { get; set; }
|
||||
|
||||
public IgazolasokListajaSearchCO ConvertToCO()
|
||||
{
|
||||
return new IgazolasokListajaSearchCO
|
||||
{
|
||||
IntezmenyId = ClaimData.IntezmenyId,
|
||||
TanevId = ClaimData.SelectedTanevID,
|
||||
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
|
||||
IgazolasKezdteteSearch = this.IgazolasKezdteteSearch,
|
||||
IgazolasTipusaSearch = this.IgazolasTipusaSearch,
|
||||
IgazolasVegeSearch = this.IgazolasVegeSearch,
|
||||
NevSearch = this.NevSearch,
|
||||
OsztalyCsoportSearch = this.OsztalySearch,
|
||||
RogzitesDatumaIgSearch = this.RogzitesDatumaIgSearch,
|
||||
RogzitesDatumaTolSearch = this.RogzitesDatumaTolSearch,
|
||||
RogzitoSearch = this.RogzitoSearch
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class InformaciokIgazolasGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[KretaDisplayName(667)] //Kezdete
|
||||
public DateTime Kezdete { get; set; }
|
||||
|
||||
[KretaDisplayName(668)] //Vége
|
||||
public DateTime Vege { get; set; }
|
||||
|
||||
[KretaDisplayName(485)] //Igazolás típusa
|
||||
public string IgazolasTipusa_DNAME { get; set; }
|
||||
|
||||
[KretaDisplayName(97)] //Megjegyzés
|
||||
public string Megjegyzes { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class InformaciokIgazolasSearchModel
|
||||
{
|
||||
[Display(Name = nameof(IgazolasResource.ErvenyessegIdeje), ResourceType = typeof(IgazolasResource))]
|
||||
public DateTime? IgazolasKezdeteSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(IgazolasResource.ErvenyessegIdeje), ResourceType = typeof(IgazolasResource))]
|
||||
public DateTime? IgazolasVegeSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(IgazolasResource.IgazolasTipusa), ResourceType = typeof(IgazolasResource))]
|
||||
public int? IgazolasTipusaSearch { get; set; }
|
||||
|
||||
public IgazolasSearchCo ConvertToCo()
|
||||
{
|
||||
return new IgazolasSearchCo
|
||||
{
|
||||
IgazolasKezdeteSearch = this.IgazolasKezdeteSearch,
|
||||
IgazolasVegeSearch = this.IgazolasVegeSearch,
|
||||
IgazolasTipusaSearch = this.IgazolasTipusaSearch,
|
||||
TanuloId = ClaimData.FelhasznaloId
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
122
KretaWeb/Areas/Hianyzas/Models/MulasztasGridModel.cs
Normal file
122
KretaWeb/Areas/Hianyzas/Models/MulasztasGridModel.cs
Normal file
|
@ -0,0 +1,122 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class MulasztasGridModel : IKretaIdentity
|
||||
{
|
||||
#region Fields
|
||||
|
||||
public const string MulasztasExportAttributeId = nameof(MulasztasExportAttributeId);
|
||||
|
||||
#endregion
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.TanuloNeve), ResourceType = typeof(MulasztasResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 00, nameof(MulasztasResource.TanuloNeve), typeof(MulasztasResource))]
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.TanuloNeve), ResourceType = typeof(MulasztasResource))]
|
||||
public string TanuloNevElotagNelkul { get; set; }
|
||||
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 01, nameof(TanuloResource.TanuloAzonositoja), typeof(TanuloResource))]
|
||||
[Display(Name = nameof(TanuloResource.TanuloAzonositoja), ResourceType = typeof(TanuloResource))]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Datum), ResourceType = typeof(MulasztasResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 02, nameof(MulasztasResource.Datum), typeof(MulasztasResource))]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Ora), ResourceType = typeof(MulasztasResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 03, nameof(MulasztasResource.Ora), typeof(MulasztasResource))]
|
||||
public int Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 04, nameof(OsztalyCsoportResource.OsztalyCsoport), typeof(OsztalyCsoportResource))]
|
||||
public string OsztCsopNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 05, nameof(AdminisztracioResource.Tantargy), typeof(AdminisztracioResource))]
|
||||
public string TargyNev { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Tipus), ResourceType = typeof(MulasztasResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 06, nameof(MulasztasResource.Tipus), typeof(MulasztasResource))]
|
||||
public string MulTip_DNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.KesesPerc), ResourceType = typeof(MulasztasResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 07, nameof(MulasztasResource.KesesPerc), typeof(MulasztasResource))]
|
||||
public int KesesPerc { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Igazolt), ResourceType = typeof(MulasztasResource))]
|
||||
public string Igazolt { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Igazolt), ResourceType = typeof(MulasztasResource))]
|
||||
public bool? Igazolt_BOOL { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Igazolt), ResourceType = typeof(MulasztasResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 08, nameof(MulasztasResource.Igazolt), typeof(MulasztasResource))]
|
||||
public string Igazolt_BNAME { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.IgazolasTipusa), ResourceType = typeof(MulasztasResource))]
|
||||
public int? IgazolasTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.IgazolasTipusa), ResourceType = typeof(MulasztasResource))]
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 09, nameof(MulasztasResource.IgazolasTipusa), typeof(MulasztasResource))]
|
||||
public string IgazolasTipus_DNAME { get; set; }
|
||||
|
||||
public bool Valid { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Megjegyzes), ResourceType = typeof(MulasztasResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[Display(Name = nameof(MulasztasResource.Megjegyzes), ResourceType = typeof(MulasztasResource))]
|
||||
public string IgazolasMegjegyzes { get; set; }
|
||||
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
public string SzuletesiIdo { get; set; }
|
||||
|
||||
public string SzuletesiIdoFormatted { get; set; }
|
||||
|
||||
public string TanitasiOraId { get; set; }
|
||||
|
||||
public bool IsMulasztasKezelheto { get; set; }
|
||||
|
||||
[SimpleExportColumn(MulasztasExportAttributeId, 10, nameof(OrarendResource.OnlineOra), typeof(OrarendResource))]
|
||||
public string IsOnlineOra_BNAME { get; set; }
|
||||
|
||||
public MulasztasGridModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public MulasztasGridModel(MulasztasItemCo itemCo)
|
||||
{
|
||||
ID = itemCo.ID.ToString();
|
||||
TanuloNev = itemCo.TanuloNev;
|
||||
TanuloNevElotagNelkul = itemCo.TanuloNevElotagNelkul;
|
||||
OktatasiAzonosito = itemCo.OktatasiAzonosito;
|
||||
Datum = itemCo.Datum.Value;
|
||||
Oraszam = itemCo.Oraszam;
|
||||
OsztCsopNev = itemCo.OsztCsopNev;
|
||||
TargyNev = itemCo.TargyNev;
|
||||
MulTip_DNAME = itemCo.MulTip_DNAME;
|
||||
KesesPerc = itemCo.KesesPerc;
|
||||
Igazolt = itemCo.Igazolt;
|
||||
Igazolt_BNAME = itemCo.Igazolt_BNAME;
|
||||
Igazolt_BOOL = itemCo.Igazolt_BOOL;
|
||||
IgazolasTipus = itemCo.IgazolasTipus;
|
||||
IgazolasTipus_DNAME = itemCo.IgazolasTipus_DNAME;
|
||||
IsMulasztasKezelheto = itemCo.IsMulasztasKezelheto;
|
||||
IsOnlineOra_BNAME = itemCo.IsOnlineOra_BNAME;
|
||||
IgazolasMegjegyzes = itemCo.IgazolasMegjegyzes;
|
||||
}
|
||||
}
|
||||
}
|
34
KretaWeb/Areas/Hianyzas/Models/MulasztasIndexModel.cs
Normal file
34
KretaWeb/Areas/Hianyzas/Models/MulasztasIndexModel.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Helpers.TabStrip;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class MulasztasIndexModel
|
||||
{
|
||||
[KretaDisplayName(1768)] /*Mulasztási időszak kezdete*/
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
[KretaDisplayName(1769)] /*Mulasztási időszak vége*/
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Osztaly), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(CommonResource.Csoport), ResourceType = typeof(CommonResource))]
|
||||
public int? CsoportId { get; set; }
|
||||
|
||||
[KretaDisplayName(2568)] /*Igazolt*/
|
||||
public int? IgazoltSearch { get; set; }
|
||||
|
||||
public List<SelectListItem> OsztalyCsoportList { get; set; }
|
||||
|
||||
public List<TabStripItemModel> TabList { get; set; }
|
||||
|
||||
public DateTime IgazolasNaploZarasDatum { get; set; }
|
||||
}
|
||||
}
|
92
KretaWeb/Areas/Hianyzas/Models/MulasztasInfoModel.cs
Normal file
92
KretaWeb/Areas/Hianyzas/Models/MulasztasInfoModel.cs
Normal file
|
@ -0,0 +1,92 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class MulasztasInfoModel
|
||||
{
|
||||
public class AlapadatModel
|
||||
{
|
||||
[Display(Name = nameof(HianyzasResource.TanuloNeve), ResourceType = typeof(HianyzasResource))]
|
||||
public string Tanulo { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.MulasztasDatuma), ResourceType = typeof(HianyzasResource))]
|
||||
public string Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Ora), ResourceType = typeof(HianyzasResource))]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Osztalycsoport), ResourceType = typeof(HianyzasResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Tantargy), ResourceType = typeof(HianyzasResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.MulasztasTipusa), ResourceType = typeof(HianyzasResource))]
|
||||
public string MulasztasTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Kesesperc), ResourceType = typeof(HianyzasResource))]
|
||||
public int? KesesPercben { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.IgazoltKerdojel), ResourceType = typeof(HianyzasResource))]
|
||||
public string Igazolt { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.IgazolasTipusa), ResourceType = typeof(HianyzasResource))]
|
||||
public string IgazolasTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Megjegyzes), ResourceType = typeof(HianyzasResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
}
|
||||
|
||||
public class TanitasiOraModel
|
||||
{
|
||||
[Display(Name = nameof(HianyzasResource.Datum), ResourceType = typeof(HianyzasResource))]
|
||||
public string Datum { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Oraszamidopont), ResourceType = typeof(HianyzasResource))]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.HetNapja), ResourceType = typeof(HianyzasResource))]
|
||||
public string HetNapja { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.OrarendiNapHetirendje), ResourceType = typeof(HianyzasResource))]
|
||||
public string Hetirend { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Foglalkozas), ResourceType = typeof(HianyzasResource))]
|
||||
public string Foglalkozas { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Osztalycsoport), ResourceType = typeof(HianyzasResource))]
|
||||
public string OsztalyCsoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Tantargy), ResourceType = typeof(HianyzasResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Alkalmazott), ResourceType = typeof(HianyzasResource))]
|
||||
public string Tanar { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.HelyettesitesitoTanarNeve), ResourceType = typeof(HianyzasResource))]
|
||||
public string HelyettesitesitoTanarNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Helyiseg), ResourceType = typeof(HianyzasResource))]
|
||||
public string Terem { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Megtartott), ResourceType = typeof(HianyzasResource))]
|
||||
public string Megtartott { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Sorszamozott), ResourceType = typeof(HianyzasResource))]
|
||||
public string Sorszamozando { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.TanitasiOraKezdete), ResourceType = typeof(HianyzasResource))]
|
||||
public string OraKezdete { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.TanitasiOraVege), ResourceType = typeof(HianyzasResource))]
|
||||
public string OraVege { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.TanitasiOraTemaja), ResourceType = typeof(HianyzasResource))]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Megjegyzes), ResourceType = typeof(HianyzasResource))]
|
||||
public string Megjegyzes { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
163
KretaWeb/Areas/Hianyzas/Models/MulasztasSearchModel.cs
Normal file
163
KretaWeb/Areas/Hianyzas/Models/MulasztasSearchModel.cs
Normal file
|
@ -0,0 +1,163 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Helpers.SystemSettings;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class MulasztasSearchModel
|
||||
{
|
||||
public MulasztasSearchModel()
|
||||
{
|
||||
if (ClaimData.IsVegyes)
|
||||
{
|
||||
FeladatKategoriaId = new SystemSettingsHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetSystemSettingValue<int>(Enums.RendszerBeallitasTipusEnum.Default_Feladat_Kategoria);
|
||||
}
|
||||
|
||||
var naploNezetDatum = DateTime.Today;
|
||||
var tanev = new TanevHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType()).GetTanevInfo();
|
||||
var tanevKezdoNap = tanev.KezdoNap;
|
||||
if (naploNezetDatum < tanevKezdoNap)
|
||||
{
|
||||
naploNezetDatum = tanevKezdoNap;
|
||||
}
|
||||
|
||||
var tanevUtolsoNap = tanev.UtolsoNap;
|
||||
if (naploNezetDatum > tanevUtolsoNap)
|
||||
{
|
||||
naploNezetDatum = tanevUtolsoNap;
|
||||
}
|
||||
|
||||
NaploNezetDatum = naploNezetDatum;
|
||||
NaploNezetDatumMinDate = tanevKezdoNap;
|
||||
NaploNezetDatumMaxDate = tanevUtolsoNap;
|
||||
}
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.MulasztasiIdoszak), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.MulasztasiIdoszak), ResourceType = typeof(HianyzasResource))]
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
public DateTime? NaploNezetDatum { get; set; }
|
||||
|
||||
public DateTime NaploNezetDatumMinDate { get; set; }
|
||||
|
||||
public DateTime NaploNezetDatumMaxDate { get; set; }
|
||||
|
||||
[Display(Name = nameof(TanuloResource.TanuloNeve), ResourceType = typeof(TanuloResource))]
|
||||
public string TanuloNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztalyCsoportId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
|
||||
public bool KellKapcsolodoCsoportok { get; set; }
|
||||
|
||||
public int? TanuloId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.CsoportTipusa), ResourceType = typeof(OrarendResource))]
|
||||
public int? CsoportTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(TantargyfelosztasResource.Foglalkozas), ResourceType = typeof(TantargyfelosztasResource))]
|
||||
public int? FoglalkozasId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
||||
public int? TantargyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.MulasztasTipusa), ResourceType = typeof(HianyzasResource))]
|
||||
public int? MulasztasTipus { get; set; }
|
||||
|
||||
[KretaRange(1, 99999)]
|
||||
[Display(Name = nameof(HianyzasResource.KesesIdotartama), ResourceType = typeof(HianyzasResource))]
|
||||
public int? KesesPercben { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.IgazoltsagAllapota), ResourceType = typeof(HianyzasResource))]
|
||||
public int? IgazoltsagAllapota { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.IgazolasTipusa), ResourceType = typeof(HianyzasResource))]
|
||||
public int? IgazolasTipus { get; set; }
|
||||
|
||||
public int? IgazoltSearch { get; set; }
|
||||
|
||||
public bool IsCustomForm { get; set; } = false;
|
||||
|
||||
public string CustomFormName { get; set; } = null;
|
||||
|
||||
public bool GridUseToolBar { get; set; } = true;
|
||||
public bool ChildGridHasDelete { get; set; } = true;
|
||||
|
||||
public List<SelectListItem> OsztalyCsoportList { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.NemBesoroltTanulokMulasztasainakMegjelenitese), ResourceType = typeof(HianyzasResource))]
|
||||
public bool IsNemBesoroltTanulokMulasztasainakMegjelenitese { get; set; } = false;
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.NemJelenlevoTanulokMegjelenitese), ResourceType = typeof(HianyzasResource))]
|
||||
public bool IsNemJelenlevoTanulokMegjelenitese { get; set; } = false;
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? FeladatKategoriaId { get; set; }
|
||||
|
||||
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
|
||||
public int? FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
||||
public int? IsOnlineOra { get; set; }
|
||||
|
||||
[Display(Name = nameof(DualisResource.KepzohelyNeve), ResourceType = typeof(DualisResource))]
|
||||
public string SzervezetNevSzovegSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(DualisResource.KepzohelyAdoszama), ResourceType = typeof(DualisResource))]
|
||||
public string SzervezetAzonositoSzovegSearch { get; set; }
|
||||
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
|
||||
public int? SzervezetId { get; set; }
|
||||
|
||||
public SzervezetTipusEnum? SzervezetTipusEnum { get; set; } = null;
|
||||
|
||||
public bool IsFromSzervezet => SzervezetTipusEnum.HasValue;
|
||||
|
||||
public string ControllerName { get; set; } = Constants.Controllers.MulasztasKereso;
|
||||
|
||||
public string ApiControllerName { get; set; } = Constants.ApiControllers.MulasztasKeresoApi;
|
||||
|
||||
public bool IsSzakkepzo { get; set; }
|
||||
|
||||
public MulasztasokCo ConvertModelToCo()
|
||||
{
|
||||
return new MulasztasokCo
|
||||
{
|
||||
Tol = DatumTol,
|
||||
Ig = DatumIg,
|
||||
TanuloNev = TanuloNeve,
|
||||
OsztCsop = OsztalyCsoportId,
|
||||
KapcsCsop = KellKapcsolodoCsoportok,
|
||||
CsopTip = CsoportTipus,
|
||||
Fogl = FoglalkozasId,
|
||||
TantargyId = TantargyId,
|
||||
MulTip = MulasztasTipus,
|
||||
KesIdo = KesesPercben ?? 0,
|
||||
IgazoltsagAllapota = IgazoltsagAllapota,
|
||||
IgazolasTipus = IgazolasTipus,
|
||||
IsNemBesoroltTanulokMulasztasainakMegjelenitese = IsNemBesoroltTanulokMulasztasainakMegjelenitese,
|
||||
IsNemJelenlevoTanulokMegjelenitese = IsNemJelenlevoTanulokMegjelenitese,
|
||||
FeladatKategoriaId = FeladatKategoriaId,
|
||||
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
|
||||
IsOnlineOra = IsOnlineOra,
|
||||
SzervezetNev = SzervezetNevSzovegSearch,
|
||||
SzervezetAzonosito = SzervezetAzonositoSzovegSearch,
|
||||
SzervezetTipusId = SzervezetTipusId,
|
||||
SzervezetId = SzervezetId
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
|
||||
{
|
||||
public class MulasztasNaploNezetModel
|
||||
{
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
public int PagerValue { get; set; }
|
||||
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public List<SelectListItem> OsztalyCsoportList { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
|
||||
{
|
||||
public class MulasztasokDatumNezetGridModel : CsoportMulasztasokGridModel
|
||||
{
|
||||
[KretaDisplayName(5632)] /*Mulasztás dátuma*/
|
||||
public DateTime MulasztasDatuma { get; set; }
|
||||
|
||||
[KretaDisplayName(5633)] /*Mulasztás napja*/
|
||||
public string MulasztasNapja { get; set; }
|
||||
|
||||
[KretaDisplayName(5634)] /*Mulasztások száma*/
|
||||
public int MulasztasokSzama { get; set; }
|
||||
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public int? TanuloId { get; set; }
|
||||
|
||||
public bool IsMulasztasKezelheto { get; set; } = true;
|
||||
|
||||
public string ApiControllerName { get; set; } = Constants.ApiControllers.MulasztasokApi;
|
||||
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,135 @@
|
|||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
|
||||
{
|
||||
public class MulasztasokNaploNezetGridModel : IKretaIdentity
|
||||
{
|
||||
|
||||
public string ID { get; set; }
|
||||
|
||||
#region TanuloNev + Tooltip
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[KretaDisplayName(455)] /*Tanuló neve*/
|
||||
public string TanuloNev { get; set; }
|
||||
|
||||
public string OsztalyNev { get; set; }
|
||||
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
public string SzuletesiIdoFormatted { get; set; }
|
||||
|
||||
#endregion TanuloNev + Tooltip
|
||||
|
||||
#region Mulasztások
|
||||
|
||||
[KretaDisplayName(1723)] /*Igazolt?*/
|
||||
public string Igazolt { get; set; }
|
||||
|
||||
[KretaDisplayName(1723)] /*Igazolt?*/
|
||||
public bool? Igazolt_BOOL { get; set; }
|
||||
|
||||
[KretaDisplayName(1723)] /*Igazolt?*/
|
||||
public string Igazolt_BNAME { get; set; }
|
||||
|
||||
[KretaDisplayName(485)] /*Igazolás típusa*/
|
||||
public int? IgazolasTipus { get; set; }
|
||||
|
||||
[KretaDisplayName(485)] /*Igazolás típusa*/
|
||||
public string IgazolasTipus_DNAME { get; set; }
|
||||
|
||||
public bool Valid { get; set; }
|
||||
|
||||
[KretaDisplayName(97)] /*Megjegyzés*/
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
#endregion Mulasztások
|
||||
|
||||
public string OraMinusz2Column { get; set; }
|
||||
|
||||
public string OraMinusz1Column { get; set; }
|
||||
|
||||
public string Ora0Column { get; set; }
|
||||
|
||||
public string Ora1Column { get; set; }
|
||||
|
||||
public string Ora2Column { get; set; }
|
||||
|
||||
public string Ora3Column { get; set; }
|
||||
|
||||
public string Ora4Column { get; set; }
|
||||
|
||||
public string Ora5Column { get; set; }
|
||||
|
||||
public string Ora6Column { get; set; }
|
||||
|
||||
public string Ora7Column { get; set; }
|
||||
|
||||
public string Ora8Column { get; set; }
|
||||
|
||||
public string Ora9Column { get; set; }
|
||||
|
||||
public string Ora10Column { get; set; }
|
||||
|
||||
public string Ora11Column { get; set; }
|
||||
|
||||
public string Ora12Column { get; set; }
|
||||
|
||||
public string Ora13Column { get; set; }
|
||||
|
||||
public string Ora14Column { get; set; }
|
||||
|
||||
public string Ora15Column { get; set; }
|
||||
|
||||
public string Ora16Column { get; set; }
|
||||
|
||||
public string Ora17Column { get; set; }
|
||||
|
||||
public string Ora18Column { get; set; }
|
||||
|
||||
public string Ora19Column { get; set; }
|
||||
|
||||
public string Ora20Column { get; set; }
|
||||
|
||||
public string Ora21Column { get; set; }
|
||||
|
||||
public string Ora22Column { get; set; }
|
||||
|
||||
public string Ora23Column { get; set; }
|
||||
|
||||
public string Ora24Column { get; set; }
|
||||
|
||||
public string Foglalkozas1Column { get; set; }
|
||||
|
||||
public string Foglalkozas2Column { get; set; }
|
||||
|
||||
public string Foglalkozas3Column { get; set; }
|
||||
|
||||
public string Foglalkozas4Column { get; set; }
|
||||
|
||||
public string Foglalkozas5Column { get; set; }
|
||||
|
||||
public string Foglalkozas6Column { get; set; }
|
||||
|
||||
public string Foglalkozas7Column { get; set; }
|
||||
|
||||
public string Foglalkozas8Column { get; set; }
|
||||
|
||||
public string Foglalkozas9Column { get; set; }
|
||||
|
||||
public string Foglalkozas10Column { get; set; }
|
||||
public string Foglalkozas11Column { get; set; }
|
||||
public string Foglalkozas12Column { get; set; }
|
||||
public string Foglalkozas13Column { get; set; }
|
||||
public string Foglalkozas14Column { get; set; }
|
||||
public string Foglalkozas15Column { get; set; }
|
||||
public string Foglalkozas16Column { get; set; }
|
||||
public string Foglalkozas17Column { get; set; }
|
||||
public string Foglalkozas18Column { get; set; }
|
||||
public string Foglalkozas19Column { get; set; }
|
||||
public string Foglalkozas20Column { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
namespace Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
|
||||
{
|
||||
public class MulasztasokNaploNezetOra
|
||||
{
|
||||
//NOTE: Óra sorszáma/Óra kezdete
|
||||
public string Nev { get; set; }
|
||||
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
public int? MulasztasTipus { get; set; }
|
||||
|
||||
public bool? IsIgazolt { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
|
||||
{
|
||||
public class MulasztasokTanuloNezetGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[KretaDisplayName(455)] /*Tanuló neve*/
|
||||
public string TanuloNev { get; set; }
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
//Tanórai hiányzás
|
||||
[Display(Name = nameof(HianyzasResource.Osszes), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoraiHianyzasOsszes { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolt), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoraiHianyzasIgazolt { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolatlan), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoraiHianyzasIgazolatlan { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolando), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoraiHianyzasIgazolando { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Potlas), ResourceType = typeof(OrarendResource))]
|
||||
public int Potlas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Szabadsag), ResourceType = typeof(OrarendResource))]
|
||||
public int Szabadsag { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Tappenz), ResourceType = typeof(OrarendResource))]
|
||||
public int Tappenz { get; set; }
|
||||
|
||||
[Display(Name = nameof(OrarendResource.Betegszabadsag), ResourceType = typeof(OrarendResource))]
|
||||
public int BetegSzabadsag { get; set; }
|
||||
|
||||
//Tanórán kívüli
|
||||
[Display(Name = nameof(HianyzasResource.Osszes), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoranKivuliHianyzasOsszes { get; set; }
|
||||
|
||||
//Tanórán kívüli
|
||||
[Display(Name = nameof(HianyzasResource.Igazolt), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoranKivuliHianyzasIgazolt { get; set; }
|
||||
|
||||
//Tanórán kívüli
|
||||
[Display(Name = nameof(HianyzasResource.Igazolatlan), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoranKivuliHianyzasIgazolatlan { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolando), ResourceType = typeof(HianyzasResource))]
|
||||
public int TanoranKivuliHianyzasIgazolando { get; set; }
|
||||
|
||||
//Tanórai késés
|
||||
[Display(Name = nameof(HianyzasResource.Osszes), ResourceType = typeof(HianyzasResource))]
|
||||
public string TanoraiKesesOsszes { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolt), ResourceType = typeof(HianyzasResource))]
|
||||
public string TanoraiKesesIgazolt { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolatlan), ResourceType = typeof(HianyzasResource))]
|
||||
public string TanoraiKesesIgazolatlan { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolando), ResourceType = typeof(HianyzasResource))]
|
||||
public string TanoraiKesesIgazolando { get; set; }
|
||||
|
||||
//Tanórai késésekből számítandó hiányzás
|
||||
[Display(Name = nameof(HianyzasResource.Osszes), ResourceType = typeof(HianyzasResource))]
|
||||
public int SzamitottKesesOsszes { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolt), ResourceType = typeof(HianyzasResource))]
|
||||
public int SzamitottKesesIgazolt { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolatlan), ResourceType = typeof(HianyzasResource))]
|
||||
public int SzamitottKesesIgazolatlan { get; set; }
|
||||
|
||||
[Display(Name = nameof(HianyzasResource.Igazolando), ResourceType = typeof(HianyzasResource))]
|
||||
public int SzamitottKesesIgazolando { get; set; }
|
||||
public bool GridHasDelete { get; set; } = true;
|
||||
public string ApiControllerName { get; set; } = Constants.ApiControllers.MulasztasokApi;
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
|
||||
{
|
||||
public class TanuloMulasztasaiPopupModel : CsoportMulasztasokGridModel
|
||||
{
|
||||
public DateTime MulasztasDatuma { get; set; }
|
||||
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
public bool Kezeletlen { get; set; }
|
||||
|
||||
public string ApiControllerName { get; set; }
|
||||
|
||||
public int? SzervezetTipusId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class MulasztasokNaploNezetSaveModel
|
||||
{
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public DateTime NaploNezetDatum { get; set; }
|
||||
|
||||
public List<MulasztasokSaveModel> Mulasztasok { get; set; }
|
||||
}
|
||||
}
|
23
KretaWeb/Areas/Hianyzas/Models/MulasztasokSaveModel.cs
Normal file
23
KretaWeb/Areas/Hianyzas/Models/MulasztasokSaveModel.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class MulasztasokSaveModel
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
|
||||
public bool? Igazolt { get; set; }
|
||||
|
||||
public int? IgazolasTipus { get; set; }
|
||||
|
||||
public int MulasztasTipus { get; set; }
|
||||
|
||||
public int? KesesIdotartama { get; set; }
|
||||
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
public bool? Visszavonhato { get; set; }
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
public int TanitasiOraId { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Interfaces;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Attributes;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class TantargyiMulasztasGridModel : IKretaIdentity
|
||||
{
|
||||
public string ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
||||
public string Tantargy { get; set; }
|
||||
|
||||
[KretaDisplayName(500)] /*Mulasztás*/
|
||||
public string Mulasztas { get; set; }
|
||||
|
||||
[KretaDisplayName(501)] /*Összes óra*/
|
||||
public string Osszes { get; set; }
|
||||
|
||||
[KretaDisplayName(502)] /*Tantárgyi mulasztás (%)*/
|
||||
public string Szazalek { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue