init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
21
KretaWeb/Views/ErrorHandler/AccessDenied.cshtml
Normal file
21
KretaWeb/Views/ErrorHandler/AccessDenied.cshtml
Normal file
|
@ -0,0 +1,21 @@
|
|||
@using Kreta.Framework
|
||||
@{
|
||||
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||
<title>@StringResourcesUtil.GetString(3462)!</title>
|
||||
@*Hozzáférés megtagadva*@
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
@StringResourcesUtil.GetString(3465) @*Az oldal megtekintéséhez nincs elegendő jogosultsága, érjük vegye fel a kapcsolatot a rendszergazdával.*@
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
5
KretaWeb/Views/ErrorHandler/CustomError.cshtml
Normal file
5
KretaWeb/Views/ErrorHandler/CustomError.cshtml
Normal file
|
@ -0,0 +1,5 @@
|
|||
@using Kreta.Framework
|
||||
|
||||
<script type="text/javascript">
|
||||
KretaWindowHelper.feedbackWindow(Globalization.Hiba, "@(StringResourcesUtil.GetString(45))", true);
|
||||
</script>
|
19
KretaWeb/Views/ErrorHandler/Index.cshtml
Normal file
19
KretaWeb/Views/ErrorHandler/Index.cshtml
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||
<title>Index</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
140
KretaWeb/Views/HibaOldal/FrissitesAlatt.html
Normal file
140
KretaWeb/Views/HibaOldal/FrissitesAlatt.html
Normal file
File diff suppressed because one or more lines are too long
156
KretaWeb/Views/HibaOldal/Index.cshtml
Normal file
156
KretaWeb/Views/HibaOldal/Index.cshtml
Normal file
|
@ -0,0 +1,156 @@
|
|||
@using Kreta.Framework
|
||||
|
||||
@{
|
||||
ViewBag.Title = LoginResource.Login;
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||
<title>@ViewBag.Title</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Roboto+Condensed:wght@300;400;700&display=swap" rel="stylesheet">
|
||||
<link rel="icon" href="~/favicon.ico" type="image/x-icon" />
|
||||
@Styles.Render(Request.Browser.IsMobileDevice ? "~/Content/kretaMobileCss" : "~/Content/kretaCss")
|
||||
|
||||
@Html.Raw(Kreta.Core.Analytics.Client.Factory.GetInstance())
|
||||
<style>
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
font-family: "Open Sans";
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #445261;
|
||||
background: #406a7c; /* For browsers that do not support gradients */
|
||||
background: -webkit-radial-gradient(circle, #518094, #406a7c); /* Safari */
|
||||
background: -o-radial-gradient(circle, #518094, #406a7c); /* Opera 11.6 to 12.0 */
|
||||
background: -moz-radial-gradient(circle, #518094, #406a7c); /* Firefox 3.6 to 15 */
|
||||
background: radial-gradient(circle, #518094, #406a7c); /* Standard syntax */
|
||||
}
|
||||
|
||||
#main {
|
||||
height: 100%;
|
||||
top: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
background-image: url('./Content/content/images/cactus.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom right 30px;
|
||||
}
|
||||
|
||||
#main h2 {
|
||||
color: white;
|
||||
font-weight: 400;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
#main .login_main {
|
||||
text-align: center;
|
||||
height: auto;
|
||||
padding-top: 10%;
|
||||
}
|
||||
|
||||
#main .login_logo {
|
||||
margin: 0 auto;
|
||||
margin-top: 10%;
|
||||
width: 400px;
|
||||
display: block;
|
||||
background-image: url('./App_Themes/Skin_Kreta_Gfx/content/images/kreta_feher_login.png');
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
height: 100px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
|
||||
#main .login_container {
|
||||
width: 40%;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#main .login_problems {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
background-color: transparent;
|
||||
line-height: 30px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#main .login_header {
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
#main .login_content {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#main .login_foot {
|
||||
padding: 20px 0;
|
||||
margin: 0 auto;
|
||||
margin-top: 200px;
|
||||
width: 400px;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: #bac8d5;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body cz-shortcut-listen="true">
|
||||
<div id="main">
|
||||
<div class="login_logo">
|
||||
</div>
|
||||
|
||||
<div class="login_container">
|
||||
<div class="login_header">
|
||||
<h2>@CommonResource.HibaTortentAzOldalon</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login_problems">
|
||||
<div class="login_content">
|
||||
@CommonResource.LehetsegesHibasWebCim
|
||||
<br />
|
||||
@CommonResource.LehetsegesFrissites
|
||||
<br />
|
||||
@CommonResource.LehetsegesMuszakiOk
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login_foot">
|
||||
<div class="login_infoVersion">
|
||||
<span id="lblVersion" class="szovegVersion">@Html.Raw(ViewBag.Version)</span>
|
||||
</div>
|
||||
<div class="login_Infotext">
|
||||
@LoginResource.TamogatottBongeszok
|
||||
<br /> @LoginResource.BongeszoList
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
152
KretaWeb/Views/HibaOldal/IndexLEPNincsJog.cshtml
Normal file
152
KretaWeb/Views/HibaOldal/IndexLEPNincsJog.cshtml
Normal file
|
@ -0,0 +1,152 @@
|
|||
@using Kreta.Framework
|
||||
|
||||
@{
|
||||
ViewBag.Title = LoginResource.Login;
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||
<title>@ViewBag.Title</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Roboto+Condensed:wght@300;400;700&display=swap" rel="stylesheet">
|
||||
<link rel="icon" href="~/favicon.ico" type="image/x-icon" />
|
||||
@Styles.Render(Request.Browser.IsMobileDevice ? "~/Content/kretaMobileCss" : "~/Content/kretaCss")
|
||||
|
||||
@Html.Raw(Kreta.Core.Analytics.Client.Factory.GetInstance())
|
||||
<style>
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
font-family: "Open Sans";
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #445261;
|
||||
background: #406a7c; /* For browsers that do not support gradients */
|
||||
background: -webkit-radial-gradient(circle, #518094, #406a7c); /* Safari */
|
||||
background: -o-radial-gradient(circle, #518094, #406a7c); /* Opera 11.6 to 12.0 */
|
||||
background: -moz-radial-gradient(circle, #518094, #406a7c); /* Firefox 3.6 to 15 */
|
||||
background: radial-gradient(circle, #518094, #406a7c); /* Standard syntax */
|
||||
}
|
||||
|
||||
#main {
|
||||
height: 100%;
|
||||
top: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
background-image: url('./Content/content/images/cactus.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom right 30px;
|
||||
}
|
||||
|
||||
#main h2 {
|
||||
color: white;
|
||||
font-weight: 400;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
#main .login_main {
|
||||
text-align: center;
|
||||
height: auto;
|
||||
padding-top: 10%;
|
||||
}
|
||||
|
||||
#main .login_logo {
|
||||
margin: 0 auto;
|
||||
margin-top: 10%;
|
||||
width: 400px;
|
||||
display: block;
|
||||
background-image: url('./App_Themes/Skin_Kreta_Gfx/content/images/kreta_feher_login.png');
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
height: 100px;
|
||||
padding-top: 25px;
|
||||
}
|
||||
|
||||
#main .login_container {
|
||||
width: 40%;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#main .login_problems {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
background-color: transparent;
|
||||
line-height: 30px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#main .login_header {
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
#main .login_content {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#main .login_foot {
|
||||
padding: 20px 0;
|
||||
margin: 0 auto;
|
||||
margin-top: 200px;
|
||||
width: 400px;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: #bac8d5;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body cz-shortcut-listen="true">
|
||||
<div id="main">
|
||||
<div class="login_logo">
|
||||
</div>
|
||||
|
||||
<div class="login_container">
|
||||
<div class="login_header">
|
||||
<h2></h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login_problems">
|
||||
<div class="login_content">
|
||||
A KRÉTA rendszerbe kizárólag adminisztrátori, osztályfőnöki és Lázár Ervin Program kezelői jogosultsággal lehet belépni!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login_foot">
|
||||
<div class="login_infoVersion">
|
||||
<span id="lblVersion" class="szovegVersion">@Html.Raw(ViewBag.Version)</span>
|
||||
</div>
|
||||
<div class="login_Infotext">
|
||||
@LoginResource.TamogatottBongeszok
|
||||
<br /> @LoginResource.BongeszoList
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
12
KretaWeb/Views/HibaOldal/MaintenancePartial.cshtml
Normal file
12
KretaWeb/Views/HibaOldal/MaintenancePartial.cshtml
Normal file
|
@ -0,0 +1,12 @@
|
|||
@using Kreta.Web.Models
|
||||
@model MaintenanceModel
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
||||
}
|
||||
|
||||
<div>
|
||||
<h1>@Model.Title</h1>
|
||||
<br />
|
||||
<h4>@Html.Raw(Model.Message)</h4>
|
||||
</div>
|
9
KretaWeb/Views/Shared/ArchivIndex.cshtml
Normal file
9
KretaWeb/Views/Shared/ArchivIndex.cshtml
Normal file
|
@ -0,0 +1,9 @@
|
|||
@using Kreta.Resources;
|
||||
@using Kreta.Web.Security;
|
||||
@{
|
||||
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
||||
}
|
||||
|
||||
<div class="row" style="padding: 20px; text-align: center;">
|
||||
<label style="font-size: 20px;">@AdminisztracioResource.ArchivIndexMsg</label>
|
||||
</div>
|
176
KretaWeb/Views/Shared/BankszamlaEditor.cshtml
Normal file
176
KretaWeb/Views/Shared/BankszamlaEditor.cshtml
Normal file
|
@ -0,0 +1,176 @@
|
|||
@using Kreta.Resources;
|
||||
@using Kreta.Web.Helpers;
|
||||
@using Kreta.Web.Models;
|
||||
@using Kreta.Web.Security;
|
||||
|
||||
@model TanuloBankszamlaModel
|
||||
|
||||
<style type="text/css">
|
||||
.k-sprite {
|
||||
line-height: normal;
|
||||
font-size: 2em;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var BankszamlaEditorHelper = (function () {
|
||||
var bankszamlaEditorHelper = function () { };
|
||||
|
||||
function createBankszamla(bszSzam, bszTulaj, bszTulajNeve, bszBank) {
|
||||
return {
|
||||
BankszamlaSzam: bszSzam,
|
||||
BankszamlaTulajdonos: bszTulaj,
|
||||
BankszamlaTulajdonosNeve: bszTulajNeve,
|
||||
SzamlavezetoBank: bszBank
|
||||
}
|
||||
}
|
||||
|
||||
bankszamlaEditorHelper.tanuloBankszamlaModel = createBankszamla("@(Model.BankszamlaSzam ?? string.Empty)", @(Model.BankszamlaTulajdonos ?? -1), "@(Model.BankszamlaTulajdonosNeve ?? string.Empty)", "@Html.Raw(string.IsNullOrWhiteSpace(Model.SzamlavezetoBank) ? "" : Model.SzamlavezetoBank)");
|
||||
|
||||
bankszamlaEditorHelper.szerkesztesClick = function () {
|
||||
$("#@Model.BankszamlaSzamId").data("kendoMaskedTextBox").enable(true);
|
||||
$("#@Model.BankszamlaSzamId").focus();
|
||||
|
||||
$("#@Model.BankszamlaTulajdonosId").data("kendoComboBox").enable(true);
|
||||
$("#@Model.BankszamlaTulajdonosNeveId").prop("disabled", false).removeClass("k-state-disabled");
|
||||
|
||||
$("#btnEdit@(Model.IdPostfix ?? "")").hide();
|
||||
$("#btnDelete@(Model.IdPostfix ?? "")").hide();
|
||||
$("#btnSave@(Model.IdPostfix ?? "")").show();
|
||||
$("#btnCancel@(Model.IdPostfix ?? "")").show();
|
||||
};
|
||||
|
||||
bankszamlaEditorHelper.mentesClick = function () {
|
||||
var data = createBankszamla(
|
||||
$("#@Model.BankszamlaSzamId").data("kendoMaskedTextBox").value(),
|
||||
$("#@Model.BankszamlaTulajdonosId").data("kendoComboBox").value(),
|
||||
$("#@Model.BankszamlaTulajdonosNeveId").val(),
|
||||
$("#@Model.SzamlavezetoBankId").val(),
|
||||
);
|
||||
@(Model.JavascriptAjaxSaveMethod)(data);
|
||||
};
|
||||
|
||||
bankszamlaEditorHelper.torlesClick = function () {
|
||||
KretaWindowHelper.confirmWindow("@CommonResource.Kerdes", "@TanuloResource.BiztosanTorliAMegadottBankszamlaAdatokat", bankszamlaEditorHelper.torlesConfirmed);
|
||||
}
|
||||
|
||||
bankszamlaEditorHelper.torlesConfirmed = function () {
|
||||
$("#@Model.BankszamlaSzamId").data("kendoMaskedTextBox").value("");
|
||||
$("#@Model.BankszamlaTulajdonosId").data("kendoComboBox").value("");
|
||||
$("#@Model.BankszamlaTulajdonosNeveId").val("");
|
||||
$("#@Model.SzamlavezetoBankId").val("");
|
||||
bankszamlaEditorHelper.mentesClick();
|
||||
$("#btnDelete@(Model.IdPostfix ?? "")").hide();
|
||||
}
|
||||
|
||||
bankszamlaEditorHelper.megsemClick = function () {
|
||||
bankszamlaEditorHelper.defaultBankszamlaAdatokControls();
|
||||
}
|
||||
|
||||
bankszamlaEditorHelper.defaultBankszamlaAdatokControls = function () {
|
||||
var bankszamlaszamKendoMaskedTextBox = $("#@Model.BankszamlaSzamId").data("kendoMaskedTextBox");
|
||||
bankszamlaszamKendoMaskedTextBox.value(this.tanuloBankszamlaModel.BankszamlaSzam);
|
||||
bankszamlaszamKendoMaskedTextBox.enable(false);
|
||||
|
||||
var bankszamlaszamText = bankszamlaszamKendoMaskedTextBox.value();
|
||||
$("#@Model.SzamlavezetoBankId").val(this.tanuloBankszamlaModel.SzamlavezetoBank);
|
||||
$("#@Model.SzamlavezetoBankId").css("color", "");
|
||||
$("#@Model.SzamlavezetoBankId").prev("span").text(this.tanuloBankszamlaModel.SzamlavezetoBank);
|
||||
|
||||
var bankszamlaTulajdonosKendoComboBox = $("#@Model.BankszamlaTulajdonosId").data("kendoComboBox");
|
||||
|
||||
bankszamlaTulajdonosKendoComboBox.value(this.tanuloBankszamlaModel.BankszamlaTulajdonos != -1 ? this.tanuloBankszamlaModel.BankszamlaTulajdonos : "");
|
||||
|
||||
bankszamlaTulajdonosKendoComboBox.enable(false);
|
||||
|
||||
$("#@Model.BankszamlaTulajdonosNeveId").val(this.tanuloBankszamlaModel.BankszamlaTulajdonosNeve);
|
||||
$("#@Model.BankszamlaTulajdonosNeveId").prop("disabled", true).addClass("k-state-disabled");
|
||||
|
||||
$("#btnEdit@(Model.IdPostfix ?? "")").show();
|
||||
if (bankszamlaszamText) {
|
||||
$("#btnDelete@(Model.IdPostfix ?? "")").show();
|
||||
}
|
||||
$("#btnSave@(Model.IdPostfix ?? "")").hide();
|
||||
$("#btnCancel@(Model.IdPostfix ?? "")").hide();
|
||||
}
|
||||
|
||||
return bankszamlaEditorHelper;
|
||||
})();
|
||||
</script>
|
||||
|
||||
@if (!string.IsNullOrWhiteSpace(Model.Cimsor))
|
||||
{
|
||||
<h4>@Model.Cimsor</h4>
|
||||
}
|
||||
<div class="row">
|
||||
@Html.KretaMaskedTextBoxFor(x => x.BankszamlaSzam, "00000000-00000000-00000000", htmlAttributes: new Dictionary<string, object> { { "id", Model.BankszamlaSzamId } }).ClearPromptChar(true).UnmaskOnPost(true).Enable(false).RenderWithName(!Model.IsReadonly ? 2 : 3, 3, tooltipResource: !Model.IsReadonly ? Model.BankszamlaSzamTooltip : Model.BankszamlaSzamReadonlyTooltip)
|
||||
@Html.KretaTextBoxFor(x => x.SzamlavezetoBank, htmlAttributes: new Dictionary<string, object> { { "id", Model.SzamlavezetoBankId } }).Enable(false).RenderWithName(!Model.IsReadonly ? 2 : 3, !Model.IsReadonly ? 4 : 3, tooltipResource: string.IsNullOrWhiteSpace(Model.BankszamlaSzam) ? "" : "-", tooltipOnControl: true)
|
||||
@if (!Model.IsReadonly)
|
||||
{
|
||||
@Html.KretaButton("btnEdit" + Model.IdPostfix, "", spriteCssClass: "fa fa-pencil", clickEventName: "BankszamlaEditorHelper.szerkesztesClick").HtmlAttributes(new { style = "padding-top: 5px; padding-bottom: 5px;" })
|
||||
@Html.KretaButton("btnDelete" + Model.IdPostfix, "", spriteCssClass: "fa fa-trash-o", clickEventName: "BankszamlaEditorHelper.torlesClick").HtmlAttributes(new { style = "padding-top: 5px; padding-bottom: 5px; margin-left: 5px;" })
|
||||
@Html.KretaButton("btnSave" + Model.IdPostfix, CommonResource.Mentes, clickEventName: "BankszamlaEditorHelper.mentesClick").HtmlAttributes(new { style = "display:none;" })
|
||||
}
|
||||
@if (!Model.IsReadonly && Model.IsSzakkepzo)
|
||||
{
|
||||
<div id="szakkepzoBankszamlaTooltipContainer@(Model.IdPostfix ?? "")" style="display: inline; padding-left: 10px; position: relative;">
|
||||
<img style="height: 10px; padding: 0 10px 0 0; background-image: url(../Content/content/images/Information_icon.png); background-size: 10px; background-repeat: no-repeat;" />
|
||||
<span style="visibility: hidden; background-color: #f4f4f4; color: #5c6a79; text-align: center; border-radius: 6px; padding: 5px; position: absolute; z-index: 10; border: 1px solid silver; right: 10px; width: 400px;">@TanuloResource.SzakkepzoBankszamlaTooltip</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.BankszamlaTulajdonos, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetBankszamlaTulajdonosEnumList" }), htmlAttributes: new Dictionary<string, object> { { "id", Model.BankszamlaTulajdonosId } }).AutoBind(true).Enable(false).RenderWithName(!Model.IsReadonly ? 2 : 3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.BankszamlaTulajdonosNeve, htmlAttributes: new Dictionary<string, object> { { "id", Model.BankszamlaTulajdonosNeveId } }).Enable(false).RenderWithName(!Model.IsReadonly ? 2 : 3, !Model.IsReadonly ? 4 : 3)
|
||||
@if (!Model.IsReadonly)
|
||||
{
|
||||
@Html.KretaButton("btnCancel" + Model.IdPostfix, CommonResource.Megse, clickEventName: "BankszamlaEditorHelper.megsemClick").HtmlAttributes(new { style = "display:none;" })
|
||||
}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var bankszamlaszam = $("#@Model.BankszamlaSzamId").data("kendoMaskedTextBox").value();
|
||||
var szamlavezetoBank = $("#@Model.SzamlavezetoBankId").val();
|
||||
if (!CommonUtils.isNullOrWhiteSpace(bankszamlaszam) && CommonUtils.isNullOrWhiteSpace(szamlavezetoBank) && CommonUtils.parseBool("@ClaimData.IsAdministrator") == false) {
|
||||
szamlavezetoBank = "@Html.Raw(ErrorResource.NemMegfeleloFormatumuABankszamla)";
|
||||
$("#@Model.SzamlavezetoBankId").css("color", "red");
|
||||
}
|
||||
$("#@Model.SzamlavezetoBankId").val(szamlavezetoBank);
|
||||
$("#@Model.SzamlavezetoBankId").prev("span").text(szamlavezetoBank);
|
||||
|
||||
if (bankszamlaszam) {
|
||||
$("#btnDelete@(Model.IdPostfix ?? "")").show();
|
||||
}
|
||||
else {
|
||||
$("#btnDelete@(Model.IdPostfix ?? "")").hide();
|
||||
}
|
||||
|
||||
$("#szakkepzoBankszamlaTooltipContainer@(Model.IdPostfix ?? "")")
|
||||
.hover(function () {
|
||||
$(this).children("span").css("visibility", "visible");
|
||||
}, function () {
|
||||
$(this).children("span").css("visibility", "hidden");
|
||||
});
|
||||
});
|
||||
|
||||
$("#@Model.BankszamlaSzamId").blur(function () {
|
||||
var bankszamlaszam = $("#@Model.BankszamlaSzamId").data("kendoMaskedTextBox").value()
|
||||
var url = '@Url.Action("GetBankszamlaVezetoBankNeve", Constants.Controllers.Layout, new { area = "" })';
|
||||
CommonUtils.getBankszamlaVezetoBankAjax(url, bankszamlaszam).done(function (data) {
|
||||
var szamlavezetoBank = data;
|
||||
if (!CommonUtils.isNullOrWhiteSpace(bankszamlaszam) && CommonUtils.isNullOrWhiteSpace(szamlavezetoBank) && CommonUtils.parseBool("@ClaimData.IsAdministrator") == false) {
|
||||
szamlavezetoBank = "@Html.Raw(ErrorResource.NemMegfeleloFormatumuABankszamla)";
|
||||
$("#@Model.SzamlavezetoBankId").css("color", "red");
|
||||
$("#btnSave@(Model.IdPostfix ?? "")").data("kendoButton").enable(false);
|
||||
}
|
||||
else {
|
||||
$("#@Model.SzamlavezetoBankId").css("color", "");
|
||||
$("#btnSave@(Model.IdPostfix ?? "")").data("kendoButton").enable(true);
|
||||
}
|
||||
$("#@Model.SzamlavezetoBankId").val(szamlavezetoBank);
|
||||
$("#@Model.SzamlavezetoBankId").prev("span").text(szamlavezetoBank);
|
||||
});
|
||||
});
|
||||
</script>
|
122
KretaWeb/Views/Shared/DashboardUzenetPopup.cshtml
Normal file
122
KretaWeb/Views/Shared/DashboardUzenetPopup.cshtml
Normal file
|
@ -0,0 +1,122 @@
|
|||
@using Kreta.Web.Areas.Adminisztracio.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Enums.ManualEnums
|
||||
@model AdminDashboardPopupItemModel
|
||||
|
||||
@section AddCss {
|
||||
@Styles.Render("~/Content/rendszerHibaErtesitesek")
|
||||
}
|
||||
<style>
|
||||
a[href$=".pdf"] {
|
||||
height: auto;
|
||||
padding: 4px;
|
||||
-moz-transition: unset;
|
||||
-o-transition: unset;
|
||||
-webkit-transition: unset;
|
||||
transition: unset;
|
||||
}
|
||||
|
||||
a[href$=".pdf"]:hover {
|
||||
background: none !important;
|
||||
background-color: #ccc7c7 !important;
|
||||
background-size: unset !important;
|
||||
background-position: unset !important;
|
||||
-moz-transition: unset;
|
||||
-o-transition: unset;
|
||||
-webkit-transition: unset;
|
||||
transition: unset;
|
||||
}
|
||||
div.k-window-content {
|
||||
display: table;
|
||||
}
|
||||
div.popupouter {
|
||||
vertical-align: middle;
|
||||
display: table-cell;
|
||||
}
|
||||
div.popupinner {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 90%;
|
||||
}
|
||||
.popupinner .k-button {
|
||||
margin: 6px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var PopupHelper = (function () {
|
||||
|
||||
var popupHelper = function () { };
|
||||
|
||||
var urls = {
|
||||
UpdateCloseUrl: "@Url.Action("UpdateDashboardPopupClose", "Layout", new { area = string.Empty })"
|
||||
,UpdateConfirmUrl: "@Url.Action("UpdateDashboardPopupConfirm", "Layout", new { area = string.Empty })"
|
||||
,UpdateNextUrl: "@Url.Action("UpdateDashboardPopupNext", "Layout", new { area = string.Empty })"
|
||||
};
|
||||
|
||||
popupHelper.UpdateClose = function () {
|
||||
var postData = { popupId: '@Model.DashboardUzenetFelhasznaloId', egyediAzonosito: '@Model.EgyediAzonosito' };
|
||||
AjaxHelper.DoPost(urls.UpdateCloseUrl, postData, successSave);
|
||||
};
|
||||
|
||||
popupHelper.UpdateConfirm = function () {
|
||||
var postData = { popupId: '@Model.DashboardUzenetFelhasznaloId' };
|
||||
AjaxHelper.DoPost(urls.UpdateConfirmUrl, postData, successSave);
|
||||
};
|
||||
|
||||
popupHelper.UpdateNext = function () {
|
||||
var postData = { popupId: '@Model.DashboardUzenetFelhasznaloId' };
|
||||
AjaxHelper.DoPost(urls.UpdateNextUrl, postData, successRedirect);
|
||||
};
|
||||
|
||||
function successSave() {
|
||||
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow);
|
||||
}
|
||||
|
||||
function successRedirect(url) {
|
||||
KretaWindowHelper.destroyAllWindow();
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
return popupHelper;
|
||||
})();
|
||||
</script>
|
||||
<div class="popupouter">
|
||||
<div class="container-fluid details popupinner">
|
||||
@Html.HiddenFor(x => x.DashboardUzenetFelhasznaloId)
|
||||
@Html.HiddenFor(x => x.EgyediAzonosito)
|
||||
@Html.HiddenFor(x => x.Name)
|
||||
@Html.Raw(Model.Content)
|
||||
<div style="text-align: center">
|
||||
@if ((Model.Type == AdminDashboardTipusEnum.PopupMultipleConfirm && Model.MegjelenitesekSzama > 1)
|
||||
|| Model.Type == AdminDashboardTipusEnum.PopupNext
|
||||
|| Model.Type == AdminDashboardTipusEnum.PopupNextCaptionConfirm
|
||||
|| Model.Type == AdminDashboardTipusEnum.PopupCustomCaptionConfirm)
|
||||
{
|
||||
var caption = CommonResource.Bezar;
|
||||
if (Model.Type == AdminDashboardTipusEnum.PopupNextCaptionConfirm)
|
||||
{
|
||||
caption = CommonResource.Tovabb;
|
||||
}
|
||||
if (Model.Type == AdminDashboardTipusEnum.PopupCustomCaptionConfirm && !string.IsNullOrWhiteSpace(Model.EgyediMuvelet))
|
||||
{
|
||||
caption = Model.EgyediMuvelet;
|
||||
}
|
||||
|
||||
@Html.KretaButton("ConfirmDashboardPopup1", caption, clickEventName: "PopupHelper.UpdateClose")
|
||||
}
|
||||
@if (Model.Type == AdminDashboardTipusEnum.PopupConfirm || Model.Type == AdminDashboardTipusEnum.PopupMultipleConfirm)
|
||||
{
|
||||
@Html.KretaButton("ConfirmDashboardPopup2", CommonResource.Megertettem, clickEventName: "PopupHelper.UpdateConfirm")
|
||||
}
|
||||
@if (Model.Type == AdminDashboardTipusEnum.PopupNext)
|
||||
{
|
||||
@Html.KretaButton("ConfirmDashboardPopup3", CommonResource.Tovabb, clickEventName: "PopupHelper.UpdateNext")
|
||||
}
|
||||
@if (Model.Type == AdminDashboardTipusEnum.PopupSurvey)
|
||||
{
|
||||
@Html.KretaButton("ConfirmDashboardPopup4", CommonResource.NemToltomKi, clickEventName: "PopupHelper.UpdateClose")
|
||||
@Html.KretaButton("ConfirmDashboardPopup5", CommonResource.Kitoltom, clickEventName: "PopupHelper.UpdateNext")
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,7 @@
|
|||
@model MvcSiteMapProvider.Web.Html.Models.CanonicalHelperModel
|
||||
@using System.Web.Mvc.Html
|
||||
@using MvcSiteMapProvider.Web.Html.Models
|
||||
|
||||
@if (Model.CurrentNode != null && !string.IsNullOrWhiteSpace(Model.CurrentNode.CanonicalUrl)) {
|
||||
<link rel="canonical" href="@Model.CurrentNode.CanonicalUrl" />
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
@model MenuHelperModel
|
||||
@using System.Web.Mvc.Html
|
||||
@using Kreta.Web.Menu
|
||||
<span id="Menu_Menu">
|
||||
<div id="mb1_menudiv" class="navbar-collapse collapse">
|
||||
<ul id="mb1" class="nav navbar-nav" role="menubar">
|
||||
@foreach (var node in Model.Nodes)
|
||||
{
|
||||
var menuLarge = node.Children.Any(menu => menu.IsClickable == false) ? "menu-large" : ""; // csoportositas
|
||||
var menuwithoutarrow = node.Parent != null && node.Parent.IsRootNode && node.Children.Count == 0 ? "menuwithoutarrow" : ""; // ha főmenü elem, kattintaható és nincsenek almenüpontok
|
||||
var hasChild = node.HasClickabeChild();
|
||||
if ((hasChild || node.IsClickable) && node.IsVisible())
|
||||
{
|
||||
//HasClickabeChild csak Claim alapján ellenőríz, míg az almenüben megjelenő elemekben tételesen Visible.
|
||||
//Abban az esetben, hogyha Claim alapján van benne, viszont Visible alapján üres így nem jelenik meg üresen a főmenü.
|
||||
if (node.Children.Any(x => !x.IsClickable && x.Children.Any(y => y.IsVisible())) || !node.Children.Any(x => !x.IsClickable))
|
||||
{
|
||||
var disabledCssClass = node.IsDisabled() ? "disabledMenuItem" : string.Empty;
|
||||
<li role="menuitem" tabindex="0" aria-haspopup="true" class="dropdown @menuLarge menu-icon @menuwithoutarrow @disabledCssClass" onfocus="" onblur="">
|
||||
@Html.DisplayFor(m => node)
|
||||
@if (hasChild)
|
||||
{
|
||||
@Html.DisplayFor(m => node.Children)
|
||||
}
|
||||
</li>
|
||||
}
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
</span>
|
|
@ -0,0 +1,7 @@
|
|||
@model MvcSiteMapProvider.Web.Html.Models.MetaRobotsHelperModel
|
||||
@using System.Web.Mvc.Html
|
||||
@using MvcSiteMapProvider.Web.Html.Models
|
||||
|
||||
@if (Model.CurrentNode != null && !string.IsNullOrWhiteSpace(Model.CurrentNode.MetaRobotsContent)) {
|
||||
<meta name="robots" content="@Model.CurrentNode.MetaRobotsContent" />
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
@model MvcSiteMapProvider.Web.Html.Models.SiteMapHelperModel
|
||||
@using System.Web.Mvc.Html
|
||||
@using MvcSiteMapProvider.Web.Html.Models
|
||||
|
||||
<ul class="siteMap">
|
||||
@foreach (var node in Model.Nodes)
|
||||
{
|
||||
<li>@Html.DisplayFor(m => node)
|
||||
@if (node.Children.Count > 0) {
|
||||
@Html.DisplayFor(m => node.Children)
|
||||
}
|
||||
</li>
|
||||
}
|
||||
</ul>
|
108
KretaWeb/Views/Shared/DisplayTemplates/SiteMapNodeModel.cshtml
Normal file
108
KretaWeb/Views/Shared/DisplayTemplates/SiteMapNodeModel.cshtml
Normal file
|
@ -0,0 +1,108 @@
|
|||
@model MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModel
|
||||
@using Kreta.BusinessLogic.Utils
|
||||
@using Kreta.Web.Menu
|
||||
|
||||
@{ int? resourceId = Model.Attributes.ContainsKey("resourceId") ? Convert.ToInt32(Model.Attributes["resourceId"]) : new int?(); }
|
||||
@{ string tooltipResourceName = Model.Attributes.ContainsKey("tooltip") ? Model.Attributes["tooltip"].ToString() : ""; }
|
||||
@{
|
||||
var url = Model.IsDisabled() ? "javascript:void(0);" : ( Model.Attributes.ContainsKey("clientsideaction") ? "javascript:" + Model.Action + "();" : Url.Action(Model.Action, Model.Controller, new { area = Model.Area }));
|
||||
}
|
||||
|
||||
@if (Model.IsCurrentNode && Model.SourceMetadata["HtmlHelper"].ToString() != "MvcSiteMapProvider.Web.Html.MenuHelper")
|
||||
{
|
||||
<text>@Model.Title</text>
|
||||
}
|
||||
else if (Model.IsClickable && Model.Parent != null && Model.Parent.IsRootNode == false)
|
||||
{ // almenuk
|
||||
<text>
|
||||
@if (Model.TooltipHasValue())
|
||||
{
|
||||
<a href="@url" target="@(Model.TargetFrame)" title="@MenuResource.ResourceManager.GetString(tooltipResourceName)">
|
||||
<span>
|
||||
@if (resourceId.HasValue)
|
||||
{
|
||||
@(StringResourcesUtils.GetString(resourceId.Value))
|
||||
}
|
||||
</span>
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a href="@url" target="@(Model.TargetFrame)">
|
||||
<span>
|
||||
@if (resourceId.HasValue)
|
||||
{
|
||||
@(StringResourcesUtils.GetString(resourceId.Value))
|
||||
}
|
||||
</span>
|
||||
</a>
|
||||
|
||||
}
|
||||
|
||||
</text>
|
||||
}
|
||||
else if (Model.Parent != null && Model.Parent.IsRootNode)
|
||||
{ // főmenü
|
||||
if (Model.IsClickable == false)
|
||||
{
|
||||
<text><a href='javascript:void(0);' class='dropdown-toggle' data-toggle='dropdown'>
|
||||
@if (Model.Attributes.ContainsKey("iconname"))
|
||||
{
|
||||
<i class='fa fa-@(Model.Attributes["iconname"].ToString()) fa-2x'></i>
|
||||
}
|
||||
<br />
|
||||
<span>
|
||||
@if (resourceId.HasValue)
|
||||
{
|
||||
@(StringResourcesUtils.GetString(resourceId.Value))
|
||||
}
|
||||
</span>
|
||||
</a>
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
<a href="@url" target="@(Model.TargetFrame)">
|
||||
@if (Model.Attributes.ContainsKey("iconname"))
|
||||
{
|
||||
<i class='fa fa-@(Model.Attributes["iconname"].ToString()) fa-2x'></i>
|
||||
}
|
||||
<br />
|
||||
<span>
|
||||
@if (resourceId.HasValue)
|
||||
{
|
||||
@(StringResourcesUtils.GetString(resourceId.Value))
|
||||
}
|
||||
</span>
|
||||
</a>
|
||||
</text>
|
||||
}
|
||||
}
|
||||
else if (Model.IsClickable == false && Model.Children.Count == 0)
|
||||
{
|
||||
<a href="~">
|
||||
<span>
|
||||
@if (resourceId.HasValue)
|
||||
{
|
||||
@(StringResourcesUtils.GetString(resourceId.Value))
|
||||
}
|
||||
</span>
|
||||
</a>
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if ((Model.IsVisible()))
|
||||
{
|
||||
// csoportositas
|
||||
<text><li class="nav-header red">
|
||||
|
||||
@if (resourceId.HasValue)
|
||||
{
|
||||
@(StringResourcesUtils.GetString(resourceId.Value))
|
||||
}
|
||||
</li>
|
||||
</text>
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
@model MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModelList
|
||||
@using System.Web.Mvc.Html
|
||||
@using Kreta.Web.Menu
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@if (Model.Any(almenu => almenu.IsClickable == false))
|
||||
{ // vannak csoportok az almenüpontok között
|
||||
<ul class="dropdown-menu megamenu row" role="menu" aria-hidden="true">
|
||||
@foreach (var node in Model.Where(x => x.Children.Count > 0))
|
||||
{
|
||||
if (
|
||||
node.Children.Any(x => x.IsVisible())
|
||||
)
|
||||
{
|
||||
<li class="col-xs-4 col-sm-4">
|
||||
<ul>
|
||||
@Html.DisplayFor(m => node)
|
||||
@foreach (var children in node.Children)
|
||||
{
|
||||
if (children.IsVisible())
|
||||
{
|
||||
if (children.IsDisabled())
|
||||
{
|
||||
<li class="disabledMenuItem">
|
||||
@Html.DisplayFor(m => children)
|
||||
</li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li>
|
||||
@Html.DisplayFor(m => children)
|
||||
</li>
|
||||
}
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
else
|
||||
{ // csak kattintható menüpontok vannak
|
||||
<ul class="dropdown-menu sub-menu" role="menu" aria-hidden="true">
|
||||
@foreach (var node in Model)
|
||||
{
|
||||
if (node.IsDisabled())
|
||||
{
|
||||
<li class="disabledMenuItem">
|
||||
@Html.DisplayFor(m => node)
|
||||
@if (node.Children.Count > 0)
|
||||
{
|
||||
@Html.DisplayFor(m => node.Children)
|
||||
}
|
||||
</li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li>
|
||||
@Html.DisplayFor(m => node)
|
||||
@if (node.Children.Count > 0)
|
||||
{
|
||||
@Html.DisplayFor(m => node.Children)
|
||||
}
|
||||
</li>
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
@model MvcSiteMapProvider.Web.Html.Models.SiteMapPathHelperModel
|
||||
@using System.Web.Mvc.Html
|
||||
@using System.Linq
|
||||
@using MvcSiteMapProvider.Web.Html.Models
|
||||
@foreach (var node in Model.Where(m => m.IsRootNode == false))
|
||||
{
|
||||
@Html.DisplayFor(m => node);
|
||||
if (node != Model.Last())
|
||||
{
|
||||
<text>> </text>
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
@model MvcSiteMapProvider.Web.Html.Models.SiteMapTitleHelperModel
|
||||
@using Kreta.BusinessLogic.Utils
|
||||
|
||||
@if (Model.CurrentNode != null) {
|
||||
int? resourceId = Model.CurrentNode.Attributes.ContainsKey("resourceId") ? Convert.ToInt32(Model.CurrentNode.Attributes["resourceId"]) : new int?();
|
||||
if (resourceId.HasValue)
|
||||
{
|
||||
<text>
|
||||
@StringResourcesUtils.GetString(resourceId.Value)
|
||||
</text>
|
||||
}
|
||||
}
|
6
KretaWeb/Views/Shared/EditorTemplates/Currency.cshtml
Normal file
6
KretaWeb/Views/Shared/EditorTemplates/Currency.cshtml
Normal file
|
@ -0,0 +1,6 @@
|
|||
@model decimal?
|
||||
|
||||
@(Html.Kendo().CurrencyTextBoxFor(m => m)
|
||||
.HtmlAttributes(new {style="width:100%"})
|
||||
.Min(0)
|
||||
)
|
3
KretaWeb/Views/Shared/EditorTemplates/Date.cshtml
Normal file
3
KretaWeb/Views/Shared/EditorTemplates/Date.cshtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
@model DateTime?
|
||||
|
||||
@(Html.Kendo().DatePickerFor(m => m))
|
3
KretaWeb/Views/Shared/EditorTemplates/DateTime.cshtml
Normal file
3
KretaWeb/Views/Shared/EditorTemplates/DateTime.cshtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
@model DateTime?
|
||||
|
||||
@(Html.Kendo().DateTimePickerFor(m => m))
|
3
KretaWeb/Views/Shared/EditorTemplates/Email.cshtml
Normal file
3
KretaWeb/Views/Shared/EditorTemplates/Email.cshtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
@model object
|
||||
|
||||
@Html.TextBoxFor(model => model, new {@class="k-textbox" })
|
|
@ -0,0 +1,3 @@
|
|||
@model object
|
||||
|
||||
@Html.TextBoxFor(model => model, new {@class="k-textbox", type="email" })
|
|
@ -0,0 +1,6 @@
|
|||
@model object
|
||||
|
||||
@(
|
||||
Html.Kendo().DropDownListFor(m => m)
|
||||
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName("") + "_Data"])
|
||||
)
|
7
KretaWeb/Views/Shared/EditorTemplates/Integer.cshtml
Normal file
7
KretaWeb/Views/Shared/EditorTemplates/Integer.cshtml
Normal file
|
@ -0,0 +1,7 @@
|
|||
@model int?
|
||||
|
||||
@(Html.Kendo().IntegerTextBoxFor(m => m)
|
||||
.HtmlAttributes(new { style = "width:100%" })
|
||||
.Min(int.MinValue)
|
||||
.Max(int.MaxValue)
|
||||
)
|
|
@ -0,0 +1,29 @@
|
|||
@using Kreta.Web.Helpers
|
||||
|
||||
<div class="modalContainer">
|
||||
<div class="modalOuter">
|
||||
<div class="modalContent">
|
||||
<div class="k-content">
|
||||
@using (Html.KretaForm("WizardForm"))
|
||||
{
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
<div class="container-fluid">
|
||||
<div id="wizardContent">
|
||||
@*Ide kerül majd a wizardban a folyamatosan frissülő tartalom*@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modalFooter">
|
||||
<div style="float:right; padding-left: 5px;">
|
||||
@Html.KretaButton("wizardNextBtn", CommonResource.Tovabb)
|
||||
@Html.KretaButton("saveWithDelete", KozpontiOrakResource.KozpontiOraMenteseKijeloltekTorlesevel, clickEventName: "KozpontiOra.savekozpontiOrakWithDeleteOrarendiOrak").HtmlAttributes(new { @class = "hidden", id = "kozpontiOraMenteseTorlesselBtn" })
|
||||
@Html.KretaButton("saveWithoutDelete", KozpontiOrakResource.KozpontiOraMenteseTorlesNelkul, clickEventName: "KozpontiOra.savekozpontiOrakWithoutDeleteOrarendiOrak").HtmlAttributes(new { @class = "hidden", id = "kozpontiOraMenteseTorlesNelkulBtn" })
|
||||
@Html.KretaButton("wizardBackBtn", CommonResource.Vissza)
|
||||
</div>
|
||||
</div>
|
41
KretaWeb/Views/Shared/EditorTemplates/ModalButton.cshtml
Normal file
41
KretaWeb/Views/Shared/EditorTemplates/ModalButton.cshtml
Normal file
|
@ -0,0 +1,41 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Helpers.Modal
|
||||
|
||||
@model List<ModalButtonModel>
|
||||
|
||||
<div style="display: flex; flex-direction: column; padding: inherit;">
|
||||
<div style="padding: inherit;">
|
||||
@foreach (var item in Model.Where(x => !x.SecondLine))
|
||||
{
|
||||
<div class="@item.ContainerCssClass" style="float:right; padding-left: 5px;">
|
||||
@Html.KretaButton(item.Name
|
||||
, item.Text
|
||||
, "button"
|
||||
, item.Enabled
|
||||
, item.SpriteCssClass
|
||||
, item.Icon
|
||||
, item.ImageUrl
|
||||
, item.HtmlAttributes
|
||||
, item.EventName
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div style="padding: inherit;">
|
||||
@foreach (var item in Model.Where(x => x.SecondLine))
|
||||
{
|
||||
<div class="@item.ContainerCssClass" style="float:right; padding-left: 5px;">
|
||||
@Html.KretaButton(item.Name
|
||||
, item.Text
|
||||
, "button"
|
||||
, item.Enabled
|
||||
, item.SpriteCssClass
|
||||
, item.Icon
|
||||
, item.ImageUrl
|
||||
, item.HtmlAttributes
|
||||
, item.EventName
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
5
KretaWeb/Views/Shared/EditorTemplates/Number.cshtml
Normal file
5
KretaWeb/Views/Shared/EditorTemplates/Number.cshtml
Normal file
|
@ -0,0 +1,5 @@
|
|||
@model double?
|
||||
|
||||
@(Html.Kendo().NumericTextBoxFor(m => m)
|
||||
.HtmlAttributes(new { style = "width:100%" })
|
||||
)
|
27
KretaWeb/Views/Shared/EditorTemplates/PanelBar.cshtml
Normal file
27
KretaWeb/Views/Shared/EditorTemplates/PanelBar.cshtml
Normal file
|
@ -0,0 +1,27 @@
|
|||
@using Kreta.Web.Models.EditorTemplates
|
||||
@model PanelBarBaseModel
|
||||
|
||||
@(Html.Kendo().PanelBar()
|
||||
.Name(Model.PanelName)
|
||||
.ExpandMode(Model.ExpandMode)
|
||||
.Animation(animation => animation.Enable(Model.Animation))
|
||||
.BindTo(Model.ChildModels, mapping =>
|
||||
{
|
||||
mapping.For<PanelBarChildModel>(binding => binding.ItemDataBound((panel, childModel) =>
|
||||
{
|
||||
panel.Text = childModel.PartialViewTitle;
|
||||
panel.Enabled = childModel.Enabled;
|
||||
panel.Template.InlineTemplate = @<text>
|
||||
@Html.Partial(childModel.PartialViewName, childModel, new ViewDataDictionary { { "Data", childModel.Data } })
|
||||
</text>;
|
||||
}));
|
||||
})
|
||||
)
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(".k-state-disabled").each(function () {
|
||||
$(this).addClass("disabledItem");
|
||||
})
|
||||
})
|
||||
</script>
|
19
KretaWeb/Views/Shared/EditorTemplates/PanelBarGeneric.cshtml
Normal file
19
KretaWeb/Views/Shared/EditorTemplates/PanelBarGeneric.cshtml
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
@using Kreta.Web.Models.EditorTemplates
|
||||
@model PanelBarBaseModel
|
||||
|
||||
@(Html.Kendo().PanelBar()
|
||||
.Name(Model.PanelName)
|
||||
.ExpandMode(Model.ExpandMode)
|
||||
.Animation(animation => animation.Enable(Model.Animation))
|
||||
.BindTo(Model.ChildModels, mapping =>
|
||||
{
|
||||
mapping.For<PanelBarChildModel>(binding => binding.ItemDataBound((panel, childModel) =>
|
||||
{
|
||||
panel.Text = childModel.PartialViewTitle;
|
||||
panel.Template.InlineTemplate = @<text>
|
||||
@Html.Partial(childModel.PartialViewName, childModel.GenericPanelBarModel)
|
||||
</text>;
|
||||
}));
|
||||
})
|
||||
)
|
3
KretaWeb/Views/Shared/EditorTemplates/Password.cshtml
Normal file
3
KretaWeb/Views/Shared/EditorTemplates/Password.cshtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
@model object
|
||||
|
||||
@Html.TextBoxFor(model => model, new {@class="k-textbox", type="password" })
|
25
KretaWeb/Views/Shared/EditorTemplates/PopUp.cshtml
Normal file
25
KretaWeb/Views/Shared/EditorTemplates/PopUp.cshtml
Normal file
|
@ -0,0 +1,25 @@
|
|||
@model Kreta.Web.Models.EditorTemplates.PopUpModel
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
@if (Model.Buttons.Any(x => x.SecondLine))
|
||||
{
|
||||
<style>
|
||||
.modalContainer .modalOuter {
|
||||
height: calc(100% - 102px) !important;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
|
||||
<div class="modalContainer">
|
||||
<div class="modalOuter">
|
||||
<div class="modalContent">
|
||||
<div class="k-content">
|
||||
@Html.Partial(Model.View, Model.Instance)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modalFooter">
|
||||
@Html.Partial("EditorTemplates/ModalButton", Model.Buttons)
|
||||
</div>
|
3
KretaWeb/Views/Shared/EditorTemplates/String.cshtml
Normal file
3
KretaWeb/Views/Shared/EditorTemplates/String.cshtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
@model object
|
||||
|
||||
@Html.Kendo().TextBoxFor(model => model)
|
17
KretaWeb/Views/Shared/EditorTemplates/TabStrip.cshtml
Normal file
17
KretaWeb/Views/Shared/EditorTemplates/TabStrip.cshtml
Normal file
|
@ -0,0 +1,17 @@
|
|||
@using Kreta.Web.Helpers.TabStrip
|
||||
|
||||
@model List<TabStripItemModel>
|
||||
|
||||
<ul class="tab-container">
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<li class="@(item.KendoCssClass)" id="@item.ItemId">@item.ItemName</li>
|
||||
}
|
||||
</ul>
|
||||
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<div id="@item.ItemId">
|
||||
@Html.Partial(item.PartialViewName, item.Model)
|
||||
</div>
|
||||
}
|
3
KretaWeb/Views/Shared/EditorTemplates/Time.cshtml
Normal file
3
KretaWeb/Views/Shared/EditorTemplates/Time.cshtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
@model DateTime?
|
||||
|
||||
@(Html.Kendo().TimePickerFor(m => m))
|
3
KretaWeb/Views/Shared/EditorTemplates/Url.cshtml
Normal file
3
KretaWeb/Views/Shared/EditorTemplates/Url.cshtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
@model object
|
||||
|
||||
@Html.TextBoxFor(model => model, new {@class="k-textbox", type="url" })
|
42
KretaWeb/Views/Shared/EditorTemplates/WizardPopUp.cshtml
Normal file
42
KretaWeb/Views/Shared/EditorTemplates/WizardPopUp.cshtml
Normal file
|
@ -0,0 +1,42 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div class="modalHeader">
|
||||
<div id="wizardStepDisplay" style="visibility: hidden;">
|
||||
@Html.Partial("StepDisplayPartialView")
|
||||
</div>
|
||||
</div>
|
||||
<div class="modalContainer">
|
||||
<div class="modalOuter">
|
||||
<div class="modalContent">
|
||||
<div class="k-content">
|
||||
@using (Html.KretaForm("WizardForm"))
|
||||
{
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
<div class="container-fluid">
|
||||
<div id="wizardContent">
|
||||
@*Ide kerül majds a wizardban a folyamatosan frissülő tartalom*@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modalFooter">
|
||||
<div style="float:right; padding-left: 5px;">
|
||||
@Html.KretaButton("wizardNextBtn", CommonResource.Tovabb, enabled: true)
|
||||
@Html.KretaButton("wizardEndBtn", 2659, /*vége*/ true)
|
||||
</div>
|
||||
<div style="float:left; padding-left: 5px;">
|
||||
@Html.KretaButton("wizardBackBtn", 179 /*Vissza*/, true)
|
||||
@Html.KretaButton("wizardCancelBtn", 112 /*Mégsem*/, true)
|
||||
</div>
|
||||
<div style="padding-left: 5px; display: flex;">
|
||||
@Html.KretaProgressBar("wizardProgressBar").HtmlAttributes(new { style = "width: 100%; display: none;", @class = "progressBar" })
|
||||
</div>
|
||||
</div>
|
162
KretaWeb/Views/Shared/EgyHaztartasbanLevokEditor.cshtml
Normal file
162
KretaWeb/Views/Shared/EgyHaztartasbanLevokEditor.cshtml
Normal file
|
@ -0,0 +1,162 @@
|
|||
@using Kreta.Web.Helpers;
|
||||
@using Kreta.Web.Models;
|
||||
@using Kreta.Enums.ManualEnums;
|
||||
@model EgyhaztartasbanElokModel
|
||||
@{
|
||||
var formName = "EgyHaztartasbanLevokForm";
|
||||
}
|
||||
@Scripts.Render("~/bundles/moment")
|
||||
|
||||
<script type="text/javascript">
|
||||
var EgyHaztartasbanLevokHelper = (function () {
|
||||
var egyHaztartasbanLevokHelper = function () { };
|
||||
var ujCounter = 1;
|
||||
var url = {
|
||||
saveEgyHaztartasbanElokData: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ProfilApi", action = "SaveEgyHaztartasbanElokData" })",
|
||||
loadEgyHaztartasbanElokData: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ProfilApi", action = "LoadEgyHaztartasbanElokData" })"
|
||||
};
|
||||
|
||||
egyHaztartasbanLevokHelper.addNewRow = function (exitingData) {
|
||||
var url = "@Url.Action("GenerateNewEgyhaztartasbanElokRow", "Profil")";
|
||||
var model = {
|
||||
ID: exitingData.ID,
|
||||
Nev: exitingData.Nev,
|
||||
AnyjaNev: exitingData.AnyjaNev,
|
||||
SzuletesiIdo: exitingData.SzuletesiIdo,
|
||||
SzuletesiHely: exitingData.SzuletesiHely,
|
||||
Taj: exitingData.Taj,
|
||||
RokonsagiFok: exitingData.RokonsagiFok,
|
||||
Email: exitingData.Email,
|
||||
Telefon: exitingData.Telefon,
|
||||
RowNumber: ujCounter,
|
||||
isDeleted: false
|
||||
};
|
||||
|
||||
$.post(url, model, function (response) {
|
||||
var newRow = $("<div></div>").attr("data-status", @((int)ElerhetosegStatusEnum.New)).append(response);
|
||||
$("#newTable > .row").last().after(newRow);
|
||||
++ujCounter;
|
||||
});
|
||||
}
|
||||
|
||||
egyHaztartasbanLevokHelper.deleteRow = function (e) {
|
||||
var row = $(e.sender.element[0]).closest('div').parent().parent();
|
||||
$(row).attr("data-status", @((int)ElerhetosegStatusEnum.Deleted));
|
||||
var rowId = $(row).children('div').last().children().val();
|
||||
if (rowId != "") {
|
||||
row.hide(); revalidateForm();
|
||||
var Datas = []; Datas.push({ ID: rowId, isDeleted: true });
|
||||
var json = { Sorok: Datas };
|
||||
AjaxHelper.DoPost(url.saveEgyHaztartasbanElokData, json, successFeedBack, errorFeedBack);
|
||||
}
|
||||
else {
|
||||
$(row).parent().remove();
|
||||
revalidateForm();
|
||||
}
|
||||
}
|
||||
|
||||
egyHaztartasbanLevokHelper.Save = function () {
|
||||
var Datas = [];
|
||||
|
||||
var VisibleRows = $("#newTable [data-status=0]");
|
||||
if (VisibleRows.length > 0) {
|
||||
VisibleRows.each(function (index, value) {
|
||||
var row = $(value);
|
||||
Datas.push({
|
||||
ID: $(row).find("[id*=ID_]").val(),
|
||||
Nev: $(row).find("[id*=Nev_]:visible").val(),
|
||||
AnyjaNev: $(row).find("[id*=AnyjaNev_]:visible").val(),
|
||||
SzuletesiIdo: $(row).find("[id*=SzuletesiIdo_]:visible").val(),
|
||||
SzuletesiHely: $(row).find("[id*=SzuletesiHely_]:visible").val(),
|
||||
Taj: $(row).find("[id*=Taj_]:visible").val(),
|
||||
RokonsagiFok: $(row).find("[id*=RokonsagiFok_]").val(),
|
||||
Email: $(row).find("[id*=Email_]:visible").val(),
|
||||
Telefon: $(row).find("[id*=Telefon_]:visible").val(),
|
||||
RowNumber: index + 1,
|
||||
isDeleted: false
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
var InvisibleRows = $("#newTable [data-status=2]");
|
||||
if (InvisibleRows.length > 0) {
|
||||
InvisibleRows.each(function (index, value) {
|
||||
var row = $(value);
|
||||
if ($(row).find("[id*=ID_]").val() != "") {
|
||||
Datas.push({
|
||||
ID: $(row).find("[id*=ID_]").val(),
|
||||
isDeleted: true
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (Datas.length > 0) {
|
||||
var json = { Sorok: Datas };
|
||||
AjaxHelper.DoPost(url.saveEgyHaztartasbanElokData, json, successFeedBack, errorFeedBack);
|
||||
}
|
||||
};
|
||||
|
||||
function successFeedBack() {
|
||||
revalidateForm();
|
||||
KretaWindowHelper.successFeedBackWindow();
|
||||
AjaxHelper.DoPost(url.loadEgyHaztartasbanElokData, null, reloadEgyhazTartasbanelokGrid);
|
||||
}
|
||||
|
||||
function reloadEgyhazTartasbanelokGrid(data)
|
||||
{
|
||||
$("#newTable [data-status]").remove();
|
||||
var json = $.parseJSON(data);
|
||||
$.each(json.Sorok, function (index, value) {
|
||||
value.SzuletesiIdo = moment(value.SzuletesiIdo).format('YYYY.MM.DD.');
|
||||
EgyHaztartasbanLevokHelper.addNewRow(value);
|
||||
});
|
||||
}
|
||||
|
||||
function revalidateForm() {
|
||||
$('#' + '@formName').valid();
|
||||
}
|
||||
|
||||
function errorFeedBack(data) {
|
||||
if (typeof (data.responseJSON.ModelState) !== "undefined") {
|
||||
AjaxHelper.CallRemoteErrors($('#' + '@formName'), data.responseJSON.ModelState);
|
||||
} else {
|
||||
AjaxHelper.ShowError(data);
|
||||
}
|
||||
}
|
||||
|
||||
return egyHaztartasbanLevokHelper;
|
||||
})();
|
||||
</script>
|
||||
|
||||
@using (Html.KretaForm(formName))
|
||||
{
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12" id="newTable">
|
||||
<div class="row">
|
||||
<div class="kendo-gridFunctionKommand">
|
||||
@Html.KretaButton("newRowBtn", CommonResource.Uj.ToUpper(), clickEventName: "EgyHaztartasbanLevokHelper.addNewRow", htmlAttributes: new Dictionary<string, object> { { "class", "newButtonPadding" } })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 20px"></div>
|
||||
<div class="row">
|
||||
@Html.KretaButton("ElerhetosegekModositasSaveBtn", CommonResource.Mentes, clickEventName: "EgyHaztartasbanLevokHelper.Save", htmlAttributes: new Dictionary<string, object> { { "class", "saveButton" } })
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var json = @Html.Raw(Json.Encode(@Model.Sorok));
|
||||
|
||||
$.each(json, function (index, value) {
|
||||
value.SzuletesiIdo = moment(value.SzuletesiIdo).format('YYYY.MM.DD.');
|
||||
EgyHaztartasbanLevokHelper.addNewRow(value);
|
||||
});
|
||||
});
|
||||
</script>
|
32
KretaWeb/Views/Shared/EgyHaztartasbanLevokRow.cshtml
Normal file
32
KretaWeb/Views/Shared/EgyHaztartasbanLevokRow.cshtml
Normal file
|
@ -0,0 +1,32 @@
|
|||
@using Kreta.Web.Models;
|
||||
@using Kreta.Web.Helpers;
|
||||
@using Kreta.Resources;
|
||||
@model EgyhaztartasbanElokRowModel
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div class="rowNumber"></div>
|
||||
<div>
|
||||
@Html.Hidden("ID_new" + Model.RowNumber, Model.ID)
|
||||
<div class="row" style="width: 101%; float: left;">
|
||||
@Html.KretaTextBox("Nev_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.Nev } }).Value(Model.Nev).RenderWithName(1, 2)
|
||||
@Html.KretaTextBox("AnyjaNev_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.AnyjaNeve } }).Value(Model.AnyjaNev).RenderWithName(1, 2)
|
||||
@Html.KretaTextBox("SzuletesiHely_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.SzuletesiHely } }).Value(Model.SzuletesiHely).RenderWithName(1, 2)
|
||||
@Html.KretaDatePicker("SzuletesiIdo_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.SzuletesiIdo } }).Value(Model.SzuletesiIdo).Max(DateTime.Now).RenderWithName(1, 2)
|
||||
</div>
|
||||
<div class="row" style="width: 101%; float: left;">
|
||||
@Html.KretaComboBox("RokonsagiFok_new" + Model.RowNumber, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetRokonsagiFokList" }), htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.RokonsagiFok } }).Value(Model.RokonsagiFok.ToString()).AutoBind(true).RenderWithName(1, 2)
|
||||
@Html.KretaTextBox("Taj_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.TAJszam } }).Value(Model.Taj).RenderWithName(1, 2)
|
||||
@Html.KretaTextBox("Telefon_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.Telefonszam } }).Value(Model.Telefon).RenderWithName(1, 2)
|
||||
@Html.KretaTextBox("Email_new" + Model.RowNumber, htmlAttributes: new Dictionary<string, object>() { { "data-labelmsg", FelhasznalokResource.EmailCim } }).Value(Model.Email).RenderWithName(1, 2)
|
||||
</div>
|
||||
<div style="float: right; width:15px;">
|
||||
@Html.KretaButton("DeleteBtn_new" + Model.RowNumber, null, "button", true, null, "", null, null, "EgyHaztartasbanLevokHelper.deleteRow")
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#DeleteBtn_new" + '@Model.RowNumber').css({ 'background': 'none', 'color': '#5c6a79', 'padding-top': '8px' }).append('<span class="fa fa-2x fa-trash"></span>');
|
||||
});
|
||||
</script>
|
88
KretaWeb/Views/Shared/Felhasznalo4TAdatokEditor.cshtml
Normal file
88
KretaWeb/Views/Shared/Felhasznalo4TAdatokEditor.cshtml
Normal file
|
@ -0,0 +1,88 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Models
|
||||
|
||||
@model Felhasznalo4TAdatokModel
|
||||
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaDropdownListFor(x => x.Elotag, Kreta.Core.Constants.ElotagList.Select(x => new SelectListItem { Text = x, Value = x })).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.Elotag, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.Vezeteknev).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.SzuletesiVezeteknev).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.Vezeteknev, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.SzuletesiVezeteknev, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.Utonev).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.SzuletesiUtonev).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.Utonev, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.SzuletesiUtonev, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.AnyjaVezeteknev).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.AnyjaUtonev).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.AnyjaVezeteknev, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.AnyjaUtonev, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.SzuletesiHely).RenderWithName(3, 3)
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(x => x.SzuletesiDatum)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDatePickerFor(x => x.SzuletesiDatum).Max(DateTime.Now).RenderWithMask()
|
||||
</div>
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.SzuletesiHely, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.SzuletesiDatumStr, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
44
KretaWeb/Views/Shared/Globalization.cshtml
Normal file
44
KretaWeb/Views/Shared/Globalization.cshtml
Normal file
|
@ -0,0 +1,44 @@
|
|||
@using Kreta.Resources
|
||||
<script type="text/javascript">
|
||||
var Globalization = {
|
||||
Siker: "@Html.Raw(CommonResource.Siker)",
|
||||
HibaSikeresenLejelentve: "@Html.Raw(CommonResource.HibaSikeresenLejelentve)",
|
||||
Bejelentéseim: "@Html.Raw(UgyfelszolgalatResource.Bejelenteseim))",
|
||||
UjHibabejelentes: "@Html.Raw(CommonResource.UjHibabejelentes)",
|
||||
Igen: "@Html.Raw(CommonResource.Igen)",
|
||||
Nem: "@Html.Raw(CommonResource.Nem)",
|
||||
Vissza: "@Html.Raw(CommonResource.Vissza)",
|
||||
GridAdatvesztesFigyelmeztetes: "@Html.Raw(CommonResource.GridAdatvesztesFigyelmeztetes)",
|
||||
Hiba: "@Html.Raw(CommonResource.Hiba)",
|
||||
MunkamenetLejar: "@Html.Raw(CommonResource.MunkamenetLejar)",
|
||||
Figyelem: "@Html.Raw(CommonResource.Figyelem)",
|
||||
KeresesFigyelmeztetes: "@Html.Raw(CommonResource.KeresesFigyelmeztetes)",
|
||||
Folytatas: "@Html.Raw(CommonResource.Folytatas)",
|
||||
Megsem: "@Html.Raw(CommonResource.Megse)",
|
||||
TovabbiInfo: "@Html.Raw(CommonResource.TovabbiInfo)",
|
||||
Hibabejelentese: "@Html.Raw(CommonResource.Hibabejelentese)",
|
||||
Ora: "@Html.Raw(OrarendResource.Ora)",
|
||||
MunkaHet: "@Html.Raw(OrarendResource.MunkaHet)",
|
||||
SikeresMentes: "@Html.Raw(CommonResource.AMuveletSikeresenMegtortent)",
|
||||
Rendben: "@Html.Raw(CommonResource.Rendben)",
|
||||
Kerdes: "@Html.Raw(CommonResource.Kerdes)",
|
||||
OsztalyCsoportbaSorolasModositasFigyelmeztetes: "@Html.Raw(CommonResource.OsztalyCsoportbaSorolasModositasFigyelmeztetes)",
|
||||
OsztalybontottCsoportOsztalyNemEgyezik: "@Html.Raw(CommonResource.OsztalybontottCsoportOsztalyNemEgyezik)",
|
||||
MenteshezLegalabbEgyTanulo: "@Html.Raw(CommonResource.MenteshezLegalabbEgyTanulo)",
|
||||
HianyzoKovTanev: "@Html.Raw(CommonResource.HianyzoKovTanev)",
|
||||
NincsTalalat: "@Html.Raw(CommonResource.NincsTalalat)",
|
||||
NincsAdat: "@Html.Raw(CommonResource.NincsAdat)",
|
||||
ElsoOldal: "@Html.Raw(CommonResource.ElsoOldal)",
|
||||
UtolsoOldal: "@Html.Raw(CommonResource.UtolsoOldal)",
|
||||
KovetkezoOldal: "@Html.Raw(CommonResource.KovetkezoOldal)",
|
||||
ElozoOldal: "@Html.Raw(CommonResource.ElozoOldal)",
|
||||
TobbOldal: "@Html.Raw(CommonResource.TobbOldal)",
|
||||
MunkaHetSzombattal: "@Html.Raw(OrarendResource.MunkaHetSzombattal)",
|
||||
KotelezoMegadni: "@Html.Raw(CommonResource.KotelezoMegadni)",
|
||||
SikertelenIskolaorUzenetKuldes: "@Html.Raw(ErrorResource.SikertelenIskolaorUzenetKuldes)",
|
||||
SikeresIskolaorUzenetKuldes: "@Html.Raw(CommonResource.SikeresIskolaorUzenetKuldes)",
|
||||
EgyesTanulokMarRendelkeznekKiAtsorolasiZaradekkalKerdes: "@Html.Raw(BesorolasResource.EgyesTanulokMarRendelkeznekKiAtsorolasiZaradekkalKerdes)",
|
||||
RogzitesMindenkinek: "@Html.Raw(BesorolasResource.RogzitesMindenkinek)",
|
||||
RogzitesAkinekMegNincsen: "@Html.Raw(BesorolasResource.RogzitesAkinekMegNincsen)"
|
||||
};
|
||||
</script>
|
88
KretaWeb/Views/Shared/Gondviselo4TAdatokEditor.cshtml
Normal file
88
KretaWeb/Views/Shared/Gondviselo4TAdatokEditor.cshtml
Normal file
|
@ -0,0 +1,88 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Models
|
||||
|
||||
@model Gondviselo4TAdatokModel
|
||||
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaDropdownListFor(x => x.Elotag, Kreta.Core.Constants.ElotagList.Select(x => new SelectListItem { Text = x, Value = x })).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.Elotag, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.Vezeteknev).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.SzuletesiVezeteknev).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.Vezeteknev, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.SzuletesiVezeteknev, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.Utonev).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.SzuletesiUtonev).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.Utonev, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.SzuletesiUtonev, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.AnyjaVezeteknev).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.AnyjaUtonev).RenderWithName(3, 3)
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.AnyjaVezeteknev, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.AnyjaUtonev, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
@if (Model.IsEditable)
|
||||
{
|
||||
<text>
|
||||
@Html.KretaTextBoxFor(x => x.SzuletesiHely).RenderWithName(3, 3)
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(x => x.SzuletesiDatum)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDatePickerFor(x => x.SzuletesiDatum).Max(DateTime.Now).RenderWithMask()
|
||||
</div>
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
@Html.KretaLabelFor(x => x.SzuletesiHely, 3, 3)
|
||||
@Html.KretaLabelFor(x => x.SzuletesiDatumStr, 3, 3)
|
||||
</text>
|
||||
}
|
||||
</div>
|
97
KretaWeb/Views/Shared/IskolaorUzenetKuldesPopup.cshtml
Normal file
97
KretaWeb/Views/Shared/IskolaorUzenetKuldesPopup.cshtml
Normal file
|
@ -0,0 +1,97 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Models
|
||||
@using Kreta.Resources
|
||||
|
||||
@model IskolaorPopupModel
|
||||
|
||||
<style type="text/css">
|
||||
.rowPadding {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.faPhonePadding {
|
||||
padding-top: 10px !important;
|
||||
padding-right: 0px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@Html.HiddenFor(x => x.IntezmenyAzonosito)
|
||||
@Html.HiddenFor(x => x.KuldoID)
|
||||
@Html.HiddenFor(x => x.KuldoNev)
|
||||
@Html.HiddenFor(x => x.KuldoTelefonszam)
|
||||
<div class="container-fluid @BootsrapHelper.GetSizeClasses(12)" style="padding: 20px;">
|
||||
<div class="row rowPadding">
|
||||
@Html.KretaDropdownListFor(x => x.IskolaorId, Model.IskolaorList).Events(events => events.Change("IskolaorHelper.iskolaorChanged")).RenderWithoutName(6, tooltipResource: IskolaorResource.ValasszaKiAzErtesiteniKivantIskolaort)
|
||||
<i class="fa fa-phone fa-2x fa-fw faPhonePadding @BootsrapHelper.GetSizeClasses(1)" aria-hidden="true"></i>
|
||||
@Html.KretaTextBoxFor(x => x.IskolaorTelefonszam).Enable(false).RenderWithoutName(5)
|
||||
</div>
|
||||
<div class="row rowPadding">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(12)">
|
||||
@Html.KretaTextAreaFor(x => x.IskolaorUzenet, 5)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row rowPadding">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon1Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon2Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon3Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="row rowPadding">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon4Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon5Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon6Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="row rowPadding">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon7Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon8Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon9Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="row rowPadding">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon10Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.Sablon11Button).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="row rowPadding">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(8)">
|
||||
|
||||
</div>
|
||||
<div class="BtnDelete @BootsrapHelper.GetSizeClasses(4)">
|
||||
@Html.KretaButton(Model.UzenetKuldesButton).HtmlAttributes(new { style = "width: -webkit-fill-available;" })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var iskolaorAdatok = [];
|
||||
@foreach(var iskor in Model.IskolaorAdatModelList)
|
||||
{
|
||||
@:iskolaorAdatok["@iskor.IskolaorID"] = { Telszam: "@iskor.IskolaorTelefonszam", IdpAzon: "@iskor.IskolaorIdpAzonosito" };
|
||||
}
|
||||
$(document).ready(function () {
|
||||
if ($('#IskolaorId').data('kendoDropDownList').dataSource.data().length != 1) {
|
||||
$('#IskolaorTelefonszam').value = '';
|
||||
}
|
||||
$('#IskolaorId').data('kendoDropDownList').trigger("change");
|
||||
});
|
||||
</script>
|
247
KretaWeb/Views/Shared/JavascriptTemplates/UserMenu.cshtml
Normal file
247
KretaWeb/Views/Shared/JavascriptTemplates/UserMenu.cshtml
Normal file
|
@ -0,0 +1,247 @@
|
|||
@using Kreta.BusinessLogic.Security
|
||||
@using Kreta.Web.Security
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
<script type="text/javascript">
|
||||
function popupCheck() {
|
||||
MasterLayoutHelper.checkNeedDashboardPopup();
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var deleteCookie = function (name) {
|
||||
$.cookie(name, null, { path: '/' });
|
||||
};
|
||||
|
||||
function setCookie(actDate, frequencyRate) {
|
||||
actDate.setTime(actDate.getTime() + (frequencyRate));
|
||||
$.cookie("EUgyUzenetekRecheck", actDate.getTime(), { expires: actDate, secure: true });
|
||||
|
||||
var newDate = new Date();
|
||||
var difference = actDate - newDate.getTime();
|
||||
|
||||
setTimeout(function () {
|
||||
EUgyCall();
|
||||
}, difference);
|
||||
};
|
||||
|
||||
function setCookieFrissitesDatum(actDate, frequencyRate) {
|
||||
actDate.setTime(actDate.getTime() + (frequencyRate));
|
||||
$.cookie("FrissitesiDatum", actDate.getTime(), { expires: actDate, secure: true });
|
||||
|
||||
var newDate = new Date();
|
||||
var difference = actDate - newDate.getTime();
|
||||
|
||||
setTimeout(function () {
|
||||
FrissitesiDatumCall();
|
||||
}, difference);
|
||||
};
|
||||
|
||||
function EUgyCall() {
|
||||
if ("@ClaimData.IsAktivUzenetekMenu.ToString()" === "True") {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", "@Url.Action("EUgyUzenetekRecheck", "Home", new { area = "" })", true);
|
||||
xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8");
|
||||
xhr.onreadystatechange = function () {
|
||||
if (this.readyState === XMLHttpRequest.DONE && this.status === 200) {
|
||||
EUgyCallSuccess(this.responseText);
|
||||
}
|
||||
}
|
||||
xhr.send();
|
||||
}
|
||||
};
|
||||
|
||||
function FrissitesiDatumCall() {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", "@Url.Action("GetIsFrissitesWarrning", "Home", new { area = "" })", true);
|
||||
xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8");
|
||||
xhr.onreadystatechange = function () {
|
||||
if (this.readyState === XMLHttpRequest.DONE && this.status === 200) {
|
||||
FrissitesiDatumCallSuccess(this.responseText);
|
||||
}
|
||||
}
|
||||
xhr.send();
|
||||
};
|
||||
|
||||
function EUgyCallSuccess(data) {
|
||||
var obj = jQuery.parseJSON(data);
|
||||
var date = new Date();
|
||||
setCookie(date, obj.frequencyRate);
|
||||
|
||||
if (obj) {
|
||||
var element = $(".messageCountBadge");
|
||||
if (element.length == 0) {
|
||||
setTimeout(function () { $(".messageCountBadge").attr('data-badge', obj.cnt); }, 2000);
|
||||
}
|
||||
else {
|
||||
$(".messageCountBadge").attr('data-badge', obj.cnt);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var interval = 0;
|
||||
|
||||
function FrissitesiDatumCallSuccess(data) {
|
||||
var obj = jQuery.parseJSON(data);
|
||||
var date = new Date();
|
||||
setCookieFrissitesDatum(date, obj.frequencyRate);
|
||||
|
||||
if (obj != null && obj.isFrissites) {
|
||||
$("#frissitesDatumDiv").show();
|
||||
var duration = obj.duration;
|
||||
|
||||
if (duration <= 900 && duration >= 300) {
|
||||
$(".main-header, #frissitesDatumDiv").css("background", "#FFECC7"); $(".selectTanev span span").css("background", "#FFECC7");
|
||||
}
|
||||
if (duration <= 300) {
|
||||
$(".main-header, #frissitesDatumDiv").css("background", "#FFBFC4"); $(".selectTanev span span").css("background", "#FFBFC4");
|
||||
}
|
||||
|
||||
var countDownTimer = 0;
|
||||
var actualTime = duration;
|
||||
resetInterval();
|
||||
interval = setInterval(function () {
|
||||
var minutes = parseInt(actualTime / 60, 10);
|
||||
var seconds = parseInt(actualTime % 60, 10);
|
||||
|
||||
minutes = minutes < 10 ? "0" + minutes : minutes;
|
||||
seconds = seconds < 10 ? "0" + seconds : seconds;
|
||||
$(".frissitesDatumText").text(minutes + ":" + seconds);
|
||||
countDownTimer = countDownTimer + 1;
|
||||
actualTime = duration - countDownTimer;
|
||||
|
||||
if (actualTime == 900) { $(".main-header, #frissitesDatumDiv").css("background", "#FFECC7"); $(".selectTanev span span").css("background", "#FFECC7"); KretaWindowHelper.notification("@AdminisztracioResource.Frissitesig15Perc", "warning"); }
|
||||
if (actualTime == 600) { $(".main-header, #frissitesDatumDiv").css("background", "#FFECC7"); $(".selectTanev span span").css("background", "#FFECC7"); KretaWindowHelper.notification("@AdminisztracioResource.Frissitesig10Perc", "warning"); }
|
||||
if (actualTime == 300) { $(".main-header, #frissitesDatumDiv").css("background", "#FFBFC4"); $(".selectTanev span span").css("background", "#FFBFC4"); KretaWindowHelper.notification("@AdminisztracioResource.Frissitesig5Perc", "error"); }
|
||||
}, 1000);
|
||||
}
|
||||
else {
|
||||
$("#frissitesDatumDiv").hide();
|
||||
}
|
||||
};
|
||||
|
||||
function resetInterval() {
|
||||
clearInterval(interval);
|
||||
interval = 0;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
deleteCookie('EUgyUzenetekRecheck');
|
||||
EUgyCall();
|
||||
|
||||
deleteCookie('FrissitesiDatum');
|
||||
FrissitesiDatumCall();
|
||||
});
|
||||
</script>
|
||||
|
||||
<script id="UserMenuTemplate" type="text/x-jQuery-tmpl">
|
||||
<div class="usermenu">
|
||||
<div class="pull-right topnotif">
|
||||
<div title="@LayoutResource.Termekportal">
|
||||
<a href="@Url.Action("Index", Constants.Controllers.Termekportal, new {area = Constants.Areas.Nyomtatvanyok})">
|
||||
<i class="fa fa-question"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pull-right topnotif">
|
||||
<div title="@LayoutResource.Tudasbazis">
|
||||
<a target="_blank" href="https://tudasbazis.ekreta.hu/"><i class="fa fa-book"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
@if (ClaimData.IsActivTanev && !ClaimData.IsDefaultAdminUser)
|
||||
{
|
||||
<div class="pull-right topnotif">
|
||||
<div title="@LayoutResource.Elearning">
|
||||
<a href="@Url.Action("Index", Constants.Controllers.ELearning, new { area = Constants.Areas.Adminisztracio })">
|
||||
<i class="fa fa-tasks"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@if (ClaimData.FelhasznaloSzerepkor == Kreta.Enums.SzerepkorTipusEnum.Adminisztrator)
|
||||
{
|
||||
<div class="pull-right topnotif ugyfelszolgalat_icon" title="@LayoutResource.Ugyfelszolgalat" onclick="JiraRestHelper.popUpUgyfelSzolgalatWindow();">
|
||||
</div>
|
||||
}
|
||||
@if (!ClaimData.IsDefaultAdminUser && !(ClaimData.BelepesiNev.ToUpper() == Constants.General.KretaTechnicalUserNev.ToUpper())
|
||||
&& ClaimData.IsAktivUzenetekMenu && !(ClaimData.FelhasznaloSzerepCsomagok.Contains(KretaClaimPackages.CsokkentettGondviselo.ClaimValue)))
|
||||
{
|
||||
<div class="pull-right topnotif">
|
||||
<div title="@LayoutResource.Uzenetek">
|
||||
<a href="@Url.Action("Uzenetek", Constants.Controllers.Home, new { area = string.Empty })" target="_blank">
|
||||
<i class="fa fa-envelope-o messageCountBadge" data-badge="${MessageCount}"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="pull-right topnotif disabledMenuItem">
|
||||
<div title="@LayoutResource.Ertesitesek">
|
||||
<a href="${EventUrl}">
|
||||
<i class="fa fa-bell-o" data-badge="${EventCount}"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@if (ClaimData.FelhasznaloSzerepkor == Kreta.Enums.SzerepkorTipusEnum.Naplo && !ClaimData.IsArchivIntezmeny)
|
||||
{
|
||||
<div class="pull-right topnotif">
|
||||
<div title="@LayoutResource.NemNaplozottTanorak">
|
||||
<a href="@Url.Action("Index", Constants.Controllers.NemNaplozottTanorak, new { area = Constants.Areas.Tanar})">
|
||||
<i class="fa fa-clock-o" id="NemNaplozottTanorakCount" data-badge="@ClaimData.NemNaplozottTanorakCount"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
{%if AdminHomePageUrl != "" %}
|
||||
@if (!ClaimData.IsArchivIntezmeny)
|
||||
{
|
||||
<div class="pull-right topnotif">
|
||||
<div title="@LayoutResource.Rendszeruzenetek">
|
||||
<a href="${AdminHomePageUrl}">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
{%/if%}
|
||||
@if (ClaimData.FelhasznaloSzerepkor == Kreta.Enums.SzerepkorTipusEnum.Naplo && !ClaimData.IsArchivIntezmeny)
|
||||
{
|
||||
<div class="pull-right topnotif">
|
||||
<div title="@LayoutResource.TanarDashboard">
|
||||
<a href="@Url.Action("Index", Constants.Controllers.TanarDashboard, new { area = Constants.Areas.Tanar})">
|
||||
<i class="fa fa-television"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="dropdown" title="@LayoutResource.ProfilMenu">
|
||||
<button class="userbar dropdown-toggle" type="button" id="usermenu_dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<div class="username">
|
||||
<p class="headeruserNameSpan xs-username sm-userName md-userName lg-userName">${UserName}</p>
|
||||
<p id="usermenu_timer" role="timer" aria-live="off" class="usermenu_timer"></p>
|
||||
</div>
|
||||
|
||||
<div class="userimg-sm">
|
||||
<img class="userimg-sm" style="border-width: 0px;" alt="" src="${ProfilImgSrc}" />
|
||||
</div>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="usermenu_dropdown">
|
||||
{%each(i, menu) UserMenuItems%}
|
||||
<li>
|
||||
<a href="${menu.Url}" onclick="${menu.ClientAction}">
|
||||
<i class="fa ${menu.CssClass}"></i>
|
||||
<span>${menu.Name}</span>
|
||||
</a>
|
||||
</li>
|
||||
{%/each%}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pull-right topnotif hidden">
|
||||
<div title="Popup">
|
||||
<input id="popupId" type="hidden" value="${NeedPopupId}" />
|
||||
<input id="popupAzonosito" type="hidden" value="${NeedPopupAzonosito}" />
|
||||
${ popupCheck() }
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
1262
KretaWeb/Views/Shared/Orarend.cshtml
Normal file
1262
KretaWeb/Views/Shared/Orarend.cshtml
Normal file
File diff suppressed because it is too large
Load diff
69
KretaWeb/Views/Shared/StepDisplayPartialView.cshtml
Normal file
69
KretaWeb/Views/Shared/StepDisplayPartialView.cshtml
Normal file
|
@ -0,0 +1,69 @@
|
|||
<div class="stepDisplayContainer" style="width: 100%; height: 50px;">
|
||||
<canvas id="stepDisplay" height="150" width="500" data-activestep="1" data-steps="3" data-radius="20" data-color="#000000" data-activecolor="#444444"></canvas>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var StepDisplayHelper = (function () {
|
||||
var stepDisplayHelper = function () { };
|
||||
|
||||
stepDisplayHelper.Draw = function () {
|
||||
var canvas = document.getElementById('stepDisplay');
|
||||
canvas.style.width = '100%';
|
||||
canvas.style.height = '100%';
|
||||
canvas.width = canvas.offsetWidth;
|
||||
canvas.height = canvas.offsetHeight;
|
||||
|
||||
if (canvas.getContext) {
|
||||
var ctx = canvas.getContext('2d');
|
||||
var Y = canvas.height / 2;
|
||||
var R = parseInt($('#stepDisplay').data("radius"));
|
||||
var w = canvas.width - (3 * R);
|
||||
var X = (2 * R);
|
||||
ctx.beginPath();
|
||||
ctx.lineWidth = 1;
|
||||
ctx.strokeStyle = $('#stepDisplay').data("color");
|
||||
ctx.font = '16px Arial';
|
||||
steps = parseInt($('#stepDisplay').data("steps"));
|
||||
for (var i = 0; i < steps; i++) {
|
||||
var kozepX = X - (i > 0 ? R : 0);
|
||||
|
||||
if ((i + 1) === parseInt($('#stepDisplay').data("activestep"))) {
|
||||
var activeStepCircle = new Path2D();
|
||||
activeStepCircle.arc(kozepX, Y, R - 1, 0, 2 * Math.PI, false);
|
||||
ctx.fillStyle = $('#stepDisplay').data("activecolor");
|
||||
ctx.fill(activeStepCircle);
|
||||
}
|
||||
|
||||
var txt = "" + (i + 1);
|
||||
var measure = ctx.measureText(txt);
|
||||
ctx.fillStyle = $('#stepDisplay').data("color");
|
||||
ctx.fillText(txt, kozepX - measure.width / 2, Y + 6, 2 * R);
|
||||
|
||||
ctx.arc(kozepX, Y, R, 0, 2 * Math.PI, false);
|
||||
ctx.stroke();
|
||||
if (i < (steps - 1)) {
|
||||
X += (w / (steps - 1)) - (2 * R);
|
||||
ctx.lineTo(X, Y);
|
||||
ctx.stroke();
|
||||
X += (2 * R);
|
||||
ctx.moveTo(X, Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stepDisplayHelper.SetProperties = function (model, activestep) {
|
||||
$('#stepDisplay').data({
|
||||
steps: model.Steps,
|
||||
radius: model.Radius,
|
||||
color: model.BaseColor,
|
||||
activecolor: model.SelectedColor,
|
||||
activestep: activestep
|
||||
});
|
||||
$('#stepDisplay').parent('div').css({ width: model.Width, height: model.Height });
|
||||
$('#stepDisplay').closest('.modalHeader').next().css("height", "calc(100% - " + model.Height + ")")
|
||||
}
|
||||
|
||||
return stepDisplayHelper;
|
||||
})();
|
||||
</script>
|
13
KretaWeb/Views/Shared/UploadFileErrorHandler.cshtml
Normal file
13
KretaWeb/Views/Shared/UploadFileErrorHandler.cshtml
Normal file
|
@ -0,0 +1,13 @@
|
|||
if (e != null && typeof e !== 'undefined' && e.XMLHttpRequest.responseText != "") {
|
||||
var messageText = e.XMLHttpRequest.responseText;
|
||||
try {
|
||||
var messageJson = CommonUtils.JSONparse(e.XMLHttpRequest.responseText);
|
||||
if (messageJson.Message) {
|
||||
var messageText = messageJson.Message;
|
||||
}
|
||||
} catch (ex) { }
|
||||
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", messageText, true);
|
||||
} else {
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", "@CommonResource.HibaTortentAFeltoltottFajlFeldolgozasaSoran", true);
|
||||
}
|
18
KretaWeb/Views/Shared/UploadFileValidation.cshtml
Normal file
18
KretaWeb/Views/Shared/UploadFileValidation.cshtml
Normal file
|
@ -0,0 +1,18 @@
|
|||
@using Kreta.Web.Models
|
||||
|
||||
@model UploadFileModel
|
||||
|
||||
var file = e.files[0];
|
||||
|
||||
if (file.size > @Model.MaxAllowedFileSizeInBytes) {
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", "@string.Format(CommonResource.TulNagyFajl, Math.Round((decimal)Model.MaxAllowedFileSizeInBytes / 1024 / 1024))", true);
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if (["@string.Join("\", \"", Model.AllowedFileExtensions)"].indexOf(file.extension.toLowerCase()) == -1)
|
||||
{
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", "@string.Format(CommonResource.NemMegfeleloFajlKiterjesztes, string.Join(", ", Model.AllowedFileExtensions))", true);
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
119
KretaWeb/Views/Shared/Zaradek_TobbesModositas_Popup.cshtml
Normal file
119
KretaWeb/Views/Shared/Zaradek_TobbesModositas_Popup.cshtml
Normal file
|
@ -0,0 +1,119 @@
|
|||
@using Kreta.Web.Areas.OsztalyCsoport.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Resources;
|
||||
|
||||
@model ZaradekTobbesModositasaModel
|
||||
|
||||
@using (Html.KretaForm("ZaradekTobbesModositasaForm"))
|
||||
{
|
||||
<div class="container-fluid">
|
||||
@Html.KretaValidationSummary()
|
||||
@Html.HiddenFor(x=>x.GridName)
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(x => x.TanuloNevArray, 3, 9)
|
||||
</div>
|
||||
@Html.Partial("_ZaradekPartial", Model.SorolasZaradekModel)
|
||||
</div>
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
var ZaradekTobbesModositasHelper = (function () {
|
||||
var zaradekTobbesModositasHelper = function () { };
|
||||
var formName = "ZaradekTobbesModositasaForm";
|
||||
var isOsztalyList = CommonUtils.parseBool("@Model.IsOsztalyList");
|
||||
var url = {
|
||||
SaveZaradekTobbesModositas: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ZaradekApi, action = "SaveZaradekTobbesModositas" })",
|
||||
OsszesZaradekTorlese: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ZaradekApi, action = "OsszesZaradekTorlese" })",
|
||||
LegutobbRogzitettZaradekTorlese: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ZaradekApi, action = "LegutobbRogzitettZaradekTorlese" })",
|
||||
}
|
||||
|
||||
zaradekTobbesModositasHelper.saveZaradekTobbesModositas = function () {
|
||||
var zaradekTobbesModositasaJson = {};
|
||||
var zaradekData = $("#" + formName).toObject();
|
||||
zaradekData.ZaradekSzovegList = getZaradekSzovegList();
|
||||
zaradekData.KeltezesHelye = $("#KeltezesHelye").val();
|
||||
zaradekData.KeltezesDatuma = $("#KeltezesDatuma").val();
|
||||
zaradekTobbesModositasaJson.TanuloCsoportIdList = @Html.Raw(Json.Encode(Model.TanuloCsoportIdList));
|
||||
zaradekTobbesModositasaJson.SorolasZaradekModel = zaradekData;
|
||||
AjaxHelper.DoValidationPost(url.SaveZaradekTobbesModositas, formName, zaradekTobbesModositasaJson, saveFeedBackOk);
|
||||
}
|
||||
|
||||
zaradekTobbesModositasHelper.zaradekTobbesModositasCancel = function () {
|
||||
KretaWindowHelper.destroyAllWindow();
|
||||
}
|
||||
|
||||
zaradekTobbesModositasHelper.osszesZaradekTorlese = function () {
|
||||
var zaradekTobbesModositasaJson = {};
|
||||
zaradekTobbesModositasaJson.TanuloCsoportIdList = @Html.Raw(Json.Encode(Model.TanuloCsoportIdList));
|
||||
|
||||
if (isOsztalyList) {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Kerdes)", "@(BesorolasResource.OsszesZaradekTorleseKerdes)", osszesZaradekTorlesWarning, zaradekTobbesModositasaJson);
|
||||
}
|
||||
else {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Kerdes)", "@(BesorolasResource.OsszesZaradekTorleseKerdes)", osszesZaradekTorles, zaradekTobbesModositasaJson);
|
||||
}
|
||||
}
|
||||
|
||||
zaradekTobbesModositasHelper.legutobbRogzitettZaradekTorlese = function () {
|
||||
var zaradekTobbesModositasaJson = {};
|
||||
zaradekTobbesModositasaJson.TanuloCsoportIdList = @Html.Raw(Json.Encode(Model.TanuloCsoportIdList));
|
||||
if (isOsztalyList) {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Kerdes)", "@(BesorolasResource.LegutobbRogzitettZaradekokTorleseKerdes)", legutobbRogzitettZaradekTorlesWarrning, zaradekTobbesModositasaJson);
|
||||
}
|
||||
else {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Kerdes)", "@(BesorolasResource.LegutobbRogzitettZaradekokTorleseKerdes)", legutobbRogzitettZaradekTorles, zaradekTobbesModositasaJson);
|
||||
}
|
||||
}
|
||||
|
||||
function saveFeedBackOk() {
|
||||
KretaGridHelper.refreshGrid($("#GridName").val());
|
||||
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow);
|
||||
}
|
||||
|
||||
function zaradekTorlesResponseOk() {
|
||||
KretaGridHelper.refreshGrid($("#GridName").val());
|
||||
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow);
|
||||
}
|
||||
|
||||
function feedbackErrorWithMessage(data) {
|
||||
KretaGridHelper.refreshGrid($("#GridName").val());
|
||||
var messageJson = CommonUtils.JSONparse(data.responseText);
|
||||
KretaWindowHelper.feedbackWindow("@(CommonResource.Hiba)", messageJson.Message, true);
|
||||
}
|
||||
|
||||
function osszesZaradekTorlesWarning(data) {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Figyelmeztetes)", "@(BesorolasResource.OsszesZaradekTorleseWarning)", osszesZaradekTorles, data);
|
||||
}
|
||||
function legutobbRogzitettZaradekTorlesWarrning(data) {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Figyelmeztetes)", "@(BesorolasResource.LegutobbRogzitettZaradekokTorleseWarning)", legutobbRogzitettZaradekTorles, data);
|
||||
}
|
||||
|
||||
function osszesZaradekTorles(data) {
|
||||
data.isOsztalyList = isOsztalyList;
|
||||
AjaxHelper.DoPost(url.OsszesZaradekTorlese, data, zaradekTorlesResponseOk, feedbackErrorWithMessage);
|
||||
}
|
||||
|
||||
function legutobbRogzitettZaradekTorles(data) {
|
||||
data.isOsztalyList = isOsztalyList;
|
||||
AjaxHelper.DoPost(url.LegutobbRogzitettZaradekTorlese, data, zaradekTorlesResponseOk, feedbackErrorWithMessage);
|
||||
}
|
||||
|
||||
function getZaradekSzovegList() {
|
||||
var zaradekSzovegList = [];
|
||||
var zaradekSzovegQuery = $("textarea[name^='ZaradekSzovegTextArea_']");
|
||||
zaradekSzovegQuery.each(function (index, value) {
|
||||
var zaradekSzovegTextArea = $(value);
|
||||
var szoveg = zaradekSzovegTextArea.val();
|
||||
var nyelvId = zaradekSzovegTextArea.data('nyelv-id');
|
||||
zaradekSzovegList[index] = {
|
||||
NyelvId: nyelvId,
|
||||
Szoveg: szoveg
|
||||
};
|
||||
});
|
||||
|
||||
return zaradekSzovegList;
|
||||
}
|
||||
|
||||
return zaradekTobbesModositasHelper;
|
||||
})();
|
||||
</script>
|
74
KretaWeb/Views/Shared/_AmiKepzesiJellemzok_Partial.cshtml
Normal file
74
KretaWeb/Views/Shared/_AmiKepzesiJellemzok_Partial.cshtml
Normal file
|
@ -0,0 +1,74 @@
|
|||
@using Kreta.BusinessLogic.HelperClasses
|
||||
@using Kreta.Web.Models
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Enums
|
||||
|
||||
@model AmiKepzesiJellemzokModel
|
||||
|
||||
@Html.HiddenFor(x => x.MuveszetiAgValidationAttr)
|
||||
@Html.HiddenFor(x => x.IsRequiredAmiKepzesiJellemzok)
|
||||
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.MuveszetiAgId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetMuveszetiAgList" }), "Text", "Value").Events(e => e.Change("function(e) {muveszetiAgChange(e)}")).AutoBind(true).RenderWithName(3, 3, allSizeSame: true)
|
||||
|
||||
<div id="tanszakTipusDiv">
|
||||
@Html.KretaComboBoxFor(x => x.TanszakTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTanszakTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, allSizeSame: true)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="MufajTipusRowDiv">
|
||||
@Html.KretaComboBoxFor(x => x.MufajTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetMufajTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, allSizeSame: true)
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function muveszetiAgChange(e) {
|
||||
var muveszetiAgComboboxValue = "";
|
||||
if ($.isNumeric(e)) {
|
||||
var muveszetiAgComboboxValue = e;
|
||||
}
|
||||
else {
|
||||
if (!CommonUtils.isNullOrUndefined(e.sender && !CommonUtils.isNullOrUndefined(e.sender.value()))) {
|
||||
muveszetiAgComboboxValue = e.sender.value();
|
||||
}
|
||||
}
|
||||
|
||||
if (!CommonUtils.isNullOrEmpty(muveszetiAgComboboxValue)
|
||||
&& "@(Model.ZenemuveszetiAgId)" === muveszetiAgComboboxValue) {
|
||||
$("#MufajTipusId").parent().removeClass("disabledItem");
|
||||
|
||||
if (CommonUtils.isNullOrEmpty($("#MufajTipusId").data("kendoComboBox").value())) {
|
||||
$("#MufajTipusId").data("kendoComboBox").value("@Model.MufajTipusIdDefaultValue");
|
||||
}
|
||||
setMufajTipusRequiredAttribute($("#MufajTipusId"), true);
|
||||
}
|
||||
else {
|
||||
$("#MufajTipusId").parent().addClass("disabledItem");
|
||||
$("#MufajTipusId").data("kendoComboBox").value('');
|
||||
setMufajTipusRequiredAttribute($("#MufajTipusId"), false);
|
||||
}
|
||||
};
|
||||
|
||||
function setMufajTipusRequiredAttribute(e, isRequired) {
|
||||
if (isRequired) {
|
||||
$("#MuveszetiAgValidationAttr").val(true);
|
||||
if ($("[for*='MufajTipusId']").text().indexOf("*") === -1 ) {
|
||||
$("[for*='MufajTipusId']").append($("<span>", { "class": "required-indicator", "style": "padding-left:4px" }).text("*"));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$("#MuveszetiAgValidationAttr").val(false);
|
||||
$("[for*='MufajTipusId'] .required-indicator").remove();
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
if (CommonUtils.isNullOrEmpty($("#MuveszetiAgId").data("kendoComboBox").value())) {
|
||||
$("#MufajTipusId").parent().addClass("disabledItem");
|
||||
$("#MufajTipusId").data("kendoComboBox").value('');
|
||||
setMufajTipusRequiredAttribute($("#MufajTipusId"), false);
|
||||
} else {
|
||||
muveszetiAgChange($("#MuveszetiAgId").data("kendoComboBox").value());
|
||||
}
|
||||
});
|
||||
</script>
|
466
KretaWeb/Views/Shared/_Cim_Elerhetoseg_Partial.cshtml
Normal file
466
KretaWeb/Views/Shared/_Cim_Elerhetoseg_Partial.cshtml
Normal file
|
@ -0,0 +1,466 @@
|
|||
@using Kreta.BusinessLogic.HelperClasses
|
||||
@using Kreta.Web.Models
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Enums
|
||||
|
||||
@model CimElerhetosegModel
|
||||
|
||||
<script>
|
||||
|
||||
function IranyitoszamFilterData() {
|
||||
var ret = KretaComboBoxHelper.getServerFilteringComboBoxTextData("#Iranyitoszam");
|
||||
return ret;
|
||||
}
|
||||
</script>
|
||||
|
||||
@Html.HiddenFor(x => x.Id)
|
||||
@Html.HiddenFor(x => x.FelhasznaloId)
|
||||
@Html.HiddenFor(x => x.IsAlapertelmezettModosithato)
|
||||
@Html.HiddenFor(x => x.TelefonKotelezo)
|
||||
@Html.HiddenFor(x => x.EmailcimKotelezo)
|
||||
@Html.HiddenFor(x => x.EmailTipusKotelezo)
|
||||
@Html.HiddenFor(x => x.IsGondviseloElerhetoseg)
|
||||
@Html.HiddenFor(x => x.IsGondviseloJelszoIgenylo)
|
||||
@Html.HiddenFor(x => x.KulfoldiCimValidationAttr)
|
||||
|
||||
@if (Model.IsGondviseloElerhetoseg)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(expression: x => x.GondviseloId, url: Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetGondviseloList" }) + "?tanuloId=" + Model.FelhasznaloId, htmlAttributes: Model.GondviseloId.HasValue ? new Dictionary<string, object>() { { "readonly", "readonly" } } : new Dictionary<string, object>()).AutoBind(true).RenderWithName(2, 4)
|
||||
</div>
|
||||
}
|
||||
|
||||
<div>
|
||||
@(Html.Kendo().DataSource<IranyitoszamTelepulesListCO>()
|
||||
.Name("IranyitoszamokTelepulesekDS")
|
||||
.Custom(c => c
|
||||
.Transport(t => t.Read(r => r.Url(Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetIranyitoszamokEsTelepulesek" })).Type(HttpVerbs.Get)))
|
||||
.Schema(s => s.Model(new { id = "Iranyitoszam" }))
|
||||
.Group(g => g.Add(m => m.TelepulesNev))
|
||||
))
|
||||
</div>
|
||||
|
||||
<div id="HiddenBeforeGondviseloSelect">
|
||||
<div class="row tanuloval-egyezik">
|
||||
@Html.KretaCheckBoxFor(x => x.TanulovalEgyezik).RenderWithName(2, 4)
|
||||
</div>
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.CimSectionVisible))
|
||||
{
|
||||
<div class="@CimElerhetosegConstant.CimSectionVisible">
|
||||
@if (Model.IsGondviseloJelszoIgenylo)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(m => m.GondviseloNev_JelszoIgenylo, new Dictionary<string, object> { { "placeholder", TanuloResource.Nev } }).RenderWithName(2, 4)
|
||||
</div>
|
||||
<div class="row">
|
||||
<input type="hidden" id="nhdOktatasiAzonosito" value="@Model.OktatasiAzonosito_JelszoIgenylo" />
|
||||
@Html.KretaMaskedTextBoxFor(x => x.OktatasiAzonosito_JelszoIgenylo, "00000000000", new Dictionary<string, object> { { "placeholder", TanuloResource.OktatasiAzonosito } }).RenderWithName(2, 4)
|
||||
@Html.KretaComboBoxFor(x => x.RokonsagiFok_JelszoIgenylo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetRokonsagiFokList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
|
||||
</div>
|
||||
}
|
||||
<div class="row OrszagEsCimTipus">
|
||||
@Html.KretaComboBoxFor(x => x.Orszag, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = Model.IsKozpontilagSzinkronizalt ? "GetOrszagFullList" : "GetOrszagList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimOrszagTooltip)
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.AllandoLakcimCimTipus))
|
||||
{
|
||||
@Html.KretaLabelFor(x => x.CimTipusStr, 3, 3)
|
||||
@Html.HiddenFor(x => x.CimTipus)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.KretaComboBoxFor(x => x.CimTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetCimTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
|
||||
}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="magyarorszagicim">
|
||||
@(Html.KretaComboBoxFor(x => x.Iranyitoszam, null, CimElerhetosegConstant.Nameof_Iranyitoszam, CimElerhetosegConstant.Nameof_Iranyitoszam, isAutoComplete: true, isServerFiltering: false, isCustomAllowed: true)
|
||||
.DataSource("IranyitoszamokTelepulesekDS")
|
||||
.AutoBind(false)
|
||||
.Filter(FilterType.StartsWith)
|
||||
.Placeholder(CommonResource.KezdjeElGelepniIrSzamot)
|
||||
.Events(e =>
|
||||
e.Change("function(e) {changeIranyTelepComboBox(e, '" + CimElerhetosegConstant.Nameof_Iranyitoszam + "')}")
|
||||
.Open("function(e) {openIranyTelepComboBox(e, '" + CimElerhetosegConstant.Nameof_Iranyitoszam + "')}"))
|
||||
.RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekPostaiIranyitoszamaTooltip, changeEventOverride: false))
|
||||
@(Html.KretaComboBoxFor(x => x.HelysegNev, null, CimElerhetosegConstant.TelepulesNev, CimElerhetosegConstant.TelepulesNev, isAutoComplete: true, isServerFiltering: false, isCustomAllowed: true)
|
||||
.DataSource("IranyitoszamokTelepulesekDS")
|
||||
.Filter(FilterType.Contains)
|
||||
.Placeholder(CommonResource.KezdjeElGelepniHelysegNevet)
|
||||
.AutoBind(false)
|
||||
.Events(e =>
|
||||
e.Change("function(e) {changeIranyTelepComboBox(e, '" + CimElerhetosegConstant.TelepulesNev + "')}")
|
||||
.Open("function(e) {openIranyTelepComboBox(e, '" + CimElerhetosegConstant.TelepulesNev + "')}"))
|
||||
.RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimHelysegTooltip, changeEventOverride: false))
|
||||
</div>
|
||||
<div class="kulfoldicim">
|
||||
@Html.KretaTextBoxFor(x => x.Iranyitoszam_Str).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekPostaiIranyitoszamaTooltip)
|
||||
@Html.KretaTextBoxFor(x => x.HelysegNev_Str).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimHelysegTooltip)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.KozteruletNev).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekKozteruletenekTeljesNeveTooltip)
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="magyarorszagicim">
|
||||
@Html.KretaComboBoxFor(x => x.KozteruletTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetKozteruletJellegList" }), "Text", "Value").RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimKozteruletJellegeTooltip)
|
||||
</div>
|
||||
<div class="kulfoldicim">
|
||||
@Html.KretaTextBoxFor(x => x.KozteruletTipus_Str).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimKozteruletJellegeTooltip)
|
||||
</div>
|
||||
@Html.KretaTextBoxFor(x => x.Hazszam).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekHazszamaTooltip)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.Emelet).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekEmeletSzamaTooltip)
|
||||
@Html.KretaTextBoxFor(x => x.Ajto).RenderWithName(2, 4, tooltipResource: TanuloResource.LakcimenekAjtoSzamaTooltip)
|
||||
</div>
|
||||
<div class="@CimElerhetosegConstant.AlapertelmezettCimVisible row">
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.AlapertelmezettCimVisible) && !Model.AlapertelmezettCim)
|
||||
{
|
||||
@Html.KretaCheckBoxFor(x => x.AlapertelmezettCim).RenderWithName(2, 4)
|
||||
}
|
||||
else if (Model.IsGondviseloElerhetoseg && Model.GondviselokAlapertelmezettCimmel != null)
|
||||
{
|
||||
@Html.KretaCheckBoxFor(x => x.AlapertelmezettCim).RenderWithName(2, 4)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.HiddenFor(x => x.AlapertelmezettCim)
|
||||
}
|
||||
</div>
|
||||
@if ((Model.FormSettings.Contains(CimElerhetosegConstant.EmailSectionVisible) || Model.FormSettings.Contains(CimElerhetosegConstant.TelSectionVisible)) && !Model.FormSettings.Contains(CimElerhetosegConstant.SeparatorRowHide))
|
||||
{
|
||||
<div class="row"></div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.EmailSectionVisible))
|
||||
{
|
||||
<div class="@CimElerhetosegConstant.EmailSectionVisible">
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.TanuloElerhetosegEmailVisible))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.TanuloElerhetosegEmailId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetEmailList" }) + "?tanuloId=" + Model.FelhasznaloId, isSingleElementSet: false).Events(e => e.Change("changeEmail")).AutoBind(true).RenderWithName(2, 4)
|
||||
</div>
|
||||
}
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.Emailcim_Input).RenderWithName(2, 4, tooltipResource: TanuloResource.ElerhetosegEmailTooltip)
|
||||
@Html.KretaComboBoxFor(x => x.EmailTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetEmailTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
|
||||
</div>
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.AlapertelmezettEmailVisible))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.AlapertelmezettEmail).RenderWithName(2, 4)
|
||||
</div>
|
||||
}
|
||||
<div class="row"></div>
|
||||
</div>
|
||||
}
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.TelSectionVisible))
|
||||
{
|
||||
<div class="@CimElerhetosegConstant.TelSectionVisible">
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.TanuloElerhetosegTelVisible))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.TanuloElerhetosegTelId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetTelList" }) + "?tanuloId=" + Model.FelhasznaloId, isSingleElementSet: false).Events(e => e.Change("changeTelefon")).AutoBind(true).RenderWithName(2, 4)
|
||||
</div>
|
||||
}
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.Telefon).RenderWithName(2, 4, tooltipResource: TanuloResource.ElerhetosegTelefonszamTooltip)
|
||||
@Html.KretaComboBoxFor(x => x.TelefonTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetTelefonTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
|
||||
|
||||
</div>
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.VisibleTelefon2))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.Telefon2).RenderWithName(2, 4)
|
||||
@Html.KretaComboBoxFor(x => x.TelefonTipus2, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetTelefonTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(2, 4)
|
||||
|
||||
</div>
|
||||
}
|
||||
@if (Model.FormSettings.Contains(CimElerhetosegConstant.AlapertelmezettTelVisible))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.AlapertelmezettTel).RenderWithName(2, 4)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var iranyitoszam = "@CimElerhetosegConstant.Nameof_Iranyitoszam";
|
||||
var helysegnev = "@CimElerhetosegConstant.Nameof_HelysegNev";
|
||||
|
||||
function changeIranyTelepComboBox(e, dsProp) {
|
||||
var isSelectedItemUndefined = false;
|
||||
var selectedItem = e.sender.dataItem();
|
||||
if (selectedItem === undefined) {
|
||||
isSelectedItemUndefined = true;
|
||||
selectedItem = {
|
||||
TelepulesNev: $("#" + helysegnev).val(),
|
||||
Iranyitoszam: $("#" + iranyitoszam).val()
|
||||
};
|
||||
}
|
||||
|
||||
var telepulesSelected = selectedItem.TelepulesNev;
|
||||
var iranyitoszamSelected = selectedItem.Iranyitoszam;
|
||||
|
||||
$("#" + helysegnev + "_Str").val(telepulesSelected);
|
||||
$("#" + iranyitoszam + "_Str").val(iranyitoszamSelected);
|
||||
|
||||
if (isSelectedItemUndefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (dsProp === iranyitoszam) {
|
||||
$("#" + helysegnev).data("kendoComboBox").value(telepulesSelected);
|
||||
} else {
|
||||
$("#" + iranyitoszam).data("kendoComboBox").value(iranyitoszamSelected);
|
||||
}
|
||||
}
|
||||
|
||||
function openIranyTelepComboBox(e, dsProp) {
|
||||
KretaComboBoxHelper.onOpenDropdown(e)
|
||||
IranyitoszamokTelepulesekDS.group({ field: dsProp === iranyitoszam ? "@CimElerhetosegConstant.TelepulesNev" : iranyitoszam, dir: "asc" });
|
||||
IranyitoszamokTelepulesekDS.sort({ field: dsProp, dir: "asc" });
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
var firstFill = true;
|
||||
var newcim = CommonUtils.parseBool("@Model.FormSettings.Contains(CimElerhetosegConstant.IsNew)") || CommonUtils.isNullOrUndefined(@Model.Id);
|
||||
var $gondviseloId = $("#GondviseloId");
|
||||
$gondviseloId.on("focusout", gondviseloIdchanged);
|
||||
$gondviseloId.on("change", gondviseloIdchanged);
|
||||
|
||||
var tanulovalEgyezik = "@CimElerhetosegConstant.Nameof_TanulovalEgyezik";
|
||||
var $tanulovalEgyezik = $("#" + tanulovalEgyezik);
|
||||
var $tanulovalEgyezikCheckBox = $tanulovalEgyezik[0];
|
||||
$tanulovalEgyezik.on("focusout", tanulovalEgyezikchanged);
|
||||
$tanulovalEgyezik.on("change", tanulovalEgyezikchanged);
|
||||
|
||||
var orszag = "@CimElerhetosegConstant.Nameof_Orszag";
|
||||
var $orszag = $("#" + orszag);
|
||||
var $orszagComboBox = $orszag.data("kendoComboBox");
|
||||
$orszag.on("focusout", orszagchanged);
|
||||
$orszag.on("change", orszagchanged);
|
||||
|
||||
var iranyitoszam = "@CimElerhetosegConstant.Nameof_Iranyitoszam";
|
||||
var $iranyitoszam = $("#" + iranyitoszam);
|
||||
var $iranyitoszamComboBox = $iranyitoszam.data("kendoComboBox");
|
||||
|
||||
var helysegnev = "@CimElerhetosegConstant.Nameof_HelysegNev";
|
||||
var $helysegnev = $("#" + helysegnev);
|
||||
var $helysegNeveComboBox = $helysegnev.data("kendoComboBox");
|
||||
|
||||
var kozteruletTipus = "@CimElerhetosegConstant.Nameof_KozteruletTipus";
|
||||
var $kozteruletTipus = $("#" + kozteruletTipus);
|
||||
var $kozteruletTipusComboBox = $kozteruletTipus.data("kendoComboBox");
|
||||
$kozteruletTipus.on("focusout", kozteruletTipuschanged);
|
||||
$kozteruletTipus.on("change", kozteruletTipuschanged);
|
||||
|
||||
var gondviselokAlapertelmezettCimmel = [];
|
||||
|
||||
@if (Model.IsGondviseloElerhetoseg && Model.GondviselokAlapertelmezettCimmel != null) {
|
||||
foreach (var d in Model.GondviselokAlapertelmezettCimmel)
|
||||
{
|
||||
@:gondviselokAlapertelmezettCimmel.push("@d");
|
||||
}
|
||||
}
|
||||
|
||||
function gondviseloIdchanged() {
|
||||
if ($gondviseloId.val() != '' || !CommonUtils.parseBool("@Model.IsGondviseloElerhetoseg")) {
|
||||
$("#HiddenBeforeGondviseloSelect").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$("#HiddenBeforeGondviseloSelect").addClass('displayNone');
|
||||
}
|
||||
tanulovalEgyezikchanged();
|
||||
if (!CommonUtils.parseBool("@Model.IsGondviseloElerhetoseg") && CommonUtils.parseBool("@Model.FormSettings.Contains(CimElerhetosegConstant.TelSectionVisible)")) {
|
||||
$("." + "@CimElerhetosegConstant.TelSectionVisible").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$("." + "@CimElerhetosegConstant.TelSectionVisible").addClass('displayNone');
|
||||
}
|
||||
if (!CommonUtils.parseBool("@Model.IsGondviseloElerhetoseg") && CommonUtils.parseBool("@Model.FormSettings.Contains(CimElerhetosegConstant.EmailSectionVisible)")) {
|
||||
$("." + "@CimElerhetosegConstant.EmailSectionVisible").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$("." + "@CimElerhetosegConstant.EmailSectionVisible").addClass('displayNone');
|
||||
}
|
||||
if ((CommonUtils.isUndefined($gondviseloId.val()) || $gondviseloId.val() != '') && CommonUtils.parseBool("@Model.FormSettings.Contains(CimElerhetosegConstant.CimSectionVisible)")) {
|
||||
$("." + "@CimElerhetosegConstant.CimSectionVisible").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$("." + "@CimElerhetosegConstant.CimSectionVisible").addClass('displayNone');
|
||||
}
|
||||
if (CommonUtils.parseBool("@Model.IsGondviseloElerhetoseg")) {
|
||||
if (gondviselokAlapertelmezettCimmel.includes($gondviseloId.val())) {
|
||||
$("." + "@CimElerhetosegConstant.AlapertelmezettCimVisible").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
if (!CommonUtils.parseBool("@Model.AlapertelmezettCim")) {
|
||||
$("." + "@CimElerhetosegConstant.AlapertelmezettCimVisible").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$("." + "@CimElerhetosegConstant.AlapertelmezettCimVisible").addClass('displayNone');
|
||||
$('#AlapertelmezettCim').prop("checked", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function tanulovalEgyezikchanged() {
|
||||
if (!$tanulovalEgyezikCheckBox.checked) {
|
||||
if (!CommonUtils.isNullOrUndefined($orszagComboBox) && !CommonUtils.isNullOrEmpty($orszagComboBox) && !firstFill && !CommonUtils.parseBool("@Model.IsGondviseloElerhetoseg")) {
|
||||
$orszagComboBox.select(-1);
|
||||
$orszagComboBox.value('');
|
||||
}
|
||||
$("." + "@CimElerhetosegConstant.CimSectionVisible").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$("." + "@CimElerhetosegConstant.CimSectionVisible").addClass('displayNone');
|
||||
}
|
||||
SetControlsVisibleByOrszag();
|
||||
}
|
||||
function orszagchanged() { SetControlsVisibleByOrszag(); }
|
||||
function helysegNevIranyitoszamAlapjan() {
|
||||
if ((!newcim && !firstFill) || CommonUtils.isNullOrEmpty($helysegNeveComboBox.value())) {
|
||||
if ($iranyitoszamComboBox.value() != "") {
|
||||
AjaxHelper.DoPostQuery("@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Model.ComboBoxApiControllerName, action = "GetHelysegNevByIranyitoszamList" })", null, { 'iranyitoSzam': $iranyitoszamComboBox.value() }, updateTelepulesNev);
|
||||
$("#" + iranyitoszam + "_Str").val($iranyitoszamComboBox.value());
|
||||
}
|
||||
else { $helysegNeveComboBox.select(-1); $helysegNeveComboBox.value(''); }
|
||||
}
|
||||
}
|
||||
function updateTelepulesNev(data) {
|
||||
if (data.length > 0) {
|
||||
$helysegNeveComboBox.value(data[0].TelepulesNev);
|
||||
$("#" + helysegnev + "_Str").val(data[0].TelepulesNev);
|
||||
}
|
||||
}
|
||||
function helysegnevchanged() {
|
||||
if (!CommonUtils.isNullOrEmpty($helysegNeveComboBox.value().trim())) {
|
||||
$("#" + helysegnev + "_Str").val($helysegNeveComboBox.value());
|
||||
}
|
||||
}
|
||||
|
||||
function kozteruletTipuschanged() {
|
||||
if (!CommonUtils.isNullOrUndefined($kozteruletTipusComboBox)) {
|
||||
$kozteruletTipusComboBox.value($kozteruletTipusComboBox.value());
|
||||
$("#" + kozteruletTipus + "_Str").val($kozteruletTipusComboBox.text());
|
||||
}
|
||||
}
|
||||
|
||||
function SetControlsVisibleByOrszag() {
|
||||
var isTanulovalEgyezik = $tanulovalEgyezikCheckBox.checked;
|
||||
var isMagyarorszagSelected = $orszag.val() == "@((int)Kreta.Enums.OrszagTipusEnum.Magyarorszag)" || CommonUtils.parseBool("@Model.FormSettings.Contains(CimElerhetosegConstant.CsakMagyarorszag)");
|
||||
|
||||
var magyarorszagIndex = -1;
|
||||
|
||||
if (isMagyarorszagSelected) {
|
||||
magyarorszagIndex = KretaComboBoxHelper.getIndexForValue(orszag, "@((int)Kreta.Enums.OrszagTipusEnum.Magyarorszag)");
|
||||
}
|
||||
|
||||
if (isMagyarorszagSelected) {
|
||||
$('.magyarorszagicim').removeClass('displayNone');
|
||||
$('.kulfoldicim').addClass('displayNone');
|
||||
if (CommonUtils.parseBool("@Model.FormSettings.Contains(CimElerhetosegConstant.CsakMagyarorszag)")) {
|
||||
$orszagComboBox.select(magyarorszagIndex);
|
||||
//$orszagComboBox.enable(false);
|
||||
$(".OrszagEsCimTipus").hide();
|
||||
}
|
||||
}
|
||||
else {
|
||||
$('.magyarorszagicim').addClass('displayNone');
|
||||
$('.kulfoldicim').removeClass('displayNone');
|
||||
}
|
||||
|
||||
//set combobox values
|
||||
if ((isMagyarorszagSelected && !firstFill && !isTanulovalEgyezik && !newcim) ||
|
||||
(isMagyarorszagSelected && firstFill && (isTanulovalEgyezik || newcim))) {
|
||||
$orszagComboBox.select(magyarorszagIndex);
|
||||
$iranyitoszamComboBox.select(-1);
|
||||
$iranyitoszamComboBox.value('');
|
||||
$kozteruletTipusComboBox.select(-1);
|
||||
$kozteruletTipusComboBox.value('');
|
||||
$helysegNeveComboBox.select(-1);
|
||||
$helysegNeveComboBox.value('');
|
||||
}
|
||||
|
||||
//set textbox values
|
||||
if (!isTanulovalEgyezik && firstFill && !newcim && isMagyarorszagSelected) {
|
||||
helysegNevIranyitoszamAlapjan();
|
||||
helysegnevchanged();
|
||||
kozteruletTipuschanged();
|
||||
}
|
||||
if (isTanulovalEgyezik || (newcim && isMagyarorszagSelected) || (!firstFill && !newcim && isMagyarorszagSelected)) {
|
||||
if (isTanulovalEgyezik && CommonUtils.isNullOrUndefined($gondviseloId.val()) && CommonUtils.isNullOrEmpty($gondviseloId.val()) && !CommonUtils.isNullOrUndefined($orszagComboBox)) {
|
||||
$orszagComboBox.select(-1);
|
||||
$orszagComboBox.value('');
|
||||
}
|
||||
setDefaultTextBoxValues(true, '');
|
||||
}
|
||||
if (!isTanulovalEgyezik && !firstFill && !isMagyarorszagSelected) {
|
||||
setDefaultTextBoxValues(false, '');
|
||||
}
|
||||
firstFill = false;
|
||||
if (!CommonUtils.isNullOrUndefined($('#CimTipus').data('kendoComboBox'))) {
|
||||
$('#CimTipus').data('kendoComboBox').value($('#CimTipus').data('kendoComboBox').value());
|
||||
}
|
||||
}
|
||||
|
||||
function setDefaultTextBoxValues(updateifempty, value) {
|
||||
$.each($('.kulfoldicim').find('[id$=_Str]'), function () {
|
||||
if (!updateifempty || CommonUtils.isNullOrEmpty($(this).val())) {
|
||||
$(this).val(value);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (CommonUtils.parseBool("@Model.FormSettings.Contains(CimElerhetosegConstant.AlapertelmezettNemModosithato)")) {
|
||||
$('[id*=Alapertelmezett]').prop('disabled', true);
|
||||
}
|
||||
|
||||
setTimeout(function () {
|
||||
if (CommonUtils.parseBool("@Model.IsGondviseloElerhetoseg")) {
|
||||
$('.tanuloval-egyezik').removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$('.tanuloval-egyezik').addClass('displayNone');
|
||||
}
|
||||
gondviseloIdchanged();
|
||||
}, 100);
|
||||
|
||||
var isKozpontilagSzinkronizalt = !CommonUtils.isNullOrUndefined($("#IsKozpontilagSzinkronizalt").val()) && CommonUtils.parseBool($("#IsKozpontilagSzinkronizalt").val());
|
||||
var isAllandoLakcim = $("#CimTipus").val() == "@((int)Kreta.Enums.CimTipusEnum.allando_lakcim)";
|
||||
var isModositas = !CommonUtils.isNullOrUndefined(@Model.Id);
|
||||
|
||||
if (isKozpontilagSzinkronizalt && isAllandoLakcim && isModositas) {
|
||||
setItemisKozpontilagSzinkronizalt("Orszag");
|
||||
setItemisKozpontilagSzinkronizalt("CimTipus");
|
||||
setItemisKozpontilagSzinkronizalt("Iranyitoszam");
|
||||
setItemisKozpontilagSzinkronizalt("Iranyitoszam_Str");
|
||||
setItemisKozpontilagSzinkronizalt("HelysegNev");
|
||||
setItemisKozpontilagSzinkronizalt("HelysegNev_Str");
|
||||
setItemisKozpontilagSzinkronizalt("KozteruletNev");
|
||||
setItemisKozpontilagSzinkronizalt("KozteruletTipus");
|
||||
setItemisKozpontilagSzinkronizalt("KozteruletTipus_Str");
|
||||
setItemisKozpontilagSzinkronizalt("Hazszam");
|
||||
setItemisKozpontilagSzinkronizalt("Emelet");
|
||||
setItemisKozpontilagSzinkronizalt("Ajto");
|
||||
}
|
||||
|
||||
function setItemisKozpontilagSzinkronizalt(itemId) {
|
||||
$("#" + itemId).closest('div').addClass('disabledItem');
|
||||
var kozpontilagSzinkronizaltNemModosithatoText = "@AlkalmazottResource.KozpontilagSzinkronizaltNemModosithato";
|
||||
var label = $("[for*='" + $("#" + itemId).prop('name') + "']");
|
||||
var vanTooltipje = label.parent().hasClass('kretaLabelTooltip');
|
||||
if (vanTooltipje) {
|
||||
label.find('.kretaLabelTooltipText').html(kozpontilagSzinkronizaltNemModosithatoText);
|
||||
}
|
||||
else {
|
||||
label.parent().addClass('kretaLabelTooltip');
|
||||
label.html(label.html() + "<img class='kretaLabelTooltipImg'><span class='kretaLabelTooltipText'>" + kozpontilagSzinkronizaltNemModosithatoText + "</span>");
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
181
KretaWeb/Views/Shared/_Gondviselo_Cim_Elerhetoseg_Partial.cshtml
Normal file
181
KretaWeb/Views/Shared/_Gondviselo_Cim_Elerhetoseg_Partial.cshtml
Normal file
|
@ -0,0 +1,181 @@
|
|||
@using Kreta.Web.Models
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Enums
|
||||
|
||||
@model GondviseloCimElerhetosegModel
|
||||
|
||||
<script>
|
||||
function GondviseloIranyitoszamFilterData() {
|
||||
var ret = KretaComboBoxHelper.getServerFilteringComboBoxTextData("#Iranyitoszam_Gondviselo");
|
||||
return ret;
|
||||
}
|
||||
</script>
|
||||
|
||||
@Html.HiddenFor(x => x.TanuloId_Gondviselo)
|
||||
@Html.HiddenFor(x => x.IsAlapertelmezettModosithato_Gondviselo)
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.Emailcim_Gondviselo_Input).RenderWithName(3, 3)
|
||||
@Html.KretaTextBoxFor(x => x.Telefon_Gondviselo).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaEmpty()
|
||||
@Html.KretaComboBoxFor(x => x.TelefonTipus_Gondviselo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTelefonTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.TanulovalEgyezik_Gondviselo).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div id="GondviseloHiddenInputsDiv2">
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.Orszag_Gondviselo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetOrszagList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekOrszagaTooltip)
|
||||
@Html.KretaComboBoxFor(x => x.CimTipus_Gondviselo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetCimTipusList" }), "Text", "Value").AutoBind(true).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="magyarorszagigondviselocim">
|
||||
@Html.KretaComboBoxFor(x => x.Iranyitoszam_Gondviselo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetIranyitoszamList" }), "Iranyitoszam", "Iranyitoszam", isCustomAllowed: true, isServerFiltering: false).Filter(FilterType.StartsWith).AutoBind(false).Filter(FilterType.StartsWith).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekPostaiIranyitoszamaTooltip)
|
||||
@Html.KretaCascadeComboBoxFor(x => x.HelysegNev_Gondviselo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetHelysegNevList" }), "GondviseloIranyitoszam", "TelepulesNev", "TelepulesNev", isAutoComplete: true, isCustomAllowed: true).AutoBind(false).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekHelysegeTooltip)
|
||||
</div>
|
||||
<div class="kulfoldigondviselocim">
|
||||
@Html.KretaTextBoxFor(x => x.Iranyitoszam_Gondviselo_Str).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekPostaiIranyitoszamaTooltip)
|
||||
@Html.KretaTextBoxFor(x => x.HelysegNev_Gondviselo_Str).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekHelysegeTooltip)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.KozteruletNev_Gondviselo).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekKozteruletenekTeljesNeveTooltip)
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="magyarorszagigondviselocim">
|
||||
@Html.KretaComboBoxFor(x => x.KozteruletTipus_Gondviselo, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetKozteruletJellegList" }), "Text", "Value").RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekKozteruletJellegeTooltip)
|
||||
</div>
|
||||
<div class="kulfoldigondviselocim">
|
||||
@Html.KretaTextBoxFor(x => x.KozteruletTipus_Gondviselo_Str).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekKozteruletJellegeTooltip)
|
||||
</div>
|
||||
@Html.KretaTextBoxFor(x => x.Hazszam_Gondviselo).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekHazszamaTooltip)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.Emelet_Gondviselo).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekEmeletSzamaTooltip)
|
||||
@Html.KretaTextBoxFor(x => x.Ajto_Gondviselo).RenderWithName(3, 3, tooltipResource: TanuloResource.TanuloGondviseloAllandoLakcimenekAjtoSzamaTooltip)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var g_orszag = "Orszag_Gondviselo";
|
||||
var $g_orszag = $("#" + g_orszag);
|
||||
var $g_orszagComboBox = $g_orszag.data("kendoComboBox");
|
||||
$g_orszag.on("focusout", G_SetControlsVisibleByOrszag);
|
||||
$g_orszag.on("change", G_SetControlsVisibleByOrszag);
|
||||
|
||||
var g_helysegnev = "HelysegNev_Gondviselo";
|
||||
var $g_helysegnev = $("#" + g_helysegnev);
|
||||
$g_helysegnev.on("focusout", G_helysegnevchanged);
|
||||
$g_helysegnev.on("change", G_helysegnevchanged);
|
||||
|
||||
var g_iranyitoszam = "Iranyitoszam_Gondviselo";
|
||||
var $g_iranyitoszam = $("#" + g_iranyitoszam);
|
||||
var $g_iranyitoszamComboBox = $g_iranyitoszam.data("kendoComboBox");
|
||||
$g_iranyitoszam.on("focusout", G_helysegNevIranyitoszamAlapjan);
|
||||
$g_iranyitoszam.on("change", G_helysegNevIranyitoszamAlapjan);
|
||||
|
||||
var g_tanulovalEgyezik = "TanulovalEgyezik_Gondviselo";
|
||||
var $g_tanulovalEgyezik = $("#" + g_tanulovalEgyezik);
|
||||
var $g_tanulovalEgyezikCheckBox = $g_tanulovalEgyezik[0];
|
||||
$g_tanulovalEgyezik.on("focusout", G_tanulovalEgyezikchanged);
|
||||
$g_tanulovalEgyezik.on("change", G_tanulovalEgyezikchanged);
|
||||
|
||||
var g_kozteruletTipus = "KozteruletTipus_Gondviselo";
|
||||
var $g_kozteruletTipus = $("#" + g_kozteruletTipus);
|
||||
var $g_kozteruletTipusComboBox = $g_kozteruletTipus.data("kendoComboBox");
|
||||
$g_kozteruletTipus.on("focusout", G_kozteruletTipuschanged);
|
||||
$g_kozteruletTipus.on("change", G_kozteruletTipuschanged);
|
||||
|
||||
var $g_helysegNeveComboBox = $g_helysegnev.data("kendoComboBox");
|
||||
|
||||
setTimeout(function () {
|
||||
G_tanulovalEgyezikchanged();
|
||||
}, 100);
|
||||
|
||||
function G_tanulovalEgyezikchanged() {
|
||||
if (!$g_tanulovalEgyezikCheckBox.checked) {
|
||||
$("#GondviseloHiddenInputsDiv2").removeClass('displayNone');
|
||||
}
|
||||
else {
|
||||
$g_orszagComboBox.select(0);
|
||||
$("#GondviseloHiddenInputsDiv2").addClass('displayNone');
|
||||
}
|
||||
G_SetControlsVisibleByOrszag();
|
||||
}
|
||||
|
||||
function G_SetControlsVisibleByOrszag() {
|
||||
var g_isTanulovalEgyezik = $g_tanulovalEgyezikCheckBox.checked;
|
||||
var g_isMagyarorszagSelected = $g_orszagComboBox.value() == "@((int)Kreta.Enums.OrszagTipusEnum.Magyarorszag)";
|
||||
if (g_isMagyarorszagSelected) {
|
||||
$('.magyarorszagigondviselocim').removeClass('displayNone');
|
||||
$('.kulfoldigondviselocim').addClass('displayNone');
|
||||
$.each($('.kulfoldigondviselocim').find('[id$=_Gondviselo_Str]'), function () {
|
||||
if (!CommonUtils.isNullOrUndefined($(this))) {
|
||||
$(this).val('-');
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
$('.magyarorszagigondviselocim').addClass('displayNone');
|
||||
$('.kulfoldigondviselocim').removeClass('displayNone');
|
||||
}
|
||||
//set textbox values
|
||||
if (g_isTanulovalEgyezik || g_isMagyarorszagSelected) {
|
||||
if (g_isTanulovalEgyezik) {
|
||||
$g_orszagComboBox.select(-1);
|
||||
$g_orszagComboBox.value('');
|
||||
g_isMagyarorszagSelected = false;
|
||||
}
|
||||
G_setDefaultTextBoxValues(true, '');
|
||||
}
|
||||
if (!g_isTanulovalEgyezik && !g_isMagyarorszagSelected) {
|
||||
G_setDefaultTextBoxValues(false, '');
|
||||
}
|
||||
$('#CimTipus_Gondviselo').data('kendoComboBox').value($('#CimTipus_Gondviselo').data('kendoComboBox').value());
|
||||
}
|
||||
|
||||
function G_setDefaultTextBoxValues(updateifempty, value) {
|
||||
$.each($('.kulfoldigondviselocim').find('[id$=_Gondviselo_Str]'), function () {
|
||||
if (!updateifempty || CommonUtils.isNullOrEmpty($(this).val())) {
|
||||
$(this).val(value);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function G_helysegNevIranyitoszamAlapjan() {
|
||||
if (CommonUtils.isNullOrEmpty($g_helysegNeveComboBox.value())) {
|
||||
if ($g_iranyitoszamComboBox.value() != "") {
|
||||
AjaxHelper.DoPostQuery("@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetHelysegNevByIranyitoszamList" })", null, { 'iranyitoSzam': $(this).val() }, G_updateTelepulesNev);
|
||||
$("#" + g_iranyitoszam + "_Str").val($(this).val());
|
||||
}
|
||||
else { $g_helysegNeveComboBox.select(-1); $g_helysegNeveComboBox.value(''); }
|
||||
}
|
||||
}
|
||||
|
||||
function G_updateTelepulesNev(data) {
|
||||
if (data.length > 0) {
|
||||
$g_helysegNeveComboBox.value(data[0].TelepulesNev);
|
||||
$("#" + g_helysegnev + "_Str").val(data[0].TelepulesNev);
|
||||
}
|
||||
}
|
||||
|
||||
function G_helysegnevchanged() {
|
||||
if (!CommonUtils.isNullOrEmpty($g_helysegNeveComboBox.value().trim())) {
|
||||
$("#" + g_helysegnev + "_Str").val($g_helysegNeveComboBox.value());
|
||||
}
|
||||
}
|
||||
|
||||
function G_kozteruletTipuschanged() {
|
||||
if (!CommonUtils.isNullOrUndefined($g_kozteruletTipusComboBox)) {
|
||||
$g_kozteruletTipusComboBox.value($g_kozteruletTipusComboBox.value());
|
||||
$("#" + g_kozteruletTipus + "_Str").val($g_kozteruletTipusComboBox.text());
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
453
KretaWeb/Views/Shared/_MasterLayout.cshtml
Normal file
453
KretaWeb/Views/Shared/_MasterLayout.cshtml
Normal file
|
@ -0,0 +1,453 @@
|
|||
@using System.Globalization;
|
||||
@using Kreta.BusinessLogic.Security;
|
||||
@using Kreta.Web.Utils
|
||||
@using Kreta.Web.Configuration
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Core.Configuratiaton.Interface
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@{
|
||||
var culture = new CultureInfo(ClaimData.LCID);
|
||||
bool hideTips = ProfileUtils.HideTips;
|
||||
bool successFeedBackWindowNeeded = Kreta.Web.Controllers.LayoutController.SuccessFeedBackWindowNeeded;
|
||||
var idpConfiguration = DependencyResolver.Current.GetService<IIdpConfiguration>();
|
||||
string logOutPath = idpConfiguration.LoginEnabled ? Url.Action("LogOut", "Home", new { area = string.Empty }) : Url.Action("LogOut", "Layout", new { area = string.Empty });
|
||||
string ajaxError401Redirect = idpConfiguration.LoginEnabled ? Url.Action("Index", "Home", new { area = string.Empty }) : Url.Action("Index", "Login", new { area = "Adminisztracio" });
|
||||
var firebaseConfiguration = DependencyResolver.Current.GetService<IFirebaseConfiguration>();
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||
<title>@{ Write(string.IsNullOrWhiteSpace(ViewBag.Title) ? LoginResource.KretaIskolaiAlaprendszer : ViewBag.Title); }</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Roboto+Condensed:wght@300;400;700&display=swap" rel="stylesheet">
|
||||
<link rel="preconnect" href="https://www.google-analytics.com/" crossorigin>
|
||||
<link rel="icon" href="~/favicon.ico" type="image/x-icon" />
|
||||
|
||||
<!-- Iskolaőr üzenetküldéshez kell -->
|
||||
<script src="https://www.gstatic.com/firebasejs/8.2.6/firebase-app.js"></script>
|
||||
<!-- <script src="https://www.gstatic.com/firebasejs/8.2.6/firebase-analytics.js"></script> -->
|
||||
<script src="https://www.gstatic.com/firebasejs/8.2.6/firebase-firestore.js"></script>
|
||||
|
||||
@Styles.Render("~/App_Themes/css", "~/Content/css", "~/Content/kretaControls")
|
||||
@Styles.Render(Request.Browser.IsMobileDevice ? "~/Content/kretaMobileCss" : "~/Content/kretaCss")
|
||||
@Scripts.Render("~/bundles/jquery")
|
||||
@Scripts.Render("~/bundles/bootstrap")
|
||||
@Scripts.Render("~/bundles/ErrorHandler")
|
||||
@Scripts.Render("~/bundles/js")
|
||||
@Scripts.Render("~/bundles/moment")
|
||||
@Scripts.Render("~/bundles/document-register-element")
|
||||
|
||||
@Html.Raw(Kreta.Core.Analytics.Client.Factory.GetInstance())
|
||||
|
||||
<style>
|
||||
.usermenu ul.dropdown-menu i {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var UrlHelper = {
|
||||
AppPath: '@Url.Content("~/")',
|
||||
CurrentArea: '@ViewContext.RouteData.DataTokens["area"]',
|
||||
CurrentControl: '@(ViewContext.RouteData.Values["controller"])',
|
||||
CurrentControlPath: '@Url.Action(string.Empty, ViewContext.RouteData.Values["controller"].ToString())',
|
||||
GetLayoutInformationPath: '@Url.Action("GetLayoutInformation", "Layout", new { area = string.Empty })',
|
||||
RemainingTime: '@Url.Action("GetRemainingTime", "Layout", new { area = string.Empty })',
|
||||
ExtendTime: '@Url.Action("ExtendSessionTime", "Layout", new { area = string.Empty })',
|
||||
LogOutPath: '@logOutPath',
|
||||
SajatAdatlapPopUp: '@Url.Action("SajatAdatlapPopUp", "Profil", new { area = "Adminisztracio" })',
|
||||
DashboardPopup: '@Url.Action("DashboardUzenetPopup", "Layout", new { area = string.Empty })',
|
||||
IskolaorUzenetKuldesPopup : '@Url.Action("OpenIskolaorUzenetKuldesPopup", "Layout", new { area = string.Empty })'
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
JiraRestHelper.urls = {
|
||||
UgyfelSzolgalatPopUp: '@Url.Action("UgyfelSzolgalatPopUp", "UgyfelSzolgalat", new { area = "UgyfelSzolgalat" })',
|
||||
BejelentesPopUp: '@Url.Action("BejelentesPopUp", "UgyfelSzolgalat", new { area = "UgyfelSzolgalat" })',
|
||||
KommunikaciosPopUp: '@Url.Action("KommunikaciosPopUp", "UgyfelSzolgalat", new { area = "UgyfelSzolgalat" })',
|
||||
CreateCommentToBejegyzes: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "UgyfelSzolgalatApi", action = "CreateCommentToBejegyzes" })",
|
||||
CreateBejelentes: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "UgyfelSzolgalatApi", action = "CreateBejelentes" })",
|
||||
CreateDbVisszaallitas: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "UgyfelszolgalatApi", action = "CreateDbVisszaallitas" })",
|
||||
CreateUjUrlIgenyles: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "UgyfelszolgalatApi", action = "CreateUjUrlIgenyles" })",
|
||||
CreateKonferenciaJelentkezes: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "UgyfelszolgalatApi", action = "CreateKonferenciaJelentkezes" })"
|
||||
};
|
||||
|
||||
JiraRestHelper.popUpTitles =
|
||||
{
|
||||
UgyfelSzolgalat: { title: "UgyfelSzolgalatWindow", text: "UgyfelSzolgalat" },
|
||||
Bejelentes: { title: "BejelentesWindow", text: "Bejelentes" },
|
||||
Kommunikacios: { title: "KommunikaciosWindow", text: "Kommunikacios" }
|
||||
};
|
||||
});
|
||||
|
||||
GlobalErrorHandler('@Url.Action("ClientError", "Layout", new { area = string.Empty })');
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$(document).keydown(function (e) {
|
||||
if ($("#KretaProgressBar").hasClass("isOverlayActiv")) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
var ajaxError401RedirectInProgress = false;
|
||||
var ajaxCallCount = 0;
|
||||
|
||||
$.ajaxSetup({
|
||||
async: true,
|
||||
cache: false
|
||||
});
|
||||
|
||||
$(document).ajaxSend(function () {
|
||||
if (AjaxHelper) {
|
||||
ajaxCallCount++;
|
||||
AjaxHelper.ShowIndicator();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ajaxComplete(function () {
|
||||
if (AjaxHelper && !ajaxError401RedirectInProgress) {
|
||||
ajaxCallCount--;
|
||||
if (ajaxCallCount === 0) {
|
||||
AjaxHelper.HideIndicator();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ajaxError(function (event, jqxhr, settings, thrownError) {
|
||||
if (jqxhr.status == '401') {
|
||||
ajaxError401RedirectInProgress = true;
|
||||
window.location = '@ajaxError401Redirect';
|
||||
}
|
||||
});
|
||||
|
||||
kendo.culture("@culture.Name");
|
||||
|
||||
$.validator.addMethod(
|
||||
"date",
|
||||
function (value, element) {
|
||||
return this.optional(element) || (kendo.parseDate(value) != null);
|
||||
}
|
||||
);
|
||||
|
||||
$.validator.addMethod(
|
||||
"min",
|
||||
function (value, element, param) {
|
||||
var floatValue = kendo.parseFloat(value);
|
||||
return this.optional(element) || floatValue >= param;
|
||||
}
|
||||
);
|
||||
|
||||
$.validator.addMethod(
|
||||
"max",
|
||||
function (value, element, param) {
|
||||
var floatValue = kendo.parseFloat(value);
|
||||
return this.optional(element) || floatValue <= param;
|
||||
}
|
||||
);
|
||||
|
||||
if ("@ClaimData.SelectedTanevID" !== "@ClaimData.AktivTanevID") {
|
||||
setTimeout(function () {
|
||||
$(".main-header, .selectTanev *").addClass("kovTanevBackgound");
|
||||
}, 0);
|
||||
}
|
||||
|
||||
$.validator.addMethod(
|
||||
"requireddropdown",
|
||||
function (value, element, param) {
|
||||
var numberRegex = /^\d+$/;
|
||||
return numberRegex.test(value);
|
||||
}
|
||||
);
|
||||
|
||||
$.validator.addMethod(
|
||||
"daterange",
|
||||
function (value, element, param) {
|
||||
try {
|
||||
var parts = value.split('.');
|
||||
var date = new Date(Date.UTC(parts[0], parts[1] - 1, parts[2]));
|
||||
var minParts = ("@Kreta.Core.Constants.MinMaxValues.MinDate").split('/');
|
||||
var maxPatrs = ("@Kreta.Core.Constants.MinMaxValues.MaxDate").split('/');
|
||||
if (date >= new Date(Date.UTC(minParts[2], minParts[1] - 1, minParts[0]))
|
||||
&& date <= new Date(Date.UTC(maxPatrs[2], maxPatrs[1] - 1, maxPatrs[0]))) {
|
||||
return true;
|
||||
}
|
||||
} catch (e) { }
|
||||
return this.optional(element) || false;
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
var MasterLayoutHelper = (function () {
|
||||
var masterLayoutHelper = function () { };
|
||||
masterLayoutHelper.changeSelectedTanev = function () {
|
||||
AjaxHelper.DoPostQuery("@Url.Action("ChangeSelectedTanev", "Layout", new { area = "" })", null, { selectedTanevId: parseInt($("#selectTanevCombo").val()) }, responeOk);
|
||||
}
|
||||
|
||||
masterLayoutHelper.popUpSajatAdatlapWindow = function () { AjaxHelper.DoPost(UrlHelper.SajatAdatlapPopUp, null, function (data) { openPopUp('@LayoutResource.SzemelyesAdatlap', data) }) };
|
||||
|
||||
masterLayoutHelper.checkNeedDashboardPopup = function () { checkNeedDashboardPopup(); };
|
||||
|
||||
function openPopUp(title, data) {
|
||||
var config = KretaWindowHelper.getWindowConfigContainer();
|
||||
config.title = title;
|
||||
config.content = data;
|
||||
config.width = "85%";
|
||||
config.height = "85%";
|
||||
|
||||
var modal = KretaWindowHelper.createWindow("SzemelyesAdatlapWindow", config);
|
||||
KretaWindowHelper.openWindow(modal, true);
|
||||
}
|
||||
|
||||
function responeOk(data) {
|
||||
if (CommonUtils.parseBool(data)) {
|
||||
location.reload();
|
||||
} else {
|
||||
location.href = "@Url.Action("Index", "RendszerHibaErtesites", new { area = "Adminisztracio" })";
|
||||
}
|
||||
}
|
||||
|
||||
function checkNeedDashboardPopup() {
|
||||
var needId = $('#popupId').val();
|
||||
var needField = $('#popupAzonosito').val();
|
||||
|
||||
if (typeof (needId) !== 'undefined' && needId > 0
|
||||
&& typeof (needField) !== 'undefined' && needField.length > 0) {
|
||||
var postData = { popupId: needId, egyediAzonosito: needField };
|
||||
AjaxHelper.DoPost(UrlHelper.DashboardPopup, postData, function (data) { openDashboardPopup($('#Name', data).val(), data); })
|
||||
}
|
||||
}
|
||||
|
||||
function openDashboardPopup(title, data, actions = []) {
|
||||
var config = KretaWindowHelper.getWindowConfigContainer();
|
||||
config.title = title;
|
||||
config.content = data;
|
||||
config.width = "auto";
|
||||
config.height = "auto";
|
||||
config.maxWidth = "50%";
|
||||
config.actions = actions;
|
||||
|
||||
var modal = KretaWindowHelper.createWindow("popupId", config);
|
||||
KretaWindowHelper.openWindow(modal, true);
|
||||
}
|
||||
|
||||
masterLayoutHelper.popUpIskolaorUzenetKuldesWindow = function () {
|
||||
AjaxHelper.DoPost(UrlHelper.IskolaorUzenetKuldesPopup, null, function (data) {
|
||||
openDashboardPopup("@Html.Raw(IskolaorResource.IskolaorErtesitese)", data, ["Close"]);
|
||||
});
|
||||
};
|
||||
|
||||
return masterLayoutHelper;
|
||||
})();
|
||||
</script>
|
||||
|
||||
@Scripts.Render("~/bundles/modernizr")
|
||||
@Scripts.Render("~/bundles/js")
|
||||
@Scripts.Render("~/bundles/kendo")
|
||||
@Scripts.Render("~/bundles/KendoGrid")
|
||||
@Scripts.Render("~/bundles/KretaImportGridHelper")
|
||||
@Scripts.Render("~/bundles/KretaWindowHelper")
|
||||
@Scripts.Render("~/bundles/KretaDateTimeHelper")
|
||||
@Scripts.Render("~/bundles/KretaComboBoxHelper")
|
||||
@Scripts.Render("~/bundles/KretaMultiSelectHelper")
|
||||
@Scripts.Render("~/bundles/KretaCheckBoxHelper")
|
||||
@Scripts.Render("~/bundles/KretaTooltipHelper")
|
||||
@Scripts.Render("~/bundles/KretaDropDownListHelper")
|
||||
@Scripts.Render("~/bundles/KretaPanelBarHelper")
|
||||
@Scripts.Render("~/bundles/KretaRadioButtonListHelper")
|
||||
@Scripts.Render("~/bundles/KretaOsztalybaSorolasHelper")
|
||||
@Scripts.Render("~/bundles/KretaWizard")
|
||||
@Scripts.Render("~/bundles/KretaNumericHelper")
|
||||
|
||||
@if (IsSectionDefined("AddCss"))
|
||||
{
|
||||
@RenderSection("AddCss", false)
|
||||
}
|
||||
|
||||
@* NOTE: A CommonUtils miatt, a bundle után kell! *@
|
||||
<script type="text/javascript">
|
||||
var GlobalSystemParams = {};
|
||||
GlobalSystemParams.SuccessFeedBackWindowNeeded = CommonUtils.parseBool("@(successFeedBackWindowNeeded.ToString())");
|
||||
GlobalSystemParams.IdpLoginEnabled = CommonUtils.parseBool("@(idpConfiguration.LoginEnabled.ToString())");
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@Html.AntiForgeryToken()
|
||||
|
||||
<script>
|
||||
// Iskolaőr üzenetküldéséhez kell
|
||||
var firebaseConfig = {
|
||||
apiKey: "@firebaseConfiguration.ApiKey",
|
||||
authDomain: "@firebaseConfiguration.AuthDomain",
|
||||
databaseURL: "@firebaseConfiguration.DatabaseURL",
|
||||
projectId: "@firebaseConfiguration.ProjectId",
|
||||
storageBucket: "@firebaseConfiguration.StorageBucket",
|
||||
messagingSenderId: "@firebaseConfiguration.MessagingSenderId",
|
||||
appId: "@firebaseConfiguration.AppId",
|
||||
//measurementId: "@firebaseConfiguration.MeasurementId",
|
||||
};
|
||||
firebase.initializeApp(firebaseConfig);
|
||||
//firebase.analytics();
|
||||
</script>
|
||||
|
||||
<div id="KretaProgressBar" class="modalBckgroundMain" style="display: block;">
|
||||
<img id="bodyOverLayImg" src="~/App_Themes/New_Common_Images/loading2.gif" alt="Folyamatban">
|
||||
</div>
|
||||
|
||||
@Html.KretaTooltipTemplate("kendoTooltip-defaultTemplate",
|
||||
@"<div class='kendoTooltip defaultKendoTooltip'>
|
||||
<table>
|
||||
<tr>
|
||||
<td style=""max-width: 600px;word-break:break-all"">#:target.data('tooltiptext')#</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>")
|
||||
|
||||
@{ Html.RenderPartial("JavascriptTemplates/UserMenu"); }
|
||||
|
||||
@{ Html.RenderPartial("Globalization"); }
|
||||
|
||||
<div class="page-wrapper">
|
||||
<div class="clearfix container-fluid" id="frissitesDatumDiv" style="display: none;">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12" style="font-weight: bold; font-size: 16px;">
|
||||
<div style="text-align:center;">
|
||||
<span style="font-size: 13px;">@AdminisztracioResource.RendszerFrissitesHamarosan</span>
|
||||
<span class="frissitesDatumText"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-header clearfix container-fluid main-header">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-6">
|
||||
<div class="school-title pull-left">
|
||||
<a>
|
||||
<h3 class="brand-title ng-binding">
|
||||
<span id="layout_organizationName"></span>
|
||||
@if (ClaimData.FelhasznaloSzerepCsomagok.Contains(KretaClaimPackages.CsokkentettGondviselo.ClaimValue))
|
||||
{
|
||||
<span> - @OrarendResource.CsokkentettJogosultsag.ToUpper()</span>
|
||||
}
|
||||
</h3>
|
||||
<div style="clear: both;" class="selectTanev">
|
||||
@if (ClaimData.IsAdministrator || ClaimData.IsArchivIntezmeny)
|
||||
{
|
||||
@Html.KretaDropdownList("selectTanevCombo", Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTanevek" })).Events(e => e.Change("MasterLayoutHelper.changeSelectedTanev")).Value(ClaimData.SelectedTanevID.HasValue ? ClaimData.SelectedTanevID.Value.ToString() : ClaimData.AktivTanevID.Value.ToString())
|
||||
}
|
||||
else if (ClaimData.FelhasznaloSzerepkor == Kreta.Enums.SzerepkorTipusEnum.Naplo)
|
||||
{
|
||||
@Html.KretaDropdownList("selectTanevCombo", Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFelhasznaloTanevek" })).Events(e => e.Change("MasterLayoutHelper.changeSelectedTanev")).Value(ClaimData.SelectedTanevID.HasValue ? ClaimData.SelectedTanevID.Value.ToString() : ClaimData.AktivTanevID.Value.ToString())
|
||||
}
|
||||
else
|
||||
{
|
||||
@ClaimData.AktivTanevNev
|
||||
}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="layout_userMenu" class="col-xs-6 col-sm-6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="layout_navigationBar" class="main-menu clearfix">
|
||||
@{ Html.RenderAction("Menu", "Layout", new { SzerepkorId = ClaimData.PackageCacheHash, FelhasznaloId = ClaimData.FelhasznaloId.ToString(), SelectedTanevId = ClaimData.SelectedTanevID.Value, area = "" }); }
|
||||
</div>
|
||||
|
||||
<div class="main-wrapper">
|
||||
<div class="main-sidebar">
|
||||
<div class="row">
|
||||
<div class="sidepanel-wrapper">
|
||||
<ul id="sidepanel_tabs">
|
||||
<li class="sidebar-tab-item">
|
||||
<span id="menucaption" class="head-sidebar-tab-item">@Html.MvcSiteMap(Constants.General.FullKretaSiteMap).SiteMapTitle()</span>
|
||||
</li>
|
||||
<li id="searchPanelFul" class="sidebar-tab-item @{ Write(IsSectionDefined("AddSearchPanel") ? "closed" : "disabled"); } ">
|
||||
<span @if (IsSectionDefined("AddSearchPanel")) { Write("onclick=MasterLayout.OpenCloseSideBar($(this));"); }>Szűrés</span>
|
||||
</li>
|
||||
<li id="tippekFul" class="sidebar-tab-item @if (hideTips || !IsSectionDefined("AddTip")) { Write("disabled"); }" style="cursor: pointer;"
|
||||
@if (!hideTips && IsSectionDefined("AddTip")) { Write("onclick=showTip();"); }><span>Tipp</span></li>
|
||||
@if (!string.IsNullOrWhiteSpace(ViewBag.HelpPageUrl))
|
||||
{
|
||||
<li id='sablonFul1' class='sidebar-tab-item sablonFul' style='cursor: pointer;'>
|
||||
<a href="@Url.Content(string.Format("~\\Resources\\{0}", ViewBag.HelpPageUrl))" target="_blank">@CommonResource.Help</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-content">
|
||||
<div class="content-header">
|
||||
<div class="favoriteIconContainer">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="layout_slidePanel" class="content-content" @if (IsSectionDefined("AddSearchPanel")) { Write("data-open=true"); }>
|
||||
<div class="sidebar-container">
|
||||
|
||||
@if (IsSectionDefined("AddSearchPanel"))
|
||||
{
|
||||
@RenderSection("AddSearchPanel", false)
|
||||
@Html.KretaNotification("popupNotification")
|
||||
}
|
||||
@if (IsSectionDefined("AddTip"))
|
||||
{
|
||||
@RenderSection("AddTip", false)
|
||||
@Html.Partial("_TipsNotification")
|
||||
}
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<div class="k-content">
|
||||
@RenderBody()
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
var panelWidth = document.getElementById('sidepanel_tabs').offsetWidth;
|
||||
$('#sidepanel_tabs').css('top', panelWidth + "px");
|
||||
$('.content-content').css('min-height', panelWidth + "px");
|
||||
};
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="main-footer1">
|
||||
</div>
|
||||
<div class="main-footer2">
|
||||
eKRÉTA Informatikai Zrt.
|
||||
- @Kreta.Core.KretaVersion.Instance.MainVersion
|
||||
- @Kreta.Core.KretaVersion.Instance.CommitNumber
|
||||
<div style="float: right;">
|
||||
<a href="https://tudasbazis.ekreta.hu/pages/viewpage.action?pageId=4064926" target="_blank">@LayoutResource.JogiNyilatkozat</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@Scripts.Render("~/bundles/kreta")
|
||||
@Scripts.Render("~/bundles/KretaFileUpload")
|
||||
@Scripts.Render("~/bundles/IskolaorUzenetKuldes")
|
||||
|
||||
@if (IsSectionDefined("AddJs"))
|
||||
{
|
||||
@RenderSection("AddJs", false)
|
||||
}
|
||||
|
||||
<!--
|
||||
branchName: @Kreta.Core.KretaVersion.Instance.BranchName
|
||||
commitNumber: @Kreta.Core.KretaVersion.Instance.CommitNumber
|
||||
-->
|
||||
</body>
|
||||
|
||||
</html>
|
25
KretaWeb/Views/Shared/_NavigationBar.cshtml
Normal file
25
KretaWeb/Views/Shared/_NavigationBar.cshtml
Normal file
|
@ -0,0 +1,25 @@
|
|||
@using Kreta.Web.Security
|
||||
@{
|
||||
Layout = null;
|
||||
//Response.OutputCache(3600, varyByParams: new List<string>() { ((int)ClaimData.FelhasznaloSzerepkor).ToString()});
|
||||
}
|
||||
@using Kreta.Web.Classes;
|
||||
<nav class="navbar">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" id="layout_navbar_home" href="#"></a>
|
||||
<p id="layout_organizationName2" class="orgnamesmallscreen"></p>
|
||||
<div class="main-header2">
|
||||
<div id="layout_userMenu2">
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mb1_menudiv" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
@Html.MvcSiteMap(Constants.General.FullKretaSiteMap).Menu(false)
|
||||
</div>
|
||||
</nav>
|
173
KretaWeb/Views/Shared/_Nyugdij_Partial.cshtml
Normal file
173
KretaWeb/Views/Shared/_Nyugdij_Partial.cshtml
Normal file
|
@ -0,0 +1,173 @@
|
|||
@using Kreta.Resources;
|
||||
@using Kreta.Web.Helpers;
|
||||
@using Kreta.Web.Models;
|
||||
@using Kreta.Web.Security;
|
||||
|
||||
@model MentoriNyugdijModel
|
||||
|
||||
@Html.HiddenFor(x => x.MunkaugyiAdatId)
|
||||
|
||||
<style type="text/css">
|
||||
.k-sprite {
|
||||
line-height: normal;
|
||||
font-size: 2em;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var NyugdijHelper = (function () {
|
||||
var nyugdijHelper = function () { };
|
||||
var url = {
|
||||
SaveMentoriNyugdijAdatok: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ProfilApi, action = "SaveMentoriNyugdijAdatok" })",
|
||||
};
|
||||
|
||||
function createNyugdijModel(maId, isNyugdijas, nyujdigTipusId, nyugdijKezdet) {
|
||||
return {
|
||||
MunkaugyiAdatId: maId,
|
||||
IsNyugdijas: isNyugdijas,
|
||||
NyugdijTipusId: nyujdigTipusId,
|
||||
NyugdijKezdet: nyugdijKezdet
|
||||
}
|
||||
}
|
||||
|
||||
nyugdijHelper.nyugdijModel = createNyugdijModel("@(Model.MunkaugyiAdatId.HasValue ? Model.MunkaugyiAdatId.ToString() : string.Empty)",
|
||||
"@(Model.IsNyugdijas)", "@(Model.NyugdijTipusId.HasValue ? Model.NyugdijTipusId.ToString() : string.Empty)",
|
||||
"@(Model.NyugdijKezdet.HasValue ? Model.NyugdijKezdet.ToString() : string.Empty)");
|
||||
|
||||
nyugdijHelper.szerkesztesClick = function () {
|
||||
$('#IsNyugdijas').prop("disabled", false).removeClass("k-state-disabled");
|
||||
$("#IsNyugdijas").focus();
|
||||
|
||||
$("#NyugdijTipusId").data("kendoComboBox").enable(true);
|
||||
$("#NyugdijKezdet").data("kendoDatePicker").enable(true);
|
||||
|
||||
$("#btnEditNyugdij").hide();
|
||||
$("#btnDeleteNyugdij").hide();
|
||||
$("#btnSaveNyugdij").show();
|
||||
$("#btnCancelNyugdij").show();
|
||||
};
|
||||
|
||||
nyugdijHelper.mentesClick = function () {
|
||||
var data = createNyugdijModel(
|
||||
"@(Model.MunkaugyiAdatId.HasValue ? Model.MunkaugyiAdatId.ToString() : string.Empty)",
|
||||
$('#IsNyugdijas').prop('checked'),
|
||||
$("#NyugdijTipusId").data("kendoComboBox").value(),
|
||||
$("#NyugdijKezdet").data("kendoDatePicker").value(),
|
||||
);
|
||||
if (data.IsNyugdijas) {
|
||||
if (CommonUtils.isNullOrUndefined(data.NyugdijKezdet) || CommonUtils.isNullOrUndefined(data.NyugdijTipusId)) {
|
||||
$("#nyugdijErrorContainer").show();
|
||||
}
|
||||
else {
|
||||
$("#nyugdijErrorContainer").hide();
|
||||
AjaxHelper.DoPost(url.SaveMentoriNyugdijAdatok, data, function () { successSaveAdatok(data) }, errorSaveAdatok);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$("#nyugdijErrorContainer").hide();
|
||||
nyugdijHelper.nyugdijModel = data;
|
||||
nyugdijHelper.defaultAdatokControls();
|
||||
}
|
||||
};
|
||||
|
||||
nyugdijHelper.torlesClick = function () {
|
||||
KretaWindowHelper.confirmWindow("@CommonResource.Kerdes", "@AlkalmazottResource.BiztosanTorliAMegadottNyugdijAdatokat", nyugdijHelper.torlesConfirmed);
|
||||
}
|
||||
|
||||
nyugdijHelper.torlesConfirmed = function () {
|
||||
$('#IsNyugdijas').prop('checked', false);
|
||||
$("#NyugdijTipusId").data("kendoComboBox").value("");
|
||||
$("#NyugdijKezdet").data("kendoDatePicker").value("");
|
||||
nyugdijHelper.mentesClick();
|
||||
$("#btnDeleteNyugdij").hide();
|
||||
}
|
||||
|
||||
nyugdijHelper.megsemClick = function () {
|
||||
nyugdijHelper.defaultAdatokControls();
|
||||
}
|
||||
|
||||
nyugdijHelper.defaultAdatokControls = function () {
|
||||
var isNyugdijasCB = $("#IsNyugdijas");
|
||||
var nyugdijModel = nyugdijHelper.nyugdijModel;
|
||||
isNyugdijasCB.prop('checked', nyugdijModel.IsNyugdijas);
|
||||
isNyugdijasCB.prop("disabled", true).addClass("k-state-disabled");
|
||||
var nyugdijTipusIdKendoComboBox = $("#NyugdijTipusId").data("kendoComboBox");
|
||||
nyugdijTipusIdKendoComboBox.value(nyugdijModel.NyugdijTipusId != "" && nyugdijModel.NyugdijTipusId != -1 ? nyugdijModel.NyugdijTipusId : "");
|
||||
nyugdijTipusIdKendoComboBox.enable(false);
|
||||
|
||||
var nyugdijKezdetKendoDatePicker = $("#NyugdijKezdet").data("kendoDatePicker");
|
||||
nyugdijKezdetKendoDatePicker.value(nyugdijModel.NyugdijKezdet != "" ? nyugdijModel.NyugdijKezdet : "");
|
||||
nyugdijKezdetKendoDatePicker.enable(false);
|
||||
|
||||
|
||||
$("#btnEditNyugdij").show();
|
||||
if ($('#IsNyugdijas').prop('checked')) {
|
||||
$("#btnDeleteNyugdij").show();
|
||||
}
|
||||
$("#btnSaveNyugdij").hide();
|
||||
$("#btnCancelNyugdij").hide();
|
||||
}
|
||||
|
||||
successSaveAdatok = function (data) {
|
||||
nyugdijHelper.nyugdijModel = data;
|
||||
nyugdijHelper.defaultAdatokControls();
|
||||
KretaWindowHelper.successFeedBackWindow();
|
||||
}
|
||||
|
||||
errorSaveAdatok = function (data) {
|
||||
KretaWindowHelper.feedbackWindow("@(CommonResource.Hiba)", data.responseJSON.Message, true);
|
||||
}
|
||||
|
||||
return nyugdijHelper;
|
||||
})();
|
||||
</script>
|
||||
|
||||
<div id="SorolasZaradek">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
@Html.KretaCheckBoxFor(x => x.IsNyugdijas, renderLabelToRight: true).Enable(false)
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
@Html.KretaButton("btnEditNyugdij", "", spriteCssClass: "fa fa-pencil", clickEventName: "NyugdijHelper.szerkesztesClick").HtmlAttributes(new { style = "padding-top: 5px; padding-bottom: 5px;" })
|
||||
@Html.KretaButton("btnDeleteNyugdij", "", spriteCssClass: "fa fa-trash-o", clickEventName: "NyugdijHelper.torlesClick").HtmlAttributes(new { style = "padding-top: 5px; padding-bottom: 5px; margin-left: 5px;" })
|
||||
@Html.KretaButton("btnSaveNyugdij", CommonResource.Mentes, clickEventName: "NyugdijHelper.mentesClick").HtmlAttributes(new { style = "display:none;" })
|
||||
<div id="nyugdijErrorContainer" style="padding-left: 10px; color: red; width: 475px;">
|
||||
@AlkalmazottResource.KerjukRogzitseNyugdijAdatait
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaDatePickerFor(x => x.NyugdijKezdet).Min(new DateTime(1900, 01, 01)).RenderWithName(3, 3)
|
||||
@Html.KretaComboBoxFor(x => x.NyugdijTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetNyugdijTipusList" }), "Text", "Value").AutoBind(true).Enable(false).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaButton("btnCancelNyugdij", CommonResource.Megse, clickEventName: "NyugdijHelper.megsemClick").HtmlAttributes(new { style = "display:none;" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
if ($('#IsNyugdijas').prop('checked')) {
|
||||
$("#btnDeleteNyugdij").show();
|
||||
}
|
||||
else {
|
||||
$("#btnDeleteNyugdij").hide();
|
||||
}
|
||||
$("#NyugdijKezdet").data("kendoDatePicker").enable(false);
|
||||
$("#nyugdijErrorContainer").hide();
|
||||
$("#IsNyugdijas").on("focusout", isNyugdijaschanged);
|
||||
$("#IsNyugdijas").on("change", isNyugdijaschanged);
|
||||
|
||||
function isNyugdijaschanged() {
|
||||
var isNyugdijasCheckBoxchecked = $("#IsNyugdijas")[0].checked;
|
||||
$("#NyugdijTipusId").data("kendoComboBox").enable(isNyugdijasCheckBoxchecked);
|
||||
$("#NyugdijKezdet").data("kendoDatePicker").enable(isNyugdijasCheckBoxchecked);
|
||||
if (!isNyugdijasCheckBoxchecked) {
|
||||
$("#NyugdijTipusId").data("kendoComboBox").value("");
|
||||
$("#NyugdijKezdet").data("kendoDatePicker").value("");
|
||||
$("#nyugdijErrorContainer").hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
174
KretaWeb/Views/Shared/_Tanulo_Elerhetoseg_Adatlap_Partial.cshtml
Normal file
174
KretaWeb/Views/Shared/_Tanulo_Elerhetoseg_Adatlap_Partial.cshtml
Normal file
|
@ -0,0 +1,174 @@
|
|||
@using Kreta.Web.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@model CimElerhetosegModel
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Orszag)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.OrszagStr)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.CimTipusStr)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.CimTipusStr)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Iranyitoszam_Str)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.Iranyitoszam_Str)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.HelysegNev_Str)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.HelysegNev_Str)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.KozteruletNev)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.KozteruletNev)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.KozteruletTipus_Str)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.KozteruletTipus_Str)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Hazszam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.Hazszam)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Emelet)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.Emelet)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Ajto)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.Ajto)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@{
|
||||
if (Model.HasTartozkodasiHely)
|
||||
{
|
||||
<h5 style="font-weight: bold; padding-left: 1em;">@TanuloResource.TartozkodasiHely</h5>
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Orszag)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiOrszagStr)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiCimTipusStr)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiCimTipusStr)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiIranyitoszam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiIranyitoszam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiHelysegNev)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiHelysegNev)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiKozteruletNev)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiKozteruletNev)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiKozteruletTipusNev)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiKozteruletTipusNev)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiHazszam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiHazszam)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiEmelet)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiEmelet)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TartozkodasiAjto)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TartozkodasiAjto)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Telefon)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.Telefon)
|
||||
</div>
|
||||
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.TelefonTipus)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.TelefonTipusStr)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.Emailcim)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.Emailcim)
|
||||
</div>
|
||||
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaInputLabelFor(model => model.EmailTipus)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(3)">
|
||||
@Html.KretaDisplayTextFor(model => model.EmailTipusStr)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,62 @@
|
|||
@using Kreta.Web.Security;
|
||||
@using Kreta.Web.Areas.Adminisztracio.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@model SajatAdatlapInfoModel
|
||||
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
@if (!Model.HideControlsForApaczaiOD)
|
||||
{
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaInputLabelFor(model => model.TanuloIgazolvany.IgazolvanyTipus)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaDisplayTextFor(model => model.TanuloIgazolvany.IgazolvanyTipus)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaInputLabelFor(model => model.TanuloIgazolvany.Igazolvanyszam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaDisplayTextFor(model => model.TanuloIgazolvany.Igazolvanyszam)
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaInputLabelFor(model => model.AlapAdat.OktatasiAzonosito)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaDisplayTextFor(model => model.AlapAdat.OktatasiAzonosito)
|
||||
</div>
|
||||
}
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaInputLabelFor(model => model.TanuloIgazolvany.TajSzam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaDisplayTextFor(model => model.TanuloIgazolvany.TajSzam)
|
||||
</div>
|
||||
</div>
|
||||
@if (!Model.HideControlsForApaczaiOD)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaInputLabelFor(model => model.TanuloIgazolvany.DiakigazolvanySzam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaDisplayTextFor(model => model.TanuloIgazolvany.DiakigazolvanySzam)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaInputLabelFor(model => model.TanuloIgazolvany.DiakigazolvanyKelte_SDATE)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaDisplayTextFor(model => model.TanuloIgazolvany.DiakigazolvanyKelte_SDATE)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaInputLabelFor(model => model.TanuloIgazolvany.AdoazonositoJel)
|
||||
</div>
|
||||
<div class="@BootsrapHelper.GetSizeClasses(2)">
|
||||
@Html.KretaDisplayTextFor(model => model.TanuloIgazolvany.AdoazonositoJel)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
|
@ -0,0 +1,95 @@
|
|||
@using Kreta.BusinessLogic.Security;
|
||||
@using Kreta.Web.Areas.Adminisztracio.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Security
|
||||
@model SajatAdatlapInfoModel
|
||||
|
||||
<div class="container-fluid details">
|
||||
@if (ClaimData.GondviseloId.HasValue && ClaimManager.HasPackage(KretaClaimPackages.Ellenorzo.ClaimValue))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.Gondviselo.GondviseloNeve, 3, 3)
|
||||
@Html.KretaLabelFor(model => model.Gondviselo.RokonsagiFok, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.Gondviselo.IsTorvenyesKepviselo, 3, 3)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.BelepesiNev, 3, 3)
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (ClaimData.GondviseloId.HasValue)
|
||||
{
|
||||
@Html.Partial("Felhasznalo4TAdatokEditor", Model.Felhasznalo4TAdatokModel)
|
||||
}
|
||||
|
||||
@if ((!ClaimData.GondviseloId.HasValue && ClaimManager.HasPackage(KretaClaimPackages.Ellenorzo.ClaimValue)) || (ClaimManager.HasPackage(KretaClaimPackages.Naplo.ClaimValue)))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.EloTag, 2, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.CsaladiNev, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.Utonev, 2, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.SzuletesiElotag, 2, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.SzuletesiCsaladNev, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.SzuletesiUtonev, 2, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.AnyjaElotag, 2, 2)
|
||||
</div>
|
||||
<div class=" row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.AnyjaCsaladiNeve, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.AnyjaUtonev, 2, 2)
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (!ClaimData.GondviseloId.HasValue && ClaimManager.HasPackage(KretaClaimPackages.Ellenorzo.ClaimValue))
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.SzuletesiIdo_SDATE, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.SzuletesiHely, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.SzuletesiOrszag, 2, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.Anyanyelv, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.Allampolgarsag, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.Allampolgarsag2, 2, 2)
|
||||
</div>
|
||||
if (!Model.HideControlsForApaczaiOD)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.OsztalyfonokNev, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.OsztalyNev, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.TeremNev, 2, 2)
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
@if(!Model.HideControlsForAlkalmazott) {
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.OsztalyNev, 2, 2)
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.EvfolyamNev, 2, 2)
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (!Model.HideControlsForApaczaiOD)
|
||||
{
|
||||
<div class="row">
|
||||
@if ((!ClaimData.GondviseloId.HasValue && ClaimManager.HasPackage(KretaClaimPackages.Ellenorzo.ClaimValue)) || (ClaimManager.HasPackage(KretaClaimPackages.Naplo.ClaimValue)))
|
||||
{
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.BelepesiNev, 2, 2)
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (ClaimManager.HasPackage(KretaClaimPackages.Naplo.ClaimValue) && !Model.HideControlsForApaczaiOD)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(model => model.AlapAdat.OktatasiAzonosito, 2, 2)
|
||||
</div>
|
||||
}
|
||||
</div>
|
111
KretaWeb/Views/Shared/_TipsNotification.cshtml
Normal file
111
KretaWeb/Views/Shared/_TipsNotification.cshtml
Normal file
|
@ -0,0 +1,111 @@
|
|||
@using Kreta.Web.Helpers
|
||||
|
||||
<script id="infoTemplate" type="text/x-kendo-template">
|
||||
<div class="k-notification-wrap customNotification">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<span>#: message #</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="k-icon k-group-delete"></span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="@Url.Action("Index", "Profil", new { area = "Adminisztracio" })">
|
||||
<span class="k-icon k-i-custom"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<span class="k-icon k-i-arrow-e" onclick="showTip();"></span>
|
||||
</td>
|
||||
</tr>
|
||||
@*<tr>
|
||||
<td colspan="3" class="customNotificationOption">Tovább a beállításokra</td>
|
||||
</tr>*@
|
||||
</table>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var orgininalWidth = 0;
|
||||
function onShow(e) {
|
||||
if (e.sender.getNotifications().length == 1) {
|
||||
if (orgininalWidth == 0) {
|
||||
orgininalWidth = e.element.width();
|
||||
}
|
||||
|
||||
tippResize(e);
|
||||
|
||||
$(window).resize(function () {
|
||||
tippResize(e);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function tippResize(e)
|
||||
{
|
||||
if (e.sender.getNotifications().length == 1) {
|
||||
var newWidth = $(window).width() * 0.8;
|
||||
if (e.element.width() > newWidth || e.element.width() < orgininalWidth) {
|
||||
e.element.width(newWidth);
|
||||
e.element.parent().css({ width: newWidth });
|
||||
}
|
||||
|
||||
var element = e.element.parent(),
|
||||
eWidth = element.width(),
|
||||
eHeight = element.height(),
|
||||
wWidth = $(window).width(),
|
||||
wHeight = $(window).height(),
|
||||
newTop, newLeft;
|
||||
|
||||
newLeft = Math.floor(wWidth / 2 - eWidth / 2);
|
||||
newTop = Math.floor(wHeight / 2 - eHeight / 2);
|
||||
|
||||
e.element.parent().css({ left: newLeft, top: null, right: 100, bottom: 0 });
|
||||
}
|
||||
}
|
||||
|
||||
var tipNum = -1;
|
||||
|
||||
function showTip() {
|
||||
var tipp = $('#tippPopupNotification').data('kendoNotification');
|
||||
if (tipp) {
|
||||
tipp.hide();
|
||||
//tipp.getNotifications().parent().remove();
|
||||
|
||||
tipp.setOptions({
|
||||
animation: {
|
||||
open: {
|
||||
effects: "slideIn:left"
|
||||
},
|
||||
close: {
|
||||
effects: "slideIn:right",
|
||||
reverse: true
|
||||
}
|
||||
},
|
||||
autoHideAfter: 20000
|
||||
});
|
||||
|
||||
var list = new Array();
|
||||
$('#tipList li').each(function () {
|
||||
list.push($(this).html());
|
||||
});
|
||||
|
||||
if (tipNum == -1) {
|
||||
tipNum = Math.floor(Math.random() * list.length);
|
||||
}
|
||||
else {
|
||||
tipNum++;
|
||||
if (tipNum > list.length - 1) {
|
||||
tipNum = 0;
|
||||
}
|
||||
}
|
||||
setTimeout(function () {
|
||||
tipp.show({
|
||||
message: list[tipNum]
|
||||
}, 'info'); }, 200);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@Html.KretaNotification("tippPopupNotification", tip: true)
|
147
KretaWeb/Views/Shared/_ZaradekPartial.cshtml
Normal file
147
KretaWeb/Views/Shared/_ZaradekPartial.cshtml
Normal file
|
@ -0,0 +1,147 @@
|
|||
@using Kreta.BusinessLogic.HelperClasses.OsztalyCsoportbaSorolas
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Enums
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@model SorolasZaradek
|
||||
|
||||
<div id="SorolasZaradek">
|
||||
@{
|
||||
var disabledItem = "disabledItem";
|
||||
|
||||
if (!Model.IsKiVagyAtsorolasiZaradek && (ClaimData.IsAdministrator || (ClaimData.IsOsztalyfonok && Model.IsOfoRogzithetEvkoziZaradekot && Model.IsOfoRogzithetKiVagyAtsorolasiZaradekot)))
|
||||
{
|
||||
disabledItem = string.Empty;
|
||||
}
|
||||
|
||||
if (!Model.Id.HasValue)
|
||||
{
|
||||
Model.RogzitoId = ClaimData.FelhasznaloId;
|
||||
Model.RogzitesDatuma = DateTime.Now.Date;
|
||||
}
|
||||
Model.UtolsoModositasDatuma = DateTime.Now.Date;
|
||||
Model.UtolsoModositoId = ClaimData.FelhasznaloId;
|
||||
Model.IsAdministrator = ClaimData.IsAdministrator;
|
||||
Model.IsOsztalyfonok = ClaimData.IsOsztalyfonok;
|
||||
}
|
||||
<script type="text/javascript">
|
||||
var ZaradekHelper = (function () {
|
||||
var zaradekHelper = function () { };
|
||||
|
||||
var url = {
|
||||
GetZaradekMegjelenese: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ZaradekApi, action = "GetZaradekMegjelenese" })"
|
||||
};
|
||||
|
||||
zaradekHelper.zaradekBeszurasButtonClick = function () {
|
||||
var zaradekComboSelectedValue = $("#ZaradekAdatszotar").data('kendoComboBox').value();
|
||||
if (!CommonUtils.isNullOrEmpty(zaradekComboSelectedValue)) {
|
||||
var zaradekId = CommonUtils.isNullOrEmpty("@Model.Id") ? -1 : "@Model.Id";
|
||||
AjaxHelper.DoGet(url.GetZaradekMegjelenese, { adatszotarId: zaradekComboSelectedValue }, setZaradekMegjeleneseData); //TODO:ZaradekId-t átadni
|
||||
}
|
||||
else {
|
||||
KretaWindowHelper.warningWindow("@(TanuloResource.Kivalasztas)", "@(TanuloResource.ZaradekSzovegBeszurasahozElobbKiKellValasztaniaEgyZaradekAdatszotarElemet)");
|
||||
}
|
||||
}
|
||||
|
||||
function setZaradekMegjeleneseData(result) {
|
||||
var isSetChekBoxValues = CommonUtils.isNullOrEmpty($("#ZaradekSzovegTextArea_" + "@((int)AnyanyelvEnum.magyar)").val());
|
||||
|
||||
var magyarZaradek = result.ZaradekSzovegList.filter(item => item.NyelvId === @((int)AnyanyelvEnum.magyar));
|
||||
addZaradekSzovegToZaradekDiv(magyarZaradek[0]);
|
||||
|
||||
var idegenNyelvuZaradekList = result.ZaradekSzovegList.filter(item => item.NyelvId !== @((int)AnyanyelvEnum.magyar));
|
||||
idegenNyelvuZaradekList.forEach(function (idegenNyelvuZaradekData) {
|
||||
addZaradekSzovegToZaradekDiv(idegenNyelvuZaradekData);
|
||||
});
|
||||
|
||||
if (isSetChekBoxValues) {
|
||||
setZaradekChekBoxValues(result);
|
||||
}
|
||||
}
|
||||
|
||||
function addZaradekSzovegToZaradekDiv(zaradekData) {
|
||||
var zaradekSzovegTextAreaName = "ZaradekSzovegTextArea_" + zaradekData.NyelvId;
|
||||
var zaradekSzovegTextArea = $("#" + zaradekSzovegTextAreaName);
|
||||
if (CommonUtils.isNullOrEmpty(zaradekSzovegTextArea.val())) {
|
||||
zaradekSzovegTextArea.val(zaradekData.Szoveg);
|
||||
}
|
||||
else {
|
||||
zaradekSzovegTextArea.val(zaradekSzovegTextArea.val() +"\n" + zaradekData.Szoveg);
|
||||
}
|
||||
}
|
||||
|
||||
function setZaradekChekBoxValues(result) {
|
||||
$('#IsBizonyitvanybanMegjelenik').prop('checked', result.IsBizonyitvanMegjelenes);
|
||||
$('#IsTorzslaponMegjelenik').prop('checked', result.IsTorzslapMegjelenes );
|
||||
$('#IsOsztalynaplobanMegjelenik').prop('checked', result.IsNaploMegjelenes);
|
||||
}
|
||||
|
||||
return zaradekHelper;
|
||||
})();
|
||||
</script>
|
||||
@Html.HiddenFor(x => x.Id)
|
||||
@Html.HiddenFor(x => x.TanuloCsoportId)
|
||||
@Html.HiddenFor(x => x.RogzitoId)
|
||||
@Html.HiddenFor(x => x.RogzitesDatumaStr)
|
||||
@Html.HiddenFor(x => x.UtolsoModositasDatumaStr)
|
||||
@Html.HiddenFor(x => x.UtolsoModositoId)
|
||||
@Html.HiddenFor(x => x.IsAdministrator)
|
||||
@Html.HiddenFor(x => x.IsOsztalyfonok)
|
||||
@Html.HiddenFor(x => x.IsZaradekKotelezo)
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<label class="windowInputLabel">@OsztalyCsoportResource.ZaradekAdatszotar</label>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
@Html.KretaComboBox("ZaradekAdatszotar", Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetZaradekList" }))
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-3">
|
||||
@Html.KretaButton("ZaradekAdatszotarBeszurButton", CommonResource.Beszur, clickEventName: "ZaradekHelper.zaradekBeszurasButtonClick")
|
||||
</div>
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-3">
|
||||
@Html.KretaCheckBoxFor(x => x.IsKiVagyAtsorolasiZaradek, renderLabelToRight: true).Enable(Model.IsTorolheto)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@foreach (var zaradekSzoveg in Model.ZaradekSzovegList)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
@{
|
||||
var zaradekSzovegLabel = OsztalyCsoportResource.ZaradekSzovege + (zaradekSzoveg.NyelvId != (int)AnyanyelvEnum.magyar ? " (" + zaradekSzoveg.NyelvId.GetDisplayName<AnyanyelvEnum>(ClaimData.SelectedTanevID.Value) + ")" : Model.IsZaradekKotelezo ? " *" : "");
|
||||
var zaradekSzovegTextAreaName = "ZaradekSzovegTextArea_" + zaradekSzoveg.NyelvId;
|
||||
}
|
||||
<label class="windowInputLabel" for="@zaradekSzovegTextAreaName">@zaradekSzovegLabel</label>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
@Html.KretaTextArea(zaradekSzovegTextAreaName, new List<string> { zaradekSzoveg.Szoveg }, rows: 6, htmlAttributes: new Dictionary<string, object> { { "class", "k-textbox" }, { "data-nyelv-id", zaradekSzoveg.NyelvId.ToString() }, { "data-msg-required", OsztalyCsoportResource.ZaradekSzovegeKotelezo } })
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.KeltezesHelye, new Dictionary<string, object> { { "data-msg-required", OsztalyCsoportResource.KeltezesHelyeKotelezo } } ).RenderWithName(OsztalyCsoportResource.KeltezesHelye + (Model.IsZaradekKotelezo ? " * " : string.Empty), 3, 3)
|
||||
@Html.KretaDatePickerFor(x => x.KeltezesDatuma, new Dictionary<string, object> { { "data-msg-required", OsztalyCsoportResource.KeltezesDatumaKotelezo } }).Min(new DateTime(1900,01,01)).RenderWithName(OsztalyCsoportResource.KeltezesDatuma + (Model.IsZaradekKotelezo ? " * " : string.Empty), 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<label class="windowInputLabel">@OsztalyCsoportResource.ZaradekMegjelenese</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
@Html.KretaCheckBoxFor(x => x.IsTorzslaponMegjelenik, renderLabelToRight: true)
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
@Html.KretaCheckBoxFor(x => x.IsBizonyitvanybanMegjelenik, renderLabelToRight: true)
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
@Html.KretaCheckBoxFor(x => x.IsOsztalynaplobanMegjelenik, renderLabelToRight: true)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
35
KretaWeb/Views/web.config
Normal file
35
KretaWeb/Views/web.config
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<system.web.webPages.razor>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="System.Web.Optimization" />
|
||||
<add namespace="Kendo.Mvc.UI" />
|
||||
<add namespace="Kreta.Web" />
|
||||
<add namespace="Kreta.Resources" />
|
||||
<add namespace="MvcSiteMapProvider.Web.Html" />
|
||||
<add namespace="MvcSiteMapProvider.Web.Html.Models" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
<appSettings>
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<remove name="BlockViewHandler" />
|
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
Loading…
Add table
Add a link
Reference in a new issue