init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
102
KretaWeb/Areas/OsztalyCsoport/Models/CsoportModModel.cs
Normal file
102
KretaWeb/Areas/OsztalyCsoport/Models/CsoportModModel.cs
Normal file
|
@ -0,0 +1,102 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.OsztalyCsoport.Models
|
||||
{
|
||||
public class CsoportModModel
|
||||
{
|
||||
public string CsoportIDArrayString { get; set; }
|
||||
public string[] CsoportIdArray => this.CsoportIDArrayString.Split(',');
|
||||
public int? ID { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.KivalasztottCsoportok), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string CsoportNevArray { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.CsoportNeve), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public string CsoportNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.CsoportTipus), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? CsoportTipus { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.EvfolyamNeve), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? EvfolyamTipusa { get; set; }
|
||||
|
||||
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
|
||||
public int? FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Osztaly), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztalyBontasId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Osztalybontas), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? OsztalyBontas { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.VegzosEvfolyamuCsoportKozepfokuOktatasiIntezmenyben), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? Vegzos { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.KeresztfelevesCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? Keresztfeleves { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.IsGyogypedagogiaiLogopediai), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? IsGyogypedagogiaiLogopediai { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.TechnikaiCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? TechnikaiCsoport { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.CsoportnaploMegnyitasDatuma), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public DateTime? CsoportNaploMegnyitasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.CsoportnaploLezarasDatuma), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public DateTime? CsoportNaploLezarasa { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.TervezettLetszam), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? TervezettLetszam { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.MuvesztiAg), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? MuveszetiAgId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.ZenemuveszetiAgTipusa), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? ZenemuveszetiAgTipusId { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Csoportvezeto), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? CsoportVezeto { get; set; }
|
||||
|
||||
[Display(Name = nameof(OsztalyCsoportResource.Terem), ResourceType = typeof(OsztalyCsoportResource))]
|
||||
public int? Terem { get; set; }
|
||||
|
||||
public bool IsFromSzervezet { get; set; }
|
||||
|
||||
// NOTE: Itt azért nem a nameof(SzervezetResource.Szervezet)-ből jön a szöveg, mert ez a property fixen mindig ezzel a label-el kell, hogy megjelenjen, függetlenül a nyelviesítéstől!
|
||||
[Display(Name = nameof(DualisResource.DualisKepzohelyNeveEsAdoszama), ResourceType = typeof(DualisResource))]
|
||||
[KretaRequiredIf("IsFromSzervezet", true, ErrorMessageResourceName = nameof(DualisResource.DualisKepzohelyMegadasaKotelezo), ErrorMessageResourceType = typeof(DualisResource))]
|
||||
public int? CsoportSzervezetId { get; set; }
|
||||
|
||||
public CsoportTobbesModCO ConvertToCo()
|
||||
{
|
||||
return new CsoportTobbesModCO()
|
||||
{
|
||||
CsoportId = this.ID,
|
||||
EvfolyamTipusa = this.EvfolyamTipusa,
|
||||
FeladatEllatasiHelyId = this.FeladatEllatasiHelyId,
|
||||
OsztalyBontas = this.OsztalyBontas,
|
||||
OsztalyBontasId = this.OsztalyBontasId,
|
||||
Tipusa = this.CsoportTipus,
|
||||
Vegzos = this.Vegzos,
|
||||
TervezettLetszam = this.TervezettLetszam,
|
||||
Keresztfeleves = this.Keresztfeleves,
|
||||
IsGyogypedagogiaiLogopediai = this.IsGyogypedagogiaiLogopediai,
|
||||
TechnikaiCsoport = this.TechnikaiCsoport,
|
||||
CsoportNaploMegnyitasa = this.CsoportNaploMegnyitasa,
|
||||
CsoportNaploLezarasa = this.CsoportNaploLezarasa,
|
||||
MuveszetiAgId = this.MuveszetiAgId,
|
||||
ZenemuveszetiAgTipusId = this.ZenemuveszetiAgTipusId,
|
||||
CsoportVezeto = this.CsoportVezeto,
|
||||
Terem = this.Terem,
|
||||
IsFromSzervezet = this.IsFromSzervezet,
|
||||
SzervezetId = this.CsoportSzervezetId
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue