1240 lines
41 KiB
C#
1240 lines
41 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Kreta.DataAccess.Interfaces;
|
|
using Kreta.Framework;
|
|
using Kreta.Framework.Actions;
|
|
using Kreta.Framework.Collections;
|
|
using Kreta.Framework.Collections.Generic;
|
|
using Kreta.Framework.Entities;
|
|
using Kreta.Framework.Entities.Generic;
|
|
using Kreta.Framework.Exceptions;
|
|
|
|
namespace SDA.Kreta.Entities
|
|
{
|
|
/// <summary>
|
|
/// Az UML modell IntezmenyAdatszolgaltatas entitásának megvalósítása.
|
|
/// </summary>
|
|
/// <remarks>A kód teljes egészében generált, kézi módosítása nem megengedett!</remarks>
|
|
[Entity("IntezmenyAdatszolgaltatas")]
|
|
// alapértelmezett EntityHistoryMode
|
|
public class IntezmenyAdatszolgaltatas : Entity, IIntezmenyAdatszolgaltatas
|
|
{
|
|
internal protected IntezmenyAdatszolgaltatas()
|
|
: base()
|
|
{
|
|
}
|
|
|
|
public class AttributeInfo
|
|
{
|
|
public const string ElfogadottESL = "ElfogadottESL";
|
|
public const string ElfogadottTTF = "ElfogadottTTF";
|
|
public const string VeglegesESL = "VeglegesESL";
|
|
public const string VeglegesTTF = "VeglegesTTF";
|
|
public const string FenntartoTTFElutasitasOka = "FenntartoTTFElutasitasOka";
|
|
public const string ElfogadottESLDatuma = "ElfogadottESLDatuma";
|
|
public const string ElfogadottLetszam = "ElfogadottLetszam";
|
|
public const string ElfogadottLetszamDatuma = "ElfogadottLetszamDatuma";
|
|
public const string ElfogadottTTFDatuma = "ElfogadottTTFDatuma";
|
|
public const string FenntartoESLElutasitasOka = "FenntartoESLElutasitasOka";
|
|
public const string VeglegesESLDatuma = "VeglegesESLDatuma";
|
|
public const string VeglegesLetszam = "VeglegesLetszam";
|
|
public const string VeglegesLetszamDatuma = "VeglegesLetszamDatuma";
|
|
public const string VeglegesTTFDatuma = "VeglegesTTFDatuma";
|
|
public const string BeiratkozasElutasitasOka = "BeiratkozasElutasitasOka";
|
|
public const string ElfogadottBeiratkozas = "ElfogadottBeiratkozas";
|
|
public const string VeglegesBeiratkozas = "VeglegesBeiratkozas";
|
|
public const string SzakBeiratkFelvett = "SzakBeiratkFelvett";
|
|
public const string SzakBeiratkJelentkezett = "SzakBeiratkJelentkezett";
|
|
public const string VeglegesETTF = "VeglegesETTF";
|
|
public const string VeglegesSzirStatDatuma = "VeglegesSzirStatDatuma";
|
|
}
|
|
|
|
public class AttributeLengthInfo
|
|
{
|
|
public const int FenntartoTTFElutasitasOkaLength = 2147483647;
|
|
public const int FenntartoESLElutasitasOkaLength = 2147483647;
|
|
public const int BeiratkozasElutasitasOkaLength = 2147483647;
|
|
}
|
|
|
|
#region General
|
|
private IntezmenyAdatszolgaltatasDA m_DA = new IntezmenyAdatszolgaltatasDA();
|
|
|
|
protected static IntezmenyAdatszolgaltatas FakeIntezmenyAdatszolgaltatas { get; set; }
|
|
|
|
public static IntezmenyAdatszolgaltatas GiveAnInstance()
|
|
{
|
|
IntezmenyAdatszolgaltatas result = FakeIntezmenyAdatszolgaltatas == null
|
|
? new IntezmenyAdatszolgaltatas()
|
|
: (IntezmenyAdatszolgaltatas)FakeIntezmenyAdatszolgaltatas.MemberwiseClone();
|
|
result.Reset();
|
|
result.SetDefaultData();
|
|
|
|
return result;
|
|
}
|
|
|
|
protected void SetDefaultData()
|
|
{
|
|
if (UserContext.Instance != null)
|
|
{
|
|
if (UserContext.Instance.IntezmenyId > 0)
|
|
{
|
|
IntezmenyId = UserContext.Instance.IntezmenyId;
|
|
}
|
|
|
|
if (UserContext.Instance.AktivTanevId > 0)
|
|
{
|
|
TanevId = UserContext.Instance.AktivTanevId;
|
|
}
|
|
|
|
m_State = EntityState.Uninitialized;
|
|
}
|
|
}
|
|
|
|
protected override IEntityDataAccessor GetDataAccessor() { return m_DA; }
|
|
protected internal virtual IEntityDataAccessor InheritedDA { get { return null; } }
|
|
|
|
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
|
public static IEntityCollection<IntezmenyAdatszolgaltatas> LoadAll()
|
|
{
|
|
return LoadWithFilter("");
|
|
}
|
|
|
|
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
|
public static IEntityCollection<IntezmenyAdatszolgaltatas> LoadAll(ColumnFilterMode columnFilterMode, IEnumerable<string> columns)
|
|
{
|
|
return LoadWithFilter("", columnFilterMode, columns);
|
|
}
|
|
|
|
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
|
public static IEntityCollection<IntezmenyAdatszolgaltatas> LoadWithFilter(string filter, Dictionary<string, object> commandParameters = null)
|
|
{
|
|
var result = new EntityCollection<IntezmenyAdatszolgaltatas>();
|
|
new IntezmenyAdatszolgaltatasDA().LoadWithFilter(result, filter, commandParameters);
|
|
return result;
|
|
}
|
|
|
|
[Obsolete("Ezt ne használjátok, mert mindenhova bele kellene fogalmazni a tanév szűrést is! Meg fog majd szűnni!")]
|
|
public static IEntityCollection<IntezmenyAdatszolgaltatas> LoadWithFilter(string filter, ColumnFilterMode columnFilterMode, IEnumerable<string> columns, Dictionary<string, object> commandParameters = null)
|
|
{
|
|
var result = new EntityCollection<IntezmenyAdatszolgaltatas>();
|
|
new IntezmenyAdatszolgaltatasDA().LoadWithFilter(result, filter, columnFilterMode, columns, commandParameters);
|
|
return result;
|
|
}
|
|
|
|
protected override void StoreOriginalValues()
|
|
{
|
|
base.StoreOriginalValues();
|
|
OriginalValues.Add("ElfogadottESL", (ElfogadottESL == null ? (object)DBNull.Value : (object)m_ElfogadottESL));
|
|
OriginalValues.Add("ElfogadottTTF", (ElfogadottTTF == null ? (object)DBNull.Value : (object)m_ElfogadottTTF));
|
|
OriginalValues.Add("VeglegesESL", (VeglegesESL == null ? (object)DBNull.Value : (object)m_VeglegesESL));
|
|
OriginalValues.Add("VeglegesTTF", (VeglegesTTF == null ? (object)DBNull.Value : (object)m_VeglegesTTF));
|
|
OriginalValues.Add("FenntartoTTFElutasitasOka", (FenntartoTTFElutasitasOka == null ? (object)DBNull.Value : (object)m_FenntartoTTFElutasitasOka));
|
|
OriginalValues.Add("ElfogadottESLDatuma", (ElfogadottESLDatuma == null ? (object)DBNull.Value : (object)m_ElfogadottESLDatuma));
|
|
OriginalValues.Add("ElfogadottLetszam", (ElfogadottLetszam == null ? (object)DBNull.Value : (object)m_ElfogadottLetszam));
|
|
OriginalValues.Add("ElfogadottLetszamDatuma", (ElfogadottLetszamDatuma == null ? (object)DBNull.Value : (object)m_ElfogadottLetszamDatuma));
|
|
OriginalValues.Add("ElfogadottTTFDatuma", (ElfogadottTTFDatuma == null ? (object)DBNull.Value : (object)m_ElfogadottTTFDatuma));
|
|
OriginalValues.Add("FenntartoESLElutasitasOka", (FenntartoESLElutasitasOka == null ? (object)DBNull.Value : (object)m_FenntartoESLElutasitasOka));
|
|
OriginalValues.Add("VeglegesESLDatuma", (VeglegesESLDatuma == null ? (object)DBNull.Value : (object)m_VeglegesESLDatuma));
|
|
OriginalValues.Add("VeglegesLetszam", (VeglegesLetszam == null ? (object)DBNull.Value : (object)m_VeglegesLetszam));
|
|
OriginalValues.Add("VeglegesLetszamDatuma", (VeglegesLetszamDatuma == null ? (object)DBNull.Value : (object)m_VeglegesLetszamDatuma));
|
|
OriginalValues.Add("VeglegesTTFDatuma", (VeglegesTTFDatuma == null ? (object)DBNull.Value : (object)m_VeglegesTTFDatuma));
|
|
OriginalValues.Add("BeiratkozasElutasitasOka", (BeiratkozasElutasitasOka == null ? (object)DBNull.Value : (object)m_BeiratkozasElutasitasOka));
|
|
OriginalValues.Add("ElfogadottBeiratkozas", (ElfogadottBeiratkozas == null ? (object)DBNull.Value : (object)m_ElfogadottBeiratkozas));
|
|
OriginalValues.Add("VeglegesBeiratkozas", (VeglegesBeiratkozas == null ? (object)DBNull.Value : (object)m_VeglegesBeiratkozas));
|
|
OriginalValues.Add("SzakBeiratkFelvett", (SzakBeiratkFelvett == null ? (object)DBNull.Value : (object)m_SzakBeiratkFelvett));
|
|
OriginalValues.Add("SzakBeiratkJelentkezett", (SzakBeiratkJelentkezett == null ? (object)DBNull.Value : (object)m_SzakBeiratkJelentkezett));
|
|
OriginalValues.Add("VeglegesETTF", (object)m_VeglegesETTF);
|
|
OriginalValues.Add("VeglegesSzirStatDatuma", (VeglegesSzirStatDatuma == null ? (object)DBNull.Value : (object)m_VeglegesSzirStatDatuma));
|
|
OriginalValues.Add("IntezmenyId", (m_IntezmenyId < 0 ? (object)DBNull.Value : (object)m_IntezmenyId));
|
|
OriginalValues.Add("TanevId", (m_TanevId < 0 ? (object)DBNull.Value : (object)m_TanevId));
|
|
OriginalValues.Add("SzirStatVeglegesitoId", (m_SzirStatVeglegesitoId < 0 ? (object)DBNull.Value : (object)m_SzirStatVeglegesitoId));
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#region Ellenőrzés
|
|
|
|
protected override void Validate(bool skipValidateAttributes = false)
|
|
{
|
|
base.Validate();
|
|
|
|
if (!skipValidateAttributes)
|
|
{
|
|
// korlátos hosszúságú mezők ellenőrzése...
|
|
if (m_FenntartoTTFElutasitasOka != null && m_FenntartoTTFElutasitasOka.Length > 2147483647)
|
|
{
|
|
throw new InvalidEntityAttributeException("IntezmenyAdatszolgaltatas", "FenntartoTTFElutasitasOka", EntityAttributeError.TooLong);
|
|
}
|
|
if (m_FenntartoESLElutasitasOka != null && m_FenntartoESLElutasitasOka.Length > 2147483647)
|
|
{
|
|
throw new InvalidEntityAttributeException("IntezmenyAdatszolgaltatas", "FenntartoESLElutasitasOka", EntityAttributeError.TooLong);
|
|
}
|
|
if (m_BeiratkozasElutasitasOka != null && m_BeiratkozasElutasitasOka.Length > 2147483647)
|
|
{
|
|
throw new InvalidEntityAttributeException("IntezmenyAdatszolgaltatas", "BeiratkozasElutasitasOka", EntityAttributeError.TooLong);
|
|
}
|
|
}
|
|
|
|
// kötelező asszociációk ellenőrzése...
|
|
if (m_IntezmenyId == -1) { throw new InvalidEntityAttributeException("IntezmenyAdatszolgaltatas", "IntezmenyId", EntityAttributeError.Empty); }
|
|
if (m_TanevId == -1) { throw new InvalidEntityAttributeException("IntezmenyAdatszolgaltatas", "TanevId", EntityAttributeError.Empty); }
|
|
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Alaphelyzetbe állítás
|
|
protected override void Reset()
|
|
{
|
|
base.Reset();
|
|
|
|
// alaphelyzetbe állítjuk az egyszerű mezőket
|
|
this.m_ElfogadottESL = null;
|
|
this.m_ElfogadottTTF = null;
|
|
this.m_VeglegesESL = null;
|
|
this.m_VeglegesTTF = null;
|
|
this.m_FenntartoTTFElutasitasOka = null;
|
|
this.m_ElfogadottESLDatuma = null;
|
|
this.m_ElfogadottLetszam = null;
|
|
this.m_ElfogadottLetszamDatuma = null;
|
|
this.m_ElfogadottTTFDatuma = null;
|
|
this.m_FenntartoESLElutasitasOka = null;
|
|
this.m_VeglegesESLDatuma = null;
|
|
this.m_VeglegesLetszam = null;
|
|
this.m_VeglegesLetszamDatuma = null;
|
|
this.m_VeglegesTTFDatuma = null;
|
|
this.m_BeiratkozasElutasitasOka = null;
|
|
this.m_ElfogadottBeiratkozas = null;
|
|
this.m_VeglegesBeiratkozas = null;
|
|
this.m_SzakBeiratkFelvett = null;
|
|
this.m_SzakBeiratkJelentkezett = null;
|
|
this.m_VeglegesETTF = false;
|
|
this.m_VeglegesSzirStatDatuma = null;
|
|
|
|
// alaphelyzetbe állítjuk az asszociációkból származó mezőket
|
|
this.m_IntezmenyId = -1;
|
|
this.m_Intezmeny = null; // Entity
|
|
this.m_TanevId = -1;
|
|
this.m_Tanev = null; // Entity
|
|
this.m_SzirStatVeglegesitoId = -1;
|
|
this.m_SzirStatVeglegesito = null; // Entity
|
|
}
|
|
|
|
#endregion
|
|
|
|
protected override void DeAssociateBeforeDelete(bool runHandler = false)
|
|
{
|
|
// Nem kaszkád törölhető asszociációk ellenőrzése, hogy üresek-e...
|
|
|
|
// Intezmeny esetében mi mutatunk a másikra: startrole: *, endrole: 1
|
|
// Tanev esetében mi mutatunk a másikra: startrole: *, endrole: 1
|
|
// SzirStatVeglegesito esetében mi mutatunk a másikra: startrole: *, endrole: 0..1
|
|
// kaszkád törlések...
|
|
|
|
}
|
|
|
|
#region Mezők és tulajdonságok
|
|
|
|
#region Egyszerű mezők
|
|
|
|
#region ElfogadottESL
|
|
|
|
protected internal bool? m_ElfogadottESL;
|
|
|
|
/// <summary>
|
|
/// elfogadott ESL
|
|
/// </summary>
|
|
[EntityProperty("ElfogadottESL", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? ElfogadottESL
|
|
{
|
|
get
|
|
{
|
|
return m_ElfogadottESL;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_ElfogadottESL == value) return;
|
|
m_ElfogadottESL = value;
|
|
FieldModified("ElfogadottESL", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ElfogadottTTF
|
|
|
|
protected internal bool? m_ElfogadottTTF;
|
|
|
|
/// <summary>
|
|
/// elfogadott TTF
|
|
/// </summary>
|
|
[EntityProperty("ElfogadottTTF", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? ElfogadottTTF
|
|
{
|
|
get
|
|
{
|
|
return m_ElfogadottTTF;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_ElfogadottTTF == value) return;
|
|
m_ElfogadottTTF = value;
|
|
FieldModified("ElfogadottTTF", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesESL
|
|
|
|
protected internal bool? m_VeglegesESL;
|
|
|
|
/// <summary>
|
|
/// végleges ESL
|
|
/// </summary>
|
|
[EntityProperty("VeglegesESL", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? VeglegesESL
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesESL;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesESL == value) return;
|
|
m_VeglegesESL = value;
|
|
FieldModified("VeglegesESL", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesTTF
|
|
|
|
protected internal bool? m_VeglegesTTF;
|
|
|
|
/// <summary>
|
|
/// végleges TTF
|
|
/// </summary>
|
|
[EntityProperty("VeglegesTTF", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? VeglegesTTF
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesTTF;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesTTF == value) return;
|
|
m_VeglegesTTF = value;
|
|
FieldModified("VeglegesTTF", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region FenntartoTTFElutasitasOka
|
|
|
|
protected internal string m_FenntartoTTFElutasitasOka;
|
|
|
|
/// <summary>
|
|
/// fenntartó TTF elutasításának oka
|
|
/// </summary>
|
|
[EntityProperty("FenntartoTTFElutasitasOka", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
|
public virtual string FenntartoTTFElutasitasOka
|
|
{
|
|
get
|
|
{
|
|
return m_FenntartoTTFElutasitasOka;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_FenntartoTTFElutasitasOka == value) return;
|
|
m_FenntartoTTFElutasitasOka = value;
|
|
FieldModified("FenntartoTTFElutasitasOka", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ElfogadottESLDatuma
|
|
|
|
protected internal DateTime? m_ElfogadottESLDatuma;
|
|
|
|
/// <summary>
|
|
/// elfogadott ESL dátuma
|
|
/// </summary>
|
|
[EntityProperty("ElfogadottESLDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
|
|
public virtual DateTime? ElfogadottESLDatuma
|
|
{
|
|
get
|
|
{
|
|
return m_ElfogadottESLDatuma;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_ElfogadottESLDatuma == value) return;
|
|
m_ElfogadottESLDatuma = value;
|
|
FieldModified("ElfogadottESLDatuma", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ElfogadottLetszam
|
|
|
|
protected internal bool? m_ElfogadottLetszam;
|
|
|
|
/// <summary>
|
|
/// elfogadott létszám?
|
|
/// </summary>
|
|
[EntityProperty("ElfogadottLetszam", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? ElfogadottLetszam
|
|
{
|
|
get
|
|
{
|
|
return m_ElfogadottLetszam;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_ElfogadottLetszam == value) return;
|
|
m_ElfogadottLetszam = value;
|
|
FieldModified("ElfogadottLetszam", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ElfogadottLetszamDatuma
|
|
|
|
protected internal DateTime? m_ElfogadottLetszamDatuma;
|
|
|
|
/// <summary>
|
|
/// elfogadott létszám dátuma
|
|
/// </summary>
|
|
[EntityProperty("ElfogadottLetszamDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
|
|
public virtual DateTime? ElfogadottLetszamDatuma
|
|
{
|
|
get
|
|
{
|
|
return m_ElfogadottLetszamDatuma;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_ElfogadottLetszamDatuma == value) return;
|
|
m_ElfogadottLetszamDatuma = value;
|
|
FieldModified("ElfogadottLetszamDatuma", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ElfogadottTTFDatuma
|
|
|
|
protected internal DateTime? m_ElfogadottTTFDatuma;
|
|
|
|
/// <summary>
|
|
/// elfogadott TTF dátuma
|
|
/// </summary>
|
|
[EntityProperty("ElfogadottTTFDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
|
|
public virtual DateTime? ElfogadottTTFDatuma
|
|
{
|
|
get
|
|
{
|
|
return m_ElfogadottTTFDatuma;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_ElfogadottTTFDatuma == value) return;
|
|
m_ElfogadottTTFDatuma = value;
|
|
FieldModified("ElfogadottTTFDatuma", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region FenntartoESLElutasitasOka
|
|
|
|
protected internal string m_FenntartoESLElutasitasOka;
|
|
|
|
/// <summary>
|
|
/// fenntartó ESL elutasításának oka
|
|
/// </summary>
|
|
[EntityProperty("FenntartoESLElutasitasOka", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
|
public virtual string FenntartoESLElutasitasOka
|
|
{
|
|
get
|
|
{
|
|
return m_FenntartoESLElutasitasOka;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_FenntartoESLElutasitasOka == value) return;
|
|
m_FenntartoESLElutasitasOka = value;
|
|
FieldModified("FenntartoESLElutasitasOka", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesESLDatuma
|
|
|
|
protected internal DateTime? m_VeglegesESLDatuma;
|
|
|
|
/// <summary>
|
|
/// végleges ESL dátuma
|
|
/// </summary>
|
|
[EntityProperty("VeglegesESLDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
|
|
public virtual DateTime? VeglegesESLDatuma
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesESLDatuma;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesESLDatuma == value) return;
|
|
m_VeglegesESLDatuma = value;
|
|
FieldModified("VeglegesESLDatuma", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesLetszam
|
|
|
|
protected internal bool? m_VeglegesLetszam;
|
|
|
|
/// <summary>
|
|
/// végleges létszám?
|
|
/// </summary>
|
|
[EntityProperty("VeglegesLetszam", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? VeglegesLetszam
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesLetszam;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesLetszam == value) return;
|
|
m_VeglegesLetszam = value;
|
|
FieldModified("VeglegesLetszam", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesLetszamDatuma
|
|
|
|
protected internal DateTime? m_VeglegesLetszamDatuma;
|
|
|
|
/// <summary>
|
|
/// végleges létszám dátuma
|
|
/// </summary>
|
|
[EntityProperty("VeglegesLetszamDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
|
|
public virtual DateTime? VeglegesLetszamDatuma
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesLetszamDatuma;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesLetszamDatuma == value) return;
|
|
m_VeglegesLetszamDatuma = value;
|
|
FieldModified("VeglegesLetszamDatuma", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesTTFDatuma
|
|
|
|
protected internal DateTime? m_VeglegesTTFDatuma;
|
|
|
|
/// <summary>
|
|
/// végleges TTF dátuma
|
|
/// </summary>
|
|
[EntityProperty("VeglegesTTFDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
|
|
public virtual DateTime? VeglegesTTFDatuma
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesTTFDatuma;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesTTFDatuma == value) return;
|
|
m_VeglegesTTFDatuma = value;
|
|
FieldModified("VeglegesTTFDatuma", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region BeiratkozasElutasitasOka
|
|
|
|
protected internal string m_BeiratkozasElutasitasOka;
|
|
|
|
/// <summary>
|
|
/// beiratkozás elutasítás oka
|
|
/// </summary>
|
|
[EntityProperty("BeiratkozasElutasitasOka", EntityPropertyBaseType.ValueType, typeof(string), EntityCopyMethod.ShallowCopy)]
|
|
public virtual string BeiratkozasElutasitasOka
|
|
{
|
|
get
|
|
{
|
|
return m_BeiratkozasElutasitasOka;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_BeiratkozasElutasitasOka == value) return;
|
|
m_BeiratkozasElutasitasOka = value;
|
|
FieldModified("BeiratkozasElutasitasOka", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ElfogadottBeiratkozas
|
|
|
|
protected internal bool? m_ElfogadottBeiratkozas;
|
|
|
|
/// <summary>
|
|
/// elfogadott beiratkozás
|
|
/// </summary>
|
|
[EntityProperty("ElfogadottBeiratkozas", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? ElfogadottBeiratkozas
|
|
{
|
|
get
|
|
{
|
|
return m_ElfogadottBeiratkozas;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_ElfogadottBeiratkozas == value) return;
|
|
m_ElfogadottBeiratkozas = value;
|
|
FieldModified("ElfogadottBeiratkozas", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesBeiratkozas
|
|
|
|
protected internal bool? m_VeglegesBeiratkozas;
|
|
|
|
/// <summary>
|
|
/// végleges beiratkozás
|
|
/// </summary>
|
|
[EntityProperty("VeglegesBeiratkozas", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool? VeglegesBeiratkozas
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesBeiratkozas;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesBeiratkozas == value) return;
|
|
m_VeglegesBeiratkozas = value;
|
|
FieldModified("VeglegesBeiratkozas", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region SzakBeiratkFelvett
|
|
|
|
protected internal int? m_SzakBeiratkFelvett;
|
|
|
|
/// <summary>
|
|
/// Nincs definiálva megjegyzés.
|
|
/// </summary>
|
|
[EntityProperty("SzakBeiratkFelvett", EntityPropertyBaseType.ValueType, typeof(int), EntityCopyMethod.ShallowCopy)]
|
|
public virtual int? SzakBeiratkFelvett
|
|
{
|
|
get
|
|
{
|
|
return m_SzakBeiratkFelvett;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_SzakBeiratkFelvett == value) return;
|
|
m_SzakBeiratkFelvett = value;
|
|
FieldModified("SzakBeiratkFelvett", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region SzakBeiratkJelentkezett
|
|
|
|
protected internal int? m_SzakBeiratkJelentkezett;
|
|
|
|
/// <summary>
|
|
/// Nincs definiálva megjegyzés.
|
|
/// </summary>
|
|
[EntityProperty("SzakBeiratkJelentkezett", EntityPropertyBaseType.ValueType, typeof(int), EntityCopyMethod.ShallowCopy)]
|
|
public virtual int? SzakBeiratkJelentkezett
|
|
{
|
|
get
|
|
{
|
|
return m_SzakBeiratkJelentkezett;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_SzakBeiratkJelentkezett == value) return;
|
|
m_SzakBeiratkJelentkezett = value;
|
|
FieldModified("SzakBeiratkJelentkezett", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesETTF
|
|
|
|
protected internal bool m_VeglegesETTF;
|
|
|
|
/// <summary>
|
|
/// Nincs definiálva megjegyzés.
|
|
/// </summary>
|
|
[EntityProperty("VeglegesETTF", EntityPropertyBaseType.ValueType, typeof(bool), EntityCopyMethod.ShallowCopy)]
|
|
public virtual bool VeglegesETTF
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesETTF;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesETTF == value) return;
|
|
m_VeglegesETTF = value;
|
|
FieldModified("VeglegesETTF", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region VeglegesSzirStatDatuma
|
|
|
|
protected internal DateTime? m_VeglegesSzirStatDatuma;
|
|
|
|
/// <summary>
|
|
/// Nincs definiálva megjegyzés.
|
|
/// </summary>
|
|
[EntityProperty("VeglegesSzirStatDatuma", EntityPropertyBaseType.ValueType, typeof(DateTime), EntityCopyMethod.ShallowCopy)]
|
|
public virtual DateTime? VeglegesSzirStatDatuma
|
|
{
|
|
get
|
|
{
|
|
return m_VeglegesSzirStatDatuma;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
|
|
if (m_VeglegesSzirStatDatuma == value) return;
|
|
m_VeglegesSzirStatDatuma = value;
|
|
FieldModified("VeglegesSzirStatDatuma", value);
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#region Asszociációkkal kapcsolatos dolgok
|
|
|
|
#region IntezmenyAdatszolgaltatas (*) -> Intezmeny (1)
|
|
|
|
protected internal int m_IntezmenyId = -1;
|
|
|
|
/// <summary>
|
|
/// A(z) Intezmeny asszociáció végpontjának ID-ja.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// - Insert() előtt célszerű kitölteni
|
|
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
|
|
/// - LoadByID() felhozza ezt a mezőt
|
|
/// </remarks>
|
|
public virtual int IntezmenyId
|
|
{
|
|
get
|
|
{
|
|
return InternalIntezmenyId;
|
|
}
|
|
set
|
|
{
|
|
InternalIntezmenyId = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ez egy külön bejárat a DA számára
|
|
/// <summary>
|
|
internal int InternalIntezmenyId
|
|
{
|
|
get
|
|
{
|
|
if (m_Intezmeny != null)
|
|
{
|
|
return m_Intezmeny.ID;
|
|
}
|
|
else
|
|
{
|
|
return m_IntezmenyId;// XXX az meg nem teljesen OK
|
|
}
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
if (m_IntezmenyId != value)
|
|
{
|
|
m_IntezmenyId = value;
|
|
m_Intezmeny = null;
|
|
FieldModified("IntezmenyId", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ez egy külön bejárat a DA számára
|
|
/// <summary>
|
|
internal void ModifyIntezmeny(Intezmeny value)
|
|
{
|
|
m_IntezmenyId = value != null ? value.ID : -1;
|
|
m_Intezmeny = value;
|
|
FieldModified("IntezmenyId", value != null ? (object)value.ID : DBNull.Value);
|
|
}
|
|
|
|
protected internal void SetIntezmeny(Intezmeny value)
|
|
{
|
|
m_Intezmeny = value;
|
|
if (value != null)
|
|
{
|
|
m_IntezmenyId = value.ID;
|
|
}
|
|
else
|
|
{
|
|
m_IntezmenyId = -1;
|
|
}
|
|
}
|
|
|
|
protected Intezmeny m_Intezmeny = null;
|
|
|
|
IIntezmeny IIntezmenyAdatszolgaltatas.Intezmeny
|
|
{
|
|
get { return Intezmeny; }
|
|
set { Intezmeny = value as Intezmeny; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Nincs definiálva megjegyzés.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Az UML modellben szereplő IntezmenyAdatszolgaltatas és Intezmeny entitások közötti asszociáció megvalósítása.
|
|
/// </remarks>
|
|
[EntityProperty("Intezmeny", EntityPropertyBaseType.Entity, typeof(Intezmeny), EntityCopyMethod.ShallowCopy)]
|
|
public virtual Intezmeny Intezmeny
|
|
{
|
|
get
|
|
{
|
|
if ((m_Intezmeny == null) && (m_IntezmenyId != -1))
|
|
{
|
|
SDA.Kreta.Entities.Intezmeny partner = SDA.Kreta.Entities.Intezmeny.GiveAnInstance();
|
|
partner.LoadByID(m_IntezmenyId);
|
|
|
|
this.SetIntezmeny(partner);
|
|
}
|
|
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
|
|
return m_Intezmeny;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
if (value != null)
|
|
{
|
|
if ((m_Intezmeny == null) || (value.ID != m_Intezmeny.ID))
|
|
{
|
|
if (value.State != EntityState.Initialized)
|
|
{
|
|
throw new EntityStateException(value.State);
|
|
}
|
|
if ((this.State != EntityState.New))
|
|
{
|
|
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
|
|
SDA.Kreta.Entities.Intezmeny_IntezmenyAdatszolgaltatas_DA da = new Intezmeny_IntezmenyAdatszolgaltatas_DA(value);
|
|
da.AddItem(this);
|
|
this.SetIntezmeny(value);
|
|
}
|
|
else
|
|
{
|
|
this.SetIntezmeny(value);
|
|
}
|
|
FieldModified("IntezmenyId", value.ID);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
// ki kell törölni a kapcsolatot az adatbázisban
|
|
this.SetIntezmeny(null);
|
|
UpdateAssociations();
|
|
FieldModified("IntezmenyId", DBNull.Value);
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region IntezmenyAdatszolgaltatas (*) -> Tanev (1)
|
|
|
|
protected internal int m_TanevId = -1;
|
|
|
|
/// <summary>
|
|
/// A(z) Tanev asszociáció végpontjának ID-ja.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// - Insert() előtt célszerű kitölteni
|
|
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
|
|
/// - LoadByID() felhozza ezt a mezőt
|
|
/// </remarks>
|
|
public virtual int TanevId
|
|
{
|
|
get
|
|
{
|
|
return InternalTanevId;
|
|
}
|
|
set
|
|
{
|
|
InternalTanevId = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ez egy külön bejárat a DA számára
|
|
/// <summary>
|
|
internal int InternalTanevId
|
|
{
|
|
get
|
|
{
|
|
if (m_Tanev != null)
|
|
{
|
|
return m_Tanev.ID;
|
|
}
|
|
else
|
|
{
|
|
return m_TanevId;// XXX az meg nem teljesen OK
|
|
}
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
if (m_TanevId != value)
|
|
{
|
|
m_TanevId = value;
|
|
m_Tanev = null;
|
|
FieldModified("TanevId", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ez egy külön bejárat a DA számára
|
|
/// <summary>
|
|
internal void ModifyTanev(Tanev value)
|
|
{
|
|
m_TanevId = value != null ? value.ID : -1;
|
|
m_Tanev = value;
|
|
FieldModified("TanevId", value != null ? (object)value.ID : DBNull.Value);
|
|
}
|
|
|
|
protected internal void SetTanev(Tanev value)
|
|
{
|
|
m_Tanev = value;
|
|
if (value != null)
|
|
{
|
|
m_TanevId = value.ID;
|
|
}
|
|
else
|
|
{
|
|
m_TanevId = -1;
|
|
}
|
|
}
|
|
|
|
protected Tanev m_Tanev = null;
|
|
|
|
ITanev IIntezmenyAdatszolgaltatas.Tanev
|
|
{
|
|
get { return Tanev; }
|
|
set { Tanev = value as Tanev; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Nincs definiálva megjegyzés.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Az UML modellben szereplő IntezmenyAdatszolgaltatas és Tanev entitások közötti asszociáció megvalósítása.
|
|
/// </remarks>
|
|
[EntityProperty("Tanev", EntityPropertyBaseType.Entity, typeof(Tanev), EntityCopyMethod.ShallowCopy)]
|
|
public virtual Tanev Tanev
|
|
{
|
|
get
|
|
{
|
|
if ((m_Tanev == null) && (m_TanevId != -1))
|
|
{
|
|
SDA.Kreta.Entities.Tanev partner = SDA.Kreta.Entities.Tanev.GiveAnInstance();
|
|
partner.LoadByID(m_TanevId);
|
|
|
|
this.SetTanev(partner);
|
|
}
|
|
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
|
|
return m_Tanev;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
if (value != null)
|
|
{
|
|
if ((m_Tanev == null) || (value.ID != m_Tanev.ID))
|
|
{
|
|
if (value.State != EntityState.Initialized)
|
|
{
|
|
throw new EntityStateException(value.State);
|
|
}
|
|
if ((this.State != EntityState.New))
|
|
{
|
|
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
|
|
SDA.Kreta.Entities.Tanev_IntezmenyAdatszolgaltatas_DA da = new Tanev_IntezmenyAdatszolgaltatas_DA(value);
|
|
da.AddItem(this);
|
|
this.SetTanev(value);
|
|
}
|
|
else
|
|
{
|
|
this.SetTanev(value);
|
|
}
|
|
FieldModified("TanevId", value.ID);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
// ki kell törölni a kapcsolatot az adatbázisban
|
|
this.SetTanev(null);
|
|
UpdateAssociations();
|
|
FieldModified("TanevId", DBNull.Value);
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region IntezmenyAdatszolgaltatas (*) -> Felhasznalo (0..1)
|
|
|
|
protected internal int m_SzirStatVeglegesitoId = -1;
|
|
|
|
/// <summary>
|
|
/// A(z) SzirStatVeglegesito asszociáció végpontjának ID-ja.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// - Insert() előtt célszerű kitölteni
|
|
/// - Update() nincs rá hatással: ezt a mezőt nem frissíti
|
|
/// - LoadByID() felhozza ezt a mezőt
|
|
/// </remarks>
|
|
public virtual int SzirStatVeglegesitoId
|
|
{
|
|
get
|
|
{
|
|
return InternalSzirStatVeglegesitoId;
|
|
}
|
|
set
|
|
{
|
|
InternalSzirStatVeglegesitoId = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ez egy külön bejárat a DA számára
|
|
/// <summary>
|
|
internal int InternalSzirStatVeglegesitoId
|
|
{
|
|
get
|
|
{
|
|
if (m_SzirStatVeglegesito != null)
|
|
{
|
|
return m_SzirStatVeglegesito.ID;
|
|
}
|
|
else
|
|
{
|
|
return m_SzirStatVeglegesitoId;// XXX az meg nem teljesen OK
|
|
}
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
if (m_SzirStatVeglegesitoId != value)
|
|
{
|
|
m_SzirStatVeglegesitoId = value;
|
|
m_SzirStatVeglegesito = null;
|
|
FieldModified("SzirStatVeglegesitoId", value);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ez egy külön bejárat a DA számára
|
|
/// <summary>
|
|
internal void ModifySzirStatVeglegesito(Felhasznalo value)
|
|
{
|
|
m_SzirStatVeglegesitoId = value != null ? value.ID : -1;
|
|
m_SzirStatVeglegesito = value;
|
|
FieldModified("SzirStatVeglegesitoId", value != null ? (object)value.ID : DBNull.Value);
|
|
}
|
|
|
|
protected internal void SetSzirStatVeglegesito(Felhasznalo value)
|
|
{
|
|
m_SzirStatVeglegesito = value;
|
|
if (value != null)
|
|
{
|
|
m_SzirStatVeglegesitoId = value.ID;
|
|
}
|
|
else
|
|
{
|
|
m_SzirStatVeglegesitoId = -1;
|
|
}
|
|
}
|
|
|
|
protected Felhasznalo m_SzirStatVeglegesito = null;
|
|
|
|
IFelhasznalo IIntezmenyAdatszolgaltatas.SzirStatVeglegesito
|
|
{
|
|
get { return SzirStatVeglegesito; }
|
|
set { SzirStatVeglegesito = value as Felhasznalo; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Nincs definiálva megjegyzés.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Az UML modellben szereplő IntezmenyAdatszolgaltatas és Felhasznalo entitások közötti asszociáció megvalósítása.
|
|
/// </remarks>
|
|
[EntityProperty("SzirStatVeglegesito", EntityPropertyBaseType.Entity, typeof(Felhasznalo), EntityCopyMethod.ShallowCopy)]
|
|
public virtual Felhasznalo SzirStatVeglegesito
|
|
{
|
|
get
|
|
{
|
|
if ((m_SzirStatVeglegesito == null) && (m_SzirStatVeglegesitoId != -1))
|
|
{
|
|
SDA.Kreta.Entities.Felhasznalo partner = SDA.Kreta.Entities.Felhasznalo.GiveAnInstance();
|
|
partner.LoadByID(m_SzirStatVeglegesitoId);
|
|
|
|
this.SetSzirStatVeglegesito(partner);
|
|
}
|
|
// természetesen null-t adunk vissza, ha nem tudtunk felhozni semmit
|
|
return m_SzirStatVeglegesito;
|
|
}
|
|
set
|
|
{
|
|
CheckModifyable();
|
|
if (value != null)
|
|
{
|
|
if ((m_SzirStatVeglegesito == null) || (value.ID != m_SzirStatVeglegesito.ID))
|
|
{
|
|
if (value.State != EntityState.Initialized)
|
|
{
|
|
throw new EntityStateException(value.State);
|
|
}
|
|
if ((this.State != EntityState.New))
|
|
{
|
|
// Lista van a másik oldalon, úgyhogy a lista DA-ját használjuk
|
|
SDA.Kreta.Entities.Felhasznalo_IntezmenyAdatszolgaltatas_DA da = new Felhasznalo_IntezmenyAdatszolgaltatas_DA(value);
|
|
da.AddItem(this);
|
|
this.SetSzirStatVeglegesito(value);
|
|
}
|
|
else
|
|
{
|
|
this.SetSzirStatVeglegesito(value);
|
|
}
|
|
FieldModified("SzirStatVeglegesitoId", value.ID);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
// ki kell törölni a kapcsolatot az adatbázisban
|
|
this.SetSzirStatVeglegesito(null);
|
|
UpdateAssociations();
|
|
FieldModified("SzirStatVeglegesitoId", DBNull.Value);
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|