using System; using Kreta.Client.KGR.Model; namespace Kreta.BusinessLogic.HelperClasses { public class KotvallItemCo { public KotvallItemCo() { } public KotvallItemCo(IntezmenyiBeszerzesModel intezmenyiBeszerzesModel) { Id = intezmenyiBeszerzesModel.Id; Sorszam = intezmenyiBeszerzesModel.Sorszam; BejelentoNeve = Extensions.NameExtensions.GetNevSorrendben("F", intezmenyiBeszerzesModel.EloTag, intezmenyiBeszerzesModel.CsaladiNev, intezmenyiBeszerzesModel.Utonev); BejelentoIdpEgyediAzonosito = string.IsNullOrWhiteSpace(intezmenyiBeszerzesModel.IdpEgyediAzonosito) ? new Guid() : Guid.Parse(intezmenyiBeszerzesModel.IdpEgyediAzonosito); StatuszNeve = intezmenyiBeszerzesModel.AllapotNev; StatuszId = intezmenyiBeszerzesModel.AllapotId; BeszerzesTargya = intezmenyiBeszerzesModel.TargyNev; BruttoErtek = (int)intezmenyiBeszerzesModel.VarhatoEllenertekBrutto; Leiras = intezmenyiBeszerzesModel.Leiras; VisMajorIndok = intezmenyiBeszerzesModel.VisMajorIndok; OktatasiAzonosito = intezmenyiBeszerzesModel.OktatasiAzonosito; IntezmenyEgyediAzonosito = string.IsNullOrWhiteSpace(intezmenyiBeszerzesModel.IntezmenyEgyediAzonosito) ? new Guid() : Guid.Parse(intezmenyiBeszerzesModel.IntezmenyEgyediAzonosito); LetrehozoEmail = intezmenyiBeszerzesModel.LetrehozoEmail; TargyId = intezmenyiBeszerzesModel.TargyId; ModositasiKerelem = intezmenyiBeszerzesModel.ModositasiKerelem; ElutasitasOka = intezmenyiBeszerzesModel.ElutasitasOka; } public int? Id { get; set; } public int? TargyId { get; set; } public string Sorszam { get; set; } public string BejelentoNeve { get; set; } public Guid BejelentoIdpEgyediAzonosito { get; set; } public string StatuszNeve { get; set; } public int StatuszId { get; set; } public string BeszerzesTargya { get; set; } public int BruttoErtek { get; set; } public string Leiras { get; set; } public string VisMajorIndok { get; set; } public string OktatasiAzonosito { get; set; } public Guid IntezmenyEgyediAzonosito { get; set; } public string LetrehozoEmail { get; set; } public int? TanevId { get; set; } public string EloTag { get; set; } public string CsaladiNev { get; set; } public string Utonev { get; set; } public string TanevNev { get; set; } public string ModositasiKerelem { get; set; } public string ElutasitasOka { get; set; } } }