1
0
mirror of https://github.com/chyzy/RSystem-MVC synced 2024-11-22 15:20:27 +01:00
RSystem-MVC-Fork/RSystem/Models/Db Models/RecruitPreferences.cs
2018-04-17 11:20:49 +02:00

45 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace RSystem.Models
{
public enum RecrutationStatus
{
Standby,
Rejected,
Accepted
}
public class RecruitPreference
{
public int RecruitPreferenceId { get; set; }
public int SpecializationId { get; set; }
public Specialization Specialization { get; set; }
[Range(1,20)]
[Display(Name = "Priorytet")]
public short Priority { get; set; }
public RecrutationStatus Status { get; set; }
[Display(Name = "Punkty")]
public short Points{ get; set; }
[Display(Name = "Czy opłacony?")]
public bool Paid { get; set; }
public int RecruitId { get; set; }
public Recruit Recruit { get; set; }
public RecruitPreference()
{
this.Status = RecrutationStatus.Standby;
Paid = false;
}
}
}