init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,41 @@
|
|||
using System.Data;
|
||||
using System.Web.Http;
|
||||
using System.Web.Http.Results;
|
||||
using Kreta.BusinessLogic.Helpers;
|
||||
using Kreta.BusinessLogic.Security;
|
||||
using Kreta.Web.Areas.Adatszolgaltatasok.Models;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Security;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Web.Areas.Adatszolgaltatasok.ApiControllers
|
||||
{
|
||||
[ApiRoleClaimsAuthorize(true)]
|
||||
[ApiRolePackageAuthorize(KretaClaimPackages.Adminisztrator.ClaimValue)]
|
||||
public class EslRiportApiController : ApiController
|
||||
{
|
||||
public JsonResult<DataSet> GetLemorzsolodasEslRiportGrid(string data)
|
||||
{
|
||||
var model = JsonConvert.DeserializeObject<EslRiportModel>(data);
|
||||
if (!model.FeladatellatasiHely.HasValue)
|
||||
{ return Json(new DataSet()); }
|
||||
var helper = new AdatszolgaltatasokHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
||||
|
||||
DataSet ds = helper.GetLemorzsolodasEslRiport(model.FeladatellatasiHely, model.IsFelevi);
|
||||
|
||||
return Json(ds);
|
||||
}
|
||||
|
||||
public JsonResult<DataSet> GetElegtelenEslRiportGrid(string data)
|
||||
{
|
||||
var model = JsonConvert.DeserializeObject<EslRiportModel>(data);
|
||||
if (!model.FeladatellatasiHely.HasValue)
|
||||
{ return Json(new DataSet()); }
|
||||
var helper = new AdatszolgaltatasokHelper(ConnectionTypeExtensions.GetSessionConnectionType());
|
||||
|
||||
DataSet ds = helper.GetElegtelenEslRiport(model.FeladatellatasiHely, model.IsFelevi);
|
||||
|
||||
return Json(ds);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue