using GreenTree.Strohrmann.ERP.Core.Domain.Business; using GreenTree.Strohrmann.ERP.Web.Models.Shared; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace GreenTree.Strohrmann.ERP.Web.Models.Business { public class SupplierModel : TrackingModel { #region Properties /// /// Supplier Id /// [Display(Name = "ID")] public int Id { get; set; } /// /// Supplier name /// [Display(Name = "Name")] public string Name { get; set; } /// /// Supplier description /// [Display(Name = "Beschreibung")] public string Description { get; set; } /// /// Supplier address /// [Display(Name = "Adresse")] public string Address { get; set; } /// /// Supplier town /// [Display(Name = "Stadt")] public string Town { get; set; } /// /// Supplier zip code /// [Display(Name = "Postleitzahl")] public string ZipCode { get; set; } /// /// Supplier country /// [Display(Name = "Land")] public string Country { get; set; } /// /// Supplier contact phone 1 /// [Display(Name = "Telefon 1")] public string PhoneFirst { get; set; } /// /// Supplier contact phone 2 /// [Display(Name = "Telefon 2")] public string PhoneSecond { get; set; } /// /// Supplier contact mail 1 /// [Display(Name = "Mail-Adresse 1")] public string MailFirst { get; set; } /// /// Supplier contact mail 2 /// [Display(Name = "Mail-Adresse 2")] public string MailSecond { get; set; } /// /// Supplier custom comment /// [Display(Name = "Kommentar")] public string Comment { get; set; } #endregion #region Ctor /// /// Initializes a new instance of the SupplierModel class /// public SupplierModel() { } /// /// Initializes a new instance of the SupplierModel class /// public SupplierModel(Supplier supplier) : base(supplier) { if (supplier == null) return; Id = supplier.Id; Name = supplier.Name; Description = supplier.Description; Address = supplier.Address; Town = supplier.Town; ZipCode = supplier.ZipCode; Country = supplier.Country; PhoneFirst = supplier.PhoneFirst; PhoneSecond = supplier.PhoneSecond; MailFirst = supplier.MailFirst; MailSecond = supplier.MailSecond; Comment = supplier.Comment; } #endregion } }