251 lines
19 KiB
Text
251 lines
19 KiB
Text
@using Kreta.BusinessLogic.Classes
|
|
@using Kreta.Web.Security
|
|
@using Kreta.Web.Areas.Orarend.Models
|
|
@using Kreta.Web.Helpers.Grid
|
|
@model TanitasiOraSearchModel
|
|
|
|
@section AddSearchPanel {
|
|
@using (Html.SearchPanelSideBar("searchForm", "TanitasiOraGrid"))
|
|
{
|
|
if (ClaimData.IsVegyes)
|
|
{
|
|
@Html.KretaComboBoxFor(x => x.FeladatKategoriaId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatKategoriaSzuro" }), "Text", "Value").AutoBind(true).RenderSearchPanelSideBar()
|
|
}
|
|
@Html.KretaComboBoxFor(x => x.FeladatEllatasiHelyID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" }), "Text", "Value").RenderSearchPanelSideBar()
|
|
@Html.KretaRangeDatePickerSideBar(x => x.DatumTol, x => x.DatumIg)
|
|
@Html.KretaComboBoxFor(x => x.OsztalyCsoportId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetOsztalyCsoportListByEvfolyam" }), useGroup: true).RenderSearchPanelSideBar()
|
|
@Html.KretaCheckBoxFor(x => x.KellKapcsolodoCsoportok).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(x => x.CsoportTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanoraKeresoApi", action = "GetCsoportTipusList" })).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(x => x.FoglalkozasId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanoraKeresoApi", action = "GetFoglalkozasList" })).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(x => x.TantargyId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanoraKeresoApi", action = "GetTantargyList" })).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(x => x.TanarId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetPedagogusListByTanev" })).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(x => x.TeremId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTeremList" }), "Text", "Value", useGroup: false).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(x => x.Elmaradt, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Sorszamozando, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
|
|
/* --- ÁLTALÁNOS --- */
|
|
<h5 style="border-bottom:1px solid #d4d4d4">@OrarendResource.Altalanos</h5>
|
|
@Html.KretaComboBoxFor(x => x.Tulora, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.IKTTanora, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.IPRTanora, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Meres, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Bontott, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.NemzetisegiOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Differencialt, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Drama, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.ParhuzamosOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.MindennaposTestneveles, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Kooperativ, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.MultikulturalisOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.NemSzakrendszeruOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.IsFelnottoktatasiSzerzodes, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.OnlineOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.HFRogzitve, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
|
|
/* --- EFOP-3.1.11-19 PROJEKT --- */
|
|
<h5 style="border-bottom:1px solid #d4d4d4">@OrarendResource.Efop311119Projekt</h5>
|
|
@Html.KretaComboBoxFor(x => x.TanevTananyaganakIsmetlese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanevTananyaganakKiegeszitese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokDigitalisKeszsegfejlesztese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Projektmunka, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokKompenzaciosIraskeszsegFejlesztese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokKompenzaciosOlvasasiKepessegFejlesztese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokMatematikaiGondolkodasiKepessegenekKompenzaciosFejlesztese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokNyelviKepessegenekKompenzaciosFejlesztese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokOnmegismeresenekSegitese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokOnallosagraNevelese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokTanulasszervezesiKompenzaciosTechnikajanakErositese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokOrientaciosTamogatasa, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokSzocialitasanakFejlesztese, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanulokTovabbhaladasatElokeszitoTevekenysegek, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.PedagogusAltalJelzettEgyeniEsetkezeles, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.ProjektmunkaTamogatasa, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.DigitalisKeszsegfejlesztes, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.KozossegiMunkaTamogatasa, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanoraElokeszitesenekTamogatasa, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TanoraLebonyolitasanakTamogatasa, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.NapkozisTevekenysegKeretebenEgyeniFejlesztes, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
|
|
/* --- KOMPLEX ALAPPROGRAM --- */
|
|
<h5 style="border-bottom:1px solid #d4d4d4">@OrarendResource.KomplexAlapProgram</h5>
|
|
|
|
@Html.KretaComboBoxFor(x => x.KAPOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.DFHTOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Rahangolodas, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TestmozgasAlapuAlprogram, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.MuveszetAlapuAlprogram, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.KIPOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.KomplexOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.EletgyakorlatAlapuAlprogram, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.LogikaAlapuAlprogram, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TeOrad, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.DigitalisAlapuAlprogram, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
|
|
/* --- EGYÉB PÁLYÁZAT--- */
|
|
<h5 style="border-bottom:1px solid #d4d4d4">@OrarendResource.EgyebPalyazat</h5>
|
|
@Html.KretaComboBoxFor(x => x.TAMOPOra, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.Tiop, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.EFOP32317, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.EFOP33717, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.VEKOP73317, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.TIOP11112120120001, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.EFOP31716EselyteremtesAKoznevelesben, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.GINOP623, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
@Html.KretaComboBoxFor(x => x.EFOP23517201700038Miapalya, Model.CheckBoxValueList).RenderSearchPanelSideBar();
|
|
|
|
//END
|
|
@Html.KretaComboBoxFor(x => x.Helyetesitett, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderSearchPanelSideBar()
|
|
|
|
/* --- DIGITÁLIS OKTATÁS --- */
|
|
<h5 style="border-bottom:1px solid #d4d4d4">@OrarendResource.NaplozasDigitalisOktatas.ToUpper()</h5>
|
|
@Html.KretaComboBoxFor(m => m.DigEszkozTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetDigEszkozTipusList" }), "Text", "Value", useGroup: false).AutoBind(true).RenderSearchPanelSideBar()
|
|
@Html.KretaComboBoxFor(m => m.DigPlatformTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetDigPlatformTipusList" }), "Text", "Value", useGroup: false).AutoBind(true).RenderSearchPanelSideBar()
|
|
@Html.KretaMultiSelectFor(model => model.DigTamEszkozTipus, Model.DigTamEszkozTipusList).AutoBind(true).RenderSearchPanelSideBar(allButtons: true)
|
|
}
|
|
}
|
|
|
|
<div>
|
|
@(
|
|
Html.KretaGrid<TanitasiOraGridModel>(
|
|
name: "TanitasiOraGrid",
|
|
getUrl: new GridApiUrl("TanoraKeresoApi", "GetTanitasiOraGrid"),
|
|
useToolBar: true,
|
|
dataParameterFunction: "searchForm",
|
|
allowScrolling: true,
|
|
sort: sort =>
|
|
{
|
|
sort.Add(m => m.Datum).Ascending();
|
|
sort.Add(m => m.Ora).Ascending();
|
|
},
|
|
postRead: true
|
|
)
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.Datum).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
|
columns.Bound(c => c.Ora).Width("10%");
|
|
columns.Bound(c => c.OraSorsz).SetDisplayProperty("OraSorszTxt").Width("10%");
|
|
columns.Bound(c => c.TanarNevElotagNelkul).SetDisplayProperty("TanarNev");
|
|
columns.Bound(c => c.Megjegyzes);
|
|
columns.Bound(c => c.OsztCsopNev);
|
|
columns.Bound(c => c.TargyNev);
|
|
columns.Bound(c => c.Tema);
|
|
columns.Bound(c => c.NaplozasDatuma).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
|
columns.Bound(c => c.HFRogzitve);
|
|
})
|
|
.RowFunction(Html, new List<RowFunction> {
|
|
new RowFunction { Name = CommonResource.Adatok, ClientAction= "TanoraKeresoHelper.openTanoraInfoWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Adatok },
|
|
new RowFunction { Name = CommonResource.Torles, ClientAction= "TanoraKeresoHelper.deleteTanoraConfirmWindow", IconEnum = Kreta.Enums.ManualEnums.GridRowFunctionIconEnum.Torles }
|
|
})
|
|
.FunctionCommand(Html, new List<FunctionCommand>
|
|
{
|
|
new FunctionCommand { Name = ImportExportCommonResource.Export.ToUpper(), NestedCommands = new List<FunctionCommand> {
|
|
new FunctionCommand { Name = ImportExportCommonResource.Export, ClientAction = "TanoraKeresoHelper.getExport"},
|
|
new FunctionCommand { Name = OrarendResource.HelyettesitettTanorak, ClientAction = "TanoraKeresoHelper.exportHelyettesitettTanorak" },
|
|
new FunctionCommand { Name = OrarendResource.ElmaradtTanorak, ClientAction = "TanoraKeresoHelper.exportElmaradtTanorak" },
|
|
new FunctionCommand { Name = OrarendResource.MegtartottTanorak, ClientAction = "TanoraKeresoHelper.exportMegtartottTanorak" },
|
|
}
|
|
}
|
|
})
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
.AutoBind(true)
|
|
)
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
if (!CommonUtils.isNullOrUndefined("@ClaimData.FelhelySzuro") && !CommonUtils.isNullOrUndefined($("#FeladatEllatasiHelyID").data("kendoComboBox"))) {
|
|
$("#FeladatEllatasiHelyID").data("kendoComboBox").value("@ClaimData.FelhelySzuro");
|
|
}
|
|
});
|
|
var TanoraKeresoHelper = (function () {
|
|
var tanoraKeresoHelper = function () { };
|
|
|
|
var searchFormName = "searchForm";
|
|
var gridName = "TanitasiOraGrid";
|
|
|
|
var url = {
|
|
OpenTanitasiOraInfoPopUp: "@Url.Action("OpenTanitasiOraInfoPopUp", "TanoraKereso", new { area = "Orarend" })",
|
|
ExportHelyettesitettTanorak: "@Url.Action("ExportHelyettesitettTanorak", "TanoraKereso", new {area = "Orarend" })",
|
|
ExportElmaradtTanorak: "@Url.Action("ExportElmaradtTanorak", "TanoraKereso", new {area = "Orarend" })",
|
|
ExportMegtartottTanorak: "@Url.Action("ExportMegtartottTanorak", "TanoraKereso", new {area = "Orarend" })",
|
|
DeleteTanora: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanoraKeresoApi", action = "DeleteTanora" })",
|
|
NemNaplozottTanorakCount: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetNemNaplozottTanorakCount" })",
|
|
GetExport: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanoraKeresoApi", action = "GetExport" })",
|
|
}
|
|
|
|
tanoraKeresoHelper.openTanoraInfoWindow = function (rowData) {
|
|
var postData = { TanitasiOraId: rowData.ID, Datum: rowData.Datum };
|
|
AjaxHelper.DoPost(url.OpenTanitasiOraInfoPopUp, postData, popUpInfoWindow);
|
|
}
|
|
|
|
tanoraKeresoHelper.tanitasiOraInfoCancel = function () {
|
|
KretaWindowHelper.destroyWindow("tanitasiOraInfoWindow");
|
|
}
|
|
|
|
function popUpInfoWindow(data) {
|
|
var config = KretaWindowHelper.getWindowConfigContainer();
|
|
config.title = "@OrarendResource.TanoraAdatai";
|
|
config.maxWidth = "960px";
|
|
config.height = "620px";
|
|
config.content = data;
|
|
|
|
var modal = KretaWindowHelper.createWindow("tanitasiOraInfoWindow", config);
|
|
KretaWindowHelper.openWindow(modal, true);
|
|
}
|
|
|
|
tanoraKeresoHelper.exportHelyettesitettTanorak = function () {
|
|
var data = KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName);
|
|
|
|
AjaxHelper.DownloadFile(url.ExportHelyettesitettTanorak, data);
|
|
}
|
|
|
|
tanoraKeresoHelper.exportElmaradtTanorak = function () {
|
|
var data = KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName);
|
|
|
|
AjaxHelper.DownloadFile(url.ExportElmaradtTanorak, data);
|
|
}
|
|
|
|
tanoraKeresoHelper.exportMegtartottTanorak = function () {
|
|
var data = KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName);
|
|
|
|
AjaxHelper.DownloadFile(url.ExportMegtartottTanorak, data);
|
|
}
|
|
|
|
tanoraKeresoHelper.getExport = function () {
|
|
KretaGridHelper.getExportBySearchForm(gridName, url.GetExport, searchFormName)
|
|
}
|
|
|
|
tanoraKeresoHelper.deleteTanoraConfirmWindow = function (rowData)
|
|
{
|
|
var postData = { tanoraId: rowData.ID };
|
|
KretaWindowHelper.confirmWindow("@(CommonResource.BiztosanTorli)", "@(OrarendResource.BiztosanTorliATanitasiOrat)", deleteTanoraDoublePrompt, postData, KretaWindowHelper.destroyAllWindow);
|
|
}
|
|
|
|
function deleteTanoraDoublePrompt (postData) {
|
|
KretaWindowHelper.confirmWindow("@(CommonResource.BiztosanTorli)", "@(OrarendResource.TanoraTorlesConfirm)", deleteTanora, postData, KretaWindowHelper.destroyAllWindow, "@(CommonResource.Tovabb)","@(CommonResource.Megse)");
|
|
}
|
|
|
|
function deleteTanora(postData) {
|
|
AjaxHelper.DoPostQuery(url.DeleteTanora, null, postData, deleteFeedback);
|
|
}
|
|
|
|
function deleteFeedback(data) {
|
|
if (data == "true") {
|
|
KretaWindowHelper.feedbackWindow(data.Title, data.Text, true, KretaWindowHelper.destroyAllWindow);
|
|
} else {
|
|
KretaWindowHelper.destroyAllWindow();
|
|
}
|
|
|
|
KretaGridHelper.refreshGridSearchPanel(gridName, searchFormName);
|
|
AjaxHelper.DoGet(url.NemNaplozottTanorakCount, {}, tanoraKeresoHelper.updateNemNapolzottTanorakCount);
|
|
}
|
|
|
|
tanoraKeresoHelper.updateNemNapolzottTanorakCount = function (data) {
|
|
$("#NemNaplozottTanorakCount").attr('data-badge',data);
|
|
}
|
|
|
|
return tanoraKeresoHelper;
|
|
})();
|
|
</script>
|