DRAB/Pcm.Db/Entities/Kontrahent.cs
2025-07-11 10:50:46 +02:00

151 lines
5.9 KiB
C#

using System.Text.Json.Serialization;
namespace Pcm.Db.Entities;
public class Kontrahent
{
public Kontrahent()
{
CentrStanZgodies = new HashSet<CentrStanZgody>();
DokDodKths = new HashSet<DokDodKth>();
DokKontrs = new HashSet<DokKontr>();
DostProdDosts = new HashSet<DostProd>();
DostProdProds = new HashSet<DostProd>();
Dostawcas = new HashSet<Dostawca>();
KontoBankoweKontrs = new HashSet<KontoBankoweKontr>();
KontoLojs = new HashSet<KontoLoj>();
KontrOpis = new HashSet<KontrOpi>();
KthTypOs = new HashSet<KthTypO>();
KthWartoscs = new HashSet<KthWartosc>();
NrRejs = new HashSet<NrRej>();
OdbProdOdbs = new HashSet<OdbProd>();
OdbProdProds = new HashSet<OdbProd>();
Odbiorcas = new HashSet<Odbiorca>();
OfSlowniks = new HashSet<OfSlownik>();
Oferta = new HashSet<Ofertum>();
Osobas = new HashSet<Osoba>();
PcfUserPcfCustomers = new HashSet<PcfUser>();
PcfUserPcfLoyaltyCustomers = new HashSet<PcfUser>();
PcfUserPcfPstations = new HashSet<PcfUser>();
Phodbiorcas = new HashSet<Phodbiorca>();
Phs = new HashSet<Ph>();
SklepKontrSkleps = new HashSet<SklepKontrSklep>();
SklepKontrs = new HashSet<SklepKontr>();
SklepNarzDosts = new HashSet<SklepNarzDost>();
StanZgodies = new HashSet<StanZgody>();
Towars = new HashSet<Towar>();
ZdarzOs = new HashSet<ZdarzO>();
}
public decimal KontrId { get; set; }
public decimal? AkwId { get; set; }
public string Nazwa { get; set; }
public string NaPrzelewie1 { get; set; }
public string NaPrzelewie2 { get; set; }
public string Skrot { get; set; }
public string Ulica { get; set; }
public string Kod { get; set; }
public string Miasto { get; set; }
public string Telefon { get; set; }
public string Fax { get; set; }
public string Email { get; set; }
public string Bank { get; set; }
public string Konto { get; set; }
public string Nip { get; set; }
public short Staly { get; set; }
public short Dostawca { get; set; }
public decimal RabatDost { get; set; }
public short FormaPlatDost { get; set; }
public short TermPlatDost { get; set; }
public short CzasRealZam { get; set; }
public short Producent { get; set; }
public short Odbiorca { get; set; }
public decimal RabatOdb { get; set; }
public short FormaPlatOdb { get; set; }
public short TermPlatOdb { get; set; }
public decimal MaxKredyt { get; set; }
public short MaxPoTermPlat { get; set; }
public string KodKarty { get; set; }
public short KartaAktywna { get; set; }
public DateTime TermWaznKarty { get; set; }
public short PoziomRabatu { get; set; }
public string NrAnalityki { get; set; }
public string KodKontr { get; set; }
public short ZakPracChron { get; set; }
public short Aktywny { get; set; }
public string Rezerwa1 { get; set; }
public string Rezerwa2 { get; set; }
public decimal? CentrKontrId { get; set; }
public DateTime Zmiana { get; set; }
public string IndeksCentr { get; set; }
public decimal? KontrKrajId { get; set; }
public string Poczta { get; set; }
public string NrDomu { get; set; }
public string NrLokalu { get; set; }
public short? Osoba { get; set; }
[JsonIgnore]
public virtual Akwizytor Akw { get; set; }
[JsonIgnore]
public virtual Kraj KontrKraj { get; set; }
[JsonIgnore]
public virtual Sklep Sklep { get; set; }
[JsonIgnore]
public virtual ICollection<CentrStanZgody> CentrStanZgodies { get; set; }
[JsonIgnore]
public virtual ICollection<DokDodKth> DokDodKths { get; set; }
[JsonIgnore]
public virtual ICollection<DokKontr> DokKontrs { get; set; }
[JsonIgnore]
public virtual ICollection<DostProd> DostProdDosts { get; set; }
[JsonIgnore]
public virtual ICollection<DostProd> DostProdProds { get; set; }
[JsonIgnore]
public virtual ICollection<Dostawca> Dostawcas { get; set; }
[JsonIgnore]
public virtual ICollection<KontoBankoweKontr> KontoBankoweKontrs { get; set; }
[JsonIgnore]
public virtual ICollection<KontoLoj> KontoLojs { get; set; }
[JsonIgnore]
public virtual ICollection<KontrOpi> KontrOpis { get; set; }
[JsonIgnore]
public virtual ICollection<KthTypO> KthTypOs { get; set; }
[JsonIgnore]
public virtual ICollection<KthWartosc> KthWartoscs { get; set; }
[JsonIgnore]
public virtual ICollection<NrRej> NrRejs { get; set; }
[JsonIgnore]
public virtual ICollection<OdbProd> OdbProdOdbs { get; set; }
[JsonIgnore]
public virtual ICollection<OdbProd> OdbProdProds { get; set; }
[JsonIgnore]
public virtual ICollection<Odbiorca> Odbiorcas { get; set; }
[JsonIgnore]
public virtual ICollection<OfSlownik> OfSlowniks { get; set; }
[JsonIgnore]
public virtual ICollection<Ofertum> Oferta { get; set; }
[JsonIgnore]
public virtual ICollection<Osoba> Osobas { get; set; }
[JsonIgnore]
public virtual ICollection<PcfUser> PcfUserPcfCustomers { get; set; }
[JsonIgnore]
public virtual ICollection<PcfUser> PcfUserPcfLoyaltyCustomers { get; set; }
[JsonIgnore]
public virtual ICollection<PcfUser> PcfUserPcfPstations { get; set; }
[JsonIgnore]
public virtual ICollection<Phodbiorca> Phodbiorcas { get; set; }
[JsonIgnore]
public virtual ICollection<Ph> Phs { get; set; }
[JsonIgnore]
public virtual ICollection<SklepKontrSklep> SklepKontrSkleps { get; set; }
[JsonIgnore]
public virtual ICollection<SklepKontr> SklepKontrs { get; set; }
[JsonIgnore]
public virtual ICollection<SklepNarzDost> SklepNarzDosts { get; set; }
[JsonIgnore]
public virtual ICollection<StanZgody> StanZgodies { get; set; }
[JsonIgnore]
public virtual ICollection<Towar> Towars { get; set; }
[JsonIgnore]
public virtual ICollection<ZdarzO> ZdarzOs { get; set; }
}