using System; using System.Collections.Generic; using System.Text; using System.ComponentModel.DataAnnotations; using System.Xml; namespace CertAuth.Domain { public class VendorMstr { [Key][Required][Display(Name ="ID")] public int Id { get; set; } [Display(Name = "Vendor ID")] public string VendorId { get; set; } [Display(Name = "Vendor Nbr")] [StringLength(maximumLength: 25, ErrorMessage = "Field Length: Minimum: 2; Maximum 25", MinimumLength = 2)] public string VendorNbr { get; set; } [Required] [Display(Name = "Vendor Name")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorName { get; set; } [Required] [Display(Name = "Address")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorAddress1 { get; set; } [Display(Name = "Address")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorAddress2 { get; set; } [Display(Name = "City")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorCity { get; set; } [Display(Name = "State/Province")] public string VendorState_Province { get; set; } [Display(Name = "Country")] public string VendorCountry { get; set; } [Display(Name = "Postal Code")] public string VendorPostalCode { get; set; } [Display(Name = "Phone 1")] [DataType(DataType.PhoneNumber)] public string VendorPhone1 { get; set; } [Display(Name = "Phone 2")] [DataType(DataType.PhoneNumber)] public string VendorPhone2 { get; set; } [Display(Name = "Phone 1 Type")] public string VendorPhoneType1 { get; set; } [Display(Name = "Phone 2 Type")] public string VendorPhoneType2 { get; set; } [Display(Name = "Fax #")] [DataType(DataType.PhoneNumber)] public string VendorFax { get; set; } [Display(Name = "Contact")] public string VendorContact { get; set; } [Display(Name = "Credit Limit")] [System.ComponentModel.DataAnnotations.Schema.Column(TypeName = "decimal(8,2)")] [DataType(DataType.Currency)] [DisplayFormat(DataFormatString = "{0:C0}", ApplyFormatInEditMode = true)] public decimal CreditLimit { get; set; } [Display(Name = "Credit Rating")] public string CreditRating { get; set; } [Display(Name = "Status")] public string Status { get; set; } [Display(Name = "Comments")] public string Comments { get; set; } [Display(Name = "Last Update")] [DataType(DataType.DateTime)] public DateTime TimeStamp { get; set; } [Display(Name = "Vendor Image Link")] public string vendorImage { get; set; } [Display(Name = "Vendor Web Site")] public string vendorWebsite { get; set; } } public class VendorMstr_WD { [Key] [Required] [Display(Name = "ID")] public int Id { get; set; } [Display(Name = "Vendor ID")] public string VendorId { get; set; } [Display(Name = "Vendor Nbr")] [StringLength(maximumLength: 25, ErrorMessage = "Field Length: Minimum: 2; Maximum 25", MinimumLength = 2)] public string VendorNbr { get; set; } [Required] [Display(Name = "Vendor Name")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorName { get; set; } [Required] [Display(Name = "Address")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorAddress1 { get; set; } [Display(Name = "Address")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorAddress2 { get; set; } [Display(Name = "City")] [StringLength(maximumLength: 50, ErrorMessage = "Field Length: Minimum: 2; Maximum 50", MinimumLength = 2)] public string VendorCity { get; set; } [Display(Name = "State/Province")] public string VendorState_Province { get; set; } [Display(Name = "State/Province")] public string StateDesc { get; set; } [Display(Name = "Country")] public string VendorCountry { get; set; } [Display(Name = "Country")] public string CountryDesc { get; set; } [Display(Name = "Postal Code")] public string VendorPostalCode { get; set; } [Display(Name = "Phone 1")] [DataType(DataType.PhoneNumber)] public string VendorPhone1 { get; set; } [Display(Name = "Phone 2")] [DataType(DataType.PhoneNumber)] public string VendorPhone2 { get; set; } [Display(Name = "Phone 1 Type")] public string VendorPhoneType1 { get; set; } [Display(Name = "Phone 1 Type")] public string PhoneType1Desc { get; set; } [Display(Name = "Phone 2 Type")] public string VendorPhoneType2 { get; set; } [Display(Name = "Phone 2 Type")] public string PhoneType2Desc { get; set; } [Display(Name = "Fax #")] [DataType(DataType.PhoneNumber)] public string VendorFax { get; set; } [Display(Name = "Contact")] public string VendorContact { get; set; } [Display(Name = "Credit Limit")] [DataType(DataType.Currency)] [DisplayFormat(DataFormatString = "{0:C0}", ApplyFormatInEditMode = true)] public decimal CreditLimit { get; set; } [Display(Name = "Credit Rating")] public string CreditRating { get; set; } [Display(Name = "Credit Rating")] public string CreditRatingDesc { get; set; } [Display(Name = "Status")] public string Status { get; set; } [Display(Name = "Status")] public string StatusDesc { get; set; } [Display(Name = "Comments")] public string Comments { get; set; } [Display(Name = "Last Update")] [DataType(DataType.DateTime)] public DateTime TimeStamp { get; set; } } }