2025-03-28 07:43:34 +00:00
|
|
|
|
using Avalonia.Media.Imaging;
|
|
|
|
|
using System;
|
2025-03-24 09:34:12 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Agents.Models;
|
|
|
|
|
|
|
|
|
|
public partial class Agent
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Title { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public int Agenttypeid { get; set; }
|
|
|
|
|
|
|
|
|
|
public string? Address { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Inn { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public string? Kpp { get; set; }
|
|
|
|
|
|
|
|
|
|
public string? Directorname { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Phone { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public string? Email { get; set; }
|
|
|
|
|
|
|
|
|
|
public string? Logo { get; set; }
|
|
|
|
|
|
2025-03-28 07:43:34 +00:00
|
|
|
|
public Bitmap getLogo
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
return new Bitmap(AppDomain.CurrentDomain.BaseDirectory + "Assets/" + Logo);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
return new Bitmap(AppDomain.CurrentDomain.BaseDirectory + "Assets/agents/picture.png");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-24 09:34:12 +00:00
|
|
|
|
public int Priority { get; set; }
|
|
|
|
|
|
|
|
|
|
public virtual ICollection<Agentpriorityhistory> Agentpriorityhistories { get; set; } = new List<Agentpriorityhistory>();
|
|
|
|
|
|
|
|
|
|
public virtual Agenttype Agenttype { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
public virtual ICollection<Productsale> Productsales { get; set; } = new List<Productsale>();
|
|
|
|
|
|
|
|
|
|
public virtual ICollection<Shop> Shops { get; set; } = new List<Shop>();
|
|
|
|
|
}
|