171 lines
5.1 KiB
C#
171 lines
5.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using EveryThing.Models.Transport;
|
|
using EveryThing.Models.Vehicle;
|
|
using Microsoft.AspNetCore.Http;
|
|
using EveryThing.Models.CodeTable;
|
|
|
|
namespace EveryThing.Models.CodeTable
|
|
{
|
|
public class CodeTableCompany
|
|
{
|
|
[Key]
|
|
public int IdCompany { get; set; }
|
|
|
|
[NotMapped]
|
|
public IFormFile Logo { get; set; }
|
|
|
|
[Display(Name = "Logotip ime datoteke")]
|
|
public string LogoFileName { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Naziv")]
|
|
public string Title { get; set; }
|
|
|
|
[Display(Name = "Kratek naziv")]
|
|
public string ShortTitle { get; set; }
|
|
|
|
[Required]
|
|
[ForeignKey("Country")]
|
|
[Display(Name = "Država")]
|
|
public int IdCountryFk { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Mesto")]
|
|
public string City { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Ulica")]
|
|
public string Street { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Hišna št.")]
|
|
public string HouseNumber { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Poštna številka")]
|
|
public int PostNumber { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Pošta")]
|
|
public string Post { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Davčna številka")]
|
|
public string TaxNumber { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Matična številka")]
|
|
public string RegistrationNumber { get; set; }
|
|
|
|
[Display(Name = "E-poštni naslov")]
|
|
[DataType(DataType.EmailAddress)]
|
|
public string Email { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name= "Banka")]
|
|
public string Bank { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "IBAN")]
|
|
public string Iban { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "SWIFT/BIC")]
|
|
public string SwiftBic { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Direktor")]
|
|
public string Ceo { get; set; }
|
|
|
|
[Display(Name = "Telefon")]
|
|
public string Phone { get; set; }
|
|
|
|
[Required]
|
|
public bool Active { get; set; }
|
|
|
|
// ForeignKey
|
|
public CodeTableCountry Country { get; set; }
|
|
|
|
// Partner
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<CodeTablePartner> CompanyPartner { get; set; }
|
|
|
|
// Partner
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<TransportLoadingOrder> CompanyTransportLoadingOrder { get; set; }
|
|
|
|
// Employee
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<CodeTableEmployee> CompanyEmployee { get; set; }
|
|
|
|
// Departement
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<CodeTableDepartement> CompanyDepartement { get; set; }
|
|
|
|
// Job
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<CodeTableJob> CompanyJob { get; set; }
|
|
|
|
// Vehicle
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<Vehicle.Vehicle> CompanyVehicle { get; set; }
|
|
|
|
// VehicleType
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<VehicleType> CompanyVehicleType { get; set; }
|
|
|
|
// VehicleMake
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<VehicleMake> CompanyVehicleMake { get; set; }
|
|
|
|
// VehicleGroup
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<VehicleGroup> CompanyVehicleGroup { get; set; }
|
|
|
|
// VehicleFuelType
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<VehicleFuelType> CompanyVehicleFuelType { get; set; }
|
|
|
|
// VehicleFuelingCard
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<VehicleFuelingCard> CompanyVehicleFuelingCard { get; set; }
|
|
|
|
// IdentityApplicationUser
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<IdentityApplicationUser> CompanyIdentityApplicationUser { get; set; }
|
|
|
|
// Note
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<GeneralNote> CompanyNote { get; set; }
|
|
|
|
// VehicleBreakdown
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<VehicleBreakdown> CompanyVehicleBreakdown { get; set; }
|
|
|
|
// File
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<File> CompanyFile { get; set; }
|
|
|
|
// PrePostText
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<CodeTablePrePostText> CompanyPrePostText { get; set; }
|
|
|
|
// Project
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<Project.Project> CompanyProject { get; set; }
|
|
|
|
// CodeTableItem
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<CodeTableItem> CompanyItem { get; set; }
|
|
|
|
// Invoice
|
|
[InverseProperty("Company")]
|
|
public virtual ICollection<Invoice.Invoice> CompanyInvoice { get; set; }
|
|
}
|
|
}
|