init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,74 @@
|
|||
using System.Web.Mvc;
|
||||
using Kreta.Web.Areas.Feljegyzes.Models;
|
||||
using Kreta.Web.Attributes;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.Feljegyzes.Controllers
|
||||
{
|
||||
[KretaGlobalLanguageChangeActionFilter(LanguageCode = "hu-Dualis")]
|
||||
public class DualisElektronikusUzenetekController : BaseElektronikusUzenetekController
|
||||
{
|
||||
public DualisElektronikusUzenetekController(IKretaAuthorization authorization) : base(authorization)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
if (!Authorization.IsValidDualisElektronikusUzenetek())
|
||||
{
|
||||
return Redirect(Url.Action("AccessDenied", "ErrorHandler", new
|
||||
{
|
||||
area = string.Empty
|
||||
}));
|
||||
}
|
||||
|
||||
var model = new FeljegyzesekModel
|
||||
{
|
||||
TabList = GetTabs(Constants.Controllers.DualisElektronikusUzenetek),
|
||||
ControllerName = Constants.Controllers.DualisElektronikusUzenetek,
|
||||
ApiControllerName = Constants.ApiControllers.DualisElektronikusUzenetekApi,
|
||||
IsDualisKepzohelyiCsoport = true,
|
||||
};
|
||||
return View("~/Areas/Feljegyzes/Views/ElektronikusUzenetek/Index.cshtml", model);
|
||||
}
|
||||
|
||||
public ActionResult GetNaploNezetTab()
|
||||
{
|
||||
return GetNaploNezetTab(Constants.Controllers.DualisElektronikusUzenetek, Constants.ApiControllers.DualisElektronikusUzenetekApi);
|
||||
}
|
||||
|
||||
public ActionResult GetListaNezetTab()
|
||||
{
|
||||
var model = new FeljegyzesekModel
|
||||
{
|
||||
ApiControllerName = Constants.ApiControllers.DualisElektronikusUzenetekApi,
|
||||
};
|
||||
return GetListaNezetTab(model);
|
||||
}
|
||||
|
||||
public new ActionResult NaploNezetReszletekGrid(ElektronikusUzenetekNaploNezetGridModel model)
|
||||
{
|
||||
model.ApiControllerName = Constants.ApiControllers.DualisElektronikusUzenetekApi;
|
||||
return base.NaploNezetReszletekGrid(model);
|
||||
}
|
||||
|
||||
#region Popup actions
|
||||
|
||||
[HttpPost]
|
||||
[MvcValidateAjaxAntiForgeryToken]
|
||||
public ActionResult OpenStartPopup()
|
||||
{
|
||||
return OpenStartPopup(true);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[MvcValidateAjaxAntiForgeryToken]
|
||||
public ActionResult OpenModifyPopup(int? id, int ocsID)
|
||||
{
|
||||
return OpenModifyPopup(id, ocsID, Constants.ApiControllers.DualisElektronikusUzenetekApi);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue