914 lines
41 KiB
Plaintext
914 lines
41 KiB
Plaintext
@using Kreta.BusinessLogic.Classes
|
|
@using Kreta.Web.Security
|
|
@using Kreta.Enums
|
|
@using Kreta.Enums.ManualEnums
|
|
@using Kreta.Resources
|
|
@using Kreta.Web.Areas.Beiratkozas.Controllers
|
|
@using Kreta.Web.Areas.Beiratkozas.Models
|
|
@using Kreta.Web.Controllers
|
|
@using Kreta.Web.Helpers
|
|
@using Kreta.Web.Helpers.Grid
|
|
@model NebuloSearchModel
|
|
|
|
@{
|
|
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
|
|
|
List<FunctionCommand> functionCommandList;
|
|
var rowFunctionList = new List<RowFunction> { };
|
|
|
|
if (!ClaimData.IsBeiratkozasVeglegesitve)
|
|
{
|
|
functionCommandList = new List<FunctionCommand>
|
|
{
|
|
new FunctionCommand {Name = CommonResource.Uj, ClientAction = "NebuloHelper.openNewNebuloPopup"},
|
|
new FunctionCommand {Name = CommonResource.Modositas, ClientAction = "NebuloHelper.openMultiEditPopup"},
|
|
new FunctionCommand {Name = CommonResource.KijeloltekTorlese, ClientAction = "NebuloHelper.deleteKijeloltNebulokConfirmWindow", Classes = "kendo-gridFunctionKommandRed"},
|
|
new FunctionCommand {Name = CommonResource.Importalas, ClientAction = "NebuloHelper.redirectToImport"},
|
|
new FunctionCommand {Name = ImportExportCommonResource.Export, ClientAction = "NebuloHelper.exportNebulos"},
|
|
};
|
|
|
|
if (Model.EnableStatuszVeglegesites)
|
|
{
|
|
functionCommandList.Add(new FunctionCommand { Name = BeiratkozasResource.BeiratkozasVeglegesitese, ClientAction = "NebuloHelper.beiratkozasVeglegesitesConfirm", Classes = "kendo-gridFunctionKommandGreen" });
|
|
}
|
|
|
|
rowFunctionList.Add(new RowFunction { Name = CommonResource.Torles, ClientAction = "NebuloHelper.deleteNebuloConfirmWindow", IconEnum = GridRowFunctionIconEnum.Torles });
|
|
}
|
|
else
|
|
{
|
|
functionCommandList = new List<FunctionCommand>
|
|
{
|
|
new FunctionCommand {Name = ImportExportCommonResource.Export, ClientAction = "NebuloHelper.exportNebulos"},
|
|
new FunctionCommand {Name = BeiratkozasResource.BeiratkozasVisszavonasa, ClientAction = "NebuloHelper.beiratkozasVisszavonas", Classes = "kendo-gridFunctionKommandRed"}
|
|
};
|
|
|
|
if (Model.EnableKirSzinkron)
|
|
{
|
|
functionCommandList.Add(new FunctionCommand { Name = BeiratkozasResource.KirSzinkron, ClientAction = "KirHelper.kirLoginPopup", Classes = "kendo-gridFunctionKommandGreen" });
|
|
functionCommandList.Add(new FunctionCommand { Name = BeiratkozasResource.KIRStatuszTorlese, ClientAction = "NebuloHelper.deleteKijeloltNebulokKIRStatuszConfirmWindow", Classes = "kendo-gridFunctionKommandRed" });
|
|
}
|
|
}
|
|
|
|
//Engedélyezett osztályok számának és létszámának lekérdezése és a megjelenítendő felületi elem renderelése.
|
|
|
|
var szamokLabel = "";
|
|
var szamokTooltipContent = "";
|
|
|
|
if (Model.EOLNemOsszevontOsztaly.HasValue || Model.EOsszLNemOsszevontOsztaly.HasValue || Model.EOLOsszevontOsztaly.HasValue || Model.EOsszLOsszevontOsztaly.HasValue)
|
|
{
|
|
szamokLabel += @"
|
|
<div class='kendoTooltip engedelyezettSzamok'>
|
|
<label style='width: 440px; font-weight: normal;'>" + BeiratkozasResource.EOLNemOsszevontOsztaly + ": <b>" + Model.EOLNemOsszevontOsztaly + "</b></label>"
|
|
+ "<label style='width: 440px; font-weight: normal;'>" + BeiratkozasResource.EOsszLNemOsszevontOsztaly + ": <b>" + Model.EOsszLNemOsszevontOsztaly + "</b></label>"
|
|
+ "</br><label style='width: 440px; font-weight: normal;'>" + BeiratkozasResource.EOLOsszevontOsztaly + ": <b>" + Model.EOLOsszevontOsztaly + "</b></label>"
|
|
+ "<label style='width: 440px; font-weight: normal;'>" + BeiratkozasResource.EOsszLOsszevontOsztaly + ": <b>" + Model.EOsszLOsszevontOsztaly + "</b></label>"
|
|
+ "</div>";
|
|
|
|
szamokTooltipContent = "<div class='kendoTooltip'>";
|
|
szamokTooltipContent += "  " + BeiratkozasResource.EOLNemOsszevontOsztaly + ": <b>" + Model.EOLNemOsszevontOsztaly + "</b>";
|
|
szamokTooltipContent += "</br>" + "  " + BeiratkozasResource.EOsszLNemOsszevontOsztaly + ": <b>" + Model.EOsszLNemOsszevontOsztaly + "</b>";
|
|
szamokTooltipContent += "</br>" + "  " + BeiratkozasResource.EOLOsszevontOsztaly + ": <b>" + Model.EOLOsszevontOsztaly + "</b>";
|
|
szamokTooltipContent += "</br>" + "  " + BeiratkozasResource.EOsszLOsszevontOsztaly + ": <b>" + Model.EOsszLOsszevontOsztaly + "</b>";
|
|
|
|
szamokTooltipContent = szamokTooltipContent.TrimEnd("<hr>".ToCharArray());
|
|
szamokTooltipContent += "</div>";
|
|
}
|
|
|
|
var kretaTooltipTemplate = Html.KretaTooltipTemplate("kendoTooltip-engedelyezettSzamokTemplate", szamokTooltipContent);
|
|
|
|
if (Model.EnableEugyHatarozat)
|
|
{
|
|
functionCommandList.Add(new FunctionCommand { Name = BeiratkozasResource.HatarozatElotoltes, ClientAction = "NebuloHelper.sendHatarozatElotoltesConfirmWindow" });
|
|
}
|
|
|
|
var gridName = "NebuloGrid";
|
|
var gridNameLetszam = "NebuloLetszamGrid";
|
|
var searchFormName = "NebuloSearchForm";
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
if (!CommonUtils.isNullOrUndefined("@ClaimData.FelhelySzuro") && !CommonUtils.isNullOrUndefined($("#FeladatellatasiHelyIdSearch").data("kendoComboBox"))) {
|
|
$("#FeladatellatasiHelyIdSearch").data("kendoComboBox").value("@ClaimData.FelhelySzuro");
|
|
}
|
|
});
|
|
var NebuloGridHelper = (function () {
|
|
var nebuloGridHelper = function () { };
|
|
|
|
nebuloGridHelper.setRowEditing = function (rowData) {
|
|
var result = (rowData.EUgyStatusz == null || rowData.EUgyStatusz == 1 || rowData.EUgyStatusz == 5 || rowData.EUgyStatusz == 6 || rowData.EUgyStatusz == 8) && !CommonUtils.parseBool("@(ClaimData.IsBeiratkozasVeglegesitve)");
|
|
return result;
|
|
}
|
|
|
|
return nebuloGridHelper;
|
|
})();
|
|
</script>
|
|
|
|
@section AddSearchPanel
|
|
{
|
|
@using (Html.SearchPanelSideBar(searchFormName, gridName, postSubmitFunction: "NebuloHelper.refreshLetszamGrid"))
|
|
{
|
|
@Html.KretaTextBoxFor(m => m.NebuloNeveSearch).RenderSearchPanelSideBar()
|
|
@Html.KretaMaskedTextBoxFor(model => model.OktatasiAzonositoSearch, "00000000000").RenderSearchPanelSideBar()
|
|
@Html.KretaTextBoxFor(m => m.AnyjaNeveSearch).RenderSearchPanelSideBar()
|
|
@Html.KretaTextBoxFor(m => m.SzuletesiHelySearch).RenderSearchPanelSideBar()
|
|
@Html.KretaRangeDatePickerSideBar(m => m.TolSearch, m => m.IgSearch)
|
|
@Html.KretaComboBoxFor(m => m.FelvetelStatuszaSearch, EnumController.Cache.FelvetelStatuszaSelectList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.FeladatellatasiHelyIdSearch, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "GetFeladatEllatasiHelyList" }), isSingleElementSet: false).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.KirSzolgaltatas, EnumController.Cache.KirSzolgaltatasListForSearch).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.EtikaHitErkolcstanSearch, EnumController.Cache.EtikaSelectList).RenderSearchPanelSideBar()
|
|
@Html.KretaTextBoxFor(m => m.OvodaAzonositojaVagyNeveSearch).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.EletvitelszeruOttLakasSearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.SzakertoiBizottsagSearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.SzuloTestverBetegSearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.TestverAdottIntezmenyTanulojaSearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.MunkaltatoiIgazolasSearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.AzIskolaALakohelyetolSearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.SNISearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.BTMSearch, Model.CheckBoxValueList).RenderSearchPanelSideBar()
|
|
}
|
|
}
|
|
|
|
@{
|
|
List<SelectListItem> JelenletList = new List<SelectListItem>();
|
|
JelenletList.Add(new SelectListItem() { Text = "Megjelent", Value = "T" });
|
|
JelenletList.Add(new SelectListItem() { Text = "Nem jelent meg", Value = "F" });
|
|
|
|
var conditionalRowFunctions = new List<RowFunction>();
|
|
|
|
var grid = Html.KretaGrid<NebuloGridModel>(
|
|
gridName,
|
|
new GridApiUrl(Constants.ApiControllers.NebuloApi, "GetNebuloGrid"),
|
|
dataBoundAdditionalFunction: "KirHelper.dataBoundAdditionalFunction();",
|
|
dataParameterFunction: searchFormName,
|
|
sort: sort => sort.Add(m => m.NevElotagNelkul).Ascending(),
|
|
allowPaging: true,
|
|
postRead: true)
|
|
.SelectBoxColumn(Html, 0)
|
|
.LinkButtonColumn(string.Empty, c => c.NevElotagNelkul, "NebuloHelper.openModifyNebuloPopup", GridButtonsEnum.Modositas, customField: "Nev")
|
|
.HeaderCustomContent(Html, szamokLabel)
|
|
.Columns(c =>
|
|
{
|
|
c.Bound(m => m.AnyjaNeveElotagNelkul).SetDisplayProperty("AnyjaNeve");
|
|
c.Bound(m => m.SzuletesiHely);
|
|
c.Bound(m => m.SzuletesiIdo).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
|
c.Bound(m => m.EUgyUgyiratszam);
|
|
c.Bound(m => m.EUgyStatusz).Template(@<text></text>).ClientTemplate(@"
|
|
#if (EUgyStatusz == null) { #
|
|
# } else if (EUgyStatusz == 1) { #
|
|
# } else if (EUgyStatusz == 2) { # <i class='fa fa-spinner' title='Folyamatban'></i>
|
|
# } else if (EUgyStatusz == 3) { # <i class='fa fa-exclamation-circle' title='Nincs ilyen ügyiratszám az eÜgyintézés modulban!'></i>
|
|
# } else if (EUgyStatusz == 4) { # <i class='fa fa-exclamation-triangle' title='Az ügy már le lett zárva az eÜgyintézés modulban!'></i>
|
|
# } else if (EUgyStatusz == 5) { # <i class='fa fa-exclamation' title='Sikertelen szinkron. Kérjük próbálja pár perc múlva!'></i>
|
|
# } else if (EUgyStatusz == 6) { # <i class='fa fa-check-circle' title='Sikeres szinkronizálás.'></i>
|
|
# } else if (EUgyStatusz == 7) { # <i class='fa fa-exclamation-triangle' title='Hiánypótlásra visszaküldve. Kérjük próbálja újra a hiánypótlást követően!'></i>
|
|
# } else if (EUgyStatusz == 8) { # <i class='fa fa-exclamation-triangle' title='Nebuló adat inkonzisztencia! Törvényes képviselő elérhetőségi adat hiányzik!'></i>
|
|
# }
|
|
else { # - # } #
|
|
");
|
|
});
|
|
|
|
grid.Columns(c =>
|
|
{
|
|
c.Bound(m => m.FelvetelStatusza).ClientTemplate(string.Format(@"
|
|
<div class='felvetelStatuszButtonGroup'>
|
|
<button title='{12}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={13}){{# btn-danger#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{13})'#}}else{{#disabled='disabled'#}}#>{14}</button>
|
|
<button title='{3}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={4}){{# btn-warning#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{4})'#}}else{{#disabled='disabled'#}}#>{5}</button>
|
|
<button title='{6}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={7}){{# btn-warning#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{7})'#}}else{{#disabled='disabled'#}}#>{8}</button>
|
|
<button title='{0}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={1}){{# btn-success#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{1})'#}}else{{#disabled='disabled'#}}#>{2}</button>
|
|
<button title='{9}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={10}){{# btn-danger#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{10})'#}}else{{#disabled='disabled'#}}#>{11}</button>
|
|
<button title='{22}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={23}){{# btn-danger#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{23})'#}}else{{#disabled='disabled'#}}#>{24}</button>
|
|
<button title='{15}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={16}){{# btn-danger#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{16})'#}}else{{#disabled='disabled'#}}#>{17}</button>
|
|
<button title='{18}' style='width: 25px' class='btn gridButton#if(FelvetelStatusza=={19}){{# btn-danger#}}#' #if(!{21}){{#onclick='NebuloHelper.setNebuloStatus(#=ID#,{19})'#}}else{{#disabled='disabled'#}}#>{20}</button>
|
|
<div>",
|
|
BeiratkozasResource.Felveve, FelvetelStatuszaTipusEnum.Felveve.AsInt(), BeiratkozasResource.FelveveShort,
|
|
BeiratkozasResource.Fuggoben, FelvetelStatuszaTipusEnum.Fuggoben.AsInt(), BeiratkozasResource.FuggobenShort,
|
|
BeiratkozasResource.SzakertoiVizsgalataFolyamatban, FelvetelStatuszaTipusEnum.SzakertoiVizsgalataFolyamatban.AsInt(), BeiratkozasResource.SzakertoiVizsgalataFolyamatbanShort,
|
|
BeiratkozasResource.NemFelveve, FelvetelStatuszaTipusEnum.NemFelveve.AsInt(), BeiratkozasResource.NemFelveveShort,
|
|
BeiratkozasResource.NemJelentMeg, FelvetelStatuszaTipusEnum.NemJelentMeg.AsInt(), BeiratkozasResource.NemJelentMegShort,
|
|
BeiratkozasResource.OvodabanMaradt, FelvetelStatuszaTipusEnum.OvodabanMaradt.AsInt(), BeiratkozasResource.OvodabanMaradtShort,
|
|
BeiratkozasResource.MasIntezmenybeFelvett, FelvetelStatuszaTipusEnum.MasIntezmenybeFelveve.AsInt(), BeiratkozasResource.MasIntezmenybeFelvettShort,
|
|
ClaimData.IsBeiratkozasVeglegesitve.ToString().ToLower(),
|
|
BeiratkozasResource.BeiratkozasVisszavonva, FelvetelStatuszaTipusEnum.BeiratkozasVisszavonva.AsInt(), BeiratkozasResource.BeiratkozasVisszavonvaShort)
|
|
).Sortable(false);
|
|
|
|
if (Model.EnableKirSzinkron)
|
|
{
|
|
c.Bound(m => m.KirSzinkronizacioStatusza).ClientTemplate(@"
|
|
<a class='kendoTooltipKirSzinkronizacioStatusza gridLinkButton defaultCursor'
|
|
data-kirkontenerazonosito='#: KirKontenerAzonosito #'
|
|
data-kirkonteneruzenet='#: KirKontenerUzenet #'
|
|
data-kirkontenerelkuldesdatuma='#: KirKontenerElkuldesenekDatumaFormatted #'
|
|
data-kirkontenerelemstatuszid='#: KirKontenerElemStatuszId #'
|
|
data-kirkontenerelemstatuszuzenet='#: KirKontenerElemStatuszUzenet #'
|
|
>#: KirSzinkronizacioStatusza #</a>").Sortable(false);
|
|
}
|
|
});
|
|
|
|
grid.FunctionCommand(Html, functionCommandList)
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn));
|
|
|
|
conditionalRowFunctions.Add(new RowFunction { Name = CommonResource.Modositas, ClientAction = "NebuloHelper.openModifyNebuloPopup", IconEnum = GridRowFunctionIconEnum.Modositas });
|
|
|
|
grid.ConditionalRowFunction(Html, conditionalRowFunctions, "NebuloGridHelper.setRowEditing");
|
|
grid.RowFunction(Html, rowFunctionList);
|
|
}
|
|
|
|
<div>@(grid)</div>
|
|
|
|
<div>
|
|
@(
|
|
Html.KretaGrid<NebuloLetszamModel>(
|
|
gridNameLetszam,
|
|
new GridApiUrl(Constants.ApiControllers.NebuloApi, "GetNebuloLetszamGrid"),
|
|
postRead: true)
|
|
.Columns(c =>
|
|
{
|
|
c.Bound(m => m.Statusz);
|
|
c.Bound(m => m.Letszam);
|
|
c.Bound(m => m.SulyozottLetszam);
|
|
})
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
)
|
|
</div>
|
|
|
|
@Html.KretaTooltipTemplate("kendoTooltip-kirSzinkronizacioStatuszaKendoTooltipTemplate",
|
|
@"<div class='kendoTooltip'>
|
|
<table>
|
|
<tr>
|
|
<td style='padding-right: 5px'><b>Konténer azonosító:</b></td>
|
|
<td>#:target.data('kirkontenerazonosito')#</td>
|
|
</tr>
|
|
<tr>
|
|
<td style='padding-right: 5px'><b>Konténer üzenet:</b></td>
|
|
<td>#:target.data('kirkonteneruzenet')#</td>
|
|
</tr>
|
|
<tr>
|
|
<td style='padding-right: 5px'><b>Konténer elküldésének dátuma:</b></td>
|
|
<td>#:target.data('kirkontenerelkuldesdatuma')#</td>
|
|
</tr>
|
|
<tr>
|
|
<td style='padding-right: 5px'><b>Konténer elem státusz id:</b></td>
|
|
<td>#:target.data('kirkontenerelemstatuszid')#</td>
|
|
</tr>
|
|
<tr>
|
|
<td style='padding-right: 5px'><b>Konténer elem státusz üzenet:</b></td>
|
|
<td>#:target.data('kirkontenerelemstatuszuzenet')#</td>
|
|
</tr>
|
|
</table>
|
|
</div>")
|
|
|
|
@if (Model.EOLNemOsszevontOsztaly.HasValue || Model.EOsszLNemOsszevontOsztaly.HasValue || Model.EOLOsszevontOsztaly.HasValue || Model.EOsszLOsszevontOsztaly.HasValue)
|
|
{
|
|
@kretaTooltipTemplate
|
|
}
|
|
|
|
<style type="text/css">
|
|
#NebuloGrid .gridButton {
|
|
margin: 3px 3px 3px 3px;
|
|
}
|
|
</style>
|
|
|
|
@section AddJs {
|
|
<script type="text/javascript">
|
|
var NebuloHelper = (function () {
|
|
var nebuloHelper = function () { };
|
|
|
|
var searchFormName = "@searchFormName";
|
|
var gridName = "@gridName";
|
|
var gridNameLetszam = "@gridNameLetszam";
|
|
var newModifyFormName = "@NebuloController.NewModifyNebuloFormName";
|
|
var multiEditFormName = "@NebuloController.NebuloMultiEditFormName";
|
|
var dataObj, typeObj;
|
|
|
|
var url = {
|
|
OpenNewModifyNebuloPopup: "@Url.Action("OpenNewModifyNebuloPopup", Constants.Controllers.Nebulo, new { area = "Beiratkozas" })",
|
|
OpenNebuloNemFelvettPopup: "@Url.Action("OpenNebuloNemFelvettPopup", Constants.Controllers.Nebulo, new { area = "Beiratkozas" })",
|
|
RedirectToImport: "@(Url.Content("~/ImportExport/NebuloImportExport"))",
|
|
SaveNebulo: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "SaveNebulo" })",
|
|
SaveNemFelvettNebulo: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "SaveNemFelvettNebulo" })",
|
|
DeleteNebulo: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "DeleteNebulo" })",
|
|
ChangeStatus: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "ChangeStatus" })",
|
|
OpenMultiEditNebuloPopup: "@Url.Action("OpenMultiEditNebuloPopup", Constants.Controllers.Nebulo, new { area = "Beiratkozas" })",
|
|
ExportNebulos: "@Url.Action("GetFilteredExcel", Constants.Controllers.Nebulo, new {area = "Beiratkozas"})",
|
|
SaveMultiEditNebulo: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "SaveNebuloMultiEdit" })",
|
|
BeiratkozasVeglegesites: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "BeiratkozasVeglegesites" })",
|
|
DeleteKijeloltNebulok: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "DeleteKijeloltNebulok" })",
|
|
SendHatarozatElotoltes: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "HatarozatElotoltese" })",
|
|
CreateKovTanevTanulo: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "CreateKovTanevTanulo" })",
|
|
KozpontiNebuloUrl: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "SetKozpontiNebulo" })",
|
|
DeleteKijeloltNebulokKIRStatusz: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.NebuloApi, action = "DeleteKijeloltNebulokKIRStatusz" })"
|
|
}
|
|
|
|
nebuloHelper.changeKozpontiFelvetel = function (data, type, nebuloId) {
|
|
if (type != undefined) {
|
|
dataObj = data; typeObj = type;
|
|
AjaxHelper.DoPost(url.KozpontiNebuloUrl, { NebuloId: nebuloId, Tipus: type }, changeKozpontiFelvetelSuccess);
|
|
}
|
|
|
|
var obj = $(data).closest('td').next('td').children('div');
|
|
|
|
if ($(data)[0].innerText == "Nem jelent meg") {
|
|
obj.addClass("disabledItem");
|
|
}
|
|
else {
|
|
obj.removeClass("disabledItem");
|
|
}
|
|
}
|
|
|
|
nebuloHelper.exportNebulos = function () {
|
|
AjaxHelper.DoPostElement(
|
|
url.ExportNebulos,
|
|
"@searchFormName",
|
|
function (data) { window.location = data }
|
|
);
|
|
}
|
|
|
|
nebuloHelper.redirectToImport = function () {
|
|
window.location = url.RedirectToImport;
|
|
}
|
|
|
|
nebuloHelper.refreshLetszamGrid = function () {
|
|
$('#' + gridNameLetszam).data('kendoGrid').dataSource.read();
|
|
$('#' + gridNameLetszam).data('kendoGrid').refresh();
|
|
}
|
|
|
|
nebuloHelper.openMultiEditPopup = function () {
|
|
var selectedRows = KretaGridHelper.getSelectedRowsByGridName(gridName);
|
|
var postData;
|
|
|
|
if (selectedRows.length == 0) {
|
|
KretaWindowHelper.warningWindow(
|
|
"@(CommonResource.Kivalasztas)",
|
|
"@(CommonResource.ACsoportosModositashozLegalabbEgyElemKivalasztasaSzukseges)"
|
|
);
|
|
} else if (selectedRows.length == 1) {
|
|
postData = { "id": selectedRows[0].ID };
|
|
AjaxHelper.DoPost(url.OpenNewModifyNebuloPopup, postData, popNewModifyNebuloWindow);
|
|
} else {
|
|
var selectedNebuloIdList = [];
|
|
$.each(selectedRows,
|
|
function (index, value) {
|
|
selectedNebuloIdList.push(value.ID);
|
|
});
|
|
postData = { "idList": selectedNebuloIdList };
|
|
AjaxHelper.DoPost(url.OpenMultiEditNebuloPopup, postData, popMultiEditNebuloWindow);
|
|
}
|
|
}
|
|
|
|
nebuloHelper.openNewNebuloPopup = function () {
|
|
var postData = { "id": null };
|
|
AjaxHelper.DoPost(url.OpenNewModifyNebuloPopup, postData, popNewModifyNebuloWindow);
|
|
};
|
|
|
|
nebuloHelper.openModifyNebuloPopup = function (data) {
|
|
var postData = { "id": data.ID };
|
|
AjaxHelper.DoPost(url.OpenNewModifyNebuloPopup, postData, popNewModifyNebuloWindow);
|
|
};
|
|
|
|
nebuloHelper.setNebuloStatus = function (id, status) {
|
|
if (status == '@((int)FelvetelStatuszaTipusEnum.NemFelveve)') {
|
|
AjaxHelper.DoPost(url.OpenNebuloNemFelvettPopup, { id: id, status: status }, popNebuloNemFelvettWindow);
|
|
}
|
|
else {
|
|
AjaxHelper.DoPostQuery(url.ChangeStatus, null, { id: id, status: status }, refreshGrid);
|
|
}
|
|
}
|
|
|
|
nebuloHelper.newModifyNebuloPopupDelete = function () {
|
|
var formData = $("#" + newModifyFormName).toObject();
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@(CommonResource.BiztosanTorli)",
|
|
deleteNebulo,
|
|
formData.Id
|
|
);
|
|
}
|
|
|
|
nebuloHelper.deleteNebuloConfirmWindow = function (rowData) {
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@(CommonResource.BiztosanTorli)",
|
|
deleteNebulo,
|
|
rowData.ID
|
|
);
|
|
}
|
|
|
|
nebuloHelper.newModifyNebuloPopupSave = function () {
|
|
nebuloHelper.ConfirmEugyUgyiratszamModositas();
|
|
}
|
|
|
|
nebuloHelper.ConfirmEugyUgyiratszamModositas = function () {
|
|
var eugyUgyiratszamOldValue = $('#eugyUgyiratszamOldValue').val();
|
|
var eugyUgyiratszamNewValue = $('#EugyUgyiratszam').val();
|
|
|
|
if (eugyUgyiratszamOldValue != "" && eugyUgyiratszamOldValue != eugyUgyiratszamNewValue) {
|
|
nebuloHelper.eugyszamModositasConfirmWindow();
|
|
}
|
|
else {
|
|
nebuloHelper.SaveNebulo();
|
|
}
|
|
}
|
|
|
|
nebuloHelper.SaveNebulo = function () {
|
|
var form = $('#' + newModifyFormName);
|
|
|
|
if (form.valid()) {
|
|
var data = form.toObject();
|
|
AjaxHelper.DoValidationPost(url.SaveNebulo, newModifyFormName, data, saveNebuloResponseOk);
|
|
}
|
|
}
|
|
|
|
nebuloHelper.Save4TConfirm = function () {
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"A nebuló 4T adataiban történő módosítás a nebulót nem megjelent státuszra állítja vissza. Ezt követően kizárólag akkor engedélyezett a megjelenés, ha másik intézményben a nebuló és szülője még nem jelent meg.",
|
|
nebuloHelper.Save4T,
|
|
null
|
|
);
|
|
}
|
|
|
|
nebuloHelper.Save4T = function () {
|
|
var form = $('#' + newModifyFormName);
|
|
|
|
if (form.valid()) {
|
|
var data = form.toObject();
|
|
data.Is4TValtozott = true;
|
|
AjaxHelper.DoValidationPost(url.SaveNebulo, newModifyFormName, data, saveNebuloResponseOk);
|
|
}
|
|
}
|
|
|
|
nebuloHelper.newModifyNebuloPopupCancel = function () {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.NewModifyNebuloPopupName");
|
|
}
|
|
|
|
nebuloHelper.nebuloNemFelvettPopupCancel = function () {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.NemFelvettNebuloPopupName");
|
|
}
|
|
|
|
nebuloHelper.nebuloNemFelvettPopupSave = function () {
|
|
var form = $('#' + newModifyFormName);
|
|
|
|
if (form.valid()) {
|
|
var data = form.toObject();
|
|
AjaxHelper.DoValidationPost(url.SaveNemFelvettNebulo, newModifyFormName, data, saveNebuloResponseOk);
|
|
}
|
|
}
|
|
|
|
nebuloHelper.multiEditNebuloPopupSave = function () {
|
|
var form = $('#' + multiEditFormName);
|
|
|
|
if (form.valid()) {
|
|
var data = form.toObject();
|
|
AjaxHelper.DoPost(url.SaveMultiEditNebulo, data, saveNebuloResponseOk, feedbackErrorWithMessageNoDestroyAll);
|
|
}
|
|
}
|
|
|
|
nebuloHelper.sendHatarozatElotoltesConfirmWindow = function () {
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@BeiratkozasResource.DontesGeneralasConfirm",
|
|
sendHatarozatElotoltes
|
|
);
|
|
}
|
|
|
|
nebuloHelper.masodfokConfirmWindow = function () {
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@(BeiratkozasResource.MasodfokonFelveteltNyertConfirm)",
|
|
masodfokTanuloLetrehozas
|
|
);
|
|
}
|
|
|
|
nebuloHelper.multiEditPopupCancel = function () {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.NebuloMultiEditPopupName");
|
|
}
|
|
|
|
nebuloHelper.beiratkozasVeglegesitesConfirm = function () {
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@(AdatszolgaltatasokResource.BiztosanVeglegesitiABeiraktozast)",
|
|
nebuloHelper.beiratkozasVeglegesites,
|
|
null
|
|
);
|
|
}
|
|
|
|
nebuloHelper.beiratkozasVeglegesites = function () {
|
|
var postData = { "isVeglegesites": true };
|
|
AjaxHelper.DoPostQuery(
|
|
url.BeiratkozasVeglegesites,
|
|
null,
|
|
postData,
|
|
beiratkozasVeglegesitesSuccess,
|
|
feedbackErrorWithMessage
|
|
);
|
|
}
|
|
|
|
nebuloHelper.beiratkozasVisszavonas = function () {
|
|
var postData = { "isVeglegesites": false };
|
|
AjaxHelper.DoPostQuery(
|
|
url.BeiratkozasVeglegesites,
|
|
null,
|
|
postData,
|
|
beiratkozasVeglegesitesSuccess,
|
|
feedbackErrorWithMessage
|
|
);
|
|
}
|
|
|
|
nebuloHelper.eugyszamModositasConfirmWindow = function () {
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@(AdatszolgaltatasokResource.BiztosanModositjaANebulohozTartozougyiratszamot)",
|
|
nebuloHelper.SaveNebulo,
|
|
null
|
|
);
|
|
}
|
|
|
|
nebuloHelper.deleteKijeloltNebulokConfirmWindow = function () {
|
|
var selectedRows = KretaGridHelper.getSelectedRowsByGridName(gridName);
|
|
|
|
if (selectedRows.length > 0) {
|
|
var parameters = [];
|
|
|
|
$.each(selectedRows,
|
|
function (index, value) {
|
|
parameters.push(value.ID);
|
|
});
|
|
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@(BeiratkozasResource.KijeloltNebulokTorles)",
|
|
deleteKijeloltNebulok,
|
|
parameters
|
|
);
|
|
} else {
|
|
KretaWindowHelper.feedbackWindow(
|
|
"@(CommonResource.Figyelmeztetes)",
|
|
"@(CommonResource.KijeloltElemekTorlese)",
|
|
true,
|
|
KretaWindowHelper.destroyAllWindow
|
|
);
|
|
}
|
|
}
|
|
|
|
nebuloHelper.deleteKijeloltNebulokKIRStatuszConfirmWindow = function () {
|
|
var selectedRows = KretaGridHelper.getSelectedRowsByGridName(gridName);
|
|
|
|
if (selectedRows.length > 0) {
|
|
var parameters = [];
|
|
|
|
$.each(selectedRows,
|
|
function (index, value) {
|
|
parameters.push(value.ID);
|
|
});
|
|
|
|
KretaWindowHelper.confirmWindow(
|
|
"@(CommonResource.Kerdes)",
|
|
"@(BeiratkozasResource.KIRTorlesBiztosan)",
|
|
deleteKijeloltNebulokKIRStatusz,
|
|
parameters
|
|
);
|
|
} else {
|
|
KretaWindowHelper.feedbackWindow(
|
|
"@(CommonResource.Figyelmeztetes)",
|
|
"@(BeiratkozasResource.KIRNincsEgyNebuloSem)",
|
|
true,
|
|
KretaWindowHelper.destroyAllWindow
|
|
);
|
|
}
|
|
}
|
|
|
|
function deleteKijeloltNebulokKIRStatusz(data) {
|
|
AjaxHelper.DoPost(url.DeleteKijeloltNebulokKIRStatusz, data, deleteKijeloltNebulokKIRStatuszFeedback);
|
|
}
|
|
|
|
function deleteKijeloltNebulokKIRStatuszFeedback(data) {
|
|
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow, data.Data);
|
|
refreshGrid();
|
|
}
|
|
|
|
function changeKozpontiFelvetelSuccess(response) {
|
|
if (response.Data.Sikeres == true) {
|
|
changeButtonsCss(dataObj, typeObj);
|
|
}
|
|
else {
|
|
KretaWindowHelper.feedbackWindow("@(CommonResource.Hiba)", response.Data.StatuszUzenet, true);
|
|
}
|
|
refreshGrid();
|
|
}
|
|
|
|
function changeButtonsCss(data, type) {
|
|
if (type == 2) {
|
|
if (data[0].innerText == 'Megjelent') {
|
|
$(data).addClass("btn-success");
|
|
data.next('button').removeClass("btn-danger");
|
|
}
|
|
}
|
|
|
|
if (type == 3) {
|
|
if (data[0].innerText == 'Nem jelent meg') {
|
|
$(data).addClass("btn-danger");
|
|
data.prev('button').removeClass("btn-success");
|
|
}
|
|
}
|
|
}
|
|
|
|
function popNebuloNemFelvettWindow(data) {
|
|
var config = KretaWindowHelper.getWindowConfigContainer();
|
|
config.title = "@BeiratkozasResource.AdjaMegADontesIndoklasat";
|
|
config.content = data;
|
|
config.width = "50%";
|
|
config.height = "350px";
|
|
|
|
var modal = KretaWindowHelper.createWindow("@NebuloController.NemFelvettNebuloPopupName", config);
|
|
KretaWindowHelper.openWindow(modal, true);
|
|
}
|
|
|
|
function popNewModifyNebuloWindow(data) {
|
|
var config = KretaWindowHelper.getWindowConfigContainer();
|
|
config.title = "@BeiratkozasResource.Nebulo";
|
|
config.content = data;
|
|
|
|
var modal = KretaWindowHelper.createWindow("@NebuloController.NewModifyNebuloPopupName", config);
|
|
KretaWindowHelper.openWindow(modal, true);
|
|
}
|
|
|
|
function popMultiEditNebuloWindow(data) {
|
|
var config = KretaWindowHelper.getWindowConfigContainer();
|
|
config.title = "@BeiratkozasResource.Nebulo";
|
|
config.content = data;
|
|
|
|
var modal = KretaWindowHelper.createWindow("@NebuloController.NebuloMultiEditPopupName", config);
|
|
KretaWindowHelper.openWindow(modal, true);
|
|
}
|
|
|
|
function deleteNebulo(data) {
|
|
AjaxHelper.DoValidationPost(
|
|
url.DeleteNebulo,
|
|
newModifyFormName,
|
|
data,
|
|
deleteNebuloResponseOk,
|
|
feedbackErrorWithMessage
|
|
);
|
|
}
|
|
|
|
function deleteNebuloResponseOk() {
|
|
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow);
|
|
refreshGrid();
|
|
}
|
|
|
|
function saveNebuloResponseOk(data) {
|
|
if (CommonUtils.isUndefined(data) || CommonUtils.isNullOrEmpty(data)) {
|
|
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow);
|
|
} else {
|
|
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow, data.Message);
|
|
}
|
|
refreshGrid();
|
|
}
|
|
|
|
function beiratkozasVeglegesitesSuccess() {
|
|
location.reload(true);
|
|
}
|
|
|
|
function sendHatarozatElotoltes() {
|
|
AjaxHelper.DoPost(url.SendHatarozatElotoltes, null, locationReload);
|
|
}
|
|
|
|
function masodfokTanuloLetrehozas() {
|
|
AjaxHelper.DoPost(
|
|
url.CreateKovTanevTanulo,
|
|
$("#NewModifyNebuloForm #Id").val(),
|
|
locationReload
|
|
);
|
|
}
|
|
|
|
function locationReload() {
|
|
location.reload();
|
|
}
|
|
|
|
function deleteKijeloltNebulok(data) {
|
|
AjaxHelper.DoPost(url.DeleteKijeloltNebulok, data, deleteKijeloltNebulokFeedback);
|
|
}
|
|
|
|
function deleteKijeloltNebulokFeedback(data) {
|
|
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow, data.Data);
|
|
refreshGrid();
|
|
}
|
|
|
|
function feedbackErrorWithMessage(data) {
|
|
var messageJson = CommonUtils.JSONparse(data.responseText);
|
|
KretaWindowHelper.feedbackWindow("@(ErrorResource.Hiba)", messageJson.Message, true, KretaWindowHelper.destroyAllWindow);
|
|
}
|
|
|
|
function feedbackErrorWithMessageNoDestroyAll(data) {
|
|
if (typeof (data.responseJSON.ModelState) !== "undefined") {
|
|
AjaxHelper.RemoteErrors($('#' + multiEditFormName), data.responseJSON.ModelState);
|
|
}
|
|
else {
|
|
var messageJson = CommonUtils.JSONparse(data.responseText);
|
|
KretaWindowHelper.feedbackWindow("@(ErrorResource.Hiba)", messageJson.Message, true);
|
|
}
|
|
}
|
|
|
|
|
|
function refreshGrid() {
|
|
KretaGridHelper.refreshGridSearchPanel(gridName, searchFormName);
|
|
|
|
$('#' + gridNameLetszam).data('kendoGrid').dataSource.read();
|
|
$('#' + gridNameLetszam).data('kendoGrid').refresh();
|
|
}
|
|
|
|
return nebuloHelper;
|
|
})();
|
|
|
|
var KirHelper = (function () {
|
|
var kirHelper = function () { };
|
|
|
|
var kirLoginFormName = "@(NebuloController.KirLoginFormName)";
|
|
var kirFeladatellatasiHelySorszamGridName = "@(NebuloController.KirFeladatellatasiHelySorszamGridName)";
|
|
var nebuloTelephelyGridName = "@(NebuloController.NebuloTelephelyGrid)";
|
|
|
|
var url = {
|
|
OpenKirLoginPopup: "@Url.Action("OpenKirLoginPopup", Constants.Controllers.Nebulo, new {area = "Beiratkozas"})",
|
|
OpenNebuloTelephelyPopup: "@Url.Action("OpenNebuloTelephelyPopup", Constants.Controllers.Nebulo, new {area = "Beiratkozas"})",
|
|
KirSzinkron: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new {controller = Constants.ApiControllers.NebuloApi, action = "KirSzinkron" })",
|
|
KirLogin: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new {controller = Constants.ApiControllers.NebuloApi, action = "KirLogin" })",
|
|
GetKirFeladatellatasiHelyList: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new {controller = Constants.ApiControllers.NebuloApi, action = "GetKirFeladatellatasiHelyList" })"
|
|
}
|
|
|
|
kirHelper.dataBoundAdditionalFunction = function () {
|
|
KretaTooltipHelper.setTooltip($(".kendoTooltipKirSzinkronizacioStatusza"), "#kendoTooltip-kirSzinkronizacioStatuszaKendoTooltipTemplate");
|
|
}
|
|
|
|
kirHelper.kirLoginPopup = function () {
|
|
AjaxHelper.DoPost(url.OpenKirLoginPopup, null, popupKirLoginWindow);
|
|
}
|
|
|
|
kirHelper.nebuloTelephelyPopup = function () {
|
|
AjaxHelper.DoPost(url.OpenNebuloTelephelyPopup, null, nebuloTelephelyPopupWindow);
|
|
}
|
|
|
|
kirHelper.kirLogin = function () {
|
|
var form = $('#' + kirLoginFormName);
|
|
|
|
if (form.valid()) {
|
|
var data = form.toObject();
|
|
|
|
AjaxHelper.DoValidationPost(url.KirLogin, kirLoginFormName, data, kirLoginResponseOk);
|
|
}
|
|
}
|
|
|
|
kirHelper.getKirFeladatellatasiHelyList = function () {
|
|
var form = $('#' + kirLoginFormName);
|
|
|
|
if (form.valid()) {
|
|
var data = form.toObject();
|
|
|
|
AjaxHelper.DoValidationPost(url.GetKirFeladatellatasiHelyList, kirLoginFormName, data, getKirFeladatellatasihelyListResponseOk);
|
|
}
|
|
}
|
|
|
|
kirHelper.kirLoginPopupCancel = function () {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.KirLoginPopupName");
|
|
}
|
|
|
|
kirHelper.nebuloTelephelyPopupCancel = function () {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.NebuloTelephelyPopupName");
|
|
}
|
|
|
|
kirHelper.ChangeFelvetelStatusz = function (data) {
|
|
if (typeof data.attributes !== "undefined") {
|
|
var felvetelStatusza = data.attributes[0].nodeValue;
|
|
|
|
if (felvetelStatusza == "@((int)FelvetelStatuszaTipusEnum.NemFelveve)") {
|
|
$("#IndoklasDiv").show();
|
|
}
|
|
else {
|
|
$("#Indoklas").val(''); $("#IndoklasDiv").hide();
|
|
}
|
|
|
|
if (felvetelStatusza == "@((int)FelvetelStatuszaTipusEnum.Felveve)") {
|
|
$("#OsztalyaDiv").show();
|
|
}
|
|
else {
|
|
$("#Osztalya").val(''); $("#OsztalyaDiv").hide();
|
|
}
|
|
}
|
|
}
|
|
|
|
kirHelper.nebuloKirSzinkron = function () {
|
|
var selectedTelephelyId = $(".telephelyDiv #TelephelyId").val();
|
|
var rows = KretaGridHelper.getAllRows(nebuloTelephelyGridName);
|
|
var nebuloModel = { TelephelyId, Nebulok: [] };
|
|
|
|
nebuloModel.TelephelyId = selectedTelephelyId;
|
|
|
|
$.each(rows, function (index, value) {
|
|
if (value.ki_chk) {
|
|
nebuloModel.Nebulok.push({ Id: value.ID, Nev: value.Nev, OktatasiAzonosito: value.OktatasiAzonosito });
|
|
}
|
|
});
|
|
|
|
AjaxHelper.DoPost(url.KirSzinkron, nebuloModel, nebuloTelephelyResponseOk, nebuloTelephelyResponseError);
|
|
}
|
|
|
|
function popupKirLoginWindow(data) {
|
|
if (data.statusCode === 200) {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.KirLoginPopupName");
|
|
|
|
kirHelper.nebuloTelephelyPopup();
|
|
}
|
|
else {
|
|
var config = KretaWindowHelper.getWindowConfigContainer();
|
|
config.title = "@(BeiratkozasResource.KirBejelentkezes)";
|
|
config.content = data;
|
|
config.height = "450px";
|
|
config.width = "600px";
|
|
|
|
var modal = KretaWindowHelper.createWindow("@NebuloController.KirLoginPopupName", config);
|
|
KretaWindowHelper.openWindow(modal, true);
|
|
}
|
|
}
|
|
|
|
function nebuloTelephelyPopupWindow(data) {
|
|
if (data.statusCode !== 200 && data.statusCode !== 400) {
|
|
var config = KretaWindowHelper.getWindowConfigContainer();
|
|
config.title = "@(BeiratkozasResource.NebuloTelephelyValaszto)";
|
|
config.content = data;
|
|
config.height = "635px";
|
|
config.width = "810px";
|
|
|
|
var modal = KretaWindowHelper.createWindow("@NebuloController.NebuloTelephelyPopupName", config);
|
|
KretaWindowHelper.openWindow(modal, true);
|
|
}
|
|
else if (data.statusCode === 200) {
|
|
nebuloTelephelyResponseOk();
|
|
}
|
|
else if (data.statusCode === 400) {
|
|
nebuloTelephelyResponseError();
|
|
}
|
|
}
|
|
|
|
function getKirFeladatellatasihelyListResponseOk() {
|
|
kirHelper.kirLogin();
|
|
|
|
refreshGrid();
|
|
}
|
|
|
|
function nebuloTelephelyResponseOk() {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.NebuloTelephelyPopupName");
|
|
|
|
KretaWindowHelper.notification(kendo.toString("@(BeiratkozasResource.KirRendszerbeTortenoSzinkronizalasSikeres)"), "info");
|
|
|
|
refreshGrid();
|
|
}
|
|
|
|
function nebuloTelephelyResponseOk() {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.NebuloTelephelyPopupName");
|
|
|
|
refreshGrid();
|
|
}
|
|
|
|
function kirLoginResponseOk() {
|
|
KretaWindowHelper.destroyWindow("@NebuloController.KirLoginPopupName");
|
|
|
|
KretaWindowHelper.notification(kendo.toString("KIR bejelentkezés sikeres!"), "info");
|
|
|
|
kirHelper.nebuloTelephelyPopup();
|
|
|
|
refreshGrid();
|
|
}
|
|
|
|
function nebuloTelephelyResponseError(data) {
|
|
if (CommonUtils.isUndefined(data) || CommonUtils.isNullOrEmpty(data)) {
|
|
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow);
|
|
} else {
|
|
KretaWindowHelper.feedbackWindow("@(ErrorResource.Hiba)", data.responseJSON.Message, true);
|
|
}
|
|
|
|
refreshGrid();
|
|
}
|
|
|
|
function refreshGrid() {
|
|
KretaGridHelper.refreshGridSearchPanel("@gridName", "@searchFormName");
|
|
|
|
$('#' + "@gridNameLetszam").data('kendoGrid').dataSource.read();
|
|
$('#' + "@gridNameLetszam").data('kendoGrid').refresh();
|
|
}
|
|
|
|
return kirHelper;
|
|
})();
|
|
|
|
$(document).ready(function () {
|
|
var kendoTooltip = $(".engedelyezettSzamok");
|
|
if (kendoTooltip.length > 0) {
|
|
KretaTooltipHelper.setTooltip(kendoTooltip, "#kendoTooltip-engedelyezettSzamokTemplate");
|
|
}
|
|
});
|
|
</script>
|
|
}
|