init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,111 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Resources
|
||||
@using Kendo.Mvc.UI
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.Web.Areas.Adatszolgaltatasok.Models
|
||||
@using Kreta.Resources
|
||||
|
||||
@model NemAllamiModel
|
||||
|
||||
@{ Layout = "~/Views/Shared/_MasterLayout.cshtml"; }
|
||||
@Html.KretaGridTemplate("detailGrid-template")
|
||||
@Html.HiddenFor(x => x.IsSzirStatAdatszolgBekuldeseDisabled)
|
||||
|
||||
<div id="VeglegesitesDiv" class="@(Model.IsSzirStatAdatszolgBekuldeseDisabled ? "disabledItem" : "")" style="margin-top:10px">
|
||||
<input type="button" class="k-button" id="Veglegesites" name="Veglgegesites" value="Véglegesítés" />
|
||||
</div>
|
||||
<div>
|
||||
@{ var grid = Html.KretaGrid<NemAllamiIntOktKoltsegvetesGridModel>
|
||||
(
|
||||
name: "NemAllamiGrid",
|
||||
getUrl: new GridApiUrl(controller: "SZIRAdatszolgApi",
|
||||
action: "GetNemAllamiGrid", parameters: new Dictionary<string, string>
|
||||
{ }),
|
||||
clientTemplate: "detailGrid-template",
|
||||
clientTemplateUrl: @Url.Action("NemAllamiDetail", "NemAllamiIntOktKoltsegvetes", new { area = "Adatszolgaltatasok" }),
|
||||
sort: sort => sort.Add(model => model.MukodesiHelyAzonosito).Descending(),
|
||||
allowPaging: true,
|
||||
showSorszam: true,
|
||||
allowScrolling: true
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.MukodesiHelyAzonosito);
|
||||
columns.Bound(c => c.MukodesihelyNeve);
|
||||
columns.Bound(c => c.MukodesihelyCime);
|
||||
columns.Bound(c => c.EllatottFeladat);
|
||||
columns.Bound(c => c.BevetelOsszesen);
|
||||
columns.Bound(c => c.KiadasOsszesen);
|
||||
columns.Bound(c => c.SzemelyiJelleguKifizetesek);
|
||||
columns.Bound(c => c.ID).Hidden();
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn)); }
|
||||
<div>
|
||||
@(grid)
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; padding: 10px 20px; gap: 5px;">
|
||||
<div id="NemAllamiFileDownload" style="cursor: pointer;">@Html.KretaIcon("fa-file-excel-o", new Dictionary<string, object> { { "style", "font-size: 22px; color: #207446;" } }) @SZIRAdatszolgResource.EllenorzoTablazat</div>
|
||||
</div>
|
||||
|
||||
<style type="text/css">
|
||||
.buttonContainer {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.buttonContainer div {
|
||||
margin-right: 0.16em;
|
||||
}
|
||||
|
||||
.buttonContainer div.toLeft {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.buttonContainer div.clear {
|
||||
clear: both;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#NemAllamiFileDownload').click(function () {
|
||||
var url = "@Url.Action("NemAllami", "SZIRAdatszolg", new { area = "Adatszolgaltatasok" })";
|
||||
AjaxHelper.DownloadFile(url);
|
||||
});
|
||||
|
||||
$('#Veglegesites').click(function () {
|
||||
NemAllamiHelper.Veglegesites();
|
||||
});
|
||||
|
||||
var isSzirStatAdatszolgBekuldeseDisabled = CommonUtils.parseBool("@Model.IsSzirStatAdatszolgBekuldeseDisabled");
|
||||
if (isSzirStatAdatszolgBekuldeseDisabled) {
|
||||
$('#NemAllamiGrid').parent().addClass('disabledItem');
|
||||
}
|
||||
});
|
||||
|
||||
var NemAllamiHelper = (function () {
|
||||
var helper = function () { };
|
||||
|
||||
helper.Veglegesites = function () {
|
||||
KretaWindowHelper.confirmWindow("@ErrorResource.BiztosanFolytatja", "@SZIRAdatszolgResource.AMentettAdatokatAFenntartoMegtekintetteEsAVeglesitesBekuldesElottJovahagyta", SetElkuldes, undefined, undefined, "@CommonResource.Ok", "@CommonResource.Megse")
|
||||
};
|
||||
|
||||
function SetElkuldes() {
|
||||
AjaxHelper.DoGet("@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.SZIRAdatszolgApi, action = "SetNemAllamiVeglegesites" })", undefined, sikeresAdatszolgElkuldes, sikertelenAdatszolgElkuldes);
|
||||
}
|
||||
|
||||
function sikeresAdatszolgElkuldes(data) {
|
||||
KretaWindowHelper.successFeedBackWindow();
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function sikertelenAdatszolgElkuldes(data) {
|
||||
KretaWindowHelper.warningWindow("@ErrorResource.Hiba", data.responseJSON.Message);
|
||||
}
|
||||
|
||||
return helper;
|
||||
})();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue