init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
118
KretaWeb/Areas/Orarend/Views/AdminNaploEllenorzes/Index.cshtml
Normal file
118
KretaWeb/Areas/Orarend/Views/AdminNaploEllenorzes/Index.cshtml
Normal file
|
@ -0,0 +1,118 @@
|
|||
@using Kreta.Enums.ManualEnums
|
||||
@using Kreta.Framework
|
||||
@using Kreta.Web.Areas.Orarend.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Classes
|
||||
@using Kreta.Resources
|
||||
@model TanariOrarendModelKeresheto
|
||||
@{
|
||||
Layout = "~/Views/Shared/_MasterLayout.cshtml";
|
||||
}
|
||||
|
||||
@section AddSearchPanel {
|
||||
@using (Html.SearchPanelSideBar("searchForm", null, postSubmitFunction: "TanariOrarend.FormSearch"))
|
||||
{
|
||||
@Html.KretaComboBoxFor(x => x.TanarId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "AdminNaploEllenorzesApi", action = "GetTanarList" })).AutoBind(true).RenderSearchPanelSideBar()
|
||||
}
|
||||
}
|
||||
|
||||
@section AddCss {
|
||||
@Styles.Render(Constants.General.TanuloErtekelesCSS)
|
||||
@Styles.Render(Constants.General.FeljegyzesekCSS)
|
||||
@Styles.Render(Constants.General.NaplozasAutoFeljegyzesCSS)
|
||||
}
|
||||
|
||||
@{
|
||||
Html.RenderPartial("Orarend", Model);
|
||||
}
|
||||
|
||||
@section AddJs {
|
||||
<script type="text/javascript">
|
||||
var AdminNaploEllenorzesHelper = (function () {
|
||||
var adminNaploEllenorzesHelper = function () { };
|
||||
|
||||
var eventURL = '@Url.Action("AdminNaploEllenorzesEvent", "AdminNaploEllenorzes", new { area = "Orarend" })';
|
||||
var nemKotottMunkaidoEventUrl = "@Url.Action("AdminNaploEllenorzesNemKotottMunkaidoEvent", "AdminNaploEllenorzes", new { area = "Orarend"})";
|
||||
var fogadooraEventUrl = "@Url.Action("AdminNaploEllenorzesFogadooraEvent", "AdminNaploEllenorzes", new { area = "Orarend"})";
|
||||
var updateURL = "@Url.HttpRouteUrl("ActionApi", new { controller = "AdminNaploEllenorzesApi", action = "UpdateNemMegtartott" })";
|
||||
var deleteURL = "@Url.HttpRouteUrl("ActionApi", new { controller = "AdminNaploEllenorzesApi", action = "DeleteNaplozas" })";
|
||||
|
||||
adminNaploEllenorzesHelper.TanorakCalendarClickEvent = function (e) {
|
||||
window.CalendarModel = e;
|
||||
if (e.oraType == @((int)CalendarOraTypeEnum.TanevRendjeEsemeny)
|
||||
|| e.oraType == @((int)CalendarOraTypeEnum.UresOra)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
AjaxHelper.DoPost(eventURL, window.CalendarModel, popUpWindow);
|
||||
}
|
||||
}
|
||||
|
||||
adminNaploEllenorzesHelper.FoglalkozasokCalendarClickEvent = function (e) {
|
||||
if (e.oraType == @((int)CalendarOraTypeEnum.TanoranKivuliFoglalkozas) || e.oraType == @((int)CalendarOraTypeEnum.TanoranKivuliNaplozottFoglalkozas)) {
|
||||
window.CalendarModel = e;
|
||||
AjaxHelper.DoPost(eventURL, window.CalendarModel, popUpWindow);
|
||||
}
|
||||
}
|
||||
|
||||
adminNaploEllenorzesHelper.NemKotottCalendarClickEvent = function (e) {
|
||||
if (e.oraType == @((int)CalendarOraTypeEnum.TanoranKivuliTevekenyseg)) {
|
||||
e.isPast = (new Date(e.start).setHours(0, 0, 0, 0) <= new Date(@DateTime.Now.Year , @DateTime.Now.Month - 1 , @DateTime.Now.Day));
|
||||
|
||||
if (e.isPast) {
|
||||
CalendarDateTimeChangeHelper.changeCalendarModelOrakezdeteVegeToUtc(e);
|
||||
window.CalendarModel = e;
|
||||
AjaxHelper.DoPost(nemKotottMunkaidoEventUrl, window.CalendarModel, popUpWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
adminNaploEllenorzesHelper.FogadooraCalendarClickEvent = function (e) {
|
||||
if (e.oraType == @((int)CalendarOraTypeEnum.Fogadoora)) {
|
||||
e.isPast = (new Date(e.start).setHours(0, 0, 0, 0) <= new Date(@DateTime.Now.Year , @DateTime.Now.Month - 1 , @DateTime.Now.Day));
|
||||
|
||||
if (e.isPast) {
|
||||
window.CalendarModel = e;
|
||||
AjaxHelper.DoPost(fogadooraEventUrl, window.CalendarModel, popUpWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
adminNaploEllenorzesHelper.windowCancel = function () {
|
||||
KretaWindowHelper.destroyWindow("AdminNaploEllenorzesWindow");
|
||||
}
|
||||
|
||||
adminNaploEllenorzesHelper.updateNemMegtartottConfirm = function () {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Kerdes)", "@(StringResourcesUtil.GetString(4935))" /*Biztosan nem megtartottra állítja az órát?*/, updateNemMegtartott);
|
||||
}
|
||||
|
||||
adminNaploEllenorzesHelper.deleteNaplozasConfirm = function () {
|
||||
KretaWindowHelper.confirmWindow("@(CommonResource.Kerdes)", "@(StringResourcesUtil.GetString(4936))" /*Biztosan törli a naplózási adatokat?*/, deleteNaplozas);
|
||||
}
|
||||
|
||||
function popUpWindow(data) {
|
||||
var config = KretaWindowHelper.getWindowConfigContainer();
|
||||
config.title = "@(StringResourcesUtil.GetString(4932))"; /*Napló ellenőrzés*/
|
||||
config.content = data;
|
||||
|
||||
var modal = KretaWindowHelper.createWindow("AdminNaploEllenorzesWindow", config);
|
||||
KretaWindowHelper.openWindow(modal, true);
|
||||
}
|
||||
|
||||
function updateNemMegtartott() {
|
||||
AjaxHelper.DoPostQuery(updateURL, null, { id: window.CalendarModel.eventId, oraKezdete: window.CalendarModel.start, oraVege: window.CalendarModel.end }, successCallBack);
|
||||
}
|
||||
|
||||
function deleteNaplozas() {
|
||||
AjaxHelper.DoPostQuery(deleteURL, null, { id: window.CalendarModel.eventId }, successCallBack);
|
||||
}
|
||||
|
||||
function successCallBack() {
|
||||
KretaWindowHelper.destroyWindow("AdminNaploEllenorzesWindow");
|
||||
TanariOrarend.FormSearch("searchForm");
|
||||
}
|
||||
|
||||
return adminNaploEllenorzesHelper;
|
||||
})();
|
||||
</script>
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@model TanoraNaplozasTabok
|
||||
@{ Layout = null; }
|
||||
|
||||
<div id="tabTemplate">
|
||||
@Html.Partial(@"EditorTemplates\TabStrip", Model.TabList)
|
||||
</div>
|
||||
|
||||
@Html.KretaTabStrip("tabTemplate").RenderOnModal()
|
|
@ -0,0 +1,374 @@
|
|||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.Framework
|
||||
@using Kreta.Enums
|
||||
@model MulasztasNaplozas
|
||||
@{ Layout = null; }
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(m => m.Tema, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "AdminNaploEllenorzesApi", action = "GetTema", osztCsop = Model.OsztalyCsoportId, targy = Model.TargyId }), dataTextField: "Text", datavalueField: "Text", isCustomAllowed: true).Placeholder(StringResourcesUtils.GetString(4798)).AutoBind(true).Enable(false).RenderWithName(3, 3)
|
||||
@Html.KretaLabelFor(m => m.EvesOraSorszam, 3, 3)
|
||||
</div>
|
||||
|
||||
@if ((Model.JogviszonySzunetletetokDb.HasValue && Model.JogviszonySzunetletetokDb.Value > 0) || (Model.SzakmaiGyakorlatonLevokDb.HasValue && Model.SzakmaiGyakorlatonLevokDb.Value > 0))
|
||||
{
|
||||
<div class="row">
|
||||
@if (Model.JogviszonySzunetletetokDb.HasValue && Model.JogviszonySzunetletetokDb.Value > 0)
|
||||
{
|
||||
@Html.KretaLabelFor(m => m.JogviszonySzunetletetokDb, 3, 3, true, "JogviszonySzunetletetoDb")
|
||||
}
|
||||
@if (Model.SzakmaiGyakorlatonLevokDb.HasValue && Model.SzakmaiGyakorlatonLevokDb.Value > 0)
|
||||
{
|
||||
@Html.KretaLabelFor(m => m.SzakmaiGyakorlatonLevokDb, 3, 3, true, "SzakmaiGyakorlatonLevoDb")
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@{
|
||||
var grid = Html.KretaGrid<MulasztasNaplozasGrid>
|
||||
(
|
||||
name: "MulasztasokNaplozasaGrid",
|
||||
getUrl: new GridApiUrl("AdminNaploEllenorzesApi", "GetMulasztasok",
|
||||
new Dictionary<string, string> {
|
||||
{ "osztalycsoportId", Model.OsztalyCsoportId.HasValue ? Model.OsztalyCsoportId .Value.ToString() : "-1" },
|
||||
{ "tanoraId", Model.isTanora && Model.TanoraId.HasValue ? Model.TanoraId.Value.ToString() :"-1" },
|
||||
{ "targyId", Model.TargyId.HasValue ? Model.TargyId.Value.ToString() :"-1" },
|
||||
{ "tanarId", Model.TanarId.HasValue ? Model.TanarId.Value.ToString() :"-1" },
|
||||
{ "oraKezdete", Model.OraKezdete.ToString() },
|
||||
{ "oraVege", Model.OraVege.ToString() },
|
||||
{ "hianyzokAutoKitoltes", Model.HianyzokAutoKitoltes.ToString() }
|
||||
}),
|
||||
allowFilterable: false,
|
||||
allowPaging: false,
|
||||
pageSizes: null
|
||||
)
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn));
|
||||
|
||||
grid.Columns(c => c.Template(t => t.ToString()).Title(StringResourcesUtil.GetString(455/*Tanuló neve*/)).ClientTemplate(
|
||||
@"
|
||||
#if (Igazolt != null || OraMentesseg_BOOL == true || elozoOranHianyzott == true || (Oka!= null && Oka.includes('" + OrarendResource.Magantanulo + "')) || (Oka != null && Oka != '')) { # " +
|
||||
"<div style='pointer-events: all' title='#if (Oka != null) { # #:Oka# # } # #if (elozoOranHianyzott == true) { # Az előző órán hiányzott! # } #'> <span class='kendoTooltipMulasztasTanuloNev' data-gondviselo='#:GondviseloNev#' data-gondviselotelszam='#:GondviseloTelSzam# data-amifotargy='#: AmiFotargyId_DNAME #' data-amitagozat='#: AmiTagozatId_DNAME #' data-amitantargykotelezoseg='#: AmiTantargyKotelezosegId_DNAME #' data-evfolyam='#: EvfolyamId_DNAME #' '> #:TanuloNev# </span><i class='fa fa-exclamation-triangle' ></i></div>"
|
||||
+ @"# } " +
|
||||
@"
|
||||
else if (Igazolt == null && (OraMentesseg_BOOL == null || OraMentesseg_BOOL == false)) { # " +
|
||||
"<span class='kendoTooltipMulasztasTanuloNev' data-gondviselo='#:GondviseloNev#' data-gondviselotelszam='#:GondviseloTelSzam#'data-amifotargy='#: AmiFotargyId_DNAME #' data-amitagozat='#: AmiTagozatId_DNAME #' data-amitantargykotelezoseg='#: AmiTantargyKotelezosegId_DNAME #' data-evfolyam='#: EvfolyamId_DNAME #' > #:TanuloNev# </span>"
|
||||
+ @"# } #"
|
||||
));
|
||||
|
||||
grid.Columns(c => c.Template(t => t.ToString()).Title(OrarendResource.MulasztasSzazalek).ClientTemplate(
|
||||
@"
|
||||
#if(MulasztasSzazalek >= 20 && MulasztasSzazalek < 30) { #
|
||||
<span style='color: rgb(227, 159, 11); font-weight: bold;' class='kendoTooltipMulasztasSzazalek' data-mulasztasossz='#:MulasztasOsszCnt#' data-mulasztashiany='#:MulasztasHianyCnt#' data-mulasztasmegtartott='#:MulasztasMegtartottCnt#' data-mulasztasmegtarthato='#:MulasztasMegtarthatoCnt#'> #:MulasztasSzazalek#%</span>
|
||||
# } else if(MulasztasSzazalek >= 30) { #
|
||||
<span style='color: red; font-weight: bold;' class='kendoTooltipMulasztasSzazalek' data-mulasztasossz='#:MulasztasOsszCnt#' data-mulasztashiany='#:MulasztasHianyCnt#' data-mulasztasmegtartott='#:MulasztasMegtartottCnt#' data-mulasztasmegtarthato='#:MulasztasMegtarthatoCnt#'> #:MulasztasSzazalek#%</span>
|
||||
# } else { #
|
||||
<span class='kendoTooltipMulasztasSzazalek' data-mulasztasossz='#:MulasztasOsszCnt#' data-mulasztashiany='#:MulasztasHianyCnt#' data-mulasztasmegtartott='#:MulasztasMegtartottCnt#' data-mulasztasmegtarthato='#:MulasztasMegtarthatoCnt#'> #:MulasztasSzazalek#%</span>
|
||||
# } #
|
||||
"
|
||||
));
|
||||
|
||||
grid.Columns(c => c.Template(t => t.ToString()).HeaderHtmlAttributes(new { @class = "mulasztasGridColumnHeaderTh" }).Title(@"<div>
|
||||
<div class='mulasztasGridColumnHeader mulasztasGridColumnHeaderJelen' onclick='TanariOrarend.ChangeAllJelenletValue(" + (int)MulasztasTipusEnum.jelenlet + ");'>" + OrarendResource.Jelenlet + @"</div>
|
||||
<div class='mulasztasGridColumnHeader mulasztasGridColumnHeaderUres' onclick='TanariOrarend.ChangeAllJelenletValue();'>" + OrarendResource.Ures + @"</div>
|
||||
</div>").ClientTemplate(
|
||||
@"<div style='pointer-events: none;'>
|
||||
#if (Igazolt == null && OraMentesseg_BOOL == true) { # " +
|
||||
grid.SelectForColumnTemplate(Html.For<MulasztasNaplozasGrid>(), x => x.MulasztasTipus, Model.FelmentettJelenletList)
|
||||
+ @"# } #" +
|
||||
@"
|
||||
#if (Igazolt == null && (OraMentesseg_BOOL == null || OraMentesseg_BOOL == false)) { # " +
|
||||
grid.SelectForColumnTemplate(Html.For<MulasztasNaplozasGrid>(), x => x.MulasztasTipus, Model.JelenletList, customClickFunctionName: "MulasztasHelper.changeMulsztasTipus")
|
||||
+ @"# } #" +
|
||||
@"
|
||||
#if (Igazolt != null && (OraMentesseg_BOOL == null || OraMentesseg_BOOL == false)) { # " +
|
||||
"#: MulasztasTipus_DNAME #" +
|
||||
@"<input type='hidden' value='#: MulasztasTipus #' name='MulasztasokNaplozasaGrid_MulasztasTipus_#: ID#' id='MulasztasokNaplozasaGrid_MulasztasTipus_#:ID#' data-rowinputname='MulasztasTipus'>"
|
||||
+ @"# } #
|
||||
</div>"
|
||||
));
|
||||
|
||||
grid.Columns(c => c.Template(t => t.ToString()).Title(StringResourcesUtil.GetString(2563/*Késés(perc)*/)).ClientTemplate(
|
||||
@"<div style='pointer-events: none;'>
|
||||
#if (Igazolt == null && OraMentesseg_BOOL == true) { # " + ""
|
||||
+ @"# } #" +
|
||||
@"
|
||||
#if (Igazolt == null && (OraMentesseg_BOOL == null || OraMentesseg_BOOL == false)) { # " +
|
||||
grid.NumericBoxForColumnTemplate(Html, m => m.KesesIdo, 0, Model.MaxKeses, 0)
|
||||
+ @"# } #" +
|
||||
@"
|
||||
#if (Igazolt != null && (OraMentesseg_BOOL == null || OraMentesseg_BOOL == false) && KesesIdo != null) { # " +
|
||||
"#: KesesIdo #" +
|
||||
"<input data-numericboxgroup='MulasztasokNaplozasaGrid_KesesIdo' data-rowinputname='KesesIdo' id='MulasztasokNaplozasaGrid_KesesIdo_#: ID#' max='44' min='0' name='MulasztasokNaplozasaGrid_KesesIdo_#: ID#' step='1' type='hidden' value='#: KesesIdo #' data-role='numerictextbox' role='spinbutton' class='k-input' aria-valuemin='0' aria-valuemax='44' aria-valuenow='#: KesesIdo #' aria-disabled='false' aria-readonly='false'>"
|
||||
+ @"# } #
|
||||
</div>"
|
||||
));
|
||||
|
||||
grid.Columns(c => c.Template(t => t.ToString()).Title("").ClientTemplate(
|
||||
@"
|
||||
<div style='display: table;'>
|
||||
<div class='autoFeljegyzesTable' style='display: table-row'>
|
||||
<div style='display: table-cell;'>
|
||||
<div title='" + OrarendResource.HazifeladatHiany + @"' class='haziFeladatHianyFeljegyzes autoFeljegyezes fejlegyezesImgDefault # if(HaziFeladatHiany_BOOL) { #haziFeladatHianyRed# } else { #haziFeladatHiany# } #' data-haziFeladatHiany='# if(HaziFeladatHiany_BOOL) { #true# } else { #false# } #' data-haziFeladatHianyId='#: HaziFeladatHianyId #'>
|
||||
</div>
|
||||
</div>
|
||||
<div style='display: table-cell;'>
|
||||
<div title='" + OrarendResource.FelszerelesHiany + @"' class='felszerelesHianyFeljegyzes autoFeljegyezes fejlegyezesImgDefault # if(FelszerelesHiany_BOOL) { #felszerelesHianyRed# } else { #felszerelesHiany# } #' data-felszerelesHiany='# if(FelszerelesHiany_BOOL) { #true# } else { #false# } #' data-felszerelesHianyId='#: FelszerelesHianyId #'>
|
||||
</div>
|
||||
</div>
|
||||
<div style='display: table-cell;'>
|
||||
<div title='" + OrarendResource.Felmentes + @"' class='felmentesFeljegyzes autoFeljegyezes fejlegyezesImgDefault # if(Felmentes_BOOL) { #felmentesOrange# } else { #felmentes# } #' data-felmentes='# if(Felmentes_BOOL) { #true# } else { #false# } #' data-felmentesId='#: FelmentesId #'>
|
||||
</div>
|
||||
</div>
|
||||
<div style='display: table-cell;'>
|
||||
<div title='" + OrarendResource.TanoraiDicseret + @"' class='tanoraiDicseretFeljegyzes autoFeljegyezes fejlegyezesImgDefault # if(TanoraiDicseret_BOOL) { #dicseretGreen# } else { #dicseret# } #' data-tanoraiDicseret='# if(TanoraiDicseret_BOOL) { #true# } else { #false# } #' data-tanoraiDicseretId='#: TanoraiDicseretId #'>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
"
|
||||
));
|
||||
}
|
||||
<div style="pointer-events: none;">
|
||||
@(grid)
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var MulasztasHelper = (function () {
|
||||
var mulasztasHelper = function () { };
|
||||
|
||||
mulasztasHelper.getModel = function () { return getModel("MulasztasokNaplozasaForm", "MulasztasokNaplozasaGrid"); }
|
||||
|
||||
function getModel(formName, gridName) {
|
||||
var model = { "TemaTanmenetId": null, "Tema": "", "MulasztasList": [] };
|
||||
|
||||
var form = $("#" + formName).toObject();
|
||||
var grid = KretaGridHelper.getAllRowsWithDataAttribute(gridName, ["haziFeladatHiany", "felszerelesHiany", "felmentes", "tanoraiDicseret", "haziFeladatHianyId", "felszerelesHianyId", "felmentesId", "tanoraiDicseretId"]);
|
||||
model.TemaTanmenetId = form.TemaTanmenetId;
|
||||
model.Tema = form.Tema;
|
||||
|
||||
$.each(grid, function () {
|
||||
var mulasztas = {
|
||||
"MulasztasRowId": null, "TanuloId": 0, "MulasztasTipus": 0, "Keses": null
|
||||
, "HazifeladatHiany": null, "FelszerelesHiany": null, "Felmentes": null, "TanoraiDicseret": null
|
||||
, "HazifeladatHianyId": 0, "FelszerelesHianyId": 0, "FelmentesId": 0, "TanoraiDicseretId": 0
|
||||
};
|
||||
|
||||
mulasztas.MulasztasRowId = this.MulasztasId;
|
||||
mulasztas.TanuloId = this.ID;
|
||||
mulasztas.MulasztasTipus = this.ki_MulasztasTipus;
|
||||
mulasztas.Keses = this.ki_KesesIdo;
|
||||
|
||||
mulasztas.HazifeladatHiany = this.ki_haziFeladatHiany
|
||||
mulasztas.FelszerelesHiany = this.ki_felszerelesHiany;
|
||||
mulasztas.Felmentes = this.ki_felmentes;
|
||||
mulasztas.TanoraiDicseret = this.ki_tanoraiDicseret;
|
||||
|
||||
mulasztas.HazifeladatHianyId = this.ki_haziFeladatHianyId
|
||||
mulasztas.FelszerelesHianyId = this.ki_felszerelesHianyId;
|
||||
mulasztas.FelmentesId = this.ki_felmentesId;
|
||||
mulasztas.TanoraiDicseretId = this.ki_tanoraiDicseretId;
|
||||
|
||||
model.MulasztasList.push(mulasztas);
|
||||
});
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
mulasztasHelper.setOraTemaja = function () {
|
||||
$("input[name = 'Tema_input']").val($("#ElozoOraTema").val());
|
||||
$("input[name = 'Tema_input']").focus();
|
||||
}
|
||||
|
||||
mulasztasHelper.changeMulsztasTipus = function (data) {
|
||||
if (($(data).attr('val') == "@(((int)MulasztasTipusEnum.keses).ToString())" && $(data).hasClass("activebar")))
|
||||
{ return; }
|
||||
|
||||
var itemId = $(data).closest('div').parent('div').attr("id");
|
||||
var kesesPrefix = "MulasztasokNaplozasaGrid_KesesIdo_";
|
||||
var divPrefix = "divMulasztasokNaplozasaGrid_MulasztasTipus_";
|
||||
|
||||
var itemNumber = itemId.toString().replace(divPrefix, '');
|
||||
var kendoKeses = $("#" + kesesPrefix + itemNumber).data("kendoNumericTextBox");
|
||||
|
||||
if (typeof (kendoKeses) !== "undefined") {
|
||||
kendoKeses.value(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
mulasztasHelper.dataBoundAdditionalFunction = function () {
|
||||
DocumentReadyHelper.documentReadyBindings();
|
||||
|
||||
KretaTooltipHelper.setTooltip($(".kendoTooltipMulasztasTanuloNev"), "#kendoTooltip-mulasztasTanuloNevTemplate");
|
||||
KretaTooltipHelper.setTooltip($(".kendoTooltipMulasztasSzazalek"), "#kendoTooltip-mulasztasSzazalekTemplate");
|
||||
|
||||
$(".haziFeladatHianyFeljegyzes").click(function () {
|
||||
var $this = $(this);
|
||||
var active = ($this.attr('data-hazifeladatHiany') == "true");
|
||||
|
||||
if (!active) { $this.addClass("haziFeladatHianyRed").removeClass("haziFeladatHiany"); }
|
||||
else { $this.addClass("haziFeladatHiany").removeClass("haziFeladatHianyRed"); }
|
||||
$this.attr('data-hazifeladatHiany', !active);
|
||||
});
|
||||
|
||||
$(".felszerelesHianyFeljegyzes").click(function () {
|
||||
var $this = $(this);
|
||||
var active = ($this.attr('data-felszerelesHiany') == "true");
|
||||
|
||||
if (!active) { $this.addClass("felszerelesHianyRed").removeClass("felszerelesHiany"); }
|
||||
else { $this.addClass("felszerelesHiany").removeClass("felszerelesHianyRed"); }
|
||||
$this.attr('data-felszerelesHiany', !active);
|
||||
});
|
||||
|
||||
$(".felmentesFeljegyzes").click(function () {
|
||||
var $this = $(this);
|
||||
var active = ($this.attr('data-felmentes') == "true");
|
||||
|
||||
if (!active) { $this.addClass("felmentesOrange").removeClass("felmentes"); }
|
||||
else { $this.addClass("felmentes").removeClass("felmentesOrange"); }
|
||||
$this.attr('data-felmentes', !active);
|
||||
});
|
||||
|
||||
$(".tanoraiDicseretFeljegyzes").click(function () {
|
||||
var $this = $(this);
|
||||
var active = ($this.attr('data-tanoraiDicseret') == "true");
|
||||
|
||||
if (!active) { $this.addClass("dicseretGreen").removeClass("dicseret"); }
|
||||
else { $this.addClass("dicseret").removeClass("dicseretGreen"); }
|
||||
$this.attr('data-tanoraiDicseret', !active);
|
||||
});
|
||||
}
|
||||
|
||||
return mulasztasHelper;
|
||||
})();
|
||||
|
||||
var DocumentReadyHelper = (function () {
|
||||
// ID prefixek
|
||||
var kesesPrefix = "MulasztasokNaplozasaGrid_KesesIdo_";
|
||||
var mulasztasPrefix = "MulasztasokNaplozasaGrid_MulasztasTipus_";
|
||||
// Jquery selector for id starts with specific text
|
||||
var kesesButtonok = $('[id^=MulasztasokNaplozasaGrid_MulasztasTipus_]');
|
||||
var kesesNumericTextBoxok = $('[id^=MulasztasokNaplozasaGrid_KesesIdo_]');
|
||||
|
||||
var documentReadyHelper = function () { };
|
||||
|
||||
documentReadyHelper.documentReadyBindings = function () { return documentReadyBindings(); }
|
||||
|
||||
function documentReadyBindings() {
|
||||
buttonBindToKesesPercben(kesesButtonok, kesesNumericTextBoxok);
|
||||
kesesPercbenBindToButton(kesesButtonok, kesesNumericTextBoxok);
|
||||
}
|
||||
|
||||
function buttonBindToKesesPercben(kesesButtonok, kesesNumericTextBoxok) {
|
||||
kesesButtonok.each(function () {
|
||||
var itemId = $(this).attr("id");
|
||||
$("#" + itemId).on("change", function () {
|
||||
mulasztasTipusOnChange(this, itemId);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function kesesPercbenBindToButton(kesesButtonok, kesesNumericTextBoxok) {
|
||||
kesesNumericTextBoxok.each(function () {
|
||||
var itemId = $(this).attr("id");
|
||||
$("#" + itemId).on("change", function () {
|
||||
kesesPercbenOnChange(this, itemId);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function mulasztasTipusOnChange(item, itemId) {
|
||||
var mulasztasTipusValue = $("#" + itemId).val();
|
||||
// hogy ha nem "késés" típus van kiválasztva
|
||||
if (mulasztasTipusValue != 1499) {
|
||||
var itemNumber = itemId.toString().replace(mulasztasPrefix, '');
|
||||
var kendoKeses = $("#" + kesesPrefix + itemNumber).data("kendoNumericTextBox");
|
||||
if (typeof (kendoKeses) !== "undefined") {
|
||||
kendoKeses.value(null); // kitöröljük a kendo control értékét
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function kesesPercbenOnChange(item, itemId) {
|
||||
var itemNumber = itemId.toString().replace(kesesPrefix, '');
|
||||
|
||||
var kendoKeses = $("#" + kesesPrefix + itemNumber).data("kendoNumericTextBox");
|
||||
if (typeof (kendoKeses) !== "undefined") {
|
||||
var kesesValue = kendoKeses.value();
|
||||
if (kesesValue > 0) {
|
||||
var itemDiv = "#div" + mulasztasPrefix + itemNumber;
|
||||
var itemKeses = $(itemDiv).find('.selectorwrapper > ul > li[val="1499"]');
|
||||
|
||||
if (itemKeses.hasClass("activebar") == false) {
|
||||
itemKeses.click();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return documentReadyHelper;
|
||||
})();
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#ElozoOraAdatai").click(function () { MulasztasHelper.setOraTemaja() });
|
||||
$("#JogviszonySzunetletetoDb").kendoTooltip({ content: '@Model.JogviszonySzunetletetok' });
|
||||
$("#SzakmaiGyakorlatonLevoDb").kendoTooltip({ content: '@Model.SzakmaiGyakorlatonLevok' });
|
||||
});
|
||||
|
||||
</script>
|
||||
@Html.KretaTooltipTemplate("kendoTooltip-mulasztasTanuloNevTemplate",
|
||||
@"<div class='kendoTooltip'>
|
||||
<table>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>Gondviselő neve:</b></td>
|
||||
<td>#:target.data('gondviselo')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>Gondviselő telefonszáma:</b></td>
|
||||
<td>#:target.data('gondviselotelszam')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>AMI főtárgy:</b></td>
|
||||
<td>#:target.data('amifotargy')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>AMI tagozat:</b></td>
|
||||
<td>#:target.data('amitagozat')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>AMI tantárgykötelezőség:</b></td>
|
||||
<td>#:target.data('amitantargykotelezoseg')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>AMI évfolyam:</b></td>
|
||||
<td>#:target.data('evfolyam')#</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>")
|
||||
|
||||
@Html.KretaTooltipTemplate("kendoTooltip-mulasztasSzazalekTemplate",
|
||||
@"<div class='kendoTooltip'>
|
||||
<table>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>" + OrarendResource.Osszes + @":</b></td>
|
||||
<td>#:target.data('mulasztasossz')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>" + OrarendResource.EddigMegtartottOrak + @":</b></td>
|
||||
<td>#:target.data('mulasztasmegtartott')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>" + OrarendResource.HatralevoOrak + @":</b></td>
|
||||
<td>#:target.data('mulasztasmegtarthato')#</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='padding-right: 5px'><b>" + OrarendResource.Hianyzas + @":</b></td>
|
||||
<td>#:target.data('mulasztashiany')#</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>")
|
|
@ -0,0 +1,29 @@
|
|||
@using Kreta.Web.Areas.Orarend.Models
|
||||
@model NemKotottMunkaidoModel
|
||||
@{ Layout = null; }
|
||||
|
||||
@Html.HiddenFor(x => x.Id)
|
||||
@Html.HiddenFor(x => x.TanarId)
|
||||
@Html.HiddenFor(x => x.TulajId)
|
||||
@Html.HiddenFor(x => x.GroupId)
|
||||
@Html.HiddenFor(x => x.ModositasiIdoszakTipus)
|
||||
@Html.HiddenFor(x => x.JSHelperNev)
|
||||
@Html.HiddenFor(x => x.isMegtartott)
|
||||
@Html.HiddenFor(x => x.HetirendId)
|
||||
@Html.HiddenFor(x => x.AdminAltalTorolt)
|
||||
@Html.HiddenFor(x => x.Megjegyzes)
|
||||
|
||||
@Html.KretaValidationSummary()
|
||||
<div class="container-fluid details">
|
||||
<div class="row">
|
||||
@Html.KretaDatePickerFor(x => x.Datum, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 2)
|
||||
@Html.KretaTimePickerFor(x => x.Kezdet, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 2)
|
||||
@Html.KretaTimePickerFor(x => x.Veg, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(x => x.TorvenyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTorvenyKategoriaList" }), "Text", "Value", new Dictionary<string, object>() { { "readonly", "readonly" } }).AutoBind(true).RenderWithName(2, 10)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextAreaFor(m => m.NaplozottMegjegyzes, 6, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 10)
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,128 @@
|
|||
@using Kreta.Web.Areas.Orarend.Models;
|
||||
@using Kreta.Framework;
|
||||
@model TanoraAdatok
|
||||
@{ Layout = null; }
|
||||
|
||||
<div class="container-fluid details">
|
||||
<h4>@OrarendResource.TanoraAlapadati</h4>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.OsztalyCsoportNev, 3, 3)
|
||||
@Html.KretaLabelFor(m => m.OratartamEsOraszam, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.TantargyNev, 3, 3)
|
||||
@Html.KretaLabelFor(m => m.Oraszam, 3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaLabelFor(m => m.TanarNev, 3, 3)
|
||||
@Html.KretaCheckBoxFor(m => m.Megtartott).Enable(false).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(m => m.Terem, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTeremList" }), "Text", "Value", useGroup: false).AutoBind(true).Enable(false).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(m => m.Sorszamozando).Enable(false).RenderWithName(3, 3)
|
||||
<div data-sorszam-visible="true">
|
||||
@Html.KretaLabelFor(m => m.EvesOraSorszam, 3, 3)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(m => m.Megjegyzes).Enable(false).RenderWithName(3, 9)
|
||||
</div>
|
||||
|
||||
@*OpenBoard Képek*@
|
||||
@if (Model.OpenBoardFiles.Count > 0)
|
||||
{
|
||||
<h4>@StringResourcesUtil.GetString(8369)</h4>
|
||||
<div class="row col-xs-12" id="OpenBoardFiles">
|
||||
@Html.KretaCheckBoxListForOpenBoardKepek("OpenBoardFiles", Model.OpenBoardFiles, 10, true)
|
||||
</div>
|
||||
}
|
||||
|
||||
<h4>@StringResourcesUtil.GetString(2491)</h4>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.Sorszamozando).Enable(false).RenderWithName(3, 3)
|
||||
@Html.KretaCheckBoxFor(x => x.ParhuzamosOra).Enable(false).RenderWithName(3, 3)
|
||||
</div>
|
||||
|
||||
<h4>@StringResourcesUtil.GetString(2492)</h4>
|
||||
<h5 style="font-weight: bold;">@OrarendResource.Altalanos</h5>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.Tulora).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.IKTTanora).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.IPRTanora).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Meres).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.Bontott).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.NemzetisegiOra).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Differencialt).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Drama).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.ParhuzamosOra).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.MindennaposTestneveles).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Kooperativ).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Multikulturalis).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.NemSzakrendszeruOra).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.IsFelnottoktatasiSzerzodes).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.OnlineOra).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
|
||||
<h5 style="font-weight: bold;">@OrarendResource.KomplexAlapProgram</h5>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.DFHT).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Rahangolodas).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Testmozgas).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Muveszet).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.KIPOra).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.KomplexOra).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Eletgyakorlat).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Logika).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.TeOrad).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.DigitalisAlapProgram).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
|
||||
<h5 style="font-weight: bold;">@OrarendResource.EgyebPalyazat</h5>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.TAMOPOra).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.Tiop).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.EFOP32317).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.EFOP33717).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.VEKOP73317).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.TIOP11112120120001).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.EFOP31716EselyteremtesAKoznevelesben).Enable(false).RenderWithName(2, 1)
|
||||
@Html.KretaCheckBoxFor(x => x.GINOP623).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(x => x.EFOP23517201700038Miapalya).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
|
||||
@if (Model.Helyettesites)
|
||||
{
|
||||
<h4>@OrarendResource.HelyettesitesAdatai.ToUpper()</h4>
|
||||
<div class="row">
|
||||
@Html.KretaCheckBoxFor(m => m.Helyettesites).Enable(false).RenderWithName(2, 1)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaComboBoxFor(m => m.HelyettesitoTanar, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "AdminNaploEllenorzesApi", action = "GetTanarListItems" })).Enable(false).AutoBind(true).RenderWithName(3, 3)
|
||||
@Html.KretaComboBoxFor(m => m.HelyettesitesTipusa, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "AdminNaploEllenorzesApi", action = "GetHelyettesitesTipus" })).Enable(false).AutoBind(true).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(m => m.HelyettesitesOka).Enable(false).RenderWithName(3, 3)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<style type="text/css">
|
||||
.k-checkbox-label-inline {
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue