init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
66
KretaWeb/Areas/Orarend/Models/HaziFeladatNaplozas.cs
Normal file
66
KretaWeb/Areas/Orarend/Models/HaziFeladatNaplozas.cs
Normal file
|
@ -0,0 +1,66 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue