1
0
mirror of https://github.com/chyzy/RSystem-MVC synced 2024-11-29 17:00:28 +01:00
RSystem-MVC-Fork/RSystem/Models/Db Models/Specialization.cs

45 lines
1.5 KiB
C#
Raw Normal View History

2018-04-17 11:20:49 +02:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace RSystem.Models
{
public class Specialization
{
public int SpecializationId { get; set; }
[Required(ErrorMessage = "Nazwa kierunku jest wymagana.")]
[Display(Name = "Nazwa kierunku.")]
public string Name { get; set; }
[Display(Name = "Opis.")]
public string Description { get; set; }
[Display(Name = "Opłata")]
[Required(ErrorMessage = "Opłata rekrutacyjna jest wymagana.")]
public float Price { get; set; }
public ICollection<PointsMultipiler> PointsMultipilers { get; set; }
[Required(ErrorMessage = "Termin zakończenia rekrutacji jest wymagany.")]
[Display(Name = "Termin zakończenia.")]
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
public DateTime Deadline { get; set; }
[Required(ErrorMessage = "Wydział jest wymagany.")]
public int FacultyId { get; set; }
public Faculty Faculty { get; set; }
[Required(ErrorMessage = "Limit miejsc jest wymagany")]
[Display(Name = "Limit miejsc")]
public int LimitOfPlaces { get; set; }
public ICollection<RecruitPreference> RecruitPreferences { get; set; }
public ICollection<Recruit> AcceptedRecruits { get; set; }
}
}