init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,52 @@
|
|||
using System.IO;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Security;
|
||||
using Kreta.Core;
|
||||
using Kreta.Core.FeatureToggle;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Areas.Adatszolgaltatasok.Models;
|
||||
using Kreta.Web.Areas.Nyomtatvanyok.Logic;
|
||||
using Kreta.Web.Controllers;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adatszolgaltatasok.Controllers
|
||||
{
|
||||
[MvcRoleClaimsAuthorize(true)]
|
||||
[MvcRolePackageDenyAuthorize(KretaClaimPackages.IsOnlyAlkalmozott.ClaimValue)]
|
||||
[MvcRolePackageAuthorize(KretaClaimPackages.Adminisztrator.ClaimValue)]
|
||||
public class IktSzandeknyilatkozatokController : Controller
|
||||
{
|
||||
private readonly IFeatureContext FeatureContext;
|
||||
|
||||
public IktSzandeknyilatkozatokController(IFeatureContext featureContext)
|
||||
{
|
||||
FeatureContext = featureContext;
|
||||
}
|
||||
|
||||
#region Properties
|
||||
|
||||
public static string GridName => "IktSzandeknyilatkozatokGrid";
|
||||
|
||||
#endregion Properties
|
||||
|
||||
// GET: Adatszolgaltatasok/IktSzandeknyilatkozatok
|
||||
public ActionResult Index()
|
||||
{
|
||||
var model = new IktSzandeknyilatkozatokModel
|
||||
{
|
||||
IsElfogadottSzandeknyilatkozatList = new ComboBoxHelperEnumApiController(FeatureContext).GetIsElfogadottSzandeknyilatkozatEnumSelectList()
|
||||
};
|
||||
return View("Index", model);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[MvcValidateAjaxAntiForgeryToken]
|
||||
public string DokumentumGeneralas()
|
||||
{
|
||||
MemoryStream stream = NyomtatvanyokLogic.GetIktSzandeknyilatkozatAdatok();
|
||||
var guid = Cache.Add(stream);
|
||||
|
||||
return Url.Action(nameof(CacheController.DownloadFile), nameof(CacheController).Replace("Controller", ""), new { guid, fileName = AdatszolgaltatasokResource.IktSzandeknyilatkozatokFileName, contentType = Core.Constants.ContentTypes.Pdf, area = "" });
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue