66 lines
2 KiB
C#
66 lines
2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites;
|
|
using Kreta.Resources;
|
|
|
|
namespace Kreta.Web.Areas.Orarend.Models
|
|
{
|
|
public class HaziFeladatNaplozas
|
|
{
|
|
public int? Id { get; set; }
|
|
|
|
public string HaziFeladat { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Hatarido), ResourceType = typeof(OrarendResource))]
|
|
public DateTime? Hatarido { get; set; }
|
|
|
|
public bool IsTanarVehetFelHazitNaplozasNelkul { get; set; }
|
|
|
|
public int? OrarendiOraId { get; set; }
|
|
public int? TanitasiOraId { get; set; }
|
|
public int? HelyettesitoId { get; set; }
|
|
public DateTime? NapDatuma { get; set; }
|
|
public bool IsHaziFeladatHelper { get; set; }
|
|
public bool IsElmaradt { get; set; }
|
|
|
|
public int UsedFilesSizeInKiloBytes { get; set; } = 0;
|
|
|
|
public int MaxAllowedFilesSizeInKiloBytes { get; set; }
|
|
|
|
public double UsedFilesSizeInKiloBytesTotal { get; set; } = 0D;
|
|
|
|
public int MaxAllowedFilesSizeInKiloBytesTotal { get; set; } = 2097152;
|
|
|
|
public IEnumerable<string> AllowedFileExtensions { get; set; } = new List<string>
|
|
{
|
|
".txt",
|
|
".pdf",
|
|
".doc",
|
|
".docx",
|
|
".xls",
|
|
".xlsx",
|
|
".ppt",
|
|
".pptx",
|
|
".bmp",
|
|
".jpg",
|
|
".jpeg",
|
|
".png",
|
|
".rar",
|
|
".zip"
|
|
};
|
|
|
|
public int? CsatolmanyId { get; set; }
|
|
|
|
public void Fill(NaplozasElokeszitesModel model)
|
|
{
|
|
Id = model.Hazifeladat.Id;
|
|
HaziFeladat = model.Hazifeladat.Szoveg;
|
|
Hatarido = model.Hazifeladat.Hatarido;
|
|
OrarendiOraId = model.OraAdat.OrarendiOraId;
|
|
IsHaziFeladatHelper = false;
|
|
IsElmaradt = model.OraAdat.IsElmaradt;
|
|
CsatolmanyId = model.Hazifeladat.CsatolmanyId;
|
|
}
|
|
}
|
|
}
|