101 lines
6 KiB
C#
101 lines
6 KiB
C#
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;
|
|
|
|
namespace Kreta.Web.Areas.Tantargy.Models
|
|
{
|
|
public class TantargyFelosztasGridModel : IKretaIdentity
|
|
{
|
|
#region Fields
|
|
|
|
public const string TantargyFelosztasExportAttributeId = nameof(TantargyFelosztasExportAttributeId);
|
|
public const string DualisTantargyFelosztasExportAttributeId = nameof(DualisTantargyFelosztasExportAttributeId);
|
|
|
|
#endregion
|
|
|
|
public TantargyFelosztasGridModel() { }
|
|
|
|
public TantargyFelosztasGridModel(TantargyfelosztasItemCo itemCo)
|
|
{
|
|
ID = itemCo.Id.ToString();
|
|
Tanar = itemCo.TanarNev;
|
|
TanarElotagNelkul = itemCo.TanarNevElotagNelkul;
|
|
Tanev = itemCo.TanevNev;
|
|
OsztalyCsoport = itemCo.OsztalyCsoportNev;
|
|
Tantargy = itemCo.TantargyNev;
|
|
Oraszam = itemCo.Oraszam;
|
|
OsszevontOra_BNAME = itemCo.IsOsszevontOra.GetDisplayName();
|
|
TtfKorrekcioOraszam = itemCo.TtfKorrekcioOraszam;
|
|
NemzetisegiOra_BNAME = itemCo.IsNemzetisegiOra.GetDisplayName();
|
|
MegbizasiOraszam = itemCo.MegbizasiOraszam;
|
|
TuloraSzam = itemCo.Tuloraszam;
|
|
DualisKepzohelyNeve = itemCo.DualisKepzohelyNeve;
|
|
DualisKepzohelyAdoszama = itemCo.DualisKepzohelyAdoszama;
|
|
RogzitoId = itemCo.RogzitoId;
|
|
IsSzerkesztheto = itemCo.IsSzerkesztheto;
|
|
}
|
|
|
|
public string ID { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyfelosztasResource.AlkalmazottNeve), ResourceType = typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 00, nameof(TantargyfelosztasResource.AlkalmazottNeve), typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 00, nameof(TantargyfelosztasResource.AlkalmazottNeve), typeof(TantargyfelosztasResource))]
|
|
public string Tanar { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyfelosztasResource.AlkalmazottNeve), ResourceType = typeof(TantargyfelosztasResource))]
|
|
public string TanarElotagNelkul { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyfelosztasResource.Tanev), ResourceType = typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 01, nameof(TantargyfelosztasResource.Tanev), typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 01, nameof(TantargyfelosztasResource.Tanev), typeof(TantargyfelosztasResource))]
|
|
public string Tanev { get; set; }
|
|
|
|
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 02, nameof(OsztalyCsoportResource.OsztalyCsoport), typeof(OsztalyCsoportResource))]
|
|
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 02, nameof(OsztalyCsoportResource.OsztalyCsoport), typeof(OsztalyCsoportResource))]
|
|
public string OsztalyCsoport { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyfelosztasResource.Tantargy), ResourceType = typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 03, nameof(TantargyfelosztasResource.Tantargy), typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 03, nameof(TantargyfelosztasResource.Tantargy), typeof(TantargyfelosztasResource))]
|
|
public string Tantargy { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyfelosztasResource.HetiOraszam), ResourceType = typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 08, nameof(TantargyfelosztasResource.HetiOraszam), typeof(TantargyfelosztasResource), AggregateFunction = ExcelAggregateFunctionEnum.SUM)]
|
|
public double Oraszam { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.Oraszamkorrekcio), ResourceType = typeof(TantargyResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 04, nameof(TantargyResource.Oraszamkorrekcio), typeof(TantargyResource))]
|
|
public string OsszevontOra_BNAME { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.NemzetisegiOra), ResourceType = typeof(TantargyResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 05, nameof(TantargyResource.NemzetisegiOra), typeof(TantargyResource))]
|
|
public string NemzetisegiOra_BNAME { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyfelosztasResource.MegbizasiOraszam), ResourceType = typeof(TantargyfelosztasResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 06, nameof(TantargyfelosztasResource.MegbizasiOraszam), typeof(TantargyfelosztasResource))]
|
|
public double MegbizasiOraszam { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
|
|
[SimpleExportColumn(TantargyFelosztasExportAttributeId, 07, nameof(OrarendResource.Tulora), typeof(OrarendResource))]
|
|
public double TuloraSzam { get; set; }
|
|
|
|
public double TtfKorrekcioOraszam { get; set; }
|
|
|
|
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
|
|
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 04, nameof(AlkalmazottResource.DualisKepzohelyNeve), typeof(AlkalmazottResource))]
|
|
public string DualisKepzohelyNeve { get; set; }
|
|
|
|
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
|
|
[SimpleExportColumn(DualisTantargyFelosztasExportAttributeId, 05, nameof(AlkalmazottResource.DualisKepzohelyAdoszama), typeof(AlkalmazottResource))]
|
|
public string DualisKepzohelyAdoszama { get; set; }
|
|
|
|
public int RogzitoId { get; set; }
|
|
|
|
public bool IsSzerkesztheto { get; set; }
|
|
}
|
|
}
|