39 lines
No EOL
1.8 KiB
Text
39 lines
No EOL
1.8 KiB
Text
@using Kreta.Web.Areas.OsztalyCsoport.Models;
|
|
@model BaseBesorolasSearchModel
|
|
|
|
<script type="text/javascript">
|
|
var BesorolasExportHelper = (function () {
|
|
var besorolasHelper = function () { };
|
|
var searchFormName = "searchForm";
|
|
|
|
var url = {
|
|
ExportOsztaly: "@Url.Action("ExportBesorolasOsztaly", @Model.ExportControllerName, new {area = "OsztalyCsoport" })",
|
|
ExportOsztalyKiirt: "@Url.Action("ExportBesorolasOsztalyKiirt", @Model.ExportControllerName, new {area = "OsztalyCsoport" })",
|
|
ExportCsoport: "@Url.Action("ExportBesorolasCsoport", @Model.ExportControllerName, new {area = "OsztalyCsoport" })",
|
|
ExportCsoportKiirt: "@Url.Action("ExportBesorolasCsoportKiirt", @Model.ExportControllerName, new {area = "OsztalyCsoport" })",
|
|
};
|
|
|
|
besorolasHelper.setSearchFormName = function (name) {
|
|
if (name !== "undefined" && name !== "") {
|
|
searchFormName = name;
|
|
}
|
|
}
|
|
besorolasHelper.exportOsztaly = function () {
|
|
window.location = url.ExportOsztaly + "?" + $.param(KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName));
|
|
}
|
|
|
|
besorolasHelper.exportOsztalyKiirt = function () {
|
|
window.location = url.ExportOsztalyKiirt + "?" + $.param(KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName));
|
|
}
|
|
|
|
besorolasHelper.exportCsoport = function () {
|
|
window.location = url.ExportCsoport + "?" + $.param(KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName));
|
|
}
|
|
|
|
besorolasHelper.exportCsoportKiirt = function () {
|
|
window.location = url.ExportCsoportKiirt + "?" + $.param(KretaGridHelper.getSearchParametersWithoutInputNames(searchFormName));
|
|
}
|
|
|
|
return besorolasHelper;
|
|
})();
|
|
</script> |