1
0
mirror of https://github.com/chyzy/RSystem-MVC synced 2024-12-25 18:25:29 +01:00
RSystem-MVC-Fork/RSystem/Areas/Recruit/Models/RecruitDataViewModel.cs

101 lines
4.2 KiB
C#
Raw Normal View History

2018-04-17 11:20:49 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.InteropServices;
2018-04-17 16:52:46 +02:00
using System.Security.AccessControl;
2018-04-17 11:20:49 +02:00
using System.Web.Mvc;
using RSystem.Models;
2018-04-17 16:52:46 +02:00
using RSystem.App_LocalResources.Recruit.Data;
2018-04-17 11:20:49 +02:00
namespace RSystem.ViewModels
{
public class RecruitDataViewModel
{
//List of Countries
public SelectList Countries { get; set; }
public int RecruitDataId { get; set; }
//Recruit Data
2018-04-17 16:52:46 +02:00
[Display(Name = "Firstname",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string FirstName { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "SecondName",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string SecondName { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "LastName",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string LastName { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "Sex",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public Sex Sex { get; set; }
//Identity
2018-04-17 16:52:46 +02:00
[Display(Name = "Citizenship", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string Citizenship { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "DocumentType",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public DocumentType DocumentType { get; set; }
public string DocumentNumber { get; set; }
//Adress
2018-04-17 16:52:46 +02:00
[Display(Name = "Street", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string Street { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "House", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string House { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "Flat", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string Flat { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "PostalCode", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string PostalCode { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "City", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string City { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "Country", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string Country { get; set; }
//Corespondent Adress
2018-04-17 16:52:46 +02:00
[Display(Name = "CorespondentAdressSameAsResidence", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public bool CorespondentAdressSameAsResidence { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "CorespondentStreet", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string CorespondentStreet { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "CorespondentHouse", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string CorespondentHouse { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "CorespondentFlat",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string CorespondentFlat { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "CorespondentPostalCode", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string CorespondentPostalCode { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "CorespondentCity", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string CorespondentCity { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "CorespondentCountry", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string CorespondentCountry { get; set; }
2018-04-17 16:52:46 +02:00
2018-04-17 11:20:49 +02:00
//E adress
[EmailAddress(ErrorMessage = "Adress email wygląda na niepoprawny")]
[Display(Name = "Adres E-mail")]
public string Email { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "Phone",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string Phone { get; set; }
//Disability
2018-04-17 16:52:46 +02:00
[Display(Name = "IsDisabled", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public bool IsDisabled { get; set; }
//parents
2018-04-17 16:52:46 +02:00
[Display(Name = "FathersName", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string FathersName { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "MothersName", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string MothersName { get; set; }
//Place and date of birth
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
2018-04-17 16:52:46 +02:00
[Display(Name = "DayOfBirth", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public DateTime DayOfBirth { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "BirthCity", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string BirthCity { get; set; }
2018-04-17 16:52:46 +02:00
[Display(Name = "Country",ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public string BirthCountry { get; set; }
//Military
2018-04-17 16:52:46 +02:00
[Display(Name = "MilitaryAttitude", ResourceType = typeof(Data))]
2018-04-17 11:20:49 +02:00
public MilitaryAttitude MilitaryAttitude { get; set; }
}
}