111 lines
3.7 KiB
Text
111 lines
3.7 KiB
Text
@using Kreta.Web.Helpers
|
|
@using Kreta.Web.Security
|
|
|
|
@model Kreta.Web.Areas.UgyfelSzolgalat.Models.DbVisszaallitasModel
|
|
@{
|
|
Layout = null;
|
|
}
|
|
|
|
<div class="container-fluid">
|
|
@Html.HiddenFor(m => m.NeedUserAndBrowserInformation)
|
|
@Html.HiddenFor(m => m.IntezmenyAdatok.IntezmenyAzonosito)
|
|
@Html.HiddenFor(m => m.IntezmenyAdatok.Nev)
|
|
@Html.HiddenFor(m => m.IntezmenyAdatok.FenntartoAzonosito)
|
|
</div>
|
|
|
|
<div id="UgyfelszolgValidation">
|
|
@Html.KretaValidationSummary()
|
|
</div>
|
|
<div class="container-fluid">
|
|
@Html.HiddenFor(m => m.RequestTypeId)
|
|
|
|
<div class="row labelFix">
|
|
<div class="col-sm-12">
|
|
@Html.KretaLabelForWithoutName(m => m.VisszaallitasKerdes)
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@Html.KretaDatePickerFor(m => m.VisszaallitasDatum).Max(Model.MaiDatum).RenderWithMask()
|
|
</div>
|
|
</div>
|
|
<div class="row labelFix">
|
|
<div class="dbVisszaAllitasFigyelmeztetes">
|
|
@Model.VisszaallitasFigyelmeztetes
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$("#" + JiraRestHelper.popUpTitles.Bejelentes.title).data("kendoWindow").title("@Model.Fejlec");
|
|
});
|
|
|
|
var BejelentesHelper = (function () {
|
|
var helper = function () { };
|
|
|
|
function StringBuilder(value) {
|
|
this.strings = new Array("");
|
|
this.append(value);
|
|
}
|
|
|
|
StringBuilder.prototype.append = function (value) {
|
|
if (value) {
|
|
this.strings.push(value);
|
|
}
|
|
}
|
|
|
|
StringBuilder.prototype.toString = function () {
|
|
return this.strings.join("");
|
|
}
|
|
|
|
helper.SendBejelentes = function () {
|
|
var sb = new StringBuilder();
|
|
|
|
if ($("#NeedUserAndBrowserInformation").val() === "1") {
|
|
sb.append("Intézmény azonosítója: ");
|
|
$("#IntezmenyAdatok_IntezmenyAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_IntezmenyAzonosito").val()) : sb.append("-");
|
|
|
|
sb.append("\n\rIntézmény neve: ");
|
|
$("#IntezmenyAdatok_Nev").val() !== "" ? sb.append($("#IntezmenyAdatok_Nev").val()) : sb.append("-");
|
|
|
|
sb.append("\n\rIntézmény fenntartóazonosítója: ");
|
|
$("#IntezmenyAdatok_FenntartoAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_FenntartoAzonosito").val()) : sb.append("-");
|
|
|
|
var bejelento = "@(ClaimData.FelhasznaloNev?? string.Empty)";
|
|
if (bejelento != "") {
|
|
sb.append("\n\rBejelentő neve: " + bejelento.toString());
|
|
}
|
|
|
|
sb.append("\n\rBejelentő felület: ");
|
|
|
|
var fullUrl = location.href;
|
|
typeof fullUrl !== 'undefined' ? sb.append(fullUrl) : sb.append("-");
|
|
|
|
sb.append("\n\rBöngésző információ: ");
|
|
sb.append("userAgent: " + navigator.userAgent + ";");
|
|
|
|
var windowWidth = window.innerWidth || document.body.clientWidth;
|
|
var windowHeight = window.innerHeight || document.body.clientHeight;
|
|
sb.append("screenSize: " + windowWidth + "," + windowHeight + ";");
|
|
|
|
var userAndBrowserInformation = sb.toString();
|
|
}
|
|
JiraRestHelper.createDbVisszaallitas($("#VisszaallitasDatum").val(), $("#RequestTypeId").val(), userAndBrowserInformation);
|
|
};
|
|
|
|
return helper;
|
|
})();
|
|
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
.row.labelFix {
|
|
min-height: initial !important;
|
|
}
|
|
|
|
.row.labelFix div {
|
|
min-height: initial !important;
|
|
margin-left: -10px !important;
|
|
}
|
|
</style>
|