init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Web.Http;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Security;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Areas.Adatszolgaltatasok.Models;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Adatszolgaltatasok.Controllers
|
||||
{
|
||||
[MvcRoleClaimsAuthorize(true)]
|
||||
[MvcRolePackageAuthorize(KretaClaimPackages.Adminisztrator.ClaimValue)]
|
||||
public class OkosmeroEnergetikaiAdatController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
var model = new OkosmeroEnergetikaiAdatSearchModel();
|
||||
return View("Index", model);
|
||||
}
|
||||
|
||||
public ActionResult Export([FromUri] OkosmeroEnergetikaiAdatSearchModel data)
|
||||
{
|
||||
var stream = new AdatszolgaltatasokHelper(ConnectionTypeExtensions.GetSessionConnectionType()).GetOkosmeroEnergetikaiAdatExport(data.FeladatellatasiHely);
|
||||
var result = new FileStreamResult(stream, Core.Constants.ContentTypes.Xlsx) { FileDownloadName = AdatszolgaltatasokResource.OkosmeroEnergetikaiAdatExport + "_" + DateTime.Now.ToString("yyyy_MM_dd") + ".xlsx" };
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user