1
0
mirror of https://github.com/chyzy/RSystem-MVC synced 2024-12-02 01:30:27 +01:00
RSystem-MVC-Fork/RSystem/Models/Db Models/RecruitPreferences.cs

45 lines
1.0 KiB
C#
Raw Normal View History

2018-04-17 11:20:49 +02:00
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;
}
}
}